Skip to content

Commit d9c243c

Browse files
feat: Automated regeneration of dlp v2 client (#27235)
Auto-created at 2026-07-05 10:40:28 +0000 using the toys pull request generator.
1 parent 65f5fad commit d9c243c

5 files changed

Lines changed: 372 additions & 14 deletions

File tree

api_names_out.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259683,6 +259683,8 @@
259683259683
"/dlp:v2/GooglePrivacyDlpV2ContentLocation/metadataLocation": metadata_location
259684259684
"/dlp:v2/GooglePrivacyDlpV2ContentLocation/recordLocation": record_location
259685259685
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata": google_privacy_dlp_v2_content_metadata
259686+
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata/fileLabels": file_labels
259687+
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata/fileLabels/file_label": file_label
259686259688
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata/properties": properties
259687259689
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata/properties/property": property
259688259690
"/dlp:v2/GooglePrivacyDlpV2ContentPolicy": google_privacy_dlp_v2_content_policy
@@ -259763,6 +259765,7 @@
259763259765
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/detectionRules/detection_rule": detection_rule
259764259766
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/dictionary": dictionary
259765259767
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/exclusionType": exclusion_type
259768+
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/fileLabelInfoType": file_label_info_type
259766259769
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/infoType": info_type
259767259770
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/likelihood": likelihood
259768259771
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/metadataKeyValueExpression": metadata_key_value_expression
@@ -260096,6 +260099,12 @@
260096260099
"/dlp:v2/GooglePrivacyDlpV2FileClusterType/cluster": cluster
260097260100
"/dlp:v2/GooglePrivacyDlpV2FileExtensionInfo": google_privacy_dlp_v2_file_extension_info
260098260101
"/dlp:v2/GooglePrivacyDlpV2FileExtensionInfo/fileExtension": file_extension
260102+
"/dlp:v2/GooglePrivacyDlpV2FileLabel": google_privacy_dlp_v2_file_label
260103+
"/dlp:v2/GooglePrivacyDlpV2FileLabel/googleDriveLabel": google_drive_label
260104+
"/dlp:v2/GooglePrivacyDlpV2FileLabel/sensitivityLabel": sensitivity_label
260105+
"/dlp:v2/GooglePrivacyDlpV2FileLabelInfoType": google_privacy_dlp_v2_file_label_info_type
260106+
"/dlp:v2/GooglePrivacyDlpV2FileLabelInfoType/googleDriveLabel": google_drive_label
260107+
"/dlp:v2/GooglePrivacyDlpV2FileLabelInfoType/sensitivityLabel": sensitivity_label
260099260108
"/dlp:v2/GooglePrivacyDlpV2FileSet": google_privacy_dlp_v2_file_set
260100260109
"/dlp:v2/GooglePrivacyDlpV2FileSet/regexFileSet": regex_file_set
260101260110
"/dlp:v2/GooglePrivacyDlpV2FileSet/url": url
@@ -260172,6 +260181,14 @@
260172260181
"/dlp:v2/GooglePrivacyDlpV2FixedSizeBucketingConfig/upperBound": upper_bound
260173260182
"/dlp:v2/GooglePrivacyDlpV2FullyInside": google_privacy_dlp_v2_fully_inside
260174260183
"/dlp:v2/GooglePrivacyDlpV2GlobalProcessing": google_privacy_dlp_v2_global_processing
260184+
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabel": google_privacy_dlp_v2_google_drive_label
260185+
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabel/labelFieldsToMatch": label_fields_to_match
260186+
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabel/labelFieldsToMatch/label_fields_to_match": label_fields_to_match
260187+
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabel/labelId": label_id
260188+
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabelMetadata": google_privacy_dlp_v2_google_drive_label_metadata
260189+
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabelMetadata/labelFields": label_fields
260190+
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabelMetadata/labelFields/label_field": label_field
260191+
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabelMetadata/labelId": label_id
260175260192
"/dlp:v2/GooglePrivacyDlpV2HotwordRule": google_privacy_dlp_v2_hotword_rule
260176260193
"/dlp:v2/GooglePrivacyDlpV2HotwordRule/hotwordRegex": hotword_regex
260177260194
"/dlp:v2/GooglePrivacyDlpV2HotwordRule/likelihoodAdjustment": likelihood_adjustment
@@ -260412,6 +260429,12 @@
260412260429
"/dlp:v2/GooglePrivacyDlpV2LDiversityResult": google_privacy_dlp_v2_l_diversity_result
260413260430
"/dlp:v2/GooglePrivacyDlpV2LDiversityResult/sensitiveValueFrequencyHistogramBuckets": sensitive_value_frequency_histogram_buckets
260414260431
"/dlp:v2/GooglePrivacyDlpV2LDiversityResult/sensitiveValueFrequencyHistogramBuckets/sensitive_value_frequency_histogram_bucket": sensitive_value_frequency_histogram_bucket
260432+
"/dlp:v2/GooglePrivacyDlpV2LabelField": google_privacy_dlp_v2_label_field
260433+
"/dlp:v2/GooglePrivacyDlpV2LabelField/id": id
260434+
"/dlp:v2/GooglePrivacyDlpV2LabelField/value": value
260435+
"/dlp:v2/GooglePrivacyDlpV2LabelFieldMetadata": google_privacy_dlp_v2_label_field_metadata
260436+
"/dlp:v2/GooglePrivacyDlpV2LabelFieldMetadata/id": id
260437+
"/dlp:v2/GooglePrivacyDlpV2LabelFieldMetadata/value": value
260415260438
"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig": google_privacy_dlp_v2_large_custom_dictionary_config
260416260439
"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig/bigQueryField": big_query_field
260417260440
"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig/cloudStorageFileSet": cloud_storage_file_set
@@ -260732,6 +260755,10 @@
260732260755
"/dlp:v2/GooglePrivacyDlpV2SelectedInfoTypes": google_privacy_dlp_v2_selected_info_types
260733260756
"/dlp:v2/GooglePrivacyDlpV2SelectedInfoTypes/infoTypes": info_types
260734260757
"/dlp:v2/GooglePrivacyDlpV2SelectedInfoTypes/infoTypes/info_type": info_type
260758+
"/dlp:v2/GooglePrivacyDlpV2SensitivityLabel": google_privacy_dlp_v2_sensitivity_label
260759+
"/dlp:v2/GooglePrivacyDlpV2SensitivityLabel/guid": guid
260760+
"/dlp:v2/GooglePrivacyDlpV2SensitivityLabelMetadata": google_privacy_dlp_v2_sensitivity_label_metadata
260761+
"/dlp:v2/GooglePrivacyDlpV2SensitivityLabelMetadata/guid": guid
260735260762
"/dlp:v2/GooglePrivacyDlpV2SensitivityScore": google_privacy_dlp_v2_sensitivity_score
260736260763
"/dlp:v2/GooglePrivacyDlpV2SensitivityScore/score": score
260737260764
"/dlp:v2/GooglePrivacyDlpV2StatisticalTable": google_privacy_dlp_v2_statistical_table

generated/google-apis-dlp_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-dlp_v2
22

3+
### v0.111.0 (2026-07-05)
4+
5+
* Regenerated from discovery document revision 20260620
6+
37
### v0.110.0 (2026-06-21)
48

59
* Regenerated from discovery document revision 20260606

generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/classes.rb

Lines changed: 218 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,6 +2119,11 @@ def update!(**args)
21192119
class GooglePrivacyDlpV2ContentMetadata
21202120
include Google::Apis::Core::Hashable
21212121

2122+
# Optional. The file labels associated with the content.
2123+
# Corresponds to the JSON property `fileLabels`
2124+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileLabel>]
2125+
attr_accessor :file_labels
2126+
21222127
# User provided key-value pairs of content metadata.
21232128
# Corresponds to the JSON property `properties`
21242129
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2KeyValueMetadataProperty>]
@@ -2130,6 +2135,7 @@ def initialize(**args)
21302135

