Skip to content

Commit 59b5b3e

Browse files
feat: Automated regeneration of dlp v2 client (googleapis#22113)
Auto-created at 2025-03-16 10:24:32 +0000 using the toys pull request generator.
1 parent 3a2159a commit 59b5b3e

File tree

6 files changed

+195
-2
lines changed

6 files changed

+195
-2
lines changed

api_names_out.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212371,6 +212371,8 @@
212371212371
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/sampleFindingsTable": sample_findings_table
212372212372
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/sensitivityScore": sensitivity_score
212373212373
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/state": state
212374+
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/tags": tags
212375+
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/tags/tag": tag
212374212376
"/dlp:v2/GooglePrivacyDlpV2FileStoreInfoTypeSummary": google_privacy_dlp_v2_file_store_info_type_summary
212375212377
"/dlp:v2/GooglePrivacyDlpV2FileStoreInfoTypeSummary/infoType": info_type
212376212378
"/dlp:v2/GooglePrivacyDlpV2FileStoreRegex": google_privacy_dlp_v2_file_store_regex
@@ -212468,6 +212470,8 @@
212468212470
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/example": example
212469212471
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/name": name
212470212472
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/sensitivityScore": sensitivity_score
212473+
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/specificInfoTypes": specific_info_types
212474+
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/specificInfoTypes/specific_info_type": specific_info_type
212471212475
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/supportedBy": supported_by
212472212476
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/supportedBy/supported_by": supported_by
212473212477
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/versions": versions
@@ -212986,6 +212990,8 @@
212986212990
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/state": state
212987212991
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/tableId": table_id
212988212992
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/tableSizeBytes": table_size_bytes
212993+
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/tags": tags
212994+
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/tags/tag": tag
212989212995
"/dlp:v2/GooglePrivacyDlpV2TableLocation": google_privacy_dlp_v2_table_location
212990212996
"/dlp:v2/GooglePrivacyDlpV2TableLocation/rowIndex": row_index
212991212997
"/dlp:v2/GooglePrivacyDlpV2TableOptions": google_privacy_dlp_v2_table_options
@@ -212994,6 +213000,10 @@
212994213000
"/dlp:v2/GooglePrivacyDlpV2TableReference": google_privacy_dlp_v2_table_reference
212995213001
"/dlp:v2/GooglePrivacyDlpV2TableReference/datasetId": dataset_id
212996213002
"/dlp:v2/GooglePrivacyDlpV2TableReference/tableId": table_id
213003+
"/dlp:v2/GooglePrivacyDlpV2Tag": google_privacy_dlp_v2_tag
213004+
"/dlp:v2/GooglePrivacyDlpV2Tag/key": key
213005+
"/dlp:v2/GooglePrivacyDlpV2Tag/namespacedTagValue": namespaced_tag_value
213006+
"/dlp:v2/GooglePrivacyDlpV2Tag/value": value
212997213007
"/dlp:v2/GooglePrivacyDlpV2TagCondition": google_privacy_dlp_v2_tag_condition
212998213008
"/dlp:v2/GooglePrivacyDlpV2TagCondition/sensitivityScore": sensitivity_score
212999213009
"/dlp:v2/GooglePrivacyDlpV2TagCondition/tag": tag
@@ -213439,6 +213449,11 @@
213439213449
"/dlp:v2/dlp.organizations.locations.fileStoreDataProfiles.list/pageSize": page_size
213440213450
"/dlp:v2/dlp.organizations.locations.fileStoreDataProfiles.list/pageToken": page_token
213441213451
"/dlp:v2/dlp.organizations.locations.fileStoreDataProfiles.list/parent": parent
213452+
"/dlp:v2/dlp.organizations.locations.infoTypes.list": list_organization_location_info_types
213453+
"/dlp:v2/dlp.organizations.locations.infoTypes.list/filter": filter
213454+
"/dlp:v2/dlp.organizations.locations.infoTypes.list/languageCode": language_code
213455+
"/dlp:v2/dlp.organizations.locations.infoTypes.list/locationId": location_id
213456+
"/dlp:v2/dlp.organizations.locations.infoTypes.list/parent": parent
213442213457
"/dlp:v2/dlp.organizations.locations.inspectTemplates.create": create_organization_location_inspect_template
213443213458
"/dlp:v2/dlp.organizations.locations.inspectTemplates.create/parent": parent
213444213459
"/dlp:v2/dlp.organizations.locations.inspectTemplates.delete": delete_organization_location_inspect_template
@@ -213676,6 +213691,11 @@
213676213691
"/dlp:v2/dlp.projects.locations.fileStoreDataProfiles.list/parent": parent
213677213692
"/dlp:v2/dlp.projects.locations.image.redact": redact_project_location_image
213678213693
"/dlp:v2/dlp.projects.locations.image.redact/parent": parent
213694+
"/dlp:v2/dlp.projects.locations.infoTypes.list": list_project_location_info_types
213695+
"/dlp:v2/dlp.projects.locations.infoTypes.list/filter": filter
213696+
"/dlp:v2/dlp.projects.locations.infoTypes.list/languageCode": language_code
213697+
"/dlp:v2/dlp.projects.locations.infoTypes.list/locationId": location_id
213698+
"/dlp:v2/dlp.projects.locations.infoTypes.list/parent": parent
213679213699
"/dlp:v2/dlp.projects.locations.inspectTemplates.create": create_project_location_inspect_template
213680213700
"/dlp:v2/dlp.projects.locations.inspectTemplates.create/parent": parent
213681213701
"/dlp:v2/dlp.projects.locations.inspectTemplates.delete": delete_project_location_inspect_template

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.85.0 (2025-03-16)
4+
5+
* Regenerated from discovery document revision 20250309
6+
37
### v0.84.0 (2025-03-09)
48

59
* Regenerated from discovery document revision 20250305

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

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5134,6 +5134,12 @@ class GooglePrivacyDlpV2FileStoreDataProfile
51345134
# @return [String]
51355135
attr_accessor :state
51365136

5137+
# The tags attached to the resource, including any tags attached during
5138+
# profiling.
5139+
# Corresponds to the JSON property `tags`
5140+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Tag>]
5141+
attr_accessor :tags
5142+
51375143
def initialize(**args)
51385144
update!(**args)
51395145
end
@@ -5165,6 +5171,7 @@ def update!(**args)
51655171
@sample_findings_table = args[:sample_findings_table] if args.key?(:sample_findings_table)
51665172
@sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
51675173
@state = args[:state] if args.key?(:state)
5174+
@tags = args[:tags] if args.key?(:tags)
51685175
end
51695176
end
51705177

