google-cloud-dlp-v2 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -282,6 +282,9 @@ module Google
282
282
  # The type of data being sent for inspection. To learn more, see
283
283
  # [Supported file
284
284
  # types](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types).
285
+ #
286
+ # Only the first frame of each multiframe image is inspected. Metadata and
287
+ # other frames aren't inspected.
285
288
  module BytesType
286
289
  # Unused
287
290
  BYTES_TYPE_UNSPECIFIED = 0
@@ -333,6 +336,9 @@ module Google
333
336
 
334
337
  # Executable file types. Only used for profiling.
335
338
  EXECUTABLE = 17
339
+
340
+ # AI model file types. Only used for profiling.
341
+ AI_MODEL = 18
336
342
  end
337
343
  end
338
344
 
@@ -1218,6 +1224,9 @@ module Google
1218
1224
  # @return [::String]
1219
1225
  # Description of the infotype. Translated when language is provided in the
1220
1226
  # request.
1227
+ # @!attribute [rw] example
1228
+ # @return [::String]
1229
+ # A sample that is a true positive for this infoType.
1221
1230
  # @!attribute [rw] versions
1222
1231
  # @return [::Array<::Google::Cloud::Dlp::V2::VersionDescription>]
1223
1232
  # A list of available versions for the infotype.
@@ -1227,6 +1236,13 @@ module Google
1227
1236
  # @!attribute [rw] sensitivity_score
1228
1237
  # @return [::Google::Cloud::Dlp::V2::SensitivityScore]
1229
1238
  # The default sensitivity of the infoType.
1239
+ # @!attribute [rw] specific_info_types
1240
+ # @return [::Array<::String>]
1241
+ # If this field is set, this infoType is a general infoType and these
1242
+ # specific infoTypes are contained within it.
1243
+ # General infoTypes are infoTypes that encompass multiple specific infoTypes.
1244
+ # For example, the "GEOGRAPHIC_DATA" general infoType would have set for this
1245
+ # field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS".
1230
1246
  class InfoTypeDescription
1231
1247
  include ::Google::Protobuf::MessageExts
1232
1248
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1300,6 +1316,9 @@ module Google
1300
1316
  # The infoType is typically used in Croatia.
1301
1317
  CROATIA = 42
1302
1318
 
1319
+ # The infoType is typically used in Czechia.
1320
+ CZECHIA = 52
1321
+
1303
1322
  # The infoType is typically used in Denmark.
1304
1323
  DENMARK = 10
1305
1324
 
@@ -1458,6 +1477,9 @@ module Google
1458
1477
  # Information that is not sensitive on its own, but provides details about
1459
1478
  # the circumstances surrounding an entity or an event.
1460
1479
  CONTEXTUAL_INFORMATION = 7
1480
+
1481
+ # Category for `CustomInfoType` types.
1482
+ CUSTOM = 8
1461
1483
  end
1462
1484
  end
1463
1485
 
@@ -2374,7 +2396,8 @@ module Google
2374
2396
  # Note: The following fields are mutually exclusive: `character_mask_config`, `replace_config`, `redact_config`, `crypto_replace_ffx_fpe_config`, `fixed_size_bucketing_config`, `bucketing_config`, `replace_with_info_type_config`, `time_part_config`, `crypto_hash_config`, `date_shift_config`, `crypto_deterministic_config`, `replace_dictionary_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2375
2397
  # @!attribute [rw] crypto_replace_ffx_fpe_config
2376
2398
  # @return [::Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig]
2377
- # Ffx-Fpe
2399
+ # Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig
2400
+ # instead. Fpe is computationally expensive incurring latency costs.
2378
2401
  #
2379
2402
  # Note: The following fields are mutually exclusive: `crypto_replace_ffx_fpe_config`, `replace_config`, `redact_config`, `character_mask_config`, `fixed_size_bucketing_config`, `bucketing_config`, `replace_with_info_type_config`, `time_part_config`, `crypto_hash_config`, `date_shift_config`, `crypto_deterministic_config`, `replace_dictionary_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2380
2403
  # @!attribute [rw] fixed_size_bucketing_config
@@ -2749,7 +2772,7 @@ module Google
2749
2772
  #
2750
2773
  # Note: We recommend using CryptoDeterministicConfig for all use cases which
2751
2774
  # do not require preserving the input alphabet space and size, plus warrant
2752
- # referential integrity.
2775
+ # referential integrity. FPE incurs significant latency costs.
2753
2776
  # @!attribute [rw] crypto_key