21312136
# Update properties of this object
21322137
def update!(**args)
2138+
@file_labels = args[:file_labels] if args.key?(:file_labels)
21332139
@properties = args[:properties] if args.key?(:properties)
21342140
end
21352141
end
@@ -2794,6 +2800,11 @@ class GooglePrivacyDlpV2CustomInfoType
27942800
# @return [String]
27952801
attr_accessor :exclusion_type
27962802

2803+
# Configuration for a custom infoType that detects file labels.
2804+
# Corresponds to the JSON property `fileLabelInfoType`
2805+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileLabelInfoType]
2806+
attr_accessor :file_label_info_type
2807+
27972808
# Type of information detected by the API.
27982809
# Corresponds to the JSON property `infoType`
27992810
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]
@@ -2849,6 +2860,7 @@ def update!(**args)
28492860
@detection_rules = args[:detection_rules] if args.key?(:detection_rules)
28502861
@dictionary = args[:dictionary] if args.key?(:dictionary)
28512862
@exclusion_type = args[:exclusion_type] if args.key?(:exclusion_type)
2863+
@file_label_info_type = args[:file_label_info_type] if args.key?(:file_label_info_type)
28522864
@info_type = args[:info_type] if args.key?(:info_type)
28532865
@likelihood = args[:likelihood] if args.key?(:likelihood)
28542866
@metadata_key_value_expression = args[:metadata_key_value_expression] if args.key?(:metadata_key_value_expression)
@@ -5486,6 +5498,56 @@ def update!(**args)
54865498
end
54875499
end
54885500

