google-apis-dlp_v2 0.28.0 → 0.31.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: 3ef182524b2a3e8592500032c3c47e198926c21ce8cba2dfa00663ca4b944ae5
4
- data.tar.gz: 3aa70954b1510adb1dd0da2e76ea28e8654606710fecd32a54bb1bf9d6268549
3
+ metadata.gz: 61d24c942e2608b385f2370a25a0b776e32cc38ed7137188667062b587e482a2
4
+ data.tar.gz: 066b69b808664ac67ffd67b196a9e64ce0f66a548a33ee49476119eb751f9eae
5
5
  SHA512:
6
- metadata.gz: 7d0ffe08fd2b0c01167b923fe640718c6cd159e587699162efc1b709b4e3451593ca254da5aa99175fb4893b279d278fcf32bc321b493508f60555d621745f3c
7
- data.tar.gz: d5d8d4960724b22646b2dcf0ffd496251d8dfcc08f41558855e59e2fd7dadfd8a836087dfc12735f0e143359ac4d56c4a9209e4e3eae039531330a1f287be256
6
+ metadata.gz: 735f94a7aa8dcc47dc9f3302f228d94e54aee1b55beda06784f52884d6484d8dd0f751c4c620c1cf56bcf919c032596d1ff9c45c8ec6bddaf8a1497a54610c87
7
+ data.tar.gz: 5bd3ffc0c9999b7e5d6d9be5a116d0ef0f00a3abc136f67ec0cfdf522e0349230875727c31250a14d36fe2b43e3a91f1ab10836f83737722524577680fd0f10f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-dlp_v2
2
2
 
3
+ ### v0.31.0 (2022-09-01)
4
+
5
+ * Regenerated from discovery document revision 20220826
6
+
7
+ ### v0.30.0 (2022-08-21)
8
+
9
+ * Regenerated from discovery document revision 20220812
10
+
11
+ ### v0.29.0 (2022-08-10)
12
+
13
+ * Regenerated from discovery document revision 20220806
14
+
3
15
  ### v0.28.0 (2022-08-03)
4
16
 
5
17
  * Regenerated from discovery document revision 20220730
@@ -27,7 +27,7 @@ module Google
27
27
  class GooglePrivacyDlpV2Action
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # Create a de-identified copy of the requested table or files. . A
30
+ # Create a de-identified copy of the requested table or files. A
31
31
  # TransformationDetail will be created for each transformation. If any rows in
32
32
  # BigQuery are skipped during de-identification (transformation errors or row
33
33
  # size exceeds BigQuery insert API limits) they are placed in the failure output
@@ -41,8 +41,9 @@ module Google
41
41
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Deidentify]
42
42
  attr_accessor :deidentify
43
43
 
44
- # Enable email notification to project owners and editors on jobs's completion/
45
- # failure.
44
+ # Sends an email when the job completes. The email goes to IAM project owners
45
+ # and technical [Essential Contacts](https://cloud.google.com/resource-manager/
46
+ # docs/managing-notification-contacts).
46
47
  # Corresponds to the JSON property `jobNotificationEmails`
47
48
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobNotificationEmails]
48
49
  attr_accessor :job_notification_emails
@@ -55,15 +56,19 @@ module Google
55
56
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub]
56
57
  attr_accessor :pub_sub
57
58
 
58
- # Publish findings of a DlpJob to Data Catalog. Labels summarizing the results
59
- # of the DlpJob will be applied to the entry for the resource scanned in Data
60
- # Catalog. Any labels previously written by another DlpJob will be deleted.
61
- # InfoType naming patterns are strictly enforced when using this feature. Note
62
- # that the findings will be persisted in Data Catalog storage and are governed
63
- # by Data Catalog service-specific policy, see https://cloud.google.com/terms/
64
- # service-terms Only a single instance of this action can be specified and only
65
- # allowed if all resources being scanned are BigQuery tables. Compatible with:
66
- # Inspect
59
+ # Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag templates
60
+ # are applied to the resource that Cloud DLP scanned. Data Catalog tag templates
61
+ # are stored in the same project and region where the BigQuery table exists. For
62
+ # Cloud DLP to create and apply the tag template, the Cloud DLP service agent
63
+ # must have the `roles/datacatalog.tagTemplateOwner` permission on the project.
64
+ # The tag template contains fields summarizing the results of the DlpJob. Any
65
+ # field values previously written by another DlpJob are deleted. InfoType naming
66
+ # patterns are strictly enforced when using this feature. Findings are persisted
67
+ # in Data Catalog storage and are governed by service-specific policies for Data
68
+ # Catalog. For more information, see [Service Specific Terms](https://cloud.
69
+ # google.com/terms/service-terms). Only a single instance of this action can be
70
+ # specified. This action is allowed only if all resources being scanned are
71
+ # BigQuery tables. Compatible with: Inspect
67
72
  # Corresponds to the JSON property `publishFindingsToCloudDataCatalog`
68
73
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog]
69
74
  attr_accessor :publish_findings_to_cloud_data_catalog
@@ -123,6 +128,32 @@ module Google
123
128
  end
124
129
  end
125
130
 