@@ -5944,6 +5951,15 @@ class GooglePrivacyDlpV2InfoTypeDescription
59445951
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore]
59455952
attr_accessor :sensitivity_score
59465953

5954+
# If this field is set, this infoType is a general infoType and these specific
5955+
# infoTypes are contained within it. General infoTypes are infoTypes that
5956+
# encompass multiple specific infoTypes. For example, the "GEOGRAPHIC_DATA"
5957+
# general infoType would have set for this field "LOCATION", "
5958+
# LOCATION_COORDINATES", and "STREET_ADDRESS".
5959+
# Corresponds to the JSON property `specificInfoTypes`
5960+
# @return [Array<String>]
5961+
attr_accessor :specific_info_types
5962+
59475963
# Which parts of the API supports this InfoType.
59485964
# Corresponds to the JSON property `supportedBy`
59495965
# @return [Array<String>]
@@ -5966,6 +5982,7 @@ def update!(**args)
59665982
@example = args[:example] if args.key?(:example)
59675983
@name = args[:name] if args.key?(:name)
59685984
@sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
5985+
@specific_info_types = args[:specific_info_types] if args.key?(:specific_info_types)
59695986
@supported_by = args[:supported_by] if args.key?(:supported_by)
59705987
@versions = args[:versions] if args.key?(:versions)
59715988
end
@@ -9977,6 +9994,13 @@ class GooglePrivacyDlpV2TableDataProfile
99779994
# @return [Fixnum]
99789995
attr_accessor :table_size_bytes
99799996

9997+
# The tags attached to the table, including any tags attached during profiling.
9998+
# Because tags are attached to Cloud SQL instances rather than Cloud SQL tables,
9999+
# this field is empty for Cloud SQL table profiles.
10000+
# Corresponds to the JSON property `tags`
10001+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Tag>]
10002+
attr_accessor :tags
10003+
998010004
def initialize(**args)
998110005
update!(**args)
998210006
end
@@ -10011,6 +10035,7 @@ def update!(**args)
1001110035
@state = args[:state] if args.key?(:state)
1001210036
@table_id = args[:table_id] if args.key?(:table_id)
1001310037
@table_size_bytes = args[:table_size_bytes] if args.key?(:table_size_bytes)
10038+
@tags = args[:tags] if args.key?(:tags)
1001410039
end
1001510040
end
1001610041