5501+
# Represents a file label.
5502+
class GooglePrivacyDlpV2FileLabel
5503+
include Google::Apis::Core::Hashable
5504+
5505+
# Google Drive labels published by Google.
5506+
# Corresponds to the JSON property `googleDriveLabel`
5507+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2GoogleDriveLabelMetadata]
5508+
attr_accessor :google_drive_label
5509+
5510+
# Sensitivity labels published by Microsoft.
5511+
# Corresponds to the JSON property `sensitivityLabel`
5512+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityLabelMetadata]
5513+
attr_accessor :sensitivity_label
5514+
5515+
def initialize(**args)
5516+
update!(**args)
5517+
end
5518+
5519+
# Update properties of this object
5520+
def update!(**args)
5521+
@google_drive_label = args[:google_drive_label] if args.key?(:google_drive_label)
5522+
@sensitivity_label = args[:sensitivity_label] if args.key?(:sensitivity_label)
5523+
end
5524+
end
5525+
5526+
# Configuration for a custom infoType that detects file labels.
5527+
class GooglePrivacyDlpV2FileLabelInfoType
5528+
include Google::Apis::Core::Hashable
5529+
5530+
# Google Drive labels published by Google.
5531+
# Corresponds to the JSON property `googleDriveLabel`
5532+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2GoogleDriveLabel]
5533+
attr_accessor :google_drive_label
5534+
5535+
# Sensitivity labels published by Microsoft.
5536+
# Corresponds to the JSON property `sensitivityLabel`
5537+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityLabel]
5538+
attr_accessor :sensitivity_label
5539+
5540+
def initialize(**args)
5541+
update!(**args)
5542+
end
5543+
5544+
# Update properties of this object
5545+
def update!(**args)
5546+
@google_drive_label = args[:google_drive_label] if args.key?(:google_drive_label)
5547+
@sensitivity_label = args[:sensitivity_label] if args.key?(:sensitivity_label)
5548+
end
5549+
end
5550+
54895551
# Set of files to scan.
54905552
class GooglePrivacyDlpV2FileSet
54915553
include Google::Apis::Core::Hashable
@@ -6059,6 +6121,58 @@ def update!(**args)
60596121
end
60606122
end
60616123