131
+ # Apply transformation to all findings.
132
+ class GooglePrivacyDlpV2AllInfoTypes
133
+ include Google::Apis::Core::Hashable
134
+
135
+ def initialize(**args)
136
+ update!(**args)
137
+ end
138
+
139
+ # Update properties of this object
140
+ def update!(**args)
141
+ end
142
+ end
143
+
144
+ # Apply to all text.
145
+ class GooglePrivacyDlpV2AllText
146
+ include Google::Apis::Core::Hashable
147
+
148
+ def initialize(**args)
149
+ update!(**args)
150
+ end
151
+
152
+ # Update properties of this object
153
+ def update!(**args)
154
+ end
155
+ end
156
+
126
157
  # Result of a risk analysis operation request.
127
158
  class GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails
128
159
  include Google::Apis::Core::Hashable
@@ -1706,7 +1737,7 @@ module Google
1706
1737
  end
1707
1738
  end
1708
1739
 
1709
- # A condition for determining whether a PubSub should be triggered.
1740
+ # A condition for determining whether a Pub/Sub should be triggered.
1710
1741
  class GooglePrivacyDlpV2DataProfilePubSubCondition
1711
1742
  include Google::Apis::Core::Hashable
1712
1743
 
@@ -1727,8 +1758,7 @@ module Google
1727
1758
 
1728
1759
  # Pub/Sub topic message for a DataProfileAction.PubSubNotification event. To
1729
1760
  # receive a message of protocol buffer schema type, convert the message data to
1730
- # an object of this proto class. https://cloud.google.com/pubsub/docs/samples/
1731
- # pubsub-subscribe-proto-messages
1761
+ # an object of this proto class.
1732
1762
  class GooglePrivacyDlpV2DataProfilePubSubMessage
1733
1763
  include Google::Apis::Core::Hashable
1734
1764
 
@@ -1912,7 +1942,7 @@ module Google
1912
1942
  end
1913
1943
  end
1914
1944
 
1915
- # Create a de-identified copy of the requested table or files. . A
1945
+ # Create a de-identified copy of the requested table or files. A
1916
1946
  # TransformationDetail will be created for each transformation. If any rows in
1917
1947
  # BigQuery are skipped during de-identification (transformation errors or row
1918
1948
  # size exceeds BigQuery insert API limits) they are placed in the failure output
@@ -1925,11 +1955,11 @@ module Google
1925
1955
  class GooglePrivacyDlpV2Deidentify
1926
1956
  include Google::Apis::Core::Hashable
1927
1957
 
1928
- # Required. User settable GCS bucket and folders to store de-identified files.
1929
- # This field must be set for cloud storage deidentification. The output GCS
1930
- # bucket must be different from the input bucket. De-identified files will
1931
- # overwrite files in the output path. Form of: gs://bucket/folder/ or gs://
1932
- # bucket
1958
+ # Required. User settable Cloud Storage bucket and folders to store de-
1959
+ # identified files. This field must be set for cloud storage deidentification.
1960
+ # The output Cloud Storage bucket must be different from the input bucket. De-
1961
+ # identified files will overwrite files in the output path. Form of: gs://bucket/
1962
+ # folder/ or gs://bucket
1933
1963
  # Corresponds to the JSON property `cloudStorageOutput`
1934
1964
  # @return [String]
1935
1965
  attr_accessor :cloud_storage_output
@@ -1973,6 +2003,11 @@ module Google
1973
2003
  class GooglePrivacyDlpV2DeidentifyConfig
1974
2004
  include Google::Apis::Core::Hashable
1975
2005
 
2006
+ # A type of transformation that is applied over images.
2007
+ # Corresponds to the JSON property `imageTransformations`
2008
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ImageTransformations]
2009
+ attr_accessor :image_transformations
2010
+
1976
2011
  # A type of transformation that will scan unstructured text and apply various `
1977
2012
  # PrimitiveTransformation`s to each finding, where the transformation is applied
1978
2013
  # to only values that were identified as a specific info_type.
@@ -2002,6 +2037,7 @@ module Google
2002
2037
 
2003
2038
  # Update properties of this object
2004
2039
  def update!(**args)
2040
+ @image_transformations = args[:image_transformations] if args.key?(:image_transformations)
2005
2041
  @info_type_transformations = args[:info_type_transformations] if args.key?(:info_type_transformations)
2006
2042
  @record_transformations = args[:record_transformations] if args.key?(:record_transformations)
2007
2043
  @transformation_error_handling = args[:transformation_error_handling] if args.key?(:transformation_error_handling)
@@ -3242,6 +3278,62 @@ module Google
3242
3278
  end
3243
3279
  end
3244
3280
 
3281
+ # Configuration for determining how redaction of images should occur.
3282
+ class GooglePrivacyDlpV2ImageTransformation
3283
+ include Google::Apis::Core::Hashable
3284
+
3285
+ # Apply transformation to all findings.
3286
+ # Corresponds to the JSON property `allInfoTypes`
3287
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2AllInfoTypes]
3288
+ attr_accessor :all_info_types
3289
+
3290
+ # Apply to all text.
3291
+ # Corresponds to the JSON property `allText`
3292
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2AllText]
3293
+ attr_accessor :all_text
3294
+
3295
+ # Represents a color in the RGB color space.
3296
+ # Corresponds to the JSON property `redactionColor`
3297
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Color]
3298
+ attr_accessor :redaction_color
3299
+
3300
+ # Apply transformation to the selected info_types.
3301
+ # Corresponds to the JSON property `selectedInfoTypes`
3302
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SelectedInfoTypes]
3303
+ attr_accessor :selected_info_types
3304
+
3305
+ def initialize(**args)
3306
+ update!(**args)
3307
+ end
3308
+
3309
+ # Update properties of this object
3310
+ def update!(**args)
3311
+ @all_info_types = args[:all_info_types] if args.key?(:all_info_types)
3312
+ @all_text = args[:all_text] if args.key?(:all_text)
3313
+ @redaction_color = args[:redaction_color] if args.key?(:redaction_color)
3314
+ @selected_info_types = args[:selected_info_types] if args.key?(:selected_info_types)
3315
+ end
3316
+ end
3317
+
3318
+ # A type of transformation that is applied over images.
3319
+ class GooglePrivacyDlpV2ImageTransformations
3320
+ include Google::Apis::Core::Hashable
3321
+
3322
+ #
3323
+ # Corresponds to the JSON property `transforms`
3324
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2ImageTransformation>]
3325
+ attr_accessor :transforms
3326
+
3327
+ def initialize(**args)
3328
+ update!(**args)
3329
+ end
3330
+
3331
+ # Update properties of this object
3332
+ def update!(**args)
3333
+ @transforms = args[:transforms] if args.key?(:transforms)
3334
+ end
3335
+ end
3336
+
3245
3337
  # Type of information detected by the API.
3246
3338
  class GooglePrivacyDlpV2InfoType
3247
3339
  include Google::Apis::Core::Hashable
@@ -3826,8 +3918,9 @@ module Google
3826
3918
  end
3827
3919
  end
3828
3920
 
3829
- # Enable email notification to project owners and editors on jobs's completion/
3830
- # failure.
3921
+ # Sends an email when the job completes. The email goes to IAM project owners
3922
+ # and technical [Essential Contacts](https://cloud.google.com/resource-manager/
3923
+ # docs/managing-notification-contacts).
3831
3924
  class GooglePrivacyDlpV2JobNotificationEmails
3832
3925
  include Google::Apis::Core::Hashable
3833
3926
 
@@ -5223,7 +5316,7 @@ module Google
5223
5316
  # @return [String]
5224
5317
  attr_accessor :event
5225
5318
 
5226
- # A condition for determining whether a PubSub should be triggered.
5319
+ # A condition for determining whether a Pub/Sub should be triggered.
5227
5320
  # Corresponds to the JSON property `pubsubCondition`
5228
5321
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfilePubSubCondition]
5229
5322
  attr_accessor :pubsub_condition
@@ -5247,15 +5340,19 @@ module Google
5247
5340
  end
5248
5341
  end
5249
5342
 
5250
- # Publish findings of a DlpJob to Data Catalog. Labels summarizing the results
5251
- # of the DlpJob will be applied to the entry for the resource scanned in Data
5252
- # Catalog. Any labels previously written by another DlpJob will be deleted.
5253
- # InfoType naming patterns are strictly enforced when using this feature. Note
5254
- # that the findings will be persisted in Data Catalog storage and are governed
5255
- # by Data Catalog service-specific policy, see https://cloud.google.com/terms/
5256
- # service-terms Only a single instance of this action can be specified and only
5257
- # allowed if all resources being scanned are BigQuery tables. Compatible with:
5258
- # Inspect
5343
+ # Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag templates
5344
+ # are applied to the resource that Cloud DLP scanned. Data Catalog tag templates
5345
+ # are stored in the same project and region where the BigQuery table exists. For
5346
+ # Cloud DLP to create and apply the tag template, the Cloud DLP service agent
5347
+ # must have the `roles/datacatalog.tagTemplateOwner` permission on the project.
5348
+ # The tag template contains fields summarizing the results of the DlpJob. Any
5349
+ # field values previously written by another DlpJob are deleted. InfoType naming
5350
+ # patterns are strictly enforced when using this feature. Findings are persisted
5351
+ # in Data Catalog storage and are governed by service-specific policies for Data
5352
+ # Catalog. For more information, see [Service Specific Terms](https://cloud.
5353
+ # google.com/terms/service-terms). Only a single instance of this action can be
5354
+ # specified. This action is allowed only if all resources being scanned are
5355
+ # BigQuery tables. Compatible with: Inspect
5259
5356
  class GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog
5260
5357
  include Google::Apis::Core::Hashable
5261
5358
 
@@ -5572,6 +5669,37 @@ module Google
5572
5669
  end
5573
5670
  end
5574
5671
 