@@ -10085,6 +10110,42 @@ def update!(**args)
1008510110
end
1008610111
end
1008710112

10113+
# A tag associated with a resource.
10114+
class GooglePrivacyDlpV2Tag
10115+
include Google::Apis::Core::Hashable
10116+
10117+
# The key of a tag key-value pair. For Google Cloud resources, this is the
10118+
# resource name of the key, for example, "tagKeys/123456".
10119+
# Corresponds to the JSON property `key`
10120+
# @return [String]
10121+
attr_accessor :key
10122+
10123+
# The namespaced name for the tag value to attach to Google Cloud resources.
10124+
# Must be in the format ``parent_id`/`tag_key_short_name`/`short_name``, for
10125+
# example, "123456/environment/prod". This is only set for Google Cloud
10126+
# resources.
10127+
# Corresponds to the JSON property `namespacedTagValue`
10128+
# @return [String]
10129+
attr_accessor :namespaced_tag_value
10130+
10131+
# The value of a tag key-value pair. For Google Cloud resources, this is the
10132+
# resource name of the value, for example, "tagValues/123456".
10133+
# Corresponds to the JSON property `value`
10134+
# @return [String]
10135+
attr_accessor :value
10136+
10137+
def initialize(**args)
10138+
update!(**args)
10139+
end
10140+
10141+
# Update properties of this object
10142+
def update!(**args)
10143+
@key = args[:key] if args.key?(:key)
10144+
@namespaced_tag_value = args[:namespaced_tag_value] if args.key?(:namespaced_tag_value)
10145+
@value = args[:value] if args.key?(:value)
10146+
end
10147+
end
10148+
1008810149
# The tag to attach to profiles matching the condition. At most one `
1008910150
# TagCondition` can be specified per sensitivity level.
1009010151
class GooglePrivacyDlpV2TagCondition

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DlpV2
1818
# Version of the google-apis-dlp_v2 gem
19-
GEM_VERSION = "0.84.0"
19+
GEM_VERSION = "0.85.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250305"
25+
REVISION = "20250309"
2626
end
2727
end
2828
end

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
17801780
include Google::Apis::Core::JsonObjectSupport
17811781
end
17821782

1783+
class GooglePrivacyDlpV2Tag
1784+
class Representation < Google::Apis::Core::JsonRepresentation; end
1785+
1786+
include Google::Apis::Core::JsonObjectSupport
1787+
end
1788+
17831789
class GooglePrivacyDlpV2TagCondition
17841790
class Representation < Google::Apis::Core::JsonRepresentation; end
17851791

@@ -3500,6 +3506,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
35003506
property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
35013507

35023508
property :state, as: 'state'
3509+
collection :tags, as: 'tags', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Tag, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Tag::Representation
3510+
35033511
end
35043512
end
35053513

@@ -3740,6 +3748,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
37403748
property :name, as: 'name'
37413749
property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
37423750

3751+
collection :specific_info_types, as: 'specificInfoTypes'
37433752
collection :supported_by, as: 'supportedBy'
37443753
collection :versions, as: 'versions', class: Google::Apis::DlpV2::GooglePrivacyDlpV2VersionDescription, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2VersionDescription::Representation
37453754

@@ -5012,6 +5021,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
50125021
property :state, as: 'state'
50135022
property :table_id, as: 'tableId'
50145023
property :table_size_bytes, :numeric_string => true, as: 'tableSizeBytes'
5024+
collection :tags, as: 'tags', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Tag, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Tag::Representation
5025+
50155026
end
50165027
end
50175028

@@ -5038,6 +5049,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
50385049
end
50395050
end
50405051

