google-apis-dlp_v2 0.67.0 → 0.68.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9eb5400424d71f4293922741ba2e4b736d4d151fa9dc3518604ac46ea4b952f9
4
- data.tar.gz: 593a3f33b3cd073f6fdddfcb351aab1c07baae9de4d699d14ce90eb512f42d70
3
+ metadata.gz: 6129450312fb03d5caf6f84a14ed47db4a89f96fa147c9116b4a4a98855c5677
4
+ data.tar.gz: f9e5169aaf7412e9f7581a4cde46f985480582602968d62faf4a4730cc174de1
5
5
  SHA512:
6
- metadata.gz: 3221b76b33baf89671a32049a5d1947d354f4b87fb56f5fd4981558d99c897b5835c96347f55e86cbca3a5d448c76e6ea48ee18f399d6ce4c821eb7a4d359aca
7
- data.tar.gz: 39c1f591cee81173dbb0b2ec6054957050b830bae8a9f9d50abb184c8d76f847914d9e05f8f47e37cc910f7a0291663416f395a96d03956cc41f3d27d121b7e2
6
+ metadata.gz: 42c95340d26d9d4aaf21df72d313259c8243ebe8636d1e38272a035302e6a0b1891a39308f8ec7281044e9e2b8eebe5a5953ed22b92394bd398eb3cb58e293df
7
+ data.tar.gz: 3792e225fe3474e28d480b3aec5efdffb5e9598a50befbff1311f8e2a7790d0d1e9470f0360d66f29c6e81be5b7b8d4154e3148bbe2f337643c7e3162445c3d2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dlp_v2
2
2
 
3
+ ### v0.68.0 (2024-06-30)
4
+
5
+ * Regenerated from discovery document revision 20240624
6
+
3
7
  ### v0.67.0 (2024-06-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20240609
@@ -2193,6 +2193,11 @@ module Google
2193
2193
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile]
2194
2194
  attr_accessor :column_profile
2195
2195
 
2196
+ # The profile for a file store. * Google Cloud Storage: maps 1:1 with a bucket.
2197
+ # Corresponds to the JSON property `fileStoreProfile`
2198
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile]
2199
+ attr_accessor :file_store_profile
2200
+
2196
2201
  # The profile for a scanned table.
2197
2202
  # Corresponds to the JSON property `tableProfile`
2198
2203
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile]
@@ -2205,6 +2210,7 @@ module Google
2205
2210
  # Update properties of this object
2206
2211
  def update!(**args)
2207
2212
  @column_profile = args[:column_profile] if args.key?(:column_profile)
2213
+ @file_store_profile = args[:file_store_profile] if args.key?(:file_store_profile)
2208
2214
  @table_profile = args[:table_profile] if args.key?(:table_profile)
2209
2215
  end
2210
2216
  end
@@ -2368,6 +2374,11 @@ module Google
2368
2374
  # @return [String]
2369
2375
  attr_accessor :event
2370
2376
 
2377
+ # The profile for a file store. * Google Cloud Storage: maps 1:1 with a bucket.
2378
+ # Corresponds to the JSON property `fileStoreProfile`
2379
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile]
2380
+ attr_accessor :file_store_profile
2381
+
2371
2382
  # The profile for a scanned table.
2372
2383
  # Corresponds to the JSON property `profile`
2373
2384
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile]
@@ -2380,6 +2391,7 @@ module Google
2380
2391
  # Update properties of this object
2381
2392
  def update!(**args)
2382
2393
  @event = args[:event] if args.key?(:event)
2394
+ @file_store_profile = args[:file_store_profile] if args.key?(:file_store_profile)
2383
2395
  @profile = args[:profile] if args.key?(:profile)
2384
2396
  end
2385
2397
  end
@@ -3758,6 +3770,11 @@ module Google
3758
3770
  # @return [Google::Apis::DlpV2::GoogleRpcStatus]
3759
3771
  attr_accessor :details
3760
3772
 
3773
+ # Additional information about the error.
3774
+ # Corresponds to the JSON property `extraInfo`
3775
+ # @return [String]
3776
+ attr_accessor :extra_info
3777
+
3761
3778
  # The times the error occurred. List includes the oldest timestamp and the last
3762
3779
  # 9 timestamps.
3763
3780
  # Corresponds to the JSON property `timestamps`
@@ -3771,6 +3788,7 @@ module Google
3771
3788
  # Update properties of this object
3772
3789
  def update!(**args)
3773
3790
  @details = args[:details] if args.key?(:details)
3791
+ @extra_info = args[:extra_info] if args.key?(:extra_info)
3774
3792
  @timestamps = args[:timestamps] if args.key?(:timestamps)
3775
3793
  end
3776
3794
  end
@@ -4000,6 +4018,111 @@ module Google
4000
4018
  end
4001
4019
  end
4002
4020
 