5672
+ #
5673
+ class GooglePrivacyDlpV2RecordTransformation
5674
+ include Google::Apis::Core::Hashable
5675
+
5676
+ # Findings container modification timestamp, if applicable.
5677
+ # Corresponds to the JSON property `containerTimestamp`
5678
+ # @return [String]
5679
+ attr_accessor :container_timestamp
5680
+
5681
+ # Container version, if available ("generation" for Cloud Storage).
5682
+ # Corresponds to the JSON property `containerVersion`
5683
+ # @return [String]
5684
+ attr_accessor :container_version
5685
+
5686
+ # General identifier of a data field in a storage service.
5687
+ # Corresponds to the JSON property `fieldId`
5688
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId]
5689
+ attr_accessor :field_id
5690
+
5691
+ def initialize(**args)
5692
+ update!(**args)
5693
+ end
5694
+
5695
+ # Update properties of this object
5696
+ def update!(**args)
5697
+ @container_timestamp = args[:container_timestamp] if args.key?(:container_timestamp)
5698
+ @container_version = args[:container_version] if args.key?(:container_version)
5699
+ @field_id = args[:field_id] if args.key?(:field_id)
5700
+ end
5701
+ end
5702
+
5575
5703
  # A type of transformation that is applied over structured data such as a table.
5576
5704
  class GooglePrivacyDlpV2RecordTransformations
5577
5705
  include Google::Apis::Core::Hashable
@@ -6042,6 +6170,26 @@ module Google
6042
6170
  end
6043
6171
  end
6044
6172
 
6173
+ # Apply transformation to the selected info_types.
6174
+ class GooglePrivacyDlpV2SelectedInfoTypes
6175
+ include Google::Apis::Core::Hashable
6176
+
6177
+ # Required. InfoTypes to apply the transformation to. Required. Provided
6178
+ # InfoType must be unique within the ImageTransformations message.
6179
+ # Corresponds to the JSON property `infoTypes`
6180
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType>]
6181
+ attr_accessor :info_types
6182
+
6183
+ def initialize(**args)
6184
+ update!(**args)
6185
+ end
6186
+
6187
+ # Update properties of this object
6188
+ def update!(**args)
6189
+ @info_types = args[:info_types] if args.key?(:info_types)
6190
+ end
6191
+ end
6192
+
6045
6193
  # Score is a summary of all elements in the data profile. A higher number means
6046
6194
  # more sensitive.
6047
6195
  class GooglePrivacyDlpV2SensitivityScore
@@ -6842,6 +6990,111 @@ module Google
6842
6990
  end
6843
6991
  end
6844
6992
 
6993
+ # A flattened description of a `PrimitiveTransformation` or `RecordSuppression`.
6994
+ class GooglePrivacyDlpV2TransformationDescription
6995
+ include Google::Apis::Core::Hashable
6996
+
6997
+ # A human-readable string representation of the `RecordCondition` corresponding
6998
+ # to this transformation. Set if a `RecordCondition` was used to determine
6999
+ # whether or not to apply this transformation. Examples: * (age_field > 85) * (
7000
+ # age_field <= 18) * (zip_field exists) * (zip_field == 01234) && (city_field !=
7001
+ # "Springville") * (zip_field == 01234) && (age_field <= 18) && (city_field
7002
+ # exists)
7003
+ # Corresponds to the JSON property `condition`
7004
+ # @return [String]
7005
+ attr_accessor :condition
7006
+
7007
+ # A description of the transformation. This is empty for a RECORD_SUPPRESSION,
7008
+ # or is the output of calling toString() on the `PrimitiveTransformation`
7009
+ # protocol buffer message for any other type of transformation.
7010
+ # Corresponds to the JSON property `description`
7011
+ # @return [String]
7012
+ attr_accessor :description
7013
+
7014
+ # Type of information detected by the API.
7015
+ # Corresponds to the JSON property `infoType`
7016
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]
7017
+ attr_accessor :info_type
7018
+
7019
+ # The transformation type.
7020
+ # Corresponds to the JSON property `type`
7021
+ # @return [String]
7022
+ attr_accessor :type
7023
+
7024
+ def initialize(**args)
7025
+ update!(**args)
7026
+ end
7027
+
7028
+ # Update properties of this object
7029
+ def update!(**args)
7030
+ @condition = args[:condition] if args.key?(:condition)
7031
+ @description = args[:description] if args.key?(:description)
7032
+ @info_type = args[:info_type] if args.key?(:info_type)
7033
+ @type = args[:type] if args.key?(:type)
7034
+ end
7035
+ end
7036
+
7037
+ # Details about a single transformation. This object contains a description of
7038
+ # the transformation, information about whether the transformation was
7039
+ # successfully applied, and the precise location where the transformation
7040
+ # occurred. These details are stored in a user-specified BigQuery table.
7041
+ class GooglePrivacyDlpV2TransformationDetails
7042
+ include Google::Apis::Core::Hashable
7043
+
7044
+ # The top level name of the container where the transformation is located (this
7045
+ # will be the source file name or table name).
7046
+ # Corresponds to the JSON property `containerName`
7047
+ # @return [String]
7048
+ attr_accessor :container_name
7049
+
7050
+ # The name of the job that completed the transformation.
7051
+ # Corresponds to the JSON property `resourceName`
7052
+ # @return [String]
7053
+ attr_accessor :resource_name
7054
+
7055
+ # Status of the transformation, if transformation was not successful, this will
7056
+ # specify what caused it to fail, otherwise it will show that the transformation
7057
+ # was successful.
7058
+ # Corresponds to the JSON property `statusDetails`
7059
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationResultStatus]
7060
+ attr_accessor :status_details
7061
+
7062
+ # Description of transformation. This would only contain more than one element
7063
+ # if there were multiple matching transformations and which one to apply was
7064
+ # ambiguous. Not set for states that contain no transformation, currently only
7065
+ # state that contains no transformation is TransformationResultStateType.
7066
+ # METADATA_UNRETRIEVABLE.
7067
+ # Corresponds to the JSON property `transformation`
7068
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationDescription>]
7069
+ attr_accessor :transformation
7070
+
7071
+ # Specifies the location of a transformation.
7072
+ # Corresponds to the JSON property `transformationLocation`
7073
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationLocation]
7074
+ attr_accessor :transformation_location
7075
+
7076
+ # The number of bytes that were transformed. If transformation was unsuccessful
7077
+ # or did not take place because there was no content to transform, this will be
7078
+ # zero.
7079
+ # Corresponds to the JSON property `transformedBytes`
7080
+ # @return [Fixnum]
7081
+ attr_accessor :transformed_bytes
7082
+
7083
+ def initialize(**args)
7084
+ update!(**args)
7085
+ end
7086
+
7087
+ # Update properties of this object
7088
+ def update!(**args)
7089
+ @container_name = args[:container_name] if args.key?(:container_name)
7090
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
7091
+ @status_details = args[:status_details] if args.key?(:status_details)
7092
+ @transformation = args[:transformation] if args.key?(:transformation)
7093
+ @transformation_location = args[:transformation_location] if args.key?(:transformation_location)
7094
+ @transformed_bytes = args[:transformed_bytes] if args.key?(:transformed_bytes)
7095
+ end
7096
+ end
7097
+
6845
7098
  # Config for storing transformation details.
6846
7099
  class GooglePrivacyDlpV2TransformationDetailsStorageConfig
6847
7100
  include Google::Apis::Core::Hashable
@@ -6896,6 +7149,42 @@ module Google
6896
7149
  end
6897
7150
  end
6898
7151
 
7152
+ # Specifies the location of a transformation.
7153
+ class GooglePrivacyDlpV2TransformationLocation
7154
+ include Google::Apis::Core::Hashable
7155
+
7156
+ # Information about the functionality of the container where this finding
7157
+ # occurred, if available.
7158
+ # Corresponds to the JSON property `containerType`
7159
+ # @return [String]
7160
+ attr_accessor :container_type
7161
+
7162
+ # For infotype transformations, link to the corresponding findings ID so that
7163
+ # location information does not need to be duplicated. Each findings ID
7164
+ # correlates to an entry in the findings output table, this table only gets
7165
+ # created when users specify to save findings (add the save findings action to
7166
+ # the request).
7167
+ # Corresponds to the JSON property `findingId`
7168
+ # @return [String]
7169
+ attr_accessor :finding_id
7170
+
7171
+ # For record transformations, provide a field and container information.
7172
+ # Corresponds to the JSON property `recordTransformation`
7173
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2RecordTransformation]
7174
+ attr_accessor :record_transformation
7175
+
7176
+ def initialize(**args)
7177
+ update!(**args)
7178
+ end
7179
+
7180
+ # Update properties of this object
7181
+ def update!(**args)
7182
+ @container_type = args[:container_type] if args.key?(:container_type)
7183
+ @finding_id = args[:finding_id] if args.key?(:finding_id)
7184
+ @record_transformation = args[:record_transformation] if args.key?(:record_transformation)
7185
+ end
7186
+ end
7187
+
6899
7188
  # Overview of the modifications that occurred.
6900
7189
  class GooglePrivacyDlpV2TransformationOverview
6901
7190
  include Google::Apis::Core::Hashable
@@ -6921,6 +7210,37 @@ module Google
6921
7210
  end
6922
7211
  end
6923
7212
 
7213
+ #
7214
+ class GooglePrivacyDlpV2TransformationResultStatus
7215
+ include Google::Apis::Core::Hashable
7216
+
7217
+ # The `Status` type defines a logical error model that is suitable for different
7218
+ # programming environments, including REST APIs and RPC APIs. It is used by [
7219
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
7220
+ # data: error code, error message, and error details. You can find out more
7221
+ # about this error model and how to work with it in the [API Design Guide](https:
7222
+ # //cloud.google.com/apis/design/errors).
7223
+ # Corresponds to the JSON property `details`
7224
+ # @return [Google::Apis::DlpV2::GoogleRpcStatus]
7225
+ attr_accessor :details
7226
+
7227
+ # Transformation result status type, this will be either SUCCESS, or it will be
7228
+ # the reason for why the transformation was not completely successful.
7229
+ # Corresponds to the JSON property `resultStatusType`
7230
+ # @return [String]
7231
+ attr_accessor :result_status_type
7232
+
7233
+ def initialize(**args)
7234
+ update!(**args)
7235
+ end
7236
+
7237
+ # Update properties of this object
7238
+ def update!(**args)
7239
+ @details = args[:details] if args.key?(:details)
7240
+ @result_status_type = args[:result_status_type] if args.key?(:result_status_type)
7241
+ end
7242
+ end
7243
+
6924
7244
  # Summary of a single transformation. Only one of 'transformation', '
6925
7245
  # field_transformation', or 'record_suppress' will be set.
6926
7246
  class GooglePrivacyDlpV2TransformationSummary
@@ -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.28.0"
19
+ GEM_VERSION = "0.31.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220730"
25
+ REVISION = "20220826"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,18 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class GooglePrivacyDlpV2AllInfoTypes
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GooglePrivacyDlpV2AllText
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
@@ -532,6 +544,18 @@ module Google
532
544
  include Google::Apis::Core::JsonObjectSupport
533
545
  end
534
546
 
547
+ class GooglePrivacyDlpV2ImageTransformation
548
+ class Representation < Google::Apis::Core::JsonRepresentation; end
549
+
550
+ include Google::Apis::Core::JsonObjectSupport
551
+ end
552
+
553
+ class GooglePrivacyDlpV2ImageTransformations
554
+ class Representation < Google::Apis::Core::JsonRepresentation; end
555
+
556
+ include Google::Apis::Core::JsonObjectSupport
557
+ end
558
+
535
559
  class GooglePrivacyDlpV2InfoType
536
560
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
561
 
@@ -970,6 +994,12 @@ module Google
970
994
  include Google::Apis::Core::JsonObjectSupport
971
995
  end
972
996
 
997
+ class GooglePrivacyDlpV2RecordTransformation
998
+ class Representation < Google::Apis::Core::JsonRepresentation; end
999
+
1000
+ include Google::Apis::Core::JsonObjectSupport
1001
+ end
1002
+
973
1003
  class GooglePrivacyDlpV2RecordTransformations
974
1004
  class Representation < Google::Apis::Core::JsonRepresentation; end
975
1005
 
@@ -1072,6 +1102,12 @@ module Google
1072
1102
  include Google::Apis::Core::JsonObjectSupport
1073
1103
  end
1074
1104
 
1105
+ class GooglePrivacyDlpV2SelectedInfoTypes
1106
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1107
+
1108
+ include Google::Apis::Core::JsonObjectSupport
1109
+ end
1110
+
1075
1111
  class GooglePrivacyDlpV2SensitivityScore
1076
1112
  class Representation < Google::Apis::Core::JsonRepresentation; end
1077
1113
 
@@ -1198,6 +1234,18 @@ module Google
1198
1234
  include Google::Apis::Core::JsonObjectSupport
1199
1235
  end
1200
1236
 
1237
+ class GooglePrivacyDlpV2TransformationDescription
1238
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1239
+
1240
+ include Google::Apis::Core::JsonObjectSupport
1241
+ end
1242
+
1243
+ class GooglePrivacyDlpV2TransformationDetails
1244
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1245
+
1246
+ include Google::Apis::Core::JsonObjectSupport
1247
+ end
1248
+
1201
1249
  class GooglePrivacyDlpV2TransformationDetailsStorageConfig
1202
1250
  class Representation < Google::Apis::Core::JsonRepresentation; end
1203
1251
 
@@ -1210,12 +1258,24 @@ module Google
1210
1258
  include Google::Apis::Core::JsonObjectSupport
1211
1259
  end
1212
1260
 
1261
+ class GooglePrivacyDlpV2TransformationLocation
1262
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1263
+
1264
+ include Google::Apis::Core::JsonObjectSupport
1265
+ end
1266
+
1213
1267
  class GooglePrivacyDlpV2TransformationOverview
1214
1268
  class Representation < Google::Apis::Core::JsonRepresentation; end
1215
1269
 
1216
1270
  include Google::Apis::Core::JsonObjectSupport
1217
1271
  end
1218
1272
 
1273
+ class GooglePrivacyDlpV2TransformationResultStatus
1274
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1275
+
1276
+ include Google::Apis::Core::JsonObjectSupport
1277
+ end
1278
+
1219
1279
  class GooglePrivacyDlpV2TransformationSummary
1220
1280
  class Representation < Google::Apis::Core::JsonRepresentation; end
1221
1281
 
@@ -1338,6 +1398,18 @@ module Google
1338
1398
  end
1339
1399
  end
1340
1400
 
1401
+ class GooglePrivacyDlpV2AllInfoTypes
1402
+ # @private
1403
+ class Representation < Google::Apis::Core::JsonRepresentation
1404
+ end
1405
+ end
1406
+
1407
+ class GooglePrivacyDlpV2AllText
1408
+ # @private
1409
+ class Representation < Google::Apis::Core::JsonRepresentation
1410
+ end
1411
+ end
1412
+
1341
1413
  class GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails
1342
1414
  # @private
1343
1415
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1856,6 +1928,8 @@ module Google
1856
1928
  class GooglePrivacyDlpV2DeidentifyConfig
1857
1929
  # @private
1858
1930
  class Representation < Google::Apis::Core::JsonRepresentation
1931
+ property :image_transformations, as: 'imageTransformations', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ImageTransformations, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ImageTransformations::Representation
1932
+
1859
1933
  property :info_type_transformations, as: 'infoTypeTransformations', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeTransformations, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeTransformations::Representation
