From 15f1492e0fd36eca96ed65dce463e0694218a614 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 12 Jan 2025 02:44:21 -0800 Subject: [PATCH] feat: Automated regeneration of dialogflow v2 client (#21379) Auto-created at 2025-01-12 10:39:47 +0000 using the toys pull request generator. --- api_names_out.yaml | 15 +++ .../google-apis-dialogflow_v2/CHANGELOG.md | 5 + .../lib/google/apis/dialogflow_v2/classes.rb | 103 ++++++++++++++++++ .../google/apis/dialogflow_v2/gem_version.rb | 6 +- .../apis/dialogflow_v2/representations.rb | 49 +++++++++ 5 files changed, 175 insertions(+), 3 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 9f7f72e54f7..fcf2f757675 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -174624,6 +174624,7 @@ "/dialogflow:v2/GoogleCloudDialogflowV2Conversation/name": name "/dialogflow:v2/GoogleCloudDialogflowV2Conversation/phoneNumber": phone_number "/dialogflow:v2/GoogleCloudDialogflowV2Conversation/startTime": start_time +"/dialogflow:v2/GoogleCloudDialogflowV2Conversation/telephonyConnectionInfo": telephony_connection_info "/dialogflow:v2/GoogleCloudDialogflowV2ConversationContext": google_cloud_dialogflow_v2_conversation_context "/dialogflow:v2/GoogleCloudDialogflowV2ConversationContext/messageEntries": message_entries "/dialogflow:v2/GoogleCloudDialogflowV2ConversationContext/messageEntries/message_entry": message_entry @@ -174665,6 +174666,7 @@ "/dialogflow:v2/GoogleCloudDialogflowV2ConversationModelEvaluation/rawHumanEvalTemplateCsv": raw_human_eval_template_csv "/dialogflow:v2/GoogleCloudDialogflowV2ConversationModelEvaluation/smartReplyMetrics": smart_reply_metrics "/dialogflow:v2/GoogleCloudDialogflowV2ConversationPhoneNumber": google_cloud_dialogflow_v2_conversation_phone_number +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationPhoneNumber/countryCode": country_code "/dialogflow:v2/GoogleCloudDialogflowV2ConversationPhoneNumber/phoneNumber": phone_number "/dialogflow:v2/GoogleCloudDialogflowV2ConversationProfile": google_cloud_dialogflow_v2_conversation_profile "/dialogflow:v2/GoogleCloudDialogflowV2ConversationProfile/automatedAgentConfig": automated_agent_config @@ -174683,6 +174685,19 @@ "/dialogflow:v2/GoogleCloudDialogflowV2ConversationProfile/timeZone": time_zone "/dialogflow:v2/GoogleCloudDialogflowV2ConversationProfile/ttsConfig": tts_config "/dialogflow:v2/GoogleCloudDialogflowV2ConversationProfile/updateTime": update_time +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo": google_cloud_dialogflow_v2_conversation_telephony_connection_info +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo/dialedNumber": dialed_number +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo/extraMimeContents": extra_mime_contents +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo/extraMimeContents/extra_mime_content": extra_mime_content +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo/sdp": sdp +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo/sipHeaders": sip_headers +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo/sipHeaders/sip_header": sip_header +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent": google_cloud_dialogflow_v2_conversation_telephony_connection_info_mime_content +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent/content": content +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent/mimeType": mime_type +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader": google_cloud_dialogflow_v2_conversation_telephony_connection_info_sip_header +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader/value": value "/dialogflow:v2/GoogleCloudDialogflowV2CreateCallMatcherRequest": google_cloud_dialogflow_v2_create_call_matcher_request "/dialogflow:v2/GoogleCloudDialogflowV2CreateCallMatcherRequest/callMatcher": call_matcher "/dialogflow:v2/GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata": google_cloud_dialogflow_v2_create_conversation_dataset_operation_metadata diff --git a/generated/google-apis-dialogflow_v2/CHANGELOG.md b/generated/google-apis-dialogflow_v2/CHANGELOG.md index 1d73df9e280..7cfe4cc4c78 100644 --- a/generated/google-apis-dialogflow_v2/CHANGELOG.md +++ b/generated/google-apis-dialogflow_v2/CHANGELOG.md @@ -1,5 +1,10 @@ # Release history for google-apis-dialogflow_v2 +### v0.97.0 (2025-01-12) + +* Regenerated from discovery document revision 20250103 +* Regenerated using generator version 0.16.0 + ### v0.96.0 (2024-12-22) * Regenerated from discovery document revision 20241216 diff --git a/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/classes.rb b/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/classes.rb index dcba4f123ed..23146ea0165 100644 --- a/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/classes.rb +++ b/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/classes.rb @@ -8773,6 +8773,12 @@ class GoogleCloudDialogflowV2Conversation # @return [String] attr_accessor :start_time + # The information about phone calls connected via phone gateway to the + # conversation. + # Corresponds to the JSON property `telephonyConnectionInfo` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo] + attr_accessor :telephony_connection_info + def initialize(**args) update!(**args) end @@ -8786,6 +8792,7 @@ def update!(**args) @name = args[:name] if args.key?(:name) @phone_number = args[:phone_number] if args.key?(:phone_number) @start_time = args[:start_time] if args.key?(:start_time) + @telephony_connection_info = args[:telephony_connection_info] if args.key?(:telephony_connection_info) end end @@ -9124,6 +9131,11 @@ def update!(**args) class GoogleCloudDialogflowV2ConversationPhoneNumber include Google::Apis::Core::Hashable + # Output only. Desired country code for the phone number. + # Corresponds to the JSON property `countryCode` + # @return [Fixnum] + attr_accessor :country_code + # Output only. The phone number to connect to this conversation. # Corresponds to the JSON property `phoneNumber` # @return [String] @@ -9135,6 +9147,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @country_code = args[:country_code] if args.key?(:country_code) @phone_number = args[:phone_number] if args.key?(:phone_number) end end @@ -9257,6 +9270,96 @@ def update!(**args) end end + # The information about phone calls connected via phone gateway to the + # conversation. + class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo + include Google::Apis::Core::Hashable + + # Output only. The number dialed to connect this call in E.164 format. + # Corresponds to the JSON property `dialedNumber` + # @return [String] + attr_accessor :dialed_number + + # Output only. The mime content from the initial SIP INVITE. + # Corresponds to the JSON property `extraMimeContents` + # @return [Array] + attr_accessor :extra_mime_contents + + # Optional. SDP of the call. It's initially the SDP answer to the endpoint, but + # maybe later updated for the purpose of making the link active, etc. + # Corresponds to the JSON property `sdp` + # @return [String] + attr_accessor :sdp + + # Output only. The SIP headers from the initial SIP INVITE. + # Corresponds to the JSON property `sipHeaders` + # @return [Array] + attr_accessor :sip_headers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dialed_number = args[:dialed_number] if args.key?(:dialed_number) + @extra_mime_contents = args[:extra_mime_contents] if args.key?(:extra_mime_contents) + @sdp = args[:sdp] if args.key?(:sdp) + @sip_headers = args[:sip_headers] if args.key?(:sip_headers) + end + end + + # The mime content from the initial SIP INVITE. + class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent + include Google::Apis::Core::Hashable + + # Optional. The content payload. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # Optional. The mime type of the content. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + + # The SIP headers from the initial SIP INVITE. + class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader + include Google::Apis::Core::Hashable + + # Optional. The name of the header. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The value of the header. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + # Metadata for CreateConversationDataset. class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata include Google::Apis::Core::Hashable diff --git a/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/gem_version.rb b/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/gem_version.rb index cb2a7d9b1e7..062a54e1310 100644 --- a/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/gem_version.rb +++ b/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DialogflowV2 # Version of the google-apis-dialogflow_v2 gem - GEM_VERSION = "0.96.0" + GEM_VERSION = "0.97.0" # Version of the code generator used to generate this client - GENERATOR_VERSION = "0.15.1" + GENERATOR_VERSION = "0.16.0" # Revision of the discovery document this client was generated from - REVISION = "20241216" + REVISION = "20250103" end end end diff --git a/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/representations.rb b/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/representations.rb index f3888b4284d..e8835494230 100644 --- a/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/representations.rb +++ b/generated/google-apis-dialogflow_v2/lib/google/apis/dialogflow_v2/representations.rb @@ -1468,6 +1468,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5727,6 +5745,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :phone_number, as: 'phoneNumber', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationPhoneNumber, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationPhoneNumber::Representation property :start_time, as: 'startTime' + property :telephony_connection_info, as: 'telephonyConnectionInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo::Representation + end end @@ -5812,6 +5832,7 @@ class Representation < Google::Apis::Core::JsonRepresentation class GoogleCloudDialogflowV2ConversationPhoneNumber # @private class Representation < Google::Apis::Core::JsonRepresentation + property :country_code, as: 'countryCode' property :phone_number, as: 'phoneNumber' end end @@ -5847,6 +5868,34 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dialed_number, as: 'dialedNumber' + collection :extra_mime_contents, as: 'extraMimeContents', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent::Representation + + property :sdp, as: 'sdp' + collection :sip_headers, as: 'sipHeaders', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader::Representation + + end + end + + class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + end + end + class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation