diff --git a/api_names_out.yaml b/api_names_out.yaml index e4d9b7473a3..c0a88f380c1 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -88738,6 +88738,7 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookSource": webhook_source "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ReloadDocumentRequest": google_cloud_dialogflow_v2beta1_reload_document_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ReloadDocumentRequest/gcsSource": gcs_source +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ReloadDocumentRequest/importGcsCustomMetadata": import_gcs_custom_metadata "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1RestoreAgentRequest": google_cloud_dialogflow_v2beta1_restore_agent_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1RestoreAgentRequest/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1RestoreAgentRequest/agentUri": agent_uri @@ -89243,6 +89244,7 @@ "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.delete/force": force "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.delete/name": name "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.create": create_project_agent_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.create/importGcsCustomMetadata": import_gcs_custom_metadata "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.create/parent": parent "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.delete": delete_project_agent_knowledge_basis_document "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.delete/name": name @@ -89440,6 +89442,7 @@ "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.delete/force": force "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.delete/name": name "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.create": create_project_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.create/importGcsCustomMetadata": import_gcs_custom_metadata "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.create/parent": parent "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.delete": delete_project_knowledge_basis_document "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.delete/name": name diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index f3fd7d8aa90..e7c41409133 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Apis # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20201109' + REVISION = '20201116' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 23a1c0b971c..0f0b6cbb272 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -6882,7 +6882,7 @@ class GoogleCloudDialogflowV2beta1QueryParameters attr_accessor :time_zone # This field can be used to pass HTTP headers for a webhook call. These headers - # will be sent to webhook alone with the headers that have been configured + # will be sent to webhook along with the headers that have been configured # through Dialogflow web console. The headers defined within this field will # overwrite the headers configured through Dialogflow console if there is a # conflict. Header names are case-insensitive. Google's specified headers are @@ -7081,6 +7081,13 @@ class GoogleCloudDialogflowV2beta1ReloadDocumentRequest # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsSource] attr_accessor :gcs_source + # Whether to import custom metadata from Google Cloud Storage. Only valid when + # the document source is Google Cloud Storage URI. + # Corresponds to the JSON property `importGcsCustomMetadata` + # @return [Boolean] + attr_accessor :import_gcs_custom_metadata + alias_method :import_gcs_custom_metadata?, :import_gcs_custom_metadata + def initialize(**args) update!(**args) end @@ -7088,6 +7095,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @import_gcs_custom_metadata = args[:import_gcs_custom_metadata] if args.key?(:import_gcs_custom_metadata) end end diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 83f9ddd08fe..6ec35c4bf0b 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -3167,6 +3167,7 @@ class GoogleCloudDialogflowV2beta1ReloadDocumentRequest class Representation < Google::Apis::Core::JsonRepresentation property :gcs_source, as: 'gcsSource', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsSource, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsSource::Representation + property :import_gcs_custom_metadata, as: 'importGcsCustomMetadata' end end diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 2a1b1a8eeaf..9fc80e849d2 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -1819,6 +1819,9 @@ def patch_project_agent_knowledge_basis(name, google_cloud_dialogflow_v2beta1_kn # Required. The knowledge base to create a document for. Format: `projects// # knowledgeBases/`. # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] google_cloud_dialogflow_v2beta1_document_object + # @param [Boolean] import_gcs_custom_metadata + # Whether to import custom metadata from Google Cloud Storage. Only valid when + # the document source is Google Cloud Storage URI. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1836,13 +1839,14 @@ def patch_project_agent_knowledge_basis(name, google_cloud_dialogflow_v2beta1_kn # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_agent_knowledge_basis_document(parent, google_cloud_dialogflow_v2beta1_document_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_agent_knowledge_basis_document(parent, google_cloud_dialogflow_v2beta1_document_object = nil, import_gcs_custom_metadata: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/{+parent}/documents', options) command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document::Representation command.request_object = google_cloud_dialogflow_v2beta1_document_object command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? + command.query['importGcsCustomMetadata'] = import_gcs_custom_metadata unless import_gcs_custom_metadata.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -2736,6 +2740,9 @@ def patch_project_knowledge_basis(name, google_cloud_dialogflow_v2beta1_knowledg # Required. The knowledge base to create a document for. Format: `projects// # knowledgeBases/`. # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] google_cloud_dialogflow_v2beta1_document_object + # @param [Boolean] import_gcs_custom_metadata + # Whether to import custom metadata from Google Cloud Storage. Only valid when + # the document source is Google Cloud Storage URI. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2753,13 +2760,14 @@ def patch_project_knowledge_basis(name, google_cloud_dialogflow_v2beta1_knowledg # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_knowledge_basis_document(parent, google_cloud_dialogflow_v2beta1_document_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_knowledge_basis_document(parent, google_cloud_dialogflow_v2beta1_document_object = nil, import_gcs_custom_metadata: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/{+parent}/documents', options) command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document::Representation command.request_object = google_cloud_dialogflow_v2beta1_document_object command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? + command.query['importGcsCustomMetadata'] = import_gcs_custom_metadata unless import_gcs_custom_metadata.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/dialogflow_v2beta1/synth.metadata b/generated/google/apis/dialogflow_v2beta1/synth.metadata index 7f5122644f5..35ea7f72107 100644 --- a/generated/google/apis/dialogflow_v2beta1/synth.metadata +++ b/generated/google/apis/dialogflow_v2beta1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "e317a0f5e6109142be13031fa9e9baee4d2f897e" + "sha": "fda99a7f81f55342ce6317eeb1430efb3a3049d0" } } ]