Class: Google::Cloud::Dlp::V2::DiscoveryConfig
- Inherits:
-
Object
- Object
- Google::Cloud::Dlp::V2::DiscoveryConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/privacy/dlp/v2/dlp.rb
Overview
Configuration for discovery to scan resources for profile generation. Only one discovery configuration may exist per organization, folder, or project.
The generated data profiles are retained according to the data retention policy.
Defined Under Namespace
Modules: Status Classes: OrgConfig
Instance Attribute Summary collapse
-
#actions ⇒ ::Array<::Google::Cloud::Dlp::V2::DataProfileAction>
Actions to execute at the completion of scanning.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#display_name ⇒ ::String
Display name (max 100 chars).
-
#errors ⇒ ::Array<::Google::Cloud::Dlp::V2::Error>
readonly
Output only.
-
#inspect_templates ⇒ ::Array<::String>
Detection logic for profile generation.
-
#last_run_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#name ⇒ ::String
Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example
projects/dlp-test-project/locations/global/discoveryConfigs/53234423
. -
#org_config ⇒ ::Google::Cloud::Dlp::V2::DiscoveryConfig::OrgConfig
Only set when the parent is an org.
-
#status ⇒ ::Google::Cloud::Dlp::V2::DiscoveryConfig::Status
Required.
-
#targets ⇒ ::Array<::Google::Cloud::Dlp::V2::DiscoveryTarget>
Target to match against for determining what to scan and how frequently.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#actions ⇒ ::Array<::Google::Cloud::Dlp::V2::DataProfileAction>
Returns Actions to execute at the completion of scanning.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The creation timestamp of a DiscoveryConfig.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#display_name ⇒ ::String
Returns Display name (max 100 chars).
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#errors ⇒ ::Array<::Google::Cloud::Dlp::V2::Error> (readonly)
Returns Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#inspect_templates ⇒ ::Array<::String>
Returns Detection logic for profile generation.
Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery.
Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned.
For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#last_run_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The timestamp of the last time this config was executed.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#name ⇒ ::String
Returns Unique resource name for the DiscoveryConfig, assigned by the service when
the DiscoveryConfig is created, for example
projects/dlp-test-project/locations/global/discoveryConfigs/53234423
.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#org_config ⇒ ::Google::Cloud::Dlp::V2::DiscoveryConfig::OrgConfig
Returns Only set when the parent is an org.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#status ⇒ ::Google::Cloud::Dlp::V2::DiscoveryConfig::Status
Returns Required. A status for this configuration.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#targets ⇒ ::Array<::Google::Cloud::Dlp::V2::DiscoveryTarget>
Returns Target to match against for determining what to scan and how frequently.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The last update timestamp of a DiscoveryConfig.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4362 class DiscoveryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Project and scan location information. Only set when the parent is an org. # @!attribute [rw] location # @return [::Google::Cloud::Dlp::V2::DiscoveryStartingLocation] # The data to scan: folder, org, or project # @!attribute [rw] project_id # @return [::String] # The project that will run the scan. The DLP service # account that exists within this project must have access to all resources # that are profiled, and the Cloud DLP API must be enabled. class OrgConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Whether the discovery config is currently active. New options may be added # at a later time. module Status # Unused STATUS_UNSPECIFIED = 0 # The discovery config is currently active. RUNNING = 1 # The discovery config is paused temporarily. PAUSED = 2 end end |