2754
2777
  # @return [::Google::Cloud::Dlp::V2::CryptoKey]
2755
2778
  # Required. The key used by the encryption algorithm.
@@ -4251,7 +4274,7 @@ module Google
4251
4274
  # Note: The following fields are mutually exclusive: `publish_to_chronicle`, `export_data`, `pub_sub_notification`, `publish_to_scc`, `tag_resources`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4252
4275
  # @!attribute [rw] publish_to_scc
4253
4276
  # @return [::Google::Cloud::Dlp::V2::DataProfileAction::PublishToSecurityCommandCenter]
4254
- # Publishes findings to SCC for each data profile.
4277
+ # Publishes findings to Security Command Center for each data profile.
4255
4278
  #
4256
4279
  # Note: The following fields are mutually exclusive: `publish_to_scc`, `export_data`, `pub_sub_notification`, `publish_to_chronicle`, `tag_resources`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4257
4280
  # @!attribute [rw] tag_resources
@@ -4267,15 +4290,41 @@ module Google
4267
4290
  # of your choice whenever updated.
4268
4291
  # @!attribute [rw] profile_table
4269
4292
  # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
4270
- # Store all table and column profiles in an existing table or a new table
4271
- # in an existing dataset. Each re-generation will result in new rows in
4272
- # BigQuery. Data is inserted using [streaming
4293
+ # Store all profiles to BigQuery.
4294
+ #
4295
+ # * The system will create a new dataset and table for you if none are
4296
+ # are provided. The dataset will be named
4297
+ # `sensitive_data_protection_discovery` and table will be named
4298
+ # `discovery_profiles`. This table will be placed in the same project as
4299
+ # the container project running the scan. After the first profile is
4300
+ # generated and the dataset and table are created, the discovery scan
4301
+ # configuration will be updated with the dataset and table names.
4302
+ # * See [Analyze data profiles stored in
4303
+ # BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles).
4304
+ # * See [Sample queries for your BigQuery
4305
+ # table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries).
4306
+ # * Data is inserted using [streaming
4307
+ # insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
4308
+ # and so data may be in the buffer for a period of time after the
4309
+ # profile has finished.
4310
+ # * The Pub/Sub notification is sent before the streaming buffer is
4311
+ # guaranteed to be written, so data may not be instantly
4312
+ # visible to queries by the time your topic receives the Pub/Sub
4313
+ # notification.
4314
+ # * The best practice is to use the same table for an entire organization
4315
+ # so that you can take advantage of the [provided Looker
4316
+ # reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report).
4317
+ # If you use VPC Service Controls to define security perimeters, then
4318
+ # you must use a separate table for each boundary.
4319
+ # @!attribute [rw] sample_findings_table
4320
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
4321
+ # Store sample [data profile
4322
+ # findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table
4323
+ # or a new table in an existing dataset. Each regeneration will result in
4324
+ # new rows in BigQuery. Data is inserted using [streaming
4273
4325
  # insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
4274
4326
  # and so data may be in the buffer for a period of time after the profile
4275
- # has finished. The Pub/Sub notification is sent before the streaming
4276
- # buffer is guaranteed to be written, so data may not be instantly
4277
- # visible to queries by the time your topic receives the Pub/Sub
4278
- # notification.
4327
+ # has finished.
4279
4328
  class Export
4280
4329
  include ::Google::Protobuf::MessageExts
4281
4330
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -4327,7 +4376,8 @@ module Google
4327
4376
  extend ::Google::Protobuf::MessageExts::ClassMethods
4328
4377
  end
4329
4378
 
4330
- # If set, a summary finding will be created/updated in SCC for each profile.
4379
+ # If set, a summary finding will be created or updated in Security Command
4380
+ # Center for each profile.
4331
4381
  class PublishToSecurityCommandCenter
4332
4382
  include ::Google::Protobuf::MessageExts
4333
4383
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -4411,6 +4461,69 @@ module Google
4411
4461
  end
4412
4462
  end
4413
4463
 