4021
+ # The file cluster summary.
4022
+ class GooglePrivacyDlpV2FileClusterSummary
4023
+ include Google::Apis::Core::Hashable
4024
+
4025
+ # Score is a summary of all elements in the data profile. A higher number means
4026
+ # more risk.
4027
+ # Corresponds to the JSON property `dataRiskLevel`
4028
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel]
4029
+ attr_accessor :data_risk_level
4030
+
4031
+ # A list of Errors detected while scanning this cluster. The list is truncated
4032
+ # to 10 per cluster.
4033
+ # Corresponds to the JSON property `errors`
4034
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Error>]
4035
+ attr_accessor :errors
4036
+
4037
+ # Message used to identify file cluster type being profiled.
4038
+ # Corresponds to the JSON property `fileClusterType`
4039
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileClusterType]
4040
+ attr_accessor :file_cluster_type
4041
+
4042
+ # A sample of file types scanned in this cluster. Empty if no files were scanned.
4043
+ # Corresponds to the JSON property `fileExtensionsScanned`
4044
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileExtensionInfo>]
4045
+ attr_accessor :file_extensions_scanned
4046
+
4047
+ # A sample of file types seen in this cluster. Empty if no files were seen.
4048
+ # Corresponds to the JSON property `fileExtensionsSeen`
4049
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileExtensionInfo>]
4050
+ attr_accessor :file_extensions_seen
4051
+
4052
+ # InfoTypes detected in this cluster.
4053
+ # Corresponds to the JSON property `fileStoreInfoTypeSummaries`
4054
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreInfoTypeSummary>]
4055
+ attr_accessor :file_store_info_type_summaries
4056
+
4057
+ # True if no files exist in this cluster. If the bucket had more files than
4058
+ # could be listed, this will be false even if no files for this cluster were
4059
+ # seen and file_extensions_seen is empty.
4060
+ # Corresponds to the JSON property `noFilesExist`
4061
+ # @return [Boolean]
4062
+ attr_accessor :no_files_exist
4063
+ alias_method :no_files_exist?, :no_files_exist
4064
+
4065
+ # Score is calculated from of all elements in the data profile. A higher level
4066
+ # means the data is more sensitive.
4067
+ # Corresponds to the JSON property `sensitivityScore`
4068
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore]
4069
+ attr_accessor :sensitivity_score
4070
+
4071
+ def initialize(**args)
4072
+ update!(**args)
4073
+ end
4074
+
4075
+ # Update properties of this object
4076
+ def update!(**args)
4077
+ @data_risk_level = args[:data_risk_level] if args.key?(:data_risk_level)
4078
+ @errors = args[:errors] if args.key?(:errors)
4079
+ @file_cluster_type = args[:file_cluster_type] if args.key?(:file_cluster_type)
4080
+ @file_extensions_scanned = args[:file_extensions_scanned] if args.key?(:file_extensions_scanned)
4081
+ @file_extensions_seen = args[:file_extensions_seen] if args.key?(:file_extensions_seen)
4082
+ @file_store_info_type_summaries = args[:file_store_info_type_summaries] if args.key?(:file_store_info_type_summaries)
4083
+ @no_files_exist = args[:no_files_exist] if args.key?(:no_files_exist)
4084
+ @sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
4085
+ end
4086
+ end
4087
+
4088
+ # Message used to identify file cluster type being profiled.
4089
+ class GooglePrivacyDlpV2FileClusterType
4090
+ include Google::Apis::Core::Hashable
4091
+
4092
+ # Cluster type.
4093
+ # Corresponds to the JSON property `cluster`
4094
+ # @return [String]
4095
+ attr_accessor :cluster
4096
+
4097
+ def initialize(**args)
4098
+ update!(**args)
4099
+ end
4100
+
4101
+ # Update properties of this object
4102
+ def update!(**args)
4103
+ @cluster = args[:cluster] if args.key?(:cluster)
4104
+ end
4105
+ end
4106
+
4107
+ # Information regarding the discovered file extension.
4108
+ class GooglePrivacyDlpV2FileExtensionInfo
4109
+ include Google::Apis::Core::Hashable
4110
+
4111
+ # The file extension if set. (aka .pdf, .jpg, .txt)
4112
+ # Corresponds to the JSON property `fileExtension`
4113
+ # @return [String]
4114
+ attr_accessor :file_extension
4115
+
4116
+ def initialize(**args)
4117
+ update!(**args)
4118
+ end
4119
+
4120
+ # Update properties of this object
4121
+ def update!(**args)
4122
+ @file_extension = args[:file_extension] if args.key?(:file_extension)
4123
+ end
4124
+ end
4125
+
4003
4126
  # Set of files to scan.
4004
4127
  class GooglePrivacyDlpV2FileSet
4005
4128
  include Google::Apis::Core::Hashable
@@ -4049,6 +4172,189 @@ module Google
4049
4172
  end
4050
4173
  end
4051
4174
 
