Class: Google::Cloud::Dlp::V2::DiscoveryConfig

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#actions::Array<::Google::Cloud::Dlp::V2::DataProfileAction>

Returns Actions to execute at the completion of scanning.

Returns:



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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.

Returns:



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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).

Returns:

  • (::String)

    Display name (max 100 chars)



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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.

Returns:

  • (::Array<::Google::Cloud::Dlp::V2::Error>)

    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.



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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.

Returns:

  • (::Array<::String>)

    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.



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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.

Returns:



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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.

Returns:

  • (::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.



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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.

Returns:



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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.

Returns:



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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.

Returns:



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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.

Returns:



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4239

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