4464
+ # Details about a piece of potentially sensitive information that was detected
4465
+ # when the data resource was profiled.
4466
+ # @!attribute [rw] quote
4467
+ # @return [::String]
4468
+ # The content that was found. Even if the content is not textual, it
4469
+ # may be converted to a textual representation here. If the finding exceeds
4470
+ # 4096 bytes in length, the quote may be omitted.
4471
+ # @!attribute [rw] infotype
4472
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
4473
+ # The [type of
4474
+ # content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference)
4475
+ # that might have been found.
4476
+ # @!attribute [rw] quote_info
4477
+ # @return [::Google::Cloud::Dlp::V2::QuoteInfo]
4478
+ # Contains data parsed from quotes. Currently supported infoTypes: DATE,
4479
+ # DATE_OF_BIRTH, and TIME.
4480
+ # @!attribute [rw] data_profile_resource_name
4481
+ # @return [::String]
4482
+ # Resource name of the data profile associated with the finding.
4483
+ # @!attribute [rw] finding_id
4484
+ # @return [::String]
4485
+ # A unique identifier for the finding.
4486
+ # @!attribute [rw] timestamp
4487
+ # @return [::Google::Protobuf::Timestamp]
4488
+ # Timestamp when the finding was detected.
4489
+ # @!attribute [rw] location
4490
+ # @return [::Google::Cloud::Dlp::V2::DataProfileFindingLocation]
4491
+ # Where the content was found.
4492
+ # @!attribute [rw] resource_visibility
4493
+ # @return [::Google::Cloud::Dlp::V2::ResourceVisibility]
4494
+ # How broadly a resource has been shared.
4495
+ class DataProfileFinding
4496
+ include ::Google::Protobuf::MessageExts
4497
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4498
+ end
4499
+
4500
+ # Location of a data profile finding within a resource.
4501
+ # @!attribute [rw] container_name
4502
+ # @return [::String]
4503
+ # Name of the container where the finding is located.
4504
+ # The top-level name is the source file name or table name. Names of some
4505
+ # common storage containers are formatted as follows:
4506
+ #
4507
+ # * BigQuery tables: `{project_id}:{dataset_id}.{table_id}`
4508
+ # * Cloud Storage files: `gs://{bucket}/{path}`
4509
+ # @!attribute [rw] data_profile_finding_record_location
4510
+ # @return [::Google::Cloud::Dlp::V2::DataProfileFindingRecordLocation]
4511
+ # Location of a finding within a resource that produces a table data
4512
+ # profile.
4513
+ class DataProfileFindingLocation
4514
+ include ::Google::Protobuf::MessageExts
4515
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4516
+ end
4517
+
4518
+ # Location of a finding within a resource that produces a table data profile.
4519
+ # @!attribute [rw] field
4520
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
4521
+ # Field ID of the column containing the finding.
4522
+ class DataProfileFindingRecordLocation
4523
+ include ::Google::Protobuf::MessageExts
4524
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4525
+ end
4526
+
4414
4527
  # Configuration for setting up a job to scan resources for profile generation.
4415
4528
  # Only one data profile configuration may exist per organization, folder,
4416
4529
  # or project.
@@ -4425,7 +4538,7 @@ module Google
4425
4538
  # @return [::String]
4426
4539
  # The project that will run the scan. The DLP service
4427
4540
  # account that exists within this project must have access to all resources
4428
- # that are profiled, and the Cloud DLP API must be enabled.
4541
+ # that are profiled, and the DLP API must be enabled.
4429
4542
  # @!attribute [rw] other_cloud_starting_location
4430
4543
  # @return [::Google::Cloud::Dlp::V2::OtherCloudDiscoveryStartingLocation]
4431
4544
  # Must be set only when scanning other clouds.
@@ -4580,6 +4693,11 @@ module Google
4580
4693
  # @!attribute [rw] status
4581
4694
  # @return [::Google::Cloud::Dlp::V2::DiscoveryConfig::Status]
4582
4695
  # Required. A status for this configuration.
4696
+ # @!attribute [rw] processing_location
4697
+ # @return [::Google::Cloud::Dlp::V2::ProcessingLocation]
4698
+ # Optional. Processing location configuration. Vertex AI dataset scanning
4699
+ # will set processing_location.image_fallback_type to MultiRegionProcessing
4700
+ # by default.
4583
4701
  class DiscoveryConfig
4584
4702
  include ::Google::Protobuf::MessageExts
4585
4703
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -4592,7 +4710,7 @@ module Google
4592
4710
  # @return [::String]
4593
4711
  # The project that will run the scan. The DLP service
4594
4712
  # account that exists within this project must have access to all resources
4595
- # that are profiled, and the Cloud DLP API must be enabled.
4713
+ # that are profiled, and the DLP API must be enabled.
4596
4714
  class OrgConfig
4597
4715
  include ::Google::Protobuf::MessageExts