4175
+ # The profile for a file store. * Google Cloud Storage: maps 1:1 with a bucket.
4176
+ class GooglePrivacyDlpV2FileStoreDataProfile
4177
+ include Google::Apis::Core::Hashable
4178
+
4179
+ # Snapshot of the configurations used to generate the profile.
4180
+ # Corresponds to the JSON property `configSnapshot`
4181
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileConfigSnapshot]
4182
+ attr_accessor :config_snapshot
4183
+
4184
+ # The time the file store was first created.
4185
+ # Corresponds to the JSON property `createTime`
4186
+ # @return [String]
4187
+ attr_accessor :create_time
4188
+
4189
+ # Score is a summary of all elements in the data profile. A higher number means
4190
+ # more risk.
4191
+ # Corresponds to the JSON property `dataRiskLevel`
4192
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel]
4193
+ attr_accessor :data_risk_level
4194
+
4195
+ # Message used to identify the type of resource being profiled.
4196
+ # Corresponds to the JSON property `dataSourceType`
4197
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataSourceType]
4198
+ attr_accessor :data_source_type
4199
+
4200
+ # For resources that have multiple storage locations, these are those regions.
4201
+ # For Google Cloud Storage this is the list of regions chosen for dual-region
4202
+ # storage. `file_store_location` will normally be the corresponding multi-region
4203
+ # for the list of individual locations. The first region is always picked as the
4204
+ # processing and storage location for the data profile.
4205
+ # Corresponds to the JSON property `dataStorageLocations`
4206
+ # @return [Array<String>]
4207
+ attr_accessor :data_storage_locations
4208
+
4209
+ # FileClusterSummary per each cluster.
4210
+ # Corresponds to the JSON property `fileClusterSummaries`
4211
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileClusterSummary>]
4212
+ attr_accessor :file_cluster_summaries
4213
+
4214
+ # InfoTypes detected in this file store.
4215
+ # Corresponds to the JSON property `fileStoreInfoTypeSummaries`
4216
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreInfoTypeSummary>]
4217
+ attr_accessor :file_store_info_type_summaries
4218
+
4219
+ # The file store does not have any files.
4220
+ # Corresponds to the JSON property `fileStoreIsEmpty`
4221
+ # @return [Boolean]
4222
+ attr_accessor :file_store_is_empty
4223
+ alias_method :file_store_is_empty?, :file_store_is_empty
4224
+
4225
+ # The location of the file store. * Google Cloud Storage: https://cloud.google.
4226
+ # com/storage/docs/locations#available-locations
4227
+ # Corresponds to the JSON property `fileStoreLocation`
4228
+ # @return [String]
4229
+ attr_accessor :file_store_location
4230
+
4231
+ # The file store path. * Google Cloud Storage: `gs://`bucket``
4232
+ # Corresponds to the JSON property `fileStorePath`
4233
+ # @return [String]
4234
+ attr_accessor :file_store_path
4235
+
4236
+ # The resource name of the resource profiled. https://cloud.google.com/apis/
4237
+ # design/resource_names#full_resource_name
4238
+ # Corresponds to the JSON property `fullResource`
4239
+ # @return [String]
4240
+ attr_accessor :full_resource
4241
+
4242
+ # The time the file store was last modified.
4243
+ # Corresponds to the JSON property `lastModifiedTime`
4244
+ # @return [String]
4245
+ attr_accessor :last_modified_time
4246
+
4247
+ # The location type of the bucket (region, dual-region, multi-region, etc). If
4248
+ # dual-region, expect data_storage_locations to be populated.
4249
+ # Corresponds to the JSON property `locationType`
4250
+ # @return [String]
4251
+ attr_accessor :location_type
4252
+
4253
+ # The name of the profile.
4254
+ # Corresponds to the JSON property `name`
4255
+ # @return [String]
4256
+ attr_accessor :name
4257
+
4258
+ # The last time the profile was generated.
4259
+ # Corresponds to the JSON property `profileLastGenerated`
4260
+ # @return [String]
4261
+ attr_accessor :profile_last_generated
4262
+
4263
+ # Success or errors for the profile generation.
4264
+ # Corresponds to the JSON property `profileStatus`
4265
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus]
4266
+ attr_accessor :profile_status
4267
+
4268
+ # The resource name to the project data profile for this file store.
4269
+ # Corresponds to the JSON property `projectDataProfile`
4270
+ # @return [String]
4271
+ attr_accessor :project_data_profile
4272
+
4273
+ # The Google Cloud project ID that owns the resource.
4274
+ # Corresponds to the JSON property `projectId`
4275
+ # @return [String]
4276
+ attr_accessor :project_id
4277
+
4278
+ # Attributes of the resource being profiled. Currently used attributes: -
4279
+ # customer_managed_encryption: boolean true: the resource is encrypted with a
4280
+ # customer-managed key. false: the resource is encrypted with a provider-managed
4281
+ # key.
4282
+ # Corresponds to the JSON property `resourceAttributes`
4283
+ # @return [Hash<String,Google::Apis::DlpV2::GooglePrivacyDlpV2Value>]
4284
+ attr_accessor :resource_attributes
4285
+
4286
+ # The labels applied to the resource at the time the profile was generated.
4287
+ # Corresponds to the JSON property `resourceLabels`
4288
+ # @return [Hash<String,String>]
4289
+ attr_accessor :resource_labels
4290
+
4291
+ # How broadly a resource has been shared.
4292
+ # Corresponds to the JSON property `resourceVisibility`
4293
+ # @return [String]
4294
+ attr_accessor :resource_visibility
4295
+
4296
+ # Score is calculated from of all elements in the data profile. A higher level
4297
+ # means the data is more sensitive.
4298
+ # Corresponds to the JSON property `sensitivityScore`
4299
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore]
4300
+ attr_accessor :sensitivity_score
4301
+
4302
+ # State of a profile.
4303
+ # Corresponds to the JSON property `state`
4304
+ # @return [String]
4305
+ attr_accessor :state
4306
+
4307
+ def initialize(**args)
4308
+ update!(**args)
4309
+ end
4310
+
4311
+ # Update properties of this object
4312
+ def update!(**args)
4313
+ @config_snapshot = args[:config_snapshot] if args.key?(:config_snapshot)
4314
+ @create_time = args[:create_time] if args.key?(:create_time)
4315
+ @data_risk_level = args[:data_risk_level] if args.key?(:data_risk_level)
4316
+ @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
4317
+ @data_storage_locations = args[:data_storage_locations] if args.key?(:data_storage_locations)
4318
+ @file_cluster_summaries = args[:file_cluster_summaries] if args.key?(:file_cluster_summaries)
4319
+ @file_store_info_type_summaries = args[:file_store_info_type_summaries] if args.key?(:file_store_info_type_summaries)
4320
+ @file_store_is_empty = args[:file_store_is_empty] if args.key?(:file_store_is_empty)
4321
+ @file_store_location = args[:file_store_location] if args.key?(:file_store_location)
4322
+ @file_store_path = args[:file_store_path] if args.key?(:file_store_path)
4323
+ @full_resource = args[:full_resource] if args.key?(:full_resource)
4324
+ @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
4325
+ @location_type = args[:location_type] if args.key?(:location_type)
4326
+ @name = args[:name] if args.key?(:name)
4327
+ @profile_last_generated = args[:profile_last_generated] if args.key?(:profile_last_generated)
4328
+ @profile_status = args[:profile_status] if args.key?(:profile_status)
4329
+ @project_data_profile = args[:project_data_profile] if args.key?(:project_data_profile)
4330
+ @project_id = args[:project_id] if args.key?(:project_id)
4331
+ @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes)
4332
+ @resource_labels = args[:resource_labels] if args.key?(:resource_labels)
4333
+ @resource_visibility = args[:resource_visibility] if args.key?(:resource_visibility)
4334
+ @sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
4335
+ @state = args[:state] if args.key?(:state)
4336
+ end
4337
+ end
4338
+
4339
+ # Information regarding the discovered InfoType.
4340
+ class GooglePrivacyDlpV2FileStoreInfoTypeSummary
4341
+ include Google::Apis::Core::Hashable
4342
+
4343
+ # Type of information detected by the API.
4344
+ # Corresponds to the JSON property `infoType`
4345
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]
4346
+ attr_accessor :info_type
4347
+
4348
+ def initialize(**args)
4349
+ update!(**args)
4350
+ end
4351
+
4352
+ # Update properties of this object
4353
+ def update!(**args)
4354
+ @info_type = args[:info_type] if args.key?(:info_type)
4355
+ end
4356
+ end
4357
+
4052
4358
  # Represents a piece of potentially sensitive content.