6124+
# Google Drive labels published by Google.
6125+
class GooglePrivacyDlpV2GoogleDriveLabel
6126+
include Google::Apis::Core::Hashable
6127+
6128+
# The field values of the Google Drive label to match.
6129+
# Corresponds to the JSON property `labelFieldsToMatch`
6130+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2LabelField>]
6131+
attr_accessor :label_fields_to_match
6132+
6133+
# The [label ID](https://developers.google.com/workspace/drive/labels/guides/
6134+
# overview) of the Google Drive label.
6135+
# Corresponds to the JSON property `labelId`
6136+
# @return [String]
6137+
attr_accessor :label_id
6138+
6139+
def initialize(**args)
6140+
update!(**args)
6141+
end
6142+
6143+
# Update properties of this object
6144+
def update!(**args)
6145+
@label_fields_to_match = args[:label_fields_to_match] if args.key?(:label_fields_to_match)
6146+
@label_id = args[:label_id] if args.key?(:label_id)
6147+
end
6148+
end
6149+
6150+
# Google Drive labels published by Google.
6151+
class GooglePrivacyDlpV2GoogleDriveLabelMetadata
6152+
include Google::Apis::Core::Hashable
6153+
6154+
# The field values of the Google Drive label
6155+
# Corresponds to the JSON property `labelFields`
6156+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2LabelFieldMetadata>]
6157+
attr_accessor :label_fields
6158+
6159+
# The [label ID](https://developers.google.com/workspace/drive/labels/guides/
6160+
# overview) of the Google Drive label.
6161+
# Corresponds to the JSON property `labelId`
6162+
# @return [String]
6163+
attr_accessor :label_id
6164+
6165+
def initialize(**args)
6166+
update!(**args)
6167+
end
6168+
6169+
# Update properties of this object
6170+
def update!(**args)
6171+
@label_fields = args[:label_fields] if args.key?(:label_fields)
6172+
@label_id = args[:label_id] if args.key?(:label_id)
6173+
end
6174+
end
6175+
60626176
# The rule that adjusts the likelihood of findings within a certain proximity of
60636177
# hotwords.
60646178
class GooglePrivacyDlpV2HotwordRule
@@ -7829,6 +7943,60 @@ def update!(**args)
78297943
end
78307944
end
78317945

7946+
# The field values of the Google Drive label to match.
7947+
class GooglePrivacyDlpV2LabelField
7948+
include Google::Apis::Core::Hashable
7949+
7950+
# The identifier of the Label Field.
7951+
# Corresponds to the JSON property `id`
7952+
# @return [String]
7953+
attr_accessor :id
7954+
7955+
# The value of the Label Field to match.
7956+
# Corresponds to the JSON property `value`
7957+
# @return [String]
7958+
attr_accessor :value
7959+
7960+
def initialize(**args)
7961+
update!(**args)
7962+
end
7963+
7964+
# Update properties of this object
7965+
def update!(**args)
7966+
@id = args[:id] if args.key?(:id)
7967+
@value = args[:value] if args.key?(:value)
7968+
end
7969+
end
7970+
7971+
# The field values of the Google Drive label
7972+
class GooglePrivacyDlpV2LabelFieldMetadata
7973+
include Google::Apis::Core::Hashable
7974+
7975+
# The identifier of the Label Field.
7976+
# Corresponds to the JSON property `id`
7977+
# @return [String]
7978+
attr_accessor :id
7979+
7980+
# Set of primitive values supported by the system. Note that for the purposes of
7981+
# inspection or transformation, the number of bytes considered to comprise a '
7982+
# Value' is based on its representation as a UTF-8 encoded string. For example,
7983+
# if 'integer_value' is set to 123456789, the number of bytes would be counted
7984+
# as 9, even though an int64 only holds up to 8 bytes of data.
7985+
# Corresponds to the JSON property `value`
7986+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Value]
7987+
attr_accessor :value
7988+
7989+
def initialize(**args)
7990+
update!(**args)
7991+
end
7992+
7993+
# Update properties of this object
7994+
def update!(**args)
7995+
@id = args[:id] if args.key?(:id)
7996+
@value = args[:value] if args.key?(:value)
7997+
end
7998+
end
7999+
78328000
# Configuration for a custom dictionary created from a data source of any size
78338001
# up to the maximum size defined in the [limits](https://cloud.google.com/
78348002
# sensitive-data-protection/limits) page. The artifacts of dictionary creation
@@ -10509,6 +10677,44 @@ def update!(**args)
1050910677
end
1051010678
end
1051110679

