Class: Google::Cloud::Dlp::V2::DiscoveryCloudStorageConditions

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/privacy/dlp/v2/dlp.rb

Overview

Requirements that must be true before a Cloud Storage bucket or object is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.

Defined Under Namespace

Modules: CloudStorageBucketAttribute, CloudStorageObjectAttribute

Instance Attribute Summary collapse

Instance Attribute Details

#included_bucket_attributes::Array<::Google::Cloud::Dlp::V2::DiscoveryCloudStorageConditions::CloudStorageBucketAttribute>

Returns Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

Returns:



5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 5262

class DiscoveryCloudStorageConditions
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The attribute of an object. See
  # https://cloud.google.com/storage/docs/storage-classes for more information
  # on storage classes.
  module CloudStorageObjectAttribute
    # Unused.
    CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0

    # Scan objects regardless of the attribute.
    ALL_SUPPORTED_OBJECTS = 1

    # Scan objects with the standard storage class.
    STANDARD = 2

    # Scan objects with the nearline storage class. This will incur retrieval
    # fees.
    NEARLINE = 3

    # Scan objects with the coldline storage class. This will incur retrieval
    # fees.
    COLDLINE = 4

    # Scan objects with the archive storage class. This will incur retrieval
    # fees.
    ARCHIVE = 5

    # Scan objects with the regional storage class.
    REGIONAL = 6

    # Scan objects with the multi-regional storage class.
    MULTI_REGIONAL = 7

    # Scan objects with the dual-regional storage class. This will incur
    # retrieval fees.
    DURABLE_REDUCED_AVAILABILITY = 8
  end

  # The attribute of a bucket.
  module CloudStorageBucketAttribute
    # Unused.
    CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0

    # Scan buckets regardless of the attribute.
    ALL_SUPPORTED_BUCKETS = 1

    # Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass)
    # disabled. Only one of
    # AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set.
    AUTOCLASS_DISABLED = 2

    # Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass)
    # enabled. Only one of
    # AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning
    # Autoclass-enabled buckets can affect object storage classes.
    AUTOCLASS_ENABLED = 3
  end
end

#included_object_attributes::Array<::Google::Cloud::Dlp::V2::DiscoveryCloudStorageConditions::CloudStorageObjectAttribute>

Returns Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

Returns:



5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 5262

class DiscoveryCloudStorageConditions
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The attribute of an object. See
  # https://cloud.google.com/storage/docs/storage-classes for more information
  # on storage classes.
  module CloudStorageObjectAttribute
    # Unused.
    CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0

    # Scan objects regardless of the attribute.
    ALL_SUPPORTED_OBJECTS = 1

    # Scan objects with the standard storage class.
    STANDARD = 2

    # Scan objects with the nearline storage class. This will incur retrieval
    # fees.
    NEARLINE = 3

    # Scan objects with the coldline storage class. This will incur retrieval
    # fees.
    COLDLINE = 4

    # Scan objects with the archive storage class. This will incur retrieval
    # fees.
    ARCHIVE = 5

    # Scan objects with the regional storage class.
    REGIONAL = 6

    # Scan objects with the multi-regional storage class.
    MULTI_REGIONAL = 7

    # Scan objects with the dual-regional storage class. This will incur
    # retrieval fees.
    DURABLE_REDUCED_AVAILABILITY = 8
  end

  # The attribute of a bucket.
  module CloudStorageBucketAttribute
    # Unused.
    CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0

    # Scan buckets regardless of the attribute.
    ALL_SUPPORTED_BUCKETS = 1

    # Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass)
    # disabled. Only one of
    # AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set.
    AUTOCLASS_DISABLED = 2

    # Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass)
    # enabled. Only one of
    # AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning
    # Autoclass-enabled buckets can affect object storage classes.
    AUTOCLASS_ENABLED = 3
  end
end