4053
4359
  class GooglePrivacyDlpV2Finding
4054
4360
  include Google::Apis::Core::Hashable
@@ -6062,6 +6368,31 @@ module Google
6062
6368
  end
6063
6369
  end
6064
6370
 
6371
+ # List of file store data profiles generated for a given organization or project.
6372
+ class GooglePrivacyDlpV2ListFileStoreDataProfilesResponse
6373
+ include Google::Apis::Core::Hashable
6374
+
6375
+ # List of data profiles.
6376
+ # Corresponds to the JSON property `fileStoreDataProfiles`
6377
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile>]
6378
+ attr_accessor :file_store_data_profiles
6379
+
6380
+ # The next page token.
6381
+ # Corresponds to the JSON property `nextPageToken`
6382
+ # @return [String]
6383
+ attr_accessor :next_page_token
6384
+
6385
+ def initialize(**args)
6386
+ update!(**args)
6387
+ end
6388
+
6389
+ # Update properties of this object
6390
+ def update!(**args)
6391
+ @file_store_data_profiles = args[:file_store_data_profiles] if args.key?(:file_store_data_profiles)
6392
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6393
+ end
6394
+ end
6395
+
6065
6396
  # Response to the ListInfoTypes request.
6066
6397
  class GooglePrivacyDlpV2ListInfoTypesResponse
6067
6398
  include Google::Apis::Core::Hashable
@@ -6761,6 +7092,11 @@ module Google
6761
7092
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel]
6762
7093
  attr_accessor :data_risk_level
6763
7094
 
7095
+ # The number of file store data profiles generated for this project.
7096
+ # Corresponds to the JSON property `fileStoreDataProfileCount`
7097
+ # @return [Fixnum]
7098
+ attr_accessor :file_store_data_profile_count
7099
+
6764
7100
  # The resource name of the profile.
6765
7101
  # Corresponds to the JSON property `name`
6766
7102
  # @return [String]
@@ -6787,6 +7123,11 @@ module Google
6787
7123
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore]
6788
7124
  attr_accessor :sensitivity_score
6789
7125
 
7126
+ # The number of table data profiles generated for this project.
7127
+ # Corresponds to the JSON property `tableDataProfileCount`
7128
+ # @return [Fixnum]
7129
+ attr_accessor :table_data_profile_count
7130
+
6790
7131
  def initialize(**args)
6791
7132
  update!(**args)
6792
7133
  end
@@ -6794,11 +7135,13 @@ module Google
6794
7135
  # Update properties of this object
6795
7136
  def update!(**args)
6796
7137
  @data_risk_level = args[:data_risk_level] if args.key?(:data_risk_level)
7138
+ @file_store_data_profile_count = args[:file_store_data_profile_count] if args.key?(:file_store_data_profile_count)
6797
7139
  @name = args[:name] if args.key?(:name)
6798
7140
  @profile_last_generated = args[:profile_last_generated] if args.key?(:profile_last_generated)
6799
7141
  @profile_status = args[:profile_status] if args.key?(:profile_status)
6800
7142
  @project_id = args[:project_id] if args.key?(:project_id)
6801
7143
  @sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
7144
+ @table_data_profile_count = args[:table_data_profile_count] if args.key?(:table_data_profile_count)
6802
7145
  end
6803
7146
  end
6804
7147
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DlpV2
18
18
  # Version of the google-apis-dlp_v2 gem
19
- GEM_VERSION = "0.67.0"
19
+ GEM_VERSION = "0.68.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240609"
25
+ REVISION = "20240624"
26
26
  end
27
27
  end
28
28
  end
@@ -670,12 +670,42 @@ module Google
670
670
  include Google::Apis::Core::JsonObjectSupport
671
671
  end
672
672
 
