From 7963f1fb1dec046cfc6095a9787dffd05b92802c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 6 Sep 2026 11:12:31 +0000 Subject: [PATCH] feat: Automated regeneration of dlp v2 client --- api_names_out.yaml | 4 ++ generated/google-apis-dlp_v2/CHANGELOG.md | 4 ++ generated/google-apis-dlp_v2/Gemfile.lock | 4 +- .../lib/google/apis/dlp_v2/classes.rb | 45 ++++++++++++------- .../lib/google/apis/dlp_v2/gem_version.rb | 4 +- .../lib/google/apis/dlp_v2/representations.rb | 18 ++++++-- 6 files changed, 55 insertions(+), 24 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 5f7c9aaad40..528fdfcba70 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -265282,6 +265282,8 @@ "/dlp:v2/GooglePrivacyDlpV2ConversationLocation/messageIndex": message_index "/dlp:v2/GooglePrivacyDlpV2ConversationMessage": google_privacy_dlp_v2_conversation_message "/dlp:v2/GooglePrivacyDlpV2ConversationMessage/content": content +"/dlp:v2/GooglePrivacyDlpV2ConversationMessage/messageParts": message_parts +"/dlp:v2/GooglePrivacyDlpV2ConversationMessage/messageParts/message_part": message_part "/dlp:v2/GooglePrivacyDlpV2ConversationMessage/messageType": message_type "/dlp:v2/GooglePrivacyDlpV2ConversationMessage/participantId": participant_id "/dlp:v2/GooglePrivacyDlpV2CreateConnectionRequest": google_privacy_dlp_v2_create_connection_request @@ -266084,6 +266086,8 @@ "/dlp:v2/GooglePrivacyDlpV2LoggingConfig": google_privacy_dlp_v2_logging_config "/dlp:v2/GooglePrivacyDlpV2LoggingConfig/logToBigQuery": log_to_big_query "/dlp:v2/GooglePrivacyDlpV2Manual": google_privacy_dlp_v2_manual +"/dlp:v2/GooglePrivacyDlpV2MessagePart": google_privacy_dlp_v2_message_part +"/dlp:v2/GooglePrivacyDlpV2MessagePart/text": text "/dlp:v2/GooglePrivacyDlpV2MetadataKeyValueExpression": google_privacy_dlp_v2_metadata_key_value_expression "/dlp:v2/GooglePrivacyDlpV2MetadataKeyValueExpression/keyRegex": key_regex "/dlp:v2/GooglePrivacyDlpV2MetadataKeyValueExpression/valueRegex": value_regex diff --git a/generated/google-apis-dlp_v2/CHANGELOG.md b/generated/google-apis-dlp_v2/CHANGELOG.md index 21827283749..a76edac1d15 100644 --- a/generated/google-apis-dlp_v2/CHANGELOG.md +++ b/generated/google-apis-dlp_v2/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-dlp_v2 +### v0.116.0 (2026-09-06) + +* Regenerated from discovery document revision 20260829 + ### v0.115.0 (2026-08-30) * Regenerated from discovery document revision 20260825 diff --git a/generated/google-apis-dlp_v2/Gemfile.lock b/generated/google-apis-dlp_v2/Gemfile.lock index 13247c68d37..1cdca9af5eb 100644 --- a/generated/google-apis-dlp_v2/Gemfile.lock +++ b/generated/google-apis-dlp_v2/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - google-apis-dlp_v2 (0.115.0) + google-apis-dlp_v2 (0.116.0) google-apis-core (>= 0.15.0, < 2.a) GEM @@ -106,7 +106,7 @@ CHECKSUMS faraday-follow_redirects (0.5.0) sha256=5cde93c894b30943a5d2b93c2fe9284216a6b756f7af406a1e55f211d97d10ad faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588 google-apis-core (1.2.1) sha256=3739030455277e3be90f2d07321ad4d0bf0d6b1ed820b2d092916d6cdef05337 - google-apis-dlp_v2 (0.115.0) + google-apis-dlp_v2 (0.116.0) google-cloud-env (2.3.1) sha256=0faac01eb27be78c2591d64433663b1a114f8f7af55a4f819755426cac9178e7 google-logging-utils (0.2.0) sha256=675462b4ea5affa825a3442694ca2d75d0069455a1d0956127207498fca3df7b googleauth (1.17.1) sha256=0f7e6fc70e204cee1b2d71f1e1de2d3b349d432404197fe68ebf7fa23d0821b9 diff --git a/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/classes.rb b/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/classes.rb index 130c26d318d..aba3205bcd0 100644 --- a/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/classes.rb +++ b/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/classes.rb @@ -2184,14 +2184,6 @@ class GooglePrivacyDlpV2ContentPolicy # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig] attr_accessor :inspect_config - # The inspectTemplate contains a configuration (set of types of sensitive data - # to be detected) to be used anywhere you otherwise would normally specify - # InspectConfig. See https://docs.cloud.google.com/sensitive-data-protection/ - # docs/concepts-templates to learn more. - # Corresponds to the JSON property `inspectTemplate` - # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] - attr_accessor :inspect_template - # Optional. Log the actions taken by the content policy to external systems. # Corresponds to the JSON property `loggingConfigs` # @return [Array] @@ -2231,7 +2223,6 @@ def update!(**args) @failed_to_scan_supported_file_type = args[:failed_to_scan_supported_file_type] if args.key?(:failed_to_scan_supported_file_type) @input_too_large = args[:input_too_large] if args.key?(:input_too_large) @inspect_config = args[:inspect_config] if args.key?(:inspect_config) - @inspect_template = args[:inspect_template] if args.key?(:inspect_template) @logging_configs = args[:logging_configs] if args.key?(:logging_configs) @name = args[:name] if args.key?(:name) @rules = args[:rules] if args.key?(:rules) @@ -2291,11 +2282,18 @@ def update!(**args) class GooglePrivacyDlpV2ConversationMessage include Google::Apis::Core::Hashable - # The contents of this message. + # Deprecated: Use `message_parts` instead. The contents of this message. Only + # one of `content` and `message_parts` can be set. # Corresponds to the JSON property `content` # @return [String] attr_accessor :content + # Optional. The parts of the message. Restricted to being at most a single text + # item. Only one of `content` and `message_parts` can be set. + # Corresponds to the JSON property `messageParts` + # @return [Array] + attr_accessor :message_parts + # The type of message. # Corresponds to the JSON property `messageType` # @return [String] @@ -2316,6 +2314,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @content = args[:content] if args.key?(:content) + @message_parts = args[:message_parts] if args.key?(:message_parts) @message_type = args[:message_type] if args.key?(:message_type) @participant_id = args[:participant_id] if args.key?(:participant_id) end @@ -8566,6 +8565,25 @@ def update!(**args) end end + # A part of a conversation message. + class GooglePrivacyDlpV2MessagePart + include Google::Apis::Core::Hashable + + # String content for text-based messages. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text = args[:text] if args.key?(:text) + end + end + # Configuration for a custom infoType that detects key-value pairs in the # metadata matching the specified regular expressions. class GooglePrivacyDlpV2MetadataKeyValueExpression @@ -9107,12 +9125,6 @@ class GooglePrivacyDlpV2PolicyRule # @return [Array] attr_accessor :conditions - # If set, the verdict will be returned to the user. Deprecated: Use `action` - # instead. - # Corresponds to the JSON property `returnVerdict` - # @return [String] - attr_accessor :return_verdict - def initialize(**args) update!(**args) end @@ -9121,7 +9133,6 @@ def initialize(**args) def update!(**args) @action = args[:action] if args.key?(:action) @conditions = args[:conditions] if args.key?(:conditions) - @return_verdict = args[:return_verdict] if args.key?(:return_verdict) end end diff --git a/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/gem_version.rb b/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/gem_version.rb index 7bfb20f936a..17e9731477f 100644 --- a/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/gem_version.rb +++ b/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DlpV2 # Version of the google-apis-dlp_v2 gem - GEM_VERSION = "0.115.0" + GEM_VERSION = "0.116.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.19.0" # Revision of the discovery document this client was generated from - REVISION = "20260825" + REVISION = "20260829" end end end diff --git a/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/representations.rb b/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/representations.rb index 7793e753b2a..11bfd6167c0 100644 --- a/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/representations.rb +++ b/generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/representations.rb @@ -1486,6 +1486,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2MessagePart + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2MetadataKeyValueExpression class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2940,8 +2946,6 @@ class Representation < Google::Apis::Core::JsonRepresentation property :inspect_config, as: 'inspectConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig::Representation - property :inspect_template, as: 'inspectTemplate', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation - collection :logging_configs, as: 'loggingConfigs', class: Google::Apis::DlpV2::GooglePrivacyDlpV2LoggingConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2LoggingConfig::Representation property :name, as: 'name' @@ -2974,6 +2978,8 @@ class GooglePrivacyDlpV2ConversationMessage # @private class Representation < Google::Apis::Core::JsonRepresentation property :content, as: 'content' + collection :message_parts, as: 'messageParts', class: Google::Apis::DlpV2::GooglePrivacyDlpV2MessagePart, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2MessagePart::Representation + property :message_type, as: 'messageType' property :participant_id, as: 'participantId' end @@ -4867,6 +4873,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GooglePrivacyDlpV2MessagePart + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text, as: 'text' + end + end + class GooglePrivacyDlpV2MetadataKeyValueExpression # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5051,7 +5064,6 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :conditions, as: 'conditions', class: Google::Apis::DlpV2::GooglePrivacyDlpV2PolicyCondition, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2PolicyCondition::Representation - property :return_verdict, as: 'returnVerdict' end end