4598
4716
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -4618,32 +4736,44 @@ module Google
4618
4736
  # BigQuery target for Discovery. The first target to match a table will be
4619
4737
  # the one applied.
4620
4738
  #
4621
- # Note: The following fields are mutually exclusive: `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4739
+ # Note: The following fields are mutually exclusive: `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4622
4740
  # @!attribute [rw] cloud_sql_target
4623
4741
  # @return [::Google::Cloud::Dlp::V2::CloudSqlDiscoveryTarget]
4624
4742
  # Cloud SQL target for Discovery. The first target to match a table will be
4625
4743
  # the one applied.
4626
4744
  #
4627
- # Note: The following fields are mutually exclusive: `cloud_sql_target`, `big_query_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4745
+ # Note: The following fields are mutually exclusive: `cloud_sql_target`, `big_query_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4628
4746
  # @!attribute [rw] secrets_target
4629
4747
  # @return [::Google::Cloud::Dlp::V2::SecretsDiscoveryTarget]
4630
4748
  # Discovery target that looks for credentials and secrets stored in cloud
4631
4749
  # resource metadata and reports them as vulnerabilities to Security Command
4632
4750
  # Center. Only one target of this type is allowed.
4633
4751
  #
4634
- # Note: The following fields are mutually exclusive: `secrets_target`, `big_query_target`, `cloud_sql_target`, `cloud_storage_target`, `other_cloud_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4752
+ # Note: The following fields are mutually exclusive: `secrets_target`, `big_query_target`, `cloud_sql_target`, `cloud_storage_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4635
4753
  # @!attribute [rw] cloud_storage_target
4636
4754
  # @return [::Google::Cloud::Dlp::V2::CloudStorageDiscoveryTarget]
4637
4755
  # Cloud Storage target for Discovery. The first target to match a table
4638
4756
  # will be the one applied.
4639
4757
  #
4640
- # Note: The following fields are mutually exclusive: `cloud_storage_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `other_cloud_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4758
+ # Note: The following fields are mutually exclusive: `cloud_storage_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `other_cloud_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4641
4759
  # @!attribute [rw] other_cloud_target
4642
4760
  # @return [::Google::Cloud::Dlp::V2::OtherCloudDiscoveryTarget]
4643
4761
  # Other clouds target for discovery. The first target to match a resource
4644
4762
  # will be the one applied.
4645
4763
  #
4646
- # Note: The following fields are mutually exclusive: `other_cloud_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4764
+ # Note: The following fields are mutually exclusive: `other_cloud_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `vertex_dataset_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4765
+ # @!attribute [rw] vertex_dataset_target
4766
+ # @return [::Google::Cloud::Dlp::V2::VertexDatasetDiscoveryTarget]
4767
+ # Vertex AI dataset target for Discovery. The first target to match a
4768
+ # dataset will be the one applied. Note that discovery for Vertex AI can
4769
+ # incur Cloud Storage Class B operation charges for storage.objects.get
4770
+ # operations and retrieval fees. For more information, see [Cloud Storage
4771
+ # pricing](https://cloud.google.com/storage/pricing#price-tables).
4772
+ # Note that discovery for Vertex AI dataset will not be able to scan images
4773
+ # unless DiscoveryConfig.processing_location.image_fallback_location has
4774
+ # multi_region_processing or global_processing configured.
4775
+ #
4776
+ # Note: The following fields are mutually exclusive: `vertex_dataset_target`, `big_query_target`, `cloud_sql_target`, `secrets_target`, `cloud_storage_target`, `other_cloud_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
4647
4777
  class DiscoveryTarget
4648
4778
  include ::Google::Protobuf::MessageExts
4649
4779
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -5262,13 +5392,13 @@ module Google
5262
5392
  # Scan buckets regardless of the attribute.
5263
5393
  ALL_SUPPORTED_BUCKETS = 1
5264
5394
 
5265
- # Buckets with autoclass disabled
5266
- # (https://cloud.google.com/storage/docs/autoclass). Only one of
5395
+ # Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass)
5396
+ # disabled. Only one of
5267
5397
  # AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set.
5268
5398
  AUTOCLASS_DISABLED = 2
5269
5399
 
5270
- # Buckets with autoclass enabled
5271
- # (https://cloud.google.com/storage/docs/autoclass). Only one of
5400
+ # Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass)
5401
+ # enabled. Only one of
5272
5402
  # AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning
5273
5403
  # Autoclass-enabled buckets can affect object storage classes.
5274
5404
  AUTOCLASS_ENABLED = 3