673
+ class GooglePrivacyDlpV2FileClusterSummary
674
+ class Representation < Google::Apis::Core::JsonRepresentation; end
675
+
676
+ include Google::Apis::Core::JsonObjectSupport
677
+ end
678
+
679
+ class GooglePrivacyDlpV2FileClusterType
680
+ class Representation < Google::Apis::Core::JsonRepresentation; end
681
+
682
+ include Google::Apis::Core::JsonObjectSupport
683
+ end
684
+
685
+ class GooglePrivacyDlpV2FileExtensionInfo
686
+ class Representation < Google::Apis::Core::JsonRepresentation; end
687
+
688
+ include Google::Apis::Core::JsonObjectSupport
689
+ end
690
+
673
691
  class GooglePrivacyDlpV2FileSet
674
692
  class Representation < Google::Apis::Core::JsonRepresentation; end
675
693
 
676
694
  include Google::Apis::Core::JsonObjectSupport
677
695
  end
678
696
 
697
+ class GooglePrivacyDlpV2FileStoreDataProfile
698
+ class Representation < Google::Apis::Core::JsonRepresentation; end
699
+
700
+ include Google::Apis::Core::JsonObjectSupport
701
+ end
702
+
703
+ class GooglePrivacyDlpV2FileStoreInfoTypeSummary
704
+ class Representation < Google::Apis::Core::JsonRepresentation; end
705
+
706
+ include Google::Apis::Core::JsonObjectSupport
707
+ end
708
+
679
709
  class GooglePrivacyDlpV2Finding
680
710
  class Representation < Google::Apis::Core::JsonRepresentation; end
681
711
 
@@ -1036,6 +1066,12 @@ module Google
1036
1066
  include Google::Apis::Core::JsonObjectSupport
1037
1067
  end
1038
1068
 
1069
+ class GooglePrivacyDlpV2ListFileStoreDataProfilesResponse
1070
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1071
+
1072
+ include Google::Apis::Core::JsonObjectSupport
1073
+ end
1074
+
1039
1075
  class GooglePrivacyDlpV2ListInfoTypesResponse
1040
1076
  class Representation < Google::Apis::Core::JsonRepresentation; end
1041
1077
 
@@ -2300,6 +2336,8 @@ module Google
2300
2336
  class Representation < Google::Apis::Core::JsonRepresentation
2301
2337
  property :column_profile, as: 'columnProfile', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile::Representation
2302
2338
 
2339
+ property :file_store_profile, as: 'fileStoreProfile', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile::Representation
2340
+
2303
2341
  property :table_profile, as: 'tableProfile', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile::Representation
2304
2342
 
2305
2343
  end
@@ -2351,6 +2389,8 @@ module Google
2351
2389
  # @private
2352
2390
  class Representation < Google::Apis::Core::JsonRepresentation
2353
2391
  property :event, as: 'event'
2392
+ property :file_store_profile, as: 'fileStoreProfile', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile::Representation
2393
+
2354
2394
  property :profile, as: 'profile', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile::Representation
2355
2395
 
2356
2396
  end
@@ -2758,6 +2798,7 @@ module Google
2758
2798
  class Representation < Google::Apis::Core::JsonRepresentation
2759
2799
  property :details, as: 'details', class: Google::Apis::DlpV2::GoogleRpcStatus, decorator: Google::Apis::DlpV2::GoogleRpcStatus::Representation
2760
2800
 
2801
+ property :extra_info, as: 'extraInfo'
2761
2802
  collection :timestamps, as: 'timestamps'
2762
2803
  end
2763
2804
  end
@@ -2833,6 +2874,41 @@ module Google
2833
2874
  end
2834
2875
  end
2835
2876
 
2877
+ class GooglePrivacyDlpV2FileClusterSummary
2878
+ # @private
2879
+ class Representation < Google::Apis::Core::JsonRepresentation
2880
+ property :data_risk_level, as: 'dataRiskLevel', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel::Representation
2881
+
2882
+ collection :errors, as: 'errors', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Error, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Error::Representation
2883
+
2884
+ property :file_cluster_type, as: 'fileClusterType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileClusterType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileClusterType::Representation
2885
+
2886
+ collection :file_extensions_scanned, as: 'fileExtensionsScanned', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileExtensionInfo, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileExtensionInfo::Representation
2887
+
2888
+ collection :file_extensions_seen, as: 'fileExtensionsSeen', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileExtensionInfo, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileExtensionInfo::Representation
2889
+
2890
+ collection :file_store_info_type_summaries, as: 'fileStoreInfoTypeSummaries', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreInfoTypeSummary, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreInfoTypeSummary::Representation
2891
+
2892
+ property :no_files_exist, as: 'noFilesExist'
2893
+ property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
2894
+
2895
+ end
2896
+ end
2897
+
2898
+ class GooglePrivacyDlpV2FileClusterType
2899
+ # @private
2900
+ class Representation < Google::Apis::Core::JsonRepresentation
2901
+ property :cluster, as: 'cluster'
2902
+ end
2903
+ end
2904
+
2905
+ class GooglePrivacyDlpV2FileExtensionInfo
2906
+ # @private
2907
+ class Representation < Google::Apis::Core::JsonRepresentation
2908
+ property :file_extension, as: 'fileExtension'
2909
+ end
2910
+ end
2911
+
2836
2912
  class GooglePrivacyDlpV2FileSet
2837
2913
  # @private
2838
2914
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2842,6 +2918,51 @@ module Google
2842
2918
  end
2843
2919
  end
2844
2920
 