5052+
class GooglePrivacyDlpV2Tag
5053+
# @private
5054+
class Representation < Google::Apis::Core::JsonRepresentation
5055+
property :key, as: 'key'
5056+
property :namespaced_tag_value, as: 'namespacedTagValue'
5057+
property :value, as: 'value'
5058+
end
5059+
end
5060+
50415061
class GooglePrivacyDlpV2TagCondition
50425062
# @private
50435063
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,50 @@ def list_organization_location_file_store_data_profiles(parent, filter: nil, ord
14821482
execute_or_queue_command(command, &block)
14831483
end
14841484

1485+
# Returns a list of the sensitive information types that the DLP API supports.
1486+
# See https://cloud.google.com/sensitive-data-protection/docs/infotypes-
1487+
# reference to learn more.
1488+
# @param [String] parent
1489+
# The parent resource name. The format of this value is as follows: `locations/`
1490+
# location_id``
1491+
# @param [String] filter
1492+
# filter to only return infoTypes supported by certain parts of the API.
1493+
# Defaults to supported_by=INSPECT.
1494+
# @param [String] language_code
1495+
# BCP-47 language code for localized infoType friendly names. If omitted, or if
1496+
# localized strings are not available, en-US strings will be returned.
1497+
# @param [String] location_id
1498+
# Deprecated. This field has no effect.
1499+
# @param [String] fields
1500+
# Selector specifying which fields to include in a partial response.
1501+
# @param [String] quota_user
1502+
# Available to use for quota purposes for server-side applications. Can be any
1503+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1504+
# @param [Google::Apis::RequestOptions] options
1505+
# Request-specific options
1506+
#
1507+
# @yield [result, err] Result & error if block supplied
1508+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse] parsed result object
1509+
# @yieldparam err [StandardError] error object if request failed
1510+
#
1511+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse]
1512+
#
1513+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1514+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1515+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1516+
def list_organization_location_info_types(parent, filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1517+
command = make_simple_command(:get, 'v2/{+parent}/infoTypes', options)
1518+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
1519+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
1520+
command.params['parent'] = parent unless parent.nil?
1521+
command.query['filter'] = filter unless filter.nil?
1522+
command.query['languageCode'] = language_code unless language_code.nil?
1523+
command.query['locationId'] = location_id unless location_id.nil?
1524+
command.query['fields'] = fields unless fields.nil?
1525+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1526+
execute_or_queue_command(command, &block)
1527+
end
1528+
14851529
# Creates an InspectTemplate for reusing frequently used configuration for
14861530
# inspecting content, images, and storage. See https://cloud.google.com/
14871531
# sensitive-data-protection/docs/creating-templates to learn more.
@@ -4949,6 +4993,50 @@ def redact_project_location_image(parent, google_privacy_dlp_v2_redact_image_req
49494993
execute_or_queue_command(command, &block)
49504994
end
49514995

4996+
# Returns a list of the sensitive information types that the DLP API supports.
4997+
# See https://cloud.google.com/sensitive-data-protection/docs/infotypes-
4998+
# reference to learn more.
4999+
# @param [String] parent
5000+
# The parent resource name. The format of this value is as follows: `locations/`
5001+
# location_id``
5002+
# @param [String] filter
5003+
# filter to only return infoTypes supported by certain parts of the API.
5004+
# Defaults to supported_by=INSPECT.
5005+
# @param [String] language_code
5006+
# BCP-47 language code for localized infoType friendly names. If omitted, or if
5007+
# localized strings are not available, en-US strings will be returned.
5008+
# @param [String] location_id
5009+
# Deprecated. This field has no effect.
5010+
# @param [String] fields
5011+
# Selector specifying which fields to include in a partial response.
5012+
# @param [String] quota_user
5013+
# Available to use for quota purposes for server-side applications. Can be any
5014+
# arbitrary string assigned to a user, but should not exceed 40 characters.
5015+
# @param [Google::Apis::RequestOptions] options
5016+
# Request-specific options
5017+
#
5018+
# @yield [result, err] Result & error if block supplied
5019+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse] parsed result object
5020+
# @yieldparam err [StandardError] error object if request failed
5021+
#
5022+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse]
5023+
#
5024+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5025+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5026+
# @raise [Google::Apis::AuthorizationError] Authorization is required
5027+
def list_project_location_info_types(parent, filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
5028+
command = make_simple_command(:get, 'v2/{+parent}/infoTypes', options)
5029+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
5030+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
5031+
command.params['parent'] = parent unless parent.nil?
5032+
command.query['filter'] = filter unless filter.nil?
5033+
command.query['languageCode'] = language_code unless language_code.nil?
5034+
command.query['locationId'] = location_id unless location_id.nil?
5035+
command.query['fields'] = fields unless fields.nil?
5036+
command.query['quotaUser'] = quota_user unless quota_user.nil?
5037+
execute_or_queue_command(command, &block)
5038+
end
5039+
49525040
# Creates an InspectTemplate for reusing frequently used configuration for
49535041
# inspecting content, images, and storage. See https://cloud.google.com/
49545042
# sensitive-data-protection/docs/creating-templates to learn more.

0 commit comments

Comments
 (0)