@@ -5573,6 +5703,134 @@ module Google
5573
5703
  extend ::Google::Protobuf::MessageExts::ClassMethods
5574
5704
  end
5575
5705
 
5706
+ # Target used to match against for discovery with Vertex AI datasets.
5707
+ # @!attribute [rw] filter
5708
+ # @return [::Google::Cloud::Dlp::V2::DiscoveryVertexDatasetFilter]
5709
+ # Required. The datasets the discovery cadence applies to. The first target
5710
+ # with a matching filter will be the one to apply to a dataset.
5711
+ # @!attribute [rw] conditions
5712
+ # @return [::Google::Cloud::Dlp::V2::DiscoveryVertexDatasetConditions]
5713
+ # In addition to matching the filter, these conditions must be true
5714
+ # before a profile is generated.
5715
+ # @!attribute [rw] generation_cadence
5716
+ # @return [::Google::Cloud::Dlp::V2::DiscoveryVertexDatasetGenerationCadence]
5717
+ # How often and when to update profiles. New datasets that match both the
5718
+ # filter and conditions are scanned as quickly as possible depending on
5719
+ # system capacity.
5720
+ #
5721
+ # Note: The following fields are mutually exclusive: `generation_cadence`, `disabled`. If a field in that set is populated, all other fields in the set will automatically be cleared.
5722
+ # @!attribute [rw] disabled
5723
+ # @return [::Google::Cloud::Dlp::V2::Disabled]
5724
+ # Disable profiling for datasets that match this filter.
5725
+ #
5726
+ # Note: The following fields are mutually exclusive: `disabled`, `generation_cadence`. If a field in that set is populated, all other fields in the set will automatically be cleared.
5727
+ class VertexDatasetDiscoveryTarget
5728
+ include ::Google::Protobuf::MessageExts
5729
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5730
+ end
5731
+
5732
+ # Determines what datasets will have profiles generated within an organization
5733
+ # or project. Includes the ability to filter by regular expression patterns
5734
+ # on project ID or dataset regex.
5735
+ # @!attribute [rw] collection
5736
+ # @return [::Google::Cloud::Dlp::V2::VertexDatasetCollection]
5737
+ # A specific set of Vertex AI datasets for this filter to apply to.
5738
+ #
5739
+ # Note: The following fields are mutually exclusive: `collection`, `vertex_dataset_resource_reference`, `others`. If a field in that set is populated, all other fields in the set will automatically be cleared.
5740
+ # @!attribute [rw] vertex_dataset_resource_reference
5741
+ # @return [::Google::Cloud::Dlp::V2::VertexDatasetResourceReference]
5742
+ # The dataset resource to scan. Targets including this can only include
5743
+ # one target (the target with this dataset resource reference).
5744
+ #
5745
+ # Note: The following fields are mutually exclusive: `vertex_dataset_resource_reference`, `collection`, `others`. If a field in that set is populated, all other fields in the set will automatically be cleared.
5746
+ # @!attribute [rw] others
5747
+ # @return [::Google::Cloud::Dlp::V2::AllOtherResources]
5748
+ # Catch-all. This should always be the last target in the list because
5749
+ # anything above it will apply first. Should only appear once in a
5750
+ # configuration. If none is specified, a default one will be added
5751
+ # automatically.
5752
+ #
5753
+ # Note: The following fields are mutually exclusive: `others`, `collection`, `vertex_dataset_resource_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
5754
+ class DiscoveryVertexDatasetFilter
5755
+ include ::Google::Protobuf::MessageExts
5756
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5757
+ end
5758
+
5759
+ # Match dataset resources using regex filters.
5760
+ # @!attribute [rw] vertex_dataset_regexes
5761
+ # @return [::Google::Cloud::Dlp::V2::VertexDatasetRegexes]
5762
+ # The regex used to filter dataset resources.
5763
+ class VertexDatasetCollection
5764
+ include ::Google::Protobuf::MessageExts
5765
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5766
+ end
5767
+
5768
+ # A collection of regular expressions to determine what datasets to match
5769
+ # against.
5770
+ # @!attribute [rw] patterns
5771
+ # @return [::Array<::Google::Cloud::Dlp::V2::VertexDatasetRegex>]
5772
+ # Required. The group of regular expression patterns to match against one or
5773
+ # more datasets. Maximum of 100 entries. The sum of the lengths of all
5774
+ # regular expressions can't exceed 10 KiB.
5775
+ class VertexDatasetRegexes
5776
+ include ::Google::Protobuf::MessageExts
5777
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5778
+ end
5779
+
5780
+ # A pattern to match against one or more dataset resources.
5781
+ # @!attribute [rw] project_id_regex
5782
+ # @return [::String]
5783
+ # For organizations, if unset, will match all projects. Has no effect
5784
+ # for configurations created within a project.
5785
+ class VertexDatasetRegex
5786
+ include ::Google::Protobuf::MessageExts
5787
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5788
+ end
5789
+
5790
+ # Identifies a single Vertex AI dataset.
5791
+ # @!attribute [rw] dataset_resource_name
5792
+ # @return [::String]
5793
+ # Required. The name of the dataset resource. If set within a project-level
5794
+ # configuration, the specified resource must be within the project.
5795
+ class VertexDatasetResourceReference
5796
+ include ::Google::Protobuf::MessageExts
5797
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5798
+ end
5799
+
5800
+ # Requirements that must be true before a dataset is profiled for the
5801
+ # first time.
5802
+ # @!attribute [rw] created_after
5803
+ # @return [::Google::Protobuf::Timestamp]
5804
+ # Vertex AI dataset must have been created after this date. Used to avoid
5805
+ # backfilling.
5806
+ # @!attribute [rw] min_age
5807
+ # @return [::Google::Protobuf::Duration]
5808
+ # Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour
5809
+ # or greater.
5810
+ class DiscoveryVertexDatasetConditions
5811
+ include ::Google::Protobuf::MessageExts
5812
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5813
+ end
5814
+
5815
+ # How often existing datasets should have their profiles refreshed.
5816
+ # New datasets are scanned as quickly as possible depending on system
5817
+ # capacity.
5818
+ # @!attribute [rw] refresh_frequency
5819
+ # @return [::Google::Cloud::Dlp::V2::DataProfileUpdateFrequency]
5820
+ # If you set this field, profiles are refreshed at this
5821
+ # frequency regardless of whether the underlying datasets have changed.
5822
+ # Defaults to never.
5823
+ # @!attribute [rw] inspect_template_modified_cadence
5824
+ # @return [::Google::Cloud::Dlp::V2::DiscoveryInspectTemplateModifiedCadence]
5825
+ # Governs when to update data profiles when the inspection rules
5826
+ # defined by the `InspectTemplate` change.
5827
+ # If not set, changing the template will not cause a data profile to be
5828
+ # updated.
5829
+ class DiscoveryVertexDatasetGenerationCadence
5830
+ include ::Google::Protobuf::MessageExts
5831
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5832
+ end
5833
+
5576
5834
  # Combines all of the information about a DLP job.