2921
+ class GooglePrivacyDlpV2FileStoreDataProfile
2922
+ # @private
2923
+ class Representation < Google::Apis::Core::JsonRepresentation
2924
+ property :config_snapshot, as: 'configSnapshot', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileConfigSnapshot, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileConfigSnapshot::Representation
2925
+
2926
+ property :create_time, as: 'createTime'
2927
+ property :data_risk_level, as: 'dataRiskLevel', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel::Representation
2928
+
2929
+ property :data_source_type, as: 'dataSourceType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataSourceType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataSourceType::Representation
2930
+
2931
+ collection :data_storage_locations, as: 'dataStorageLocations'
2932
+ collection :file_cluster_summaries, as: 'fileClusterSummaries', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileClusterSummary, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileClusterSummary::Representation
2933
+
2934
+ collection :file_store_info_type_summaries, as: 'fileStoreInfoTypeSummaries', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreInfoTypeSummary, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreInfoTypeSummary::Representation
2935
+
2936
+ property :file_store_is_empty, as: 'fileStoreIsEmpty'
2937
+ property :file_store_location, as: 'fileStoreLocation'
2938
+ property :file_store_path, as: 'fileStorePath'
2939
+ property :full_resource, as: 'fullResource'
2940
+ property :last_modified_time, as: 'lastModifiedTime'
2941
+ property :location_type, as: 'locationType'
2942
+ property :name, as: 'name'
2943
+ property :profile_last_generated, as: 'profileLastGenerated'
2944
+ property :profile_status, as: 'profileStatus', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus::Representation
2945
+
2946
+ property :project_data_profile, as: 'projectDataProfile'
2947
+ property :project_id, as: 'projectId'
2948
+ hash :resource_attributes, as: 'resourceAttributes', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Value, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Value::Representation
2949
+
2950
+ hash :resource_labels, as: 'resourceLabels'
2951
+ property :resource_visibility, as: 'resourceVisibility'
2952
+ property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
2953
+
2954
+ property :state, as: 'state'
2955
+ end
2956
+ end
2957
+
2958
+ class GooglePrivacyDlpV2FileStoreInfoTypeSummary
2959
+ # @private
2960
+ class Representation < Google::Apis::Core::JsonRepresentation
2961
+ property :info_type, as: 'infoType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
2962
+
2963
+ end
2964
+ end
2965
+
2845
2966
  class GooglePrivacyDlpV2Finding
2846
2967
  # @private
2847
2968
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3452,6 +3573,15 @@ module Google
3452
3573
  end
3453
3574
  end
3454
3575
 
3576
+ class GooglePrivacyDlpV2ListFileStoreDataProfilesResponse
3577
+ # @private
3578
+ class Representation < Google::Apis::Core::JsonRepresentation
3579
+ collection :file_store_data_profiles, as: 'fileStoreDataProfiles', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile::Representation
3580
+
3581
+ property :next_page_token, as: 'nextPageToken'
3582
+ end
3583
+ end
3584
+
3455
3585
  class GooglePrivacyDlpV2ListInfoTypesResponse
3456
3586
  # @private
3457
3587
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3669,6 +3799,7 @@ module Google
3669
3799
  class Representation < Google::Apis::Core::JsonRepresentation
3670
3800
  property :data_risk_level, as: 'dataRiskLevel', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel::Representation
3671
3801
 
3802
+ property :file_store_data_profile_count, :numeric_string => true, as: 'fileStoreDataProfileCount'
3672
3803
  property :name, as: 'name'
3673
3804
  property :profile_last_generated, as: 'profileLastGenerated'
3674
3805
  property :profile_status, as: 'profileStatus', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus::Representation
@@ -3676,6 +3807,7 @@ module Google
3676
3807
  property :project_id, as: 'projectId'
3677
3808
  property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
3678
3809
 
3810
+ property :table_data_profile_count, :numeric_string => true, as: 'tableDataProfileCount'
3679
3811
  end
3680
3812
  end
3681
3813
 
@@ -1305,6 +1305,136 @@ module Google
1305
1305
  execute_or_queue_command(command, &block)
1306
1306
  end
1307
1307
 