1860
1934
 
1861
1935
  property :record_transformations, as: 'recordTransformations', class: Google::Apis::DlpV2::GooglePrivacyDlpV2RecordTransformations, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2RecordTransformations::Representation
@@ -2217,6 +2291,28 @@ module Google
2217
2291
  end
2218
2292
  end
2219
2293
 
2294
+ class GooglePrivacyDlpV2ImageTransformation
2295
+ # @private
2296
+ class Representation < Google::Apis::Core::JsonRepresentation
2297
+ property :all_info_types, as: 'allInfoTypes', class: Google::Apis::DlpV2::GooglePrivacyDlpV2AllInfoTypes, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2AllInfoTypes::Representation
2298
+
2299
+ property :all_text, as: 'allText', class: Google::Apis::DlpV2::GooglePrivacyDlpV2AllText, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2AllText::Representation
2300
+
2301
+ property :redaction_color, as: 'redactionColor', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Color, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Color::Representation
2302
+
2303
+ property :selected_info_types, as: 'selectedInfoTypes', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SelectedInfoTypes, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SelectedInfoTypes::Representation
2304
+
2305
+ end
2306
+ end
2307
+
2308
+ class GooglePrivacyDlpV2ImageTransformations
2309
+ # @private
2310
+ class Representation < Google::Apis::Core::JsonRepresentation
2311
+ collection :transforms, as: 'transforms', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ImageTransformation, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ImageTransformation::Representation
2312
+
2313
+ end
2314
+ end
2315
+
2220
2316
  class GooglePrivacyDlpV2InfoType
2221
2317
  # @private
2222
2318
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2941,6 +3037,16 @@ module Google
2941
3037
  end
2942
3038
  end
2943
3039
 
3040
+ class GooglePrivacyDlpV2RecordTransformation
3041
+ # @private
3042
+ class Representation < Google::Apis::Core::JsonRepresentation
3043
+ property :container_timestamp, as: 'containerTimestamp'
3044
+ property :container_version, as: 'containerVersion'
3045
+ property :field_id, as: 'fieldId', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId::Representation
3046
+
3047
+ end
3048
+ end
3049
+
2944
3050
  class GooglePrivacyDlpV2RecordTransformations
2945
3051
  # @private
2946
3052
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3101,6 +3207,14 @@ module Google
3101
3207
  end
3102
3208
  end
3103
3209
 
3210
+ class GooglePrivacyDlpV2SelectedInfoTypes
3211
+ # @private
3212
+ class Representation < Google::Apis::Core::JsonRepresentation
3213
+ collection :info_types, as: 'infoTypes', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
3214
+
3215
+ end
3216
+ end
3217
+
3104
3218
  class GooglePrivacyDlpV2SensitivityScore
3105
3219
  # @private
3106
3220
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3328,6 +3442,32 @@ module Google
3328
3442
  end
3329
3443
  end
3330
3444
 
3445
+ class GooglePrivacyDlpV2TransformationDescription
3446
+ # @private
3447
+ class Representation < Google::Apis::Core::JsonRepresentation
3448
+ property :condition, as: 'condition'
3449
+ property :description, as: 'description'
3450
+ property :info_type, as: 'infoType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
3451
+
3452
+ property :type, as: 'type'
3453
+ end
3454
+ end
3455
+
3456
+ class GooglePrivacyDlpV2TransformationDetails
3457
+ # @private
3458
+ class Representation < Google::Apis::Core::JsonRepresentation
3459
+ property :container_name, as: 'containerName'
3460
+ property :resource_name, as: 'resourceName'
3461
+ property :status_details, as: 'statusDetails', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationResultStatus, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationResultStatus::Representation
3462
+
3463
+ collection :transformation, as: 'transformation', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationDescription, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationDescription::Representation
3464
+
3465
+ property :transformation_location, as: 'transformationLocation', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationLocation, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationLocation::Representation
3466
+
3467
+ property :transformed_bytes, :numeric_string => true, as: 'transformedBytes'
3468
+ end
3469
+ end
3470
+
3331
3471
  class GooglePrivacyDlpV2TransformationDetailsStorageConfig
3332
3472
  # @private
3333
3473
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3346,6 +3486,16 @@ module Google
3346
3486
  end
3347
3487
  end
3348
3488
 
3489
+ class GooglePrivacyDlpV2TransformationLocation
3490
+ # @private
3491
+ class Representation < Google::Apis::Core::JsonRepresentation
3492
+ property :container_type, as: 'containerType'
3493
+ property :finding_id, as: 'findingId'
3494
+ property :record_transformation, as: 'recordTransformation', class: Google::Apis::DlpV2::GooglePrivacyDlpV2RecordTransformation, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2RecordTransformation::Representation
3495
+
3496
+ end
3497
+ end
3498
+
3349
3499
  class GooglePrivacyDlpV2TransformationOverview
3350
3500
  # @private
3351
3501
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3355,6 +3505,15 @@ module Google
3355
3505
  end
3356
3506
  end
3357
3507
 