5577
5835
  # @!attribute [rw] name
5578
5836
  # @return [::String]
@@ -5648,7 +5906,8 @@ module Google
5648
5906
  end
5649
5907
  end
5650
5908
 
5651
- # The request message for [DlpJobs.GetDlpJob][].
5909
+ # The request message for
5910
+ # {::Google::Cloud::Dlp::V2::DlpService::Client#get_dlp_job GetDlpJob}.
5652
5911
  # @!attribute [rw] name
5653
5912
  # @return [::String]
5654
5913
  # Required. The name of the DlpJob resource.
@@ -6710,6 +6969,17 @@ module Google
6710
6969
  # @!attribute [rw] create_time
6711
6970
  # @return [::Google::Protobuf::Timestamp]
6712
6971
  # The time at which the table was created.
6972
+ # @!attribute [rw] sample_findings_table
6973
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
6974
+ # The BigQuery table to which the sample findings are written.
6975
+ # @!attribute [rw] tags
6976
+ # @return [::Array<::Google::Cloud::Dlp::V2::Tag>]
6977
+ # The tags attached to the table, including any tags attached during
6978
+ # profiling. Because tags are attached to Cloud SQL instances rather than
6979
+ # Cloud SQL tables, this field is empty for Cloud SQL table profiles.
6980
+ # @!attribute [rw] related_resources
6981
+ # @return [::Array<::Google::Cloud::Dlp::V2::RelatedResource>]
6982
+ # Resources related to this profile.
6713
6983
  class TableDataProfile
6714
6984
  include ::Google::Protobuf::MessageExts
6715
6985
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -6976,14 +7246,16 @@ module Google
6976
7246
  # profile.
6977
7247
  # @!attribute [rw] location_type
6978
7248
  # @return [::String]