1308
+ # Delete a FileStoreDataProfile. Will not prevent the profile from being
1309
+ # regenerated if the resource is still included in a discovery configuration.
1310
+ # @param [String] name
1311
+ # Required. Resource name of the file store data profile.
1312
+ # @param [String] fields
1313
+ # Selector specifying which fields to include in a partial response.
1314
+ # @param [String] quota_user
1315
+ # Available to use for quota purposes for server-side applications. Can be any
1316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1317
+ # @param [Google::Apis::RequestOptions] options
1318
+ # Request-specific options
1319
+ #
1320
+ # @yield [result, err] Result & error if block supplied
1321
+ # @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
1322
+ # @yieldparam err [StandardError] error object if request failed
1323
+ #
1324
+ # @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
1325
+ #
1326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1329
+ def delete_organization_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
1330
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1331
+ command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
1332
+ command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
1333
+ command.params['name'] = name unless name.nil?
1334
+ command.query['fields'] = fields unless fields.nil?
1335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1336
+ execute_or_queue_command(command, &block)
1337
+ end
1338
+
1339
+ # Gets a file store data profile.
1340
+ # @param [String] name
1341
+ # Required. Resource name, for example `organizations/12345/locations/us/
1342
+ # fileStoreDataProfiles/53234423`.
1343
+ # @param [String] fields
1344
+ # Selector specifying which fields to include in a partial response.
1345
+ # @param [String] quota_user
1346
+ # Available to use for quota purposes for server-side applications. Can be any
1347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1348
+ # @param [Google::Apis::RequestOptions] options
1349
+ # Request-specific options
1350
+ #
1351
+ # @yield [result, err] Result & error if block supplied
1352
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile] parsed result object
1353
+ # @yieldparam err [StandardError] error object if request failed
1354
+ #
1355
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile]
1356
+ #
1357
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1358
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1359
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1360
+ def get_organization_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
1361
+ command = make_simple_command(:get, 'v2/{+name}', options)
1362
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile::Representation
1363
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile
1364
+ command.params['name'] = name unless name.nil?
1365
+ command.query['fields'] = fields unless fields.nil?
1366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1367
+ execute_or_queue_command(command, &block)
1368
+ end
1369
+
1370
+ # Lists file store data profiles for an organization.
1371
+ # @param [String] parent
1372
+ # Required. Resource name of the organization or project, for example `
1373
+ # organizations/433245324/locations/europe` or `projects/project-id/locations/
1374
+ # asia`.
1375
+ # @param [String] filter
1376
+ # Optional. Allows filtering. Supported syntax: * Filter expressions are made up
1377
+ # of one or more restrictions. * Restrictions can be combined by `AND` or `OR`
1378
+ # logical operators. A sequence of restrictions implicitly uses `AND`. * A
1379
+ # restriction has the form of ``field` `operator` `value``. * Supported fields/
1380
+ # values: - `project_id` - The Google Cloud project ID. - `file_store_path` -
1381
+ # The path like "gs://bucket". - `sensitivity_level` - HIGH|MODERATE|LOW - `
1382
+ # data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|
1383
+ # RESTRICTED - `status_code` - an RPC status code as defined in https://github.
1384
+ # com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator
1385
+ # must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `
1386
+ # project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND
1387
+ # resource_visibility = PUBLIC` . * 'file_store_path = "gs://mybucket"` The
1388
+ # length of this field should be no more than 500 characters.
1389
+ # @param [String] order_by
1390
+ # Optional. Comma separated list of fields to order by, followed by `asc` or `
1391
+ # desc` postfix. This list is case insensitive. The default sorting order is
1392
+ # ascending. Redundant space characters are insignificant. Only one order field
1393
+ # at a time is allowed. Examples: * `project_id asc` * `name` * `
1394
+ # sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud
1395
+ # project ID. - `sensitivity_level`: How sensitive the data in a table is, at
1396
+ # most. - `data_risk_level`: How much risk is associated with this data. - `
1397
+ # profile_last_generated`: When the profile was last updated in epoch seconds. -
1398
+ # `last_modified`: The last time the resource was modified. - `
1399
+ # resource_visibility`: Visibility restriction for this resource. - `name`: The
1400
+ # name of the profile. - `create_time`: The time the file store was first
1401
+ # created.
1402
+ # @param [Fixnum] page_size
1403
+ # Optional. Size of the page. This value can be limited by the server. If zero,
1404
+ # server returns a page of max size 100.
1405
+ # @param [String] page_token
1406
+ # Optional. Page token to continue retrieval.
1407
+ # @param [String] fields
1408
+ # Selector specifying which fields to include in a partial response.
1409
+ # @param [String] quota_user
1410
+ # Available to use for quota purposes for server-side applications. Can be any
1411
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1412
+ # @param [Google::Apis::RequestOptions] options
1413
+ # Request-specific options
1414
+ #
1415
+ # @yield [result, err] Result & error if block supplied
1416
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse] parsed result object
1417
+ # @yieldparam err [StandardError] error object if request failed
1418
+ #
1419
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse]
1420
+ #
1421
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1422
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1423
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1424
+ def list_organization_location_file_store_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1425
+ command = make_simple_command(:get, 'v2/{+parent}/fileStoreDataProfiles', options)
1426
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse::Representation
1427
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse
1428
+ command.params['parent'] = parent unless parent.nil?
1429
+ command.query['filter'] = filter unless filter.nil?
1430
+ command.query['orderBy'] = order_by unless order_by.nil?
1431
+ command.query['pageSize'] = page_size unless page_size.nil?
1432
+ command.query['pageToken'] = page_token unless page_token.nil?
1433
+ command.query['fields'] = fields unless fields.nil?
1434
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1435
+ execute_or_queue_command(command, &block)
1436
+ end
1437
+
1308
1438
  # Creates an InspectTemplate for reusing frequently used configuration for
1309
1439
  # inspecting content, images, and storage. See https://cloud.google.com/
1310
1440
  # sensitive-data-protection/docs/creating-templates to learn more.
@@ -4586,6 +4716,136 @@ module Google
4586
4716
  execute_or_queue_command(command, &block)
4587
4717
  end
4588
4718
 