10680+
# Sensitivity labels published by Microsoft.
10681+
class GooglePrivacyDlpV2SensitivityLabel
10682+
include Google::Apis::Core::Hashable
10683+
10684+
# The GUID of the sensitivity label.
10685+
# Corresponds to the JSON property `guid`
10686+
# @return [String]
10687+
attr_accessor :guid
10688+
10689+
def initialize(**args)
10690+
update!(**args)
10691+
end
10692+
10693+
# Update properties of this object
10694+
def update!(**args)
10695+
@guid = args[:guid] if args.key?(:guid)
10696+
end
10697+
end
10698+
10699+
# Sensitivity labels published by Microsoft.
10700+
class GooglePrivacyDlpV2SensitivityLabelMetadata
10701+
include Google::Apis::Core::Hashable
10702+
10703+
# Required. The GUID of the sensitivity label.
10704+
# Corresponds to the JSON property `guid`
10705+
# @return [String]
10706+
attr_accessor :guid
10707+
10708+
def initialize(**args)
10709+
update!(**args)
10710+
end
10711+
10712+
# Update properties of this object
10713+
def update!(**args)
10714+
@guid = args[:guid] if args.key?(:guid)
10715+
end
10716+
end
10717+
1051210718
# Score is calculated from of all elements in the data profile. A higher level
1051310719
# means the data is more sensitive.
1051410720
class GooglePrivacyDlpV2SensitivityScore
@@ -10642,7 +10848,7 @@ class GooglePrivacyDlpV2StoredInfoType
1064210848
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion]
1064310849
attr_accessor :current_version
1064410850

10645-
# Resource name.
10851+
# Output only. Resource name.
1064610852
# Corresponds to the JSON property `name`
1064710853
# @return [String]
1064810854
attr_accessor :name
@@ -10762,28 +10968,28 @@ class GooglePrivacyDlpV2StoredInfoTypeVersion
1076210968
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig]
1076310969
attr_accessor :config
1076410970

10765-
# Create timestamp of the version. Read-only, determined by the system when the
10766-
# version is created.
10971+
# Output only. Create timestamp of the version. Read-only, determined by the
10972+
# system when the version is created.
1076710973
# Corresponds to the JSON property `createTime`
1076810974
# @return [String]
1076910975
attr_accessor :create_time
1077010976

10771-
# Errors that occurred when creating this storedInfoType version, or anomalies
10772-
# detected in the storedInfoType data that render it unusable. Only the five
10773-
# most recent errors will be displayed, with the most recent error appearing
10774-
# first. For example, some of the data for stored custom dictionaries is put in
10775-
# the user's Cloud Storage bucket, and if this data is modified or deleted by
10776-
# the user or another system, the dictionary becomes invalid. If any errors
10777-
# occur, fix the problem indicated by the error message and use the
10977+
# Output only. Errors that occurred when creating this storedInfoType version,
10978+
# or anomalies detected in the storedInfoType data that render it unusable. Only
10979+
# the five most recent errors will be displayed, with the most recent error
10980+
# appearing first. For example, some of the data for stored custom dictionaries
10981+
# is put in the user's Cloud Storage bucket, and if this data is modified or
10982+
# deleted by the user or another system, the dictionary becomes invalid. If any
10983+
# errors occur, fix the problem indicated by the error message and use the
1077810984
# UpdateStoredInfoType API method to create another version of the
1077910985
# storedInfoType to continue using it, reusing the same `config` if it was not
1078010986
# the source of the error.
1078110987
# Corresponds to the JSON property `errors`
1078210988
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Error>]
1078310989
attr_accessor :errors
1078410990

10785-
# Stored info type version state. Read-only, updated by the system during
10786-
# dictionary creation.
10991+
# Output only. Stored info type version state. Read-only, updated by the system
10992+
# during dictionary creation.
1078710993
# Corresponds to the JSON property `state`
1078810994
# @return [String]
1078910995
attr_accessor :state

0 commit comments

Comments
 (0)