6979
- # The location type of the bucket (region, dual-region, multi-region, etc).
6980
- # If dual-region, expect data_storage_locations to be populated.
7249
+ # The location type of the file store (region, dual-region, multi-region,
7250
+ # etc). If dual-region, expect data_storage_locations to be populated.
6981
7251
  # @!attribute [rw] file_store_path
6982
7252
  # @return [::String]
6983
7253
  # The file store path.
6984
7254
  #
6985
7255
  # * Cloud Storage: `gs://{bucket}`
6986
7256
  # * Amazon S3: `s3://{bucket}`
7257
+ # * Vertex AI dataset:
7258
+ # `projects/{project_number}/locations/{location}/datasets/{dataset_id}`
6987
7259
  # @!attribute [rw] full_resource
6988
7260
  # @return [::String]
6989
7261
  # The resource name of the resource profiled.
@@ -7036,9 +7308,19 @@ module Google
7036
7308
  # @!attribute [rw] file_store_info_type_summaries
7037
7309
  # @return [::Array<::Google::Cloud::Dlp::V2::FileStoreInfoTypeSummary>]
7038
7310
  # InfoTypes detected in this file store.
7311
+ # @!attribute [rw] sample_findings_table
7312
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
7313
+ # The BigQuery table to which the sample findings are written.
7039
7314
  # @!attribute [rw] file_store_is_empty
7040
7315
  # @return [::Boolean]
7041
7316
  # The file store does not have any files.
7317
+ # @!attribute [rw] tags
7318
+ # @return [::Array<::Google::Cloud::Dlp::V2::Tag>]
7319
+ # The tags attached to the resource, including any tags attached during
7320
+ # profiling.
7321
+ # @!attribute [rw] related_resources
7322
+ # @return [::Array<::Google::Cloud::Dlp::V2::RelatedResource>]
7323
+ # Resources related to this profile.
7042
7324
  class FileStoreDataProfile
7043
7325
  include ::Google::Protobuf::MessageExts
7044
7326
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -7077,6 +7359,39 @@ module Google
7077
7359
  end
7078
7360
  end
7079
7361
 
7362
+ # A tag associated with a resource.
7363
+ # @!attribute [rw] namespaced_tag_value
7364
+ # @return [::String]
7365
+ # The namespaced name for the tag value to attach to Google Cloud resources.
7366
+ # Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
7367
+ # example, "123456/environment/prod". This is only set for Google Cloud
7368
+ # resources.
7369
+ # @!attribute [rw] key
7370
+ # @return [::String]
7371
+ # The key of a tag key-value pair. For Google Cloud resources, this is the
7372
+ # resource name of the key, for example, "tagKeys/123456".
7373
+ # @!attribute [rw] value
7374
+ # @return [::String]
7375
+ # The value of a tag key-value pair. For Google Cloud resources, this is the
7376
+ # resource name of the value, for example, "tagValues/123456".
7377
+ class Tag
7378
+ include ::Google::Protobuf::MessageExts
7379
+ extend ::Google::Protobuf::MessageExts::ClassMethods
7380
+ end
7381
+
7382
+ # A related resource.
7383
+ # Examples:
7384
+ #
7385
+ # * The source BigQuery table for a Vertex AI dataset.
7386
+ # * The source Cloud Storage bucket for a Vertex AI dataset.
7387
+ # @!attribute [rw] full_resource
7388
+ # @return [::String]
7389
+ # The full resource name of the related resource.
7390
+ class RelatedResource
7391
+ include ::Google::Protobuf::MessageExts
7392
+ extend ::Google::Protobuf::MessageExts::ClassMethods
7393
+ end
7394
+
7080
7395
  # Information regarding the discovered InfoType.
7081
7396
  # @!attribute [rw] info_type
7082
7397
  # @return [::Google::Cloud::Dlp::V2::InfoType]
@@ -7125,8 +7440,8 @@ module Google
7125
7440
  # File extensions can be derived from the file name or the file content.
7126
7441
  # @!attribute [rw] no_files_exist
7127
7442
  # @return [::Boolean]
7128
- # True if no files exist in this cluster. If the bucket had more files than
7129
- # could be listed, this will be false even if no files for this cluster
7443
+ # True if no files exist in this cluster. If the file store had more files
7444
+ # than could be listed, this will be false even if no files for this cluster
7130
7445
  # were seen and file_extensions_seen is empty.
7131
7446
  class FileClusterSummary
7132
7447
  include ::Google::Protobuf::MessageExts
@@ -7479,8 +7794,8 @@ module Google
7479
7794
  extend ::Google::Protobuf::MessageExts::ClassMethods