4719
+ # Delete a FileStoreDataProfile. Will not prevent the profile from being
4720
+ # regenerated if the resource is still included in a discovery configuration.
4721
+ # @param [String] name
4722
+ # Required. Resource name of the file store data profile.
4723
+ # @param [String] fields
4724
+ # Selector specifying which fields to include in a partial response.
4725
+ # @param [String] quota_user
4726
+ # Available to use for quota purposes for server-side applications. Can be any
4727
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4728
+ # @param [Google::Apis::RequestOptions] options
4729
+ # Request-specific options
4730
+ #
4731
+ # @yield [result, err] Result & error if block supplied
4732
+ # @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
4733
+ # @yieldparam err [StandardError] error object if request failed
4734
+ #
4735
+ # @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
4736
+ #
4737
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4738
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4739
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4740
+ def delete_project_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
4741
+ command = make_simple_command(:delete, 'v2/{+name}', options)
4742
+ command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
4743
+ command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
4744
+ command.params['name'] = name unless name.nil?
4745
+ command.query['fields'] = fields unless fields.nil?
4746
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4747
+ execute_or_queue_command(command, &block)
4748
+ end
4749
+
4750
+ # Gets a file store data profile.
4751
+ # @param [String] name
4752
+ # Required. Resource name, for example `organizations/12345/locations/us/
4753
+ # fileStoreDataProfiles/53234423`.
4754
+ # @param [String] fields
4755
+ # Selector specifying which fields to include in a partial response.
4756
+ # @param [String] quota_user
4757
+ # Available to use for quota purposes for server-side applications. Can be any
4758
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4759
+ # @param [Google::Apis::RequestOptions] options
4760
+ # Request-specific options
4761
+ #
4762
+ # @yield [result, err] Result & error if block supplied
4763
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile] parsed result object
4764
+ # @yieldparam err [StandardError] error object if request failed
4765
+ #
4766
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile]
4767
+ #
4768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4771
+ def get_project_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
4772
+ command = make_simple_command(:get, 'v2/{+name}', options)
4773
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile::Representation
4774
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile
4775
+ command.params['name'] = name unless name.nil?
4776
+ command.query['fields'] = fields unless fields.nil?
4777
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4778
+ execute_or_queue_command(command, &block)
4779
+ end
4780
+
4781
+ # Lists file store data profiles for an organization.
4782
+ # @param [String] parent
4783
+ # Required. Resource name of the organization or project, for example `
4784
+ # organizations/433245324/locations/europe` or `projects/project-id/locations/
4785
+ # asia`.
4786
+ # @param [String] filter
4787
+ # Optional. Allows filtering. Supported syntax: * Filter expressions are made up
4788
+ # of one or more restrictions. * Restrictions can be combined by `AND` or `OR`
4789
+ # logical operators. A sequence of restrictions implicitly uses `AND`. * A
4790
+ # restriction has the form of ``field` `operator` `value``. * Supported fields/
4791
+ # values: - `project_id` - The Google Cloud project ID. - `file_store_path` -
4792
+ # The path like "gs://bucket". - `sensitivity_level` - HIGH|MODERATE|LOW - `
4793
+ # data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|
4794
+ # RESTRICTED - `status_code` - an RPC status code as defined in https://github.
4795
+ # com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator
4796
+ # must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `
4797
+ # project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND
4798
+ # resource_visibility = PUBLIC` . * 'file_store_path = "gs://mybucket"` The
4799
+ # length of this field should be no more than 500 characters.
4800
+ # @param [String] order_by
4801
+ # Optional. Comma separated list of fields to order by, followed by `asc` or `
4802
+ # desc` postfix. This list is case insensitive. The default sorting order is
4803
+ # ascending. Redundant space characters are insignificant. Only one order field
4804
+ # at a time is allowed. Examples: * `project_id asc` * `name` * `
4805
+ # sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud
4806
+ # project ID. - `sensitivity_level`: How sensitive the data in a table is, at
4807
+ # most. - `data_risk_level`: How much risk is associated with this data. - `
4808
+ # profile_last_generated`: When the profile was last updated in epoch seconds. -
4809
+ # `last_modified`: The last time the resource was modified. - `
4810
+ # resource_visibility`: Visibility restriction for this resource. - `name`: The
4811
+ # name of the profile. - `create_time`: The time the file store was first
4812
+ # created.
4813
+ # @param [Fixnum] page_size
4814
+ # Optional. Size of the page. This value can be limited by the server. If zero,
4815
+ # server returns a page of max size 100.
4816
+ # @param [String] page_token
4817
+ # Optional. Page token to continue retrieval.
4818
+ # @param [String] fields
4819
+ # Selector specifying which fields to include in a partial response.
4820
+ # @param [String] quota_user
4821
+ # Available to use for quota purposes for server-side applications. Can be any
4822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4823
+ # @param [Google::Apis::RequestOptions] options
4824
+ # Request-specific options
4825
+ #
4826
+ # @yield [result, err] Result & error if block supplied
4827
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse] parsed result object
4828
+ # @yieldparam err [StandardError] error object if request failed
4829
+ #
4830
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse]
4831
+ #
4832
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4833
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4834
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4835
+ def list_project_location_file_store_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4836
+ command = make_simple_command(:get, 'v2/{+parent}/fileStoreDataProfiles', options)
4837
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse::Representation
4838
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse
4839
+ command.params['parent'] = parent unless parent.nil?
4840
+ command.query['filter'] = filter unless filter.nil?
4841
+ command.query['orderBy'] = order_by unless order_by.nil?
4842
+ command.query['pageSize'] = page_size unless page_size.nil?
4843
+ command.query['pageToken'] = page_token unless page_token.nil?
4844
+ command.query['fields'] = fields unless fields.nil?
4845
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4846
+ execute_or_queue_command(command, &block)
4847
+ end
4848
+
4589
4849
  # Redacts potentially sensitive info from an image. This method has limits on
4590
4850
  # input size, processing time, and output size. See https://cloud.google.com/
4591
4851
  # sensitive-data-protection/docs/redacting-sensitive-data-images to learn more.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dlp_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.67.0
4
+ version: 0.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-16 00:00:00.000000000 Z
11
+ date: 2024-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.67.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.68.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2
63
63
  post_install_message:
64
64
  rdoc_options: []