3508
+ class GooglePrivacyDlpV2TransformationResultStatus
3509
+ # @private
3510
+ class Representation < Google::Apis::Core::JsonRepresentation
3511
+ property :details, as: 'details', class: Google::Apis::DlpV2::GoogleRpcStatus, decorator: Google::Apis::DlpV2::GoogleRpcStatus::Representation
3512
+
3513
+ property :result_status_type, as: 'resultStatusType'
3514
+ end
3515
+ end
3516
+
3358
3517
  class GooglePrivacyDlpV2TransformationSummary
3359
3518
  # @private
3360
3519
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1383,12 +1383,10 @@ module Google
1383
1383
  # specified a processing location](https://cloud.google.com/dlp/docs/specifying-
1384
1384
  # location): + Projects scope, location specified: `projects/`PROJECT_ID`/
1385
1385
  # locations/`LOCATION_ID + Projects scope, no location specified (defaults to
1386
- # global): `projects/`PROJECT_ID + Organizations scope, location specified: `
1387
- # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
1388
- # location specified (defaults to global): `organizations/`ORG_ID The following
1389
- # example `parent` string specifies a parent project with the identifier `
1390
- # example-project`, and specifies the `europe-west3` location for processing
1391
- # data: parent=projects/example-project/locations/europe-west3
1386
+ # global): `projects/`PROJECT_ID The following example `parent` string specifies
1387
+ # a parent project with the identifier `example-project`, and specifies the `
1388
+ # europe-west3` location for processing data: parent=projects/example-project/
1389
+ # locations/europe-west3
1392
1390
  # @param [String] location_id
1393
1391
  # Deprecated. This field has no effect.
1394
1392
  # @param [String] order_by
@@ -1591,12 +1589,10 @@ module Google
1591
1589
  # specified a processing location](https://cloud.google.com/dlp/docs/specifying-
1592
1590
  # location): + Projects scope, location specified: `projects/`PROJECT_ID`/
1593
1591
  # locations/`LOCATION_ID + Projects scope, no location specified (defaults to
1594
- # global): `projects/`PROJECT_ID + Organizations scope, location specified: `
1595
- # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
1596
- # location specified (defaults to global): `organizations/`ORG_ID The following
1597
- # example `parent` string specifies a parent project with the identifier `
1598
- # example-project`, and specifies the `europe-west3` location for processing
1599
- # data: parent=projects/example-project/locations/europe-west3
1592
+ # global): `projects/`PROJECT_ID The following example `parent` string specifies
1593
+ # a parent project with the identifier `example-project`, and specifies the `
1594
+ # europe-west3` location for processing data: parent=projects/example-project/
1595
+ # locations/europe-west3
1600
1596
  # @param [String] location_id
1601
1597
  # Deprecated. This field has no effect.
1602
1598
  # @param [String] order_by
@@ -4044,12 +4040,10 @@ module Google
4044
4040
  # specified a processing location](https://cloud.google.com/dlp/docs/specifying-
4045
4041
  # location): + Projects scope, location specified: `projects/`PROJECT_ID`/
4046
4042
  # locations/`LOCATION_ID + Projects scope, no location specified (defaults to
4047
- # global): `projects/`PROJECT_ID + Organizations scope, location specified: `
4048
- # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
4049
- # location specified (defaults to global): `organizations/`ORG_ID The following
4050
- # example `parent` string specifies a parent project with the identifier `
4051
- # example-project`, and specifies the `europe-west3` location for processing
4052
- # data: parent=projects/example-project/locations/europe-west3
4043
+ # global): `projects/`PROJECT_ID The following example `parent` string specifies
4044
+ # a parent project with the identifier `example-project`, and specifies the `
4045
+ # europe-west3` location for processing data: parent=projects/example-project/
4046
+ # locations/europe-west3
4053
4047
  # @param [String] location_id
4054
4048
  # Deprecated. This field has no effect.
4055
4049
  # @param [String] order_by
@@ -4252,12 +4246,10 @@ module Google
4252
4246
  # specified a processing location](https://cloud.google.com/dlp/docs/specifying-
4253
4247
  # location): + Projects scope, location specified: `projects/`PROJECT_ID`/
4254
4248
  # locations/`LOCATION_ID + Projects scope, no location specified (defaults to
4255
- # global): `projects/`PROJECT_ID + Organizations scope, location specified: `
4256
- # organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
4257
- # location specified (defaults to global): `organizations/`ORG_ID The following
4258
- # example `parent` string specifies a parent project with the identifier `
4259
- # example-project`, and specifies the `europe-west3` location for processing
4260
- # data: parent=projects/example-project/locations/europe-west3
4249
+ # global): `projects/`PROJECT_ID The following example `parent` string specifies
4250
+ # a parent project with the identifier `example-project`, and specifies the `
4251
+ # europe-west3` location for processing data: parent=projects/example-project/
4252
+ # locations/europe-west3
4261
4253
  # @param [String] location_id
4262
4254
  # Deprecated. This field has no effect.
4263
4255
  # @param [String] order_by
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.28.0
4
+ version: 0.31.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: 2022-08-08 00:00:00.000000000 Z
11
+ date: 2022-09-05 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.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.31.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: []