7480
7795
  end
7481
7796
 
7482
- # A data connection to allow DLP to profile data in locations that require
7483
- # additional configuration.
7797
+ # A data connection to allow the DLP API to profile data in locations that
7798
+ # require additional configuration.
7484
7799
  # @!attribute [r] name
7485
7800
  # @return [::String]
7486
7801
  # Output only. Name of the connection:
@@ -7550,7 +7865,7 @@ module Google
7550
7865
  # Note: The following fields are mutually exclusive: `cloud_sql_iam`, `username_password`. If a field in that set is populated, all other fields in the set will automatically be cleared.
7551
7866
  # @!attribute [rw] max_connections
7552
7867
  # @return [::Integer]
7553
- # Required. DLP will limit its connections to max_connections.
7868
+ # Required. The DLP API will limit its connections to max_connections.
7554
7869
  # Must be 2 or greater.
7555
7870
  # @!attribute [rw] database_engine
7556
7871
  # @return [::Google::Cloud::Dlp::V2::CloudSqlProperties::DatabaseEngine]
@@ -7638,6 +7953,47 @@ module Google
7638
7953
 
7639
7954
  # Executable files like .exe, .class, .apk etc.
7640
7955
  CLUSTER_EXECUTABLE = 9
7956
+
7957
+ # AI models like .tflite etc.
7958
+ CLUSTER_AI_MODEL = 10
7959
+ end
7960
+ end
7961
+
7962
+ # Configure processing location for discovery and inspection. For example,
7963
+ # image OCR is only provided in limited regions but configuring
7964
+ # ProcessingLocation will redirect OCR to a location where OCR is provided.
7965
+ # @!attribute [rw] image_fallback_location
7966
+ # @return [::Google::Cloud::Dlp::V2::ProcessingLocation::ImageFallbackLocation]
7967
+ # Image processing will fall back using this configuration.
7968
+ class ProcessingLocation
7969
+ include ::Google::Protobuf::MessageExts
7970
+ extend ::Google::Protobuf::MessageExts::ClassMethods
7971
+
7972
+ # Processing will happen in a multi-region that contains the current region
7973
+ # if available.
7974
+ class MultiRegionProcessing
7975
+ include ::Google::Protobuf::MessageExts
7976
+ extend ::Google::Protobuf::MessageExts::ClassMethods
7977
+ end
7978
+
7979
+ # Processing will happen in the global region.
7980
+ class GlobalProcessing
7981
+ include ::Google::Protobuf::MessageExts
7982
+ extend ::Google::Protobuf::MessageExts::ClassMethods
7983
+ end
7984
+
7985
+ # Configure image processing to fall back to the configured processing option
7986
+ # below if unavailable in the request location.
7987
+ # @!attribute [rw] multi_region_processing
7988
+ # @return [::Google::Cloud::Dlp::V2::ProcessingLocation::MultiRegionProcessing]
7989
+ # Processing will happen in a multi-region that contains the current region
7990
+ # if available.
7991
+ # @!attribute [rw] global_processing
7992
+ # @return [::Google::Cloud::Dlp::V2::ProcessingLocation::GlobalProcessing]
7993
+ # Processing will happen in the global region.
7994
+ class ImageFallbackLocation
7995
+ include ::Google::Protobuf::MessageExts
7996
+ extend ::Google::Protobuf::MessageExts::ClassMethods
7641
7997
  end
7642
7998
  end
7643
7999
 
@@ -8015,8 +8371,8 @@ module Google
8015
8371
  # Unused
8016
8372
  CONNECTION_STATE_UNSPECIFIED = 0
8017
8373
 
8018
- # DLP automatically created this connection during an initial scan, and it is
8019
- # awaiting full configuration by a user.
8374
+ # The DLP API automatically created this connection during an initial scan,
8375
+ # and it is awaiting full configuration by a user.
8020
8376
  MISSING_CREDENTIALS = 1
8021
8377
 
8022
8378
  # A configured connection that has not encountered any errors.
@@ -851,7 +851,7 @@ module Google
851
851
  # `<project_id>.<dataset_id>.<table_id>`.
852
852
  # @!attribute [rw] project_id
853
853
  # @return [::String]
854
- # The Google Cloud Platform project ID of the project containing the table.
854
+ # The Google Cloud project ID of the project containing the table.
855
855
  # If omitted, project ID is inferred from the API call.
856
856
  # @!attribute [rw] dataset_id
857
857
  # @return [::String]