diff --git a/generated/google/apis/accesscontextmanager_v1.rb b/generated/google/apis/accesscontextmanager_v1.rb index eb9c8ce54..9f58fb475 100644 --- a/generated/google/apis/accesscontextmanager_v1.rb +++ b/generated/google/apis/accesscontextmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-context-manager/docs/reference/rest/ module AccesscontextmanagerV1 VERSION = 'V1' - REVISION = '20200120' + REVISION = '20200210' # 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/accesscontextmanager_v1beta.rb b/generated/google/apis/accesscontextmanager_v1beta.rb index 1177f0975..9862f72f4 100644 --- a/generated/google/apis/accesscontextmanager_v1beta.rb +++ b/generated/google/apis/accesscontextmanager_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-context-manager/docs/reference/rest/ module AccesscontextmanagerV1beta VERSION = 'V1beta' - REVISION = '20200128' + REVISION = '20200210' # 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/chat_v1.rb b/generated/google/apis/chat_v1.rb index 207ff8781..44be9537b 100644 --- a/generated/google/apis/chat_v1.rb +++ b/generated/google/apis/chat_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/hangouts/chat module ChatV1 VERSION = 'V1' - REVISION = '20191205' + REVISION = '20200209' end end end diff --git a/generated/google/apis/cloudscheduler_v1.rb b/generated/google/apis/cloudscheduler_v1.rb index 08e1271bb..b6a39bc9a 100644 --- a/generated/google/apis/cloudscheduler_v1.rb +++ b/generated/google/apis/cloudscheduler_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/scheduler/ module CloudschedulerV1 VERSION = 'V1' - REVISION = '20191111' + REVISION = '20200210' # 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/cloudscheduler_v1beta1.rb b/generated/google/apis/cloudscheduler_v1beta1.rb index 798f20887..97d3c5f37 100644 --- a/generated/google/apis/cloudscheduler_v1beta1.rb +++ b/generated/google/apis/cloudscheduler_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/scheduler/ module CloudschedulerV1beta1 VERSION = 'V1beta1' - REVISION = '20191111' + REVISION = '20200210' # 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_v2.rb b/generated/google/apis/dialogflow_v2.rb index 95015572d..d2e812051 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20200204' + REVISION = '20200212' # 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_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 4e4f1e941..6d45d4192 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -551,6 +551,8 @@ module Google attr_accessor :input_audio # Instructs the speech synthesizer on how to generate the output audio content. + # If this audio config is supplied in a request, it overrides all existing + # text-to-speech settings applied to the agent. # Corresponds to the JSON property `outputAudioConfig` # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig] attr_accessor :output_audio_config @@ -598,6 +600,8 @@ module Google attr_accessor :output_audio # Instructs the speech synthesizer on how to generate the output audio content. + # If this audio config is supplied in a request, it overrides all existing + # text-to-speech settings applied to the agent. # Corresponds to the JSON property `outputAudioConfig` # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig] attr_accessor :output_audio_config @@ -748,6 +752,123 @@ module Google end end + # Represents an agent environment. + class GoogleCloudDialogflowV2Environment + include Google::Apis::Core::Hashable + + # Optional. The agent version loaded into this environment. + # Format: `projects//agent/versions/`. + # Corresponds to the JSON property `agentVersion` + # @return [String] + attr_accessor :agent_version + + # Optional. The developer-provided description for this environment. + # The maximum length is 500 characters. If exceeded, the request is rejected. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. The unique identifier of this agent environment. + # Format: `projects//agent/environments/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The state of this environment. This field is read-only, i.e., it + # cannot be + # set by create and update methods. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. The last update time of this environment. This field is read-only, + # i.e., it + # cannot be set by create and update methods. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_version = args[:agent_version] if args.key?(:agent_version) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The response message for Environments.GetEnvironmentHistory. + class GoogleCloudDialogflowV2EnvironmentHistory + include Google::Apis::Core::Hashable + + # Output only. The list of agent environments. There will be a maximum number of + # items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Output only. Token to retrieve the next page of results, or empty if there are + # no + # more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Output only. The name of the environment this history is for. + # Format: `projects//agent/environments/`. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @parent = args[:parent] if args.key?(:parent) + end + end + + # Represents a environment history entry. + class GoogleCloudDialogflowV2EnvironmentHistoryEntry + include Google::Apis::Core::Hashable + + # The agent version loaded into this environment history entry. + # Corresponds to the JSON property `agentVersion` + # @return [String] + attr_accessor :agent_version + + # The creation time of this environment history entry. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The developer-provided description for this environment history entry. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_version = args[:agent_version] if args.key?(:agent_version) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + end + end + # Events allow for matching intents by event name instead of the natural # language input. For instance, input `` can trigger a personalized welcome response. @@ -835,6 +956,126 @@ module Google end end + # Represents a fulfillment. + class GoogleCloudDialogflowV2Fulfillment + include Google::Apis::Core::Hashable + + # Optional. The human-readable name of the fulfillment, unique within the agent. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. Whether fulfillment is enabled. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Optional. The field defines whether the fulfillment is enabled for certain + # features. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + # Represents configuration for a generic web service. + # Dialogflow supports two mechanisms for authentications: + # - Basic authentication with username and password. + # - Authentication with additional authentication headers. + # More information could be found at: + # https://cloud.google.com/dialogflow/docs/fulfillment-configure. + # Corresponds to the JSON property `genericWebService` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService] + attr_accessor :generic_web_service + + # Required. The unique identifier of the fulfillment. + # Format: `projects//agent/fulfillment`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @enabled = args[:enabled] if args.key?(:enabled) + @features = args[:features] if args.key?(:features) + @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service) + @name = args[:name] if args.key?(:name) + end + end + + # Whether fulfillment is enabled for the specific feature. + class GoogleCloudDialogflowV2FulfillmentFeature + include Google::Apis::Core::Hashable + + # The type of the feature that enabled for fulfillment. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + end + end + + # Represents configuration for a generic web service. + # Dialogflow supports two mechanisms for authentications: + # - Basic authentication with username and password. + # - Authentication with additional authentication headers. + # More information could be found at: + # https://cloud.google.com/dialogflow/docs/fulfillment-configure. + class GoogleCloudDialogflowV2FulfillmentGenericWebService + include Google::Apis::Core::Hashable + + # Optional. Indicates if generic web service is created through Cloud Functions + # integration. Defaults to false. + # Corresponds to the JSON property `isCloudFunction` + # @return [Boolean] + attr_accessor :is_cloud_function + alias_method :is_cloud_function?, :is_cloud_function + + # Optional. The password for HTTP Basic authentication. + # Corresponds to the JSON property `password` + # @return [String] + attr_accessor :password + + # Optional. The HTTP request headers to send together with fulfillment requests. + # Corresponds to the JSON property `requestHeaders` + # @return [Hash] + attr_accessor :request_headers + + # Required. The fulfillment URI for receiving POST requests. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + # Optional. The user name for HTTP Basic authentication. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_cloud_function = args[:is_cloud_function] if args.key?(:is_cloud_function) + @password = args[:password] if args.key?(:password) + @request_headers = args[:request_headers] if args.key?(:request_headers) + @uri = args[:uri] if args.key?(:uri) + @username = args[:username] if args.key?(:username) + end + end + # The request message for Agents.ImportAgent. class GoogleCloudDialogflowV2ImportAgentRequest include Google::Apis::Core::Hashable @@ -2299,6 +2540,33 @@ module Google end end + # The response message for Environments.ListEnvironments. + class GoogleCloudDialogflowV2ListEnvironmentsResponse + include Google::Apis::Core::Hashable + + # The list of agent environments. There will be a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `environments` + # @return [Array] + attr_accessor :environments + + # Token to retrieve the next page of results, or empty if there are no + # more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environments = args[:environments] if args.key?(:environments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for Intents.ListIntents. class GoogleCloudDialogflowV2ListIntentsResponse include Google::Apis::Core::Hashable @@ -2353,6 +2621,33 @@ module Google end end + # The response message for Versions.ListVersions. + class GoogleCloudDialogflowV2ListVersionsResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results, or empty if there are no + # more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of agent versions. There will be a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @versions = args[:versions] if args.key?(:versions) + end + end + # Represents a message posted into a conversation. class GoogleCloudDialogflowV2Message include Google::Apis::Core::Hashable @@ -2486,6 +2781,8 @@ module Google end # Instructs the speech synthesizer on how to generate the output audio content. + # If this audio config is supplied in a request, it overrides all existing + # text-to-speech settings applied to the agent. class GoogleCloudDialogflowV2OutputAudioConfig include Google::Apis::Core::Hashable @@ -3079,6 +3376,118 @@ module Google end end + # Represents a single validation error. + class GoogleCloudDialogflowV2ValidationError + include Google::Apis::Core::Hashable + + # The names of the entries that the error is associated with. + # Format: + # - "projects//agent", if the error is associated with the entire + # agent. + # - "projects//agent/intents/", if the error is + # associated with certain intents. + # - "projects//agent/intents//trainingPhrases/", if the + # error is associated with certain intent training phrases. + # - "projects//agent/intents//parameters/", if the error is associated with certain intent parameters. + # - "projects//agent/entities/", if the error is + # associated with certain entities. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # The detailed error messsage. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # The severity of the error. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @error_message = args[:error_message] if args.key?(:error_message) + @severity = args[:severity] if args.key?(:severity) + end + end + + # Represents the output of agent validation. + class GoogleCloudDialogflowV2ValidationResult + include Google::Apis::Core::Hashable + + # Contains all validation errors. + # Corresponds to the JSON property `validationErrors` + # @return [Array] + attr_accessor :validation_errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @validation_errors = args[:validation_errors] if args.key?(:validation_errors) + end + end + + # Represents an agent version. + class GoogleCloudDialogflowV2Version + include Google::Apis::Core::Hashable + + # Output only. The creation time of this version. This field is read-only, i.e., + # it cannot + # be set by create and update methods. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. The developer-provided description of this version. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. The unique identifier of this agent version. + # Format: `projects//agent/versions/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The status of this version. This field is read-only and cannot be + # set by + # create and update methods. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Output only. The sequential number of this version. This field is read-only + # which means + # it cannot be set by create and update methods. + # Corresponds to the JSON property `versionNumber` + # @return [Fixnum] + attr_accessor :version_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @status = args[:status] if args.key?(:status) + @version_number = args[:version_number] if args.key?(:version_number) + end + end + # Description of which voice to use for speech synthesis. class GoogleCloudDialogflowV2VoiceSelectionParams include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 16e66c0ee..f52296a40 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -130,6 +130,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2Environment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2EnvironmentHistory + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2EnvironmentHistoryEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2EventInput class Representation < Google::Apis::Core::JsonRepresentation; end @@ -148,6 +166,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2Fulfillment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2FulfillmentFeature + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2FulfillmentGenericWebService + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2ImportAgentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -376,6 +412,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2ListEnvironmentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2ListIntentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -388,6 +430,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2ListVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2Message class Representation < Google::Apis::Core::JsonRepresentation; end @@ -490,6 +538,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2ValidationError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ValidationResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2Version + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2VoiceSelectionParams class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1119,6 +1185,36 @@ module Google end end + class GoogleCloudDialogflowV2Environment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_version, as: 'agentVersion' + property :description, as: 'description' + property :name, as: 'name' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDialogflowV2EnvironmentHistory + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistoryEntry, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistoryEntry::Representation + + property :next_page_token, as: 'nextPageToken' + property :parent, as: 'parent' + end + end + + class GoogleCloudDialogflowV2EnvironmentHistoryEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_version, as: 'agentVersion' + property :create_time, as: 'createTime' + property :description, as: 'description' + end + end + class GoogleCloudDialogflowV2EventInput # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1143,6 +1239,37 @@ module Google end end + class GoogleCloudDialogflowV2Fulfillment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :enabled, as: 'enabled' + collection :features, as: 'features', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentFeature, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentFeature::Representation + + property :generic_web_service, as: 'genericWebService', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService::Representation + + property :name, as: 'name' + end + end + + class GoogleCloudDialogflowV2FulfillmentFeature + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + end + end + + class GoogleCloudDialogflowV2FulfillmentGenericWebService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_cloud_function, as: 'isCloudFunction' + property :password, as: 'password' + hash :request_headers, as: 'requestHeaders' + property :uri, as: 'uri' + property :username, as: 'username' + end + end + class GoogleCloudDialogflowV2ImportAgentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1552,6 +1679,15 @@ module Google end end + class GoogleCloudDialogflowV2ListEnvironmentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :environments, as: 'environments', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class GoogleCloudDialogflowV2ListIntentsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1570,6 +1706,15 @@ module Google end end + class GoogleCloudDialogflowV2ListVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :versions, as: 'versions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation + + end + end + class GoogleCloudDialogflowV2Message # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1750,6 +1895,34 @@ module Google end end + class GoogleCloudDialogflowV2ValidationError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries' + property :error_message, as: 'errorMessage' + property :severity, as: 'severity' + end + end + + class GoogleCloudDialogflowV2ValidationResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :validation_errors, as: 'validationErrors', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ValidationError, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ValidationError::Representation + + end + end + + class GoogleCloudDialogflowV2Version + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + property :name, as: 'name' + property :status, as: 'status' + property :version_number, as: 'versionNumber' + end + end + class GoogleCloudDialogflowV2VoiceSelectionParams # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2/service.rb b/generated/google/apis/dialogflow_v2/service.rb index 1df0b1ea3..98536ddac 100644 --- a/generated/google/apis/dialogflow_v2/service.rb +++ b/generated/google/apis/dialogflow_v2/service.rb @@ -182,6 +182,76 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the fulfillment. + # @param [String] name + # Required. The name of the fulfillment. + # Format: `projects//agent/fulfillment`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment] + # + # @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 get_project_agent_fulfillment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets agent validation result. Agent validation is performed during + # training time and is updated automatically when training is completed. + # @param [String] parent + # Required. The project that the agent is associated with. + # Format: `projects/`. + # @param [String] language_code + # Optional. The language for which you want a validation result. If not + # specified, the agent's default language is used. [Many + # languages](https://cloud.google.com/dialogflow/docs/reference/language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ValidationResult] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ValidationResult] + # + # @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 get_project_agent_validation_result(parent, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/agent/validationResult', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ValidationResult::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ValidationResult + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Imports the specified agent from a ZIP file. # Uploads new intents and entity types without deleting the existing ones. # Intents and entity types with the same name are replaced with the new @@ -336,6 +406,44 @@ module Google execute_or_queue_command(command, &block) end + # Updates the fulfillment. + # @param [String] name + # Required. The unique identifier of the fulfillment. + # Format: `projects//agent/fulfillment`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment] google_cloud_dialogflow_v2_fulfillment_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. If the mask is not + # present, all fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment] + # + # @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 update_project_agent_fulfillment(name, google_cloud_dialogflow_v2_fulfillment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment::Representation + command.request_object = google_cloud_dialogflow_v2_fulfillment_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes entity types in the specified agent. # Operation # @param [String] parent @@ -718,6 +826,226 @@ module Google execute_or_queue_command(command, &block) end + # Creates an agent environment. + # @param [String] parent + # Required. The agent to create a environment for. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] google_cloud_dialogflow_v2_environment_object + # @param [String] environment_id + # Required. The unique id of the new environment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] + # + # @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_environment(parent, google_cloud_dialogflow_v2_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/environments', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation + command.request_object = google_cloud_dialogflow_v2_environment_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment + command.params['parent'] = parent unless parent.nil? + command.query['environmentId'] = environment_id unless environment_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified agent environment. + # @param [String] name + # Required. The name of the environment to delete. + # Format: `projects//agent/environments/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty] + # + # @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 delete_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified agent environment. + # @param [String] name + # Required. The name of the environment. + # Format: `projects//agent/environments/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] + # + # @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 get_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the history of the specified environment. + # @param [String] parent + # Required. The name of the environment to retrieve history for. + # Format: `projects//agent/environments/`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By default + # 100 and + # at most 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistory] + # + # @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 get_project_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/history', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistory::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistory + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all environments of the specified agent. + # @param [String] parent + # Required. The agent to list all environments from. + # Format: `projects//agent`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By default + # 100 and + # at most 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEnvironmentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEnvironmentsResponse] + # + # @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 list_project_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/environments', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEnvironmentsResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEnvironmentsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified agent environment. + # This method allows you to deploy new agent versions into the environment. + # When a environment is pointed to a new agent version by setting + # `environment.agent_version`, the environment is temporarily set to the + # `LOADING` state. During that time, the environment keeps on serving the + # previous version of the agent. After the new agent version is done loading, + # the environment is set back to the `RUNNING` state. + # @param [String] name + # Output only. The unique identifier of this agent environment. + # Format: `projects//agent/environments/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] google_cloud_dialogflow_v2_environment_object + # @param [String] update_mask + # Optional. The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] + # + # @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 patch_project_agent_environment(name, google_cloud_dialogflow_v2_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation + command.request_object = google_cloud_dialogflow_v2_environment_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes intents in the specified agent. # Operation # @param [String] parent @@ -1449,6 +1777,150 @@ module Google execute_or_queue_command(command, &block) end + # Creates an agent version. + # @param [String] parent + # Required. The agent to create a version for. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] google_cloud_dialogflow_v2_version_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] + # + # @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_version(parent, google_cloud_dialogflow_v2_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/versions', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation + command.request_object = google_cloud_dialogflow_v2_version_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified agent version. + # @param [String] name + # Required. The name of the version. + # Format: `projects//agent/versions/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] + # + # @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 get_project_agent_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all versions of the specified agent. + # @param [String] parent + # Required. The agent to list all versions from. + # Format: `projects//agent`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By default + # 100 and + # at most 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListVersionsResponse] + # + # @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 list_project_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/versions', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListVersionsResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListVersionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified agent version. + # Note that this method does not allow you to update the state of the agent + # the given version points to. It allows you to update only mutable + # properties of the version resource. + # @param [String] name + # Output only. The unique identifier of this agent version. + # Format: `projects//agent/versions/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] google_cloud_dialogflow_v2_version_object + # @param [String] update_mask + # Optional. The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] + # + # @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 patch_project_agent_version(name, google_cloud_dialogflow_v2_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation + command.request_object = google_cloud_dialogflow_v2_version_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Starts asynchronous cancellation on a long-running operation. The server # makes a best effort to cancel the operation, but success is not # guaranteed. If the server doesn't support this method, it returns diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 582059fa5..557ce3472 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20200204' + REVISION = '20200212' # 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 28631b378..43bc7bd13 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -2622,6 +2622,8 @@ module Google attr_accessor :input_audio # Instructs the speech synthesizer how to generate the output audio content. + # If this audio config is supplied in a request, it overrides all existing + # text-to-speech settings applied to the agent. # Corresponds to the JSON property `outputAudioConfig` # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig] attr_accessor :output_audio_config @@ -2681,6 +2683,8 @@ module Google attr_accessor :output_audio # Instructs the speech synthesizer how to generate the output audio content. + # If this audio config is supplied in a request, it overrides all existing + # text-to-speech settings applied to the agent. # Corresponds to the JSON property `outputAudioConfig` # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig] attr_accessor :output_audio_config @@ -2904,6 +2908,124 @@ module Google end end + # Represents an agent environment. + class GoogleCloudDialogflowV2beta1Environment + include Google::Apis::Core::Hashable + + # Optional. The agent version loaded into this environment. + # Format: `projects//agent/versions/`. + # Corresponds to the JSON property `agentVersion` + # @return [String] + attr_accessor :agent_version + + # Optional. The developer-provided description for this environment. + # The maximum length is 500 characters. If exceeded, the request is rejected. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. The unique identifier of this agent environment. + # Format: `projects//agent/environments/`. + # You can use "-" as Environment ID to refer to 'draft' environment. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The state of this environment. This field is read-only, i.e., it + # cannot be + # set by create and update methods. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. The last update time of this environment. This field is read-only, + # i.e., it + # cannot be set by create and update methods. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_version = args[:agent_version] if args.key?(:agent_version) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The response message for Environments.GetEnvironmentHistory. + class GoogleCloudDialogflowV2beta1EnvironmentHistory + include Google::Apis::Core::Hashable + + # Output only. The list of agent environments. There will be a maximum number of + # items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Output only. Token to retrieve the next page of results, or empty if there are + # no + # more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Output only. The name of the environment this history is for. + # Format: `projects//agent/environments/`. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @parent = args[:parent] if args.key?(:parent) + end + end + + # Represents a environment history entry. + class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry + include Google::Apis::Core::Hashable + + # The agent version loaded into this environment history entry. + # Corresponds to the JSON property `agentVersion` + # @return [String] + attr_accessor :agent_version + + # The creation time of this environment history entry. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The developer-provided description for this environment history entry. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_version = args[:agent_version] if args.key?(:agent_version) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + end + end + # Events allow for matching intents by event name instead of the natural # language input. For instance, input `` can trigger a personalized welcome response. @@ -2992,6 +3114,126 @@ module Google end end + # Represents a fulfillment. + class GoogleCloudDialogflowV2beta1Fulfillment + include Google::Apis::Core::Hashable + + # Optional. The human-readable name of the fulfillment, unique within the agent. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. Whether fulfillment is enabled. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Optional. The field defines whether the fulfillment is enabled for certain + # features. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + # Represents configuration for a generic web service. + # Dialogflow supports two mechanisms for authentications: + # - Basic authentication with username and password. + # - Authentication with additional authentication headers. + # More information could be found at: + # https://cloud.google.com/dialogflow/docs/fulfillment-configure. + # Corresponds to the JSON property `genericWebService` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService] + attr_accessor :generic_web_service + + # Required. The unique identifier of the fulfillment. + # Format: `projects//agent/fulfillment`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @enabled = args[:enabled] if args.key?(:enabled) + @features = args[:features] if args.key?(:features) + @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service) + @name = args[:name] if args.key?(:name) + end + end + + # Whether fulfillment is enabled for the specific feature. + class GoogleCloudDialogflowV2beta1FulfillmentFeature + include Google::Apis::Core::Hashable + + # The type of the feature that enabled for fulfillment. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + end + end + + # Represents configuration for a generic web service. + # Dialogflow supports two mechanisms for authentications: + # - Basic authentication with username and password. + # - Authentication with additional authentication headers. + # More information could be found at: + # https://cloud.google.com/dialogflow/docs/fulfillment-configure. + class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService + include Google::Apis::Core::Hashable + + # Optional. Indicates if generic web service is created through Cloud Functions + # integration. Defaults to false. + # Corresponds to the JSON property `isCloudFunction` + # @return [Boolean] + attr_accessor :is_cloud_function + alias_method :is_cloud_function?, :is_cloud_function + + # Optional. The password for HTTP Basic authentication. + # Corresponds to the JSON property `password` + # @return [String] + attr_accessor :password + + # Optional. The HTTP request headers to send together with fulfillment requests. + # Corresponds to the JSON property `requestHeaders` + # @return [Hash] + attr_accessor :request_headers + + # Required. The fulfillment URI for receiving POST requests. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + # Optional. The user name for HTTP Basic authentication. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_cloud_function = args[:is_cloud_function] if args.key?(:is_cloud_function) + @password = args[:password] if args.key?(:password) + @request_headers = args[:request_headers] if args.key?(:request_headers) + @uri = args[:uri] if args.key?(:uri) + @username = args[:username] if args.key?(:username) + end + end + # Google Cloud Storage location for single input. class GoogleCloudDialogflowV2beta1GcsSource include Google::Apis::Core::Hashable @@ -5193,6 +5435,33 @@ module Google end end + # The response message for Environments.ListEnvironments. + class GoogleCloudDialogflowV2beta1ListEnvironmentsResponse + include Google::Apis::Core::Hashable + + # The list of agent environments. There will be a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `environments` + # @return [Array] + attr_accessor :environments + + # Token to retrieve the next page of results, or empty if there are no + # more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environments = args[:environments] if args.key?(:environments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for Intents.ListIntents. class GoogleCloudDialogflowV2beta1ListIntentsResponse include Google::Apis::Core::Hashable @@ -5273,6 +5542,33 @@ module Google end end + # The response message for Versions.ListVersions. + class GoogleCloudDialogflowV2beta1ListVersionsResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results, or empty if there are no + # more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of agent versions. There will be a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @versions = args[:versions] if args.key?(:versions) + end + end + # Represents the contents of the original request that was passed to # the `[Streaming]DetectIntent` call. class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest @@ -5319,6 +5615,8 @@ module Google end # Instructs the speech synthesizer how to generate the output audio content. + # If this audio config is supplied in a request, it overrides all existing + # text-to-speech settings applied to the agent. class GoogleCloudDialogflowV2beta1OutputAudioConfig include Google::Apis::Core::Hashable @@ -5443,6 +5741,14 @@ module Google # @return [Array] attr_accessor :session_entity_types + # Optional. For mega agent query, directly specify which sub agents to query. + # If any specified sub agent is not linked to the mega agent, an error will + # be returned. If empty, Dialogflow will decide which sub agents to query. + # If specified for a non-mega-agent query, will be silently ignored. + # Corresponds to the JSON property `subAgents` + # @return [Array] + attr_accessor :sub_agents + # Optional. The time zone of this conversational query from the # [time zone database](https://www.iana.org/time-zones), e.g., # America/New_York, Europe/Paris. If not provided, the time zone specified in @@ -5476,6 +5782,7 @@ module Google @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts) @sentiment_analysis_request_config = args[:sentiment_analysis_request_config] if args.key?(:sentiment_analysis_request_config) @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) + @sub_agents = args[:sub_agents] if args.key?(:sub_agents) @time_zone = args[:time_zone] if args.key?(:time_zone) @webhook_headers = args[:webhook_headers] if args.key?(:webhook_headers) end @@ -5863,6 +6170,34 @@ module Google end end + # Contains basic configuration for a sub-agent. + class GoogleCloudDialogflowV2beta1SubAgent + include Google::Apis::Core::Hashable + + # Optional. The unique identifier (`environment name` in dialogflow console) + # of this sub-agent environment. Assumes draft environment if `environment` + # is not set. + # Corresponds to the JSON property `environment` + # @return [String] + attr_accessor :environment + + # Required. The project of this agent. + # Format: `projects/`. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environment = args[:environment] if args.key?(:environment) + @project = args[:project] if args.key?(:project) + end + end + # Configuration of how speech should be synthesized. class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig include Google::Apis::Core::Hashable @@ -6024,6 +6359,56 @@ module Google end end + # Represents an agent version. + class GoogleCloudDialogflowV2beta1Version + include Google::Apis::Core::Hashable + + # Output only. The creation time of this version. This field is read-only, i.e., + # it cannot + # be set by create and update methods. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. The developer-provided description of this version. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. The unique identifier of this agent version. + # Format: `projects//agent/versions/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The status of this version. This field is read-only and cannot be + # set by + # create and update methods. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Output only. The sequential number of this version. This field is read-only + # which means + # it cannot be set by create and update methods. + # Corresponds to the JSON property `versionNumber` + # @return [Fixnum] + attr_accessor :version_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @status = args[:status] if args.key?(:status) + @version_number = args[:version_number] if args.key?(:version_number) + end + end + # Description of which voice to use for speech synthesis. class GoogleCloudDialogflowV2beta1VoiceSelectionParams include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index d425f3b46..7bf565642 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -436,6 +436,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1Environment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1EnvironmentHistory + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1EventInput class Representation < Google::Apis::Core::JsonRepresentation; end @@ -454,6 +472,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1Fulfillment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1FulfillmentFeature + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1GcsSource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -808,6 +844,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ListEnvironmentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1ListIntentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -826,6 +868,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ListVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -904,6 +952,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1SubAgent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -934,6 +988,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1Version + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1VoiceSelectionParams class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1729,6 +1789,36 @@ module Google end end + class GoogleCloudDialogflowV2beta1Environment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_version, as: 'agentVersion' + property :description, as: 'description' + property :name, as: 'name' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDialogflowV2beta1EnvironmentHistory + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry::Representation + + property :next_page_token, as: 'nextPageToken' + property :parent, as: 'parent' + end + end + + class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_version, as: 'agentVersion' + property :create_time, as: 'createTime' + property :description, as: 'description' + end + end + class GoogleCloudDialogflowV2beta1EventInput # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1753,6 +1843,37 @@ module Google end end + class GoogleCloudDialogflowV2beta1Fulfillment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :enabled, as: 'enabled' + collection :features, as: 'features', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentFeature, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentFeature::Representation + + property :generic_web_service, as: 'genericWebService', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService::Representation + + property :name, as: 'name' + end + end + + class GoogleCloudDialogflowV2beta1FulfillmentFeature + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + end + end + + class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_cloud_function, as: 'isCloudFunction' + property :password, as: 'password' + hash :request_headers, as: 'requestHeaders' + property :uri, as: 'uri' + property :username, as: 'username' + end + end + class GoogleCloudDialogflowV2beta1GcsSource # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2358,6 +2479,15 @@ module Google end end + class GoogleCloudDialogflowV2beta1ListEnvironmentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :environments, as: 'environments', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class GoogleCloudDialogflowV2beta1ListIntentsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2385,6 +2515,15 @@ module Google end end + class GoogleCloudDialogflowV2beta1ListVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :versions, as: 'versions', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + + end + end + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2430,6 +2569,8 @@ module Google collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation + collection :sub_agents, as: 'subAgents', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SubAgent, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SubAgent::Representation + property :time_zone, as: 'timeZone' hash :webhook_headers, as: 'webhookHeaders' end @@ -2528,6 +2669,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1SubAgent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :environment, as: 'environment' + property :project, as: 'project' + end + end + class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2571,6 +2720,17 @@ module Google end end + class GoogleCloudDialogflowV2beta1Version + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + property :name, as: 'name' + property :status, as: 'status' + property :version_number, as: 'versionNumber' + end + end + class GoogleCloudDialogflowV2beta1VoiceSelectionParams # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index e73cc1d11..692caa3f4 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -182,6 +182,37 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the fulfillment. + # @param [String] name + # Required. The name of the fulfillment. + # Format: `projects//agent/fulfillment`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] + # + # @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 get_project_agent_fulfillment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets agent validation result. Agent validation is performed during # training time and is updated automatically when training is completed. # @param [String] parent @@ -375,6 +406,44 @@ module Google execute_or_queue_command(command, &block) end + # Updates the fulfillment. + # @param [String] name + # Required. The unique identifier of the fulfillment. + # Format: `projects//agent/fulfillment`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] google_cloud_dialogflow_v2beta1_fulfillment_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. If the mask is not + # present, all fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] + # + # @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 update_project_agent_fulfillment(name, google_cloud_dialogflow_v2beta1_fulfillment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation + command.request_object = google_cloud_dialogflow_v2beta1_fulfillment_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes entity types in the specified agent. # Operation # @param [String] parent @@ -757,6 +826,229 @@ module Google execute_or_queue_command(command, &block) end + # Creates an agent environment. + # @param [String] parent + # Required. The agent to create a environment for. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object + # @param [String] environment_id + # Required. The unique id of the new environment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] + # + # @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_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.request_object = google_cloud_dialogflow_v2beta1_environment_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment + command.params['parent'] = parent unless parent.nil? + command.query['environmentId'] = environment_id unless environment_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified agent environment. + # @param [String] name + # Required. The name of the environment to delete. + # Format: `projects//agent/environments/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] + # + # @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 delete_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified agent environment. + # @param [String] name + # Required. The name of the environment. + # Format: `projects//agent/environments/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] + # + # @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 get_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the history of the specified environment. + # @param [String] parent + # Required. The name of the environment to retrieve history for. + # Format: `projects//agent/environments/`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By default + # 100 and + # at most 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] + # + # @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 get_project_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/history', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all environments of the specified agent. + # @param [String] parent + # Required. The agent to list all environments from. + # Format: `projects//agent`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By default + # 100 and + # at most 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse] + # + # @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 list_project_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/environments', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified agent environment. + # This method allows you to deploy new agent versions into the environment. + # When a environment is pointed to a new agent version by setting + # `environment.agent_version`, the environment is temporarily set to the + # `LOADING` state. During that time, the environment keeps on serving the + # previous version of the agent. After the new agent version is done + # loading, the environment is set back to the `RUNNING` state. + # You can use "-" as Environment ID in environment name to update version + # in "draft" environment. + # @param [String] name + # Output only. The unique identifier of this agent environment. + # Format: `projects//agent/environments/`. + # You can use "-" as Environment ID to refer to 'draft' environment. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] + # + # @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 patch_project_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.request_object = google_cloud_dialogflow_v2beta1_environment_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes all active contexts in the specified session. # @param [String] parent # Required. The name of the session to delete all contexts from. Format: @@ -2444,6 +2736,151 @@ module Google execute_or_queue_command(command, &block) end + # Creates an agent version. + # The new version points to the agent instance in the "default" environment. + # @param [String] parent + # Required. The agent to create a version for. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] + # + # @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_version(parent, google_cloud_dialogflow_v2beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/versions', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.request_object = google_cloud_dialogflow_v2beta1_version_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified agent version. + # @param [String] name + # Required. The name of the version. + # Format: `projects//agent/versions/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] + # + # @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 get_project_agent_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all versions of the specified agent. + # @param [String] parent + # Required. The agent to list all versions from. + # Format: `projects//agent`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By default + # 100 and + # at most 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] + # + # @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 list_project_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/versions', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified agent version. + # Note that this method does not allow you to update the state of the agent + # the given version points to. It allows you to update only mutable + # properties of the version resource. + # @param [String] name + # Output only. The unique identifier of this agent version. + # Format: `projects//agent/versions/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] + # + # @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 patch_project_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.request_object = google_cloud_dialogflow_v2beta1_version_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a knowledge base. # Note: The `projects.agent.knowledgeBases` resource is deprecated; # only use `projects.knowledgeBases`. @@ -3001,6 +3438,75 @@ module Google execute_or_queue_command(command, &block) end + # Updates the fulfillment. + # @param [String] name + # Required. The unique identifier of the fulfillment. + # Format: `projects//agent/fulfillment`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] google_cloud_dialogflow_v2beta1_fulfillment_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. If the mask is not + # present, all fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] + # + # @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 fulfillment_project_location_agent(name, google_cloud_dialogflow_v2beta1_fulfillment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation + command.request_object = google_cloud_dialogflow_v2beta1_fulfillment_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the fulfillment. + # @param [String] name + # Required. The name of the fulfillment. + # Format: `projects//agent/fulfillment`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] + # + # @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 get_project_location_agent_fulfillment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Imports the specified agent from a ZIP file. # Uploads new intents and entity types without deleting the existing ones. # Intents and entity types with the same name are replaced with the new @@ -3493,6 +3999,229 @@ module Google execute_or_queue_command(command, &block) end + # Creates an agent environment. + # @param [String] parent + # Required. The agent to create a environment for. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object + # @param [String] environment_id + # Required. The unique id of the new environment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] + # + # @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_location_agent_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.request_object = google_cloud_dialogflow_v2beta1_environment_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment + command.params['parent'] = parent unless parent.nil? + command.query['environmentId'] = environment_id unless environment_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified agent environment. + # @param [String] name + # Required. The name of the environment to delete. + # Format: `projects//agent/environments/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] + # + # @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 delete_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified agent environment. + # @param [String] name + # Required. The name of the environment. + # Format: `projects//agent/environments/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] + # + # @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 get_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the history of the specified environment. + # @param [String] parent + # Required. The name of the environment to retrieve history for. + # Format: `projects//agent/environments/`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By default + # 100 and + # at most 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] + # + # @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 get_project_location_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/history', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all environments of the specified agent. + # @param [String] parent + # Required. The agent to list all environments from. + # Format: `projects//agent`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By default + # 100 and + # at most 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse] + # + # @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 list_project_location_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/environments', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified agent environment. + # This method allows you to deploy new agent versions into the environment. + # When a environment is pointed to a new agent version by setting + # `environment.agent_version`, the environment is temporarily set to the + # `LOADING` state. During that time, the environment keeps on serving the + # previous version of the agent. After the new agent version is done + # loading, the environment is set back to the `RUNNING` state. + # You can use "-" as Environment ID in environment name to update version + # in "draft" environment. + # @param [String] name + # Output only. The unique identifier of this agent environment. + # Format: `projects//agent/environments/`. + # You can use "-" as Environment ID to refer to 'draft' environment. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] + # + # @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 patch_project_location_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.request_object = google_cloud_dialogflow_v2beta1_environment_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes all active contexts in the specified session. # @param [String] parent # Required. The name of the session to delete all contexts from. Format: @@ -4757,6 +5486,151 @@ module Google execute_or_queue_command(command, &block) end + # Creates an agent version. + # The new version points to the agent instance in the "default" environment. + # @param [String] parent + # Required. The agent to create a version for. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] + # + # @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_location_agent_version(parent, google_cloud_dialogflow_v2beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/versions', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.request_object = google_cloud_dialogflow_v2beta1_version_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified agent version. + # @param [String] name + # Required. The name of the version. + # Format: `projects//agent/versions/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] + # + # @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 get_project_location_agent_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all versions of the specified agent. + # @param [String] parent + # Required. The agent to list all versions from. + # Format: `projects//agent`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By default + # 100 and + # at most 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] + # + # @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 list_project_location_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/versions', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified agent version. + # Note that this method does not allow you to update the state of the agent + # the given version points to. It allows you to update only mutable + # properties of the version resource. + # @param [String] name + # Output only. The unique identifier of this agent version. + # Format: `projects//agent/versions/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] + # + # @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 patch_project_location_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.request_object = google_cloud_dialogflow_v2beta1_version_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Starts asynchronous cancellation on a long-running operation. The server # makes a best effort to cancel the operation, but success is not # guaranteed. If the server doesn't support this method, it returns diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 0e55ada67..54afddf3d 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20200203' + REVISION = '20200212' # 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/safebrowsing_v4.rb b/generated/google/apis/safebrowsing_v4.rb index 013adeaa5..94184082c 100644 --- a/generated/google/apis/safebrowsing_v4.rb +++ b/generated/google/apis/safebrowsing_v4.rb @@ -29,7 +29,7 @@ module Google # @see https://developers.google.com/safe-browsing/ module SafebrowsingV4 VERSION = 'V4' - REVISION = '20190923' + REVISION = '20200210' end end end diff --git a/generated/google/apis/safebrowsing_v4/classes.rb b/generated/google/apis/safebrowsing_v4/classes.rb index e0b915b7e..06104ca94 100644 --- a/generated/google/apis/safebrowsing_v4/classes.rb +++ b/generated/google/apis/safebrowsing_v4/classes.rb @@ -86,8 +86,8 @@ module Google attr_accessor :language # Sets the maximum number of entries that the client is willing to have - # in the local database. This should be a power of 2 between 2**10 and - # 2**20. If zero, no database size limit is set. + # in the local database for the specified list. This should be a power of + # 2 between 2**10 and 2**20. If zero, no database size limit is set. # Corresponds to the JSON property `maxDatabaseEntries` # @return [Fixnum] attr_accessor :max_database_entries diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 90eb99da8..82af47cbc 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20200130' + REVISION = '20200214' # 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/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index 0989de77d..d82b7e968 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -434,6 +434,20 @@ module Google include Google::Apis::Core::Hashable # The address of the API backend. + # The scheme is used to determine the backend protocol and security. + # The following schemes are accepted: + # SCHEME PROTOCOL SECURITY + # http:// HTTP None + # https:// HTTP TLS + # grpc:// gRPC None + # grpcs:// gRPC TLS + # It is recommended to explicitly include a scheme. Leaving out the scheme + # may cause constrasting behaviors across platforms. + # If the port is unspecified, the default is: + # - 80 for schemes without TLS + # - 443 for schemes with TLS + # For HTTP backends, use protocol + # to specify the protocol version. # Corresponds to the JSON property `address` # @return [String] attr_accessor :address @@ -444,9 +458,6 @@ module Google # @return [Float] attr_accessor :deadline - # When disable_auth is false, a JWT ID token will be generated with the - # value from BackendRule.address as jwt_audience, overrode to the HTTP - # "Authorization" request header and sent to the backend. # When disable_auth is true, a JWT ID token won't be generated and the # original "Authorization" HTTP header will be preserved. If the header is # used to carry the original token and is expected by the backend, this @@ -480,6 +491,27 @@ module Google # @return [String] attr_accessor :path_translation + # The protocol used for sending a request to the backend. + # The supported values are "http/1.1" and "h2". + # The default value is inferred from the scheme in the + # address field: + # SCHEME PROTOCOL + # http:// http/1.1 + # https:// http/1.1 + # grpc:// h2 + # grpcs:// h2 + # For secure HTTP backends (https://) that support HTTP/2, set this field + # to "h2" for improved performance. + # Configuring this field to non-default values is only supported for secure + # HTTP backends. This field will be ignored for all other backends. + # See + # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype- + # values.xhtml#alpn-protocol-ids + # for more details on the supported values. + # Corresponds to the JSON property `protocol` + # @return [String] + attr_accessor :protocol + # Selects the methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` @@ -499,6 +531,7 @@ module Google @min_deadline = args[:min_deadline] if args.key?(:min_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @path_translation = args[:path_translation] if args.key?(:path_translation) + @protocol = args[:protocol] if args.key?(:protocol) @selector = args[:selector] if args.key?(:selector) end end diff --git a/generated/google/apis/serviceconsumermanagement_v1/representations.rb b/generated/google/apis/serviceconsumermanagement_v1/representations.rb index 61caa30a4..7e60bcae4 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/representations.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/representations.rb @@ -653,6 +653,7 @@ module Google property :min_deadline, as: 'minDeadline' property :operation_deadline, as: 'operationDeadline' property :path_translation, as: 'pathTranslation' + property :protocol, as: 'protocol' property :selector, as: 'selector' end end diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index fc494d7d5..9abfbe60c 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20200130' + REVISION = '20200214' # 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/servicenetworking_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index 07f2eaf08..3cc10ae91 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -421,6 +421,20 @@ module Google include Google::Apis::Core::Hashable # The address of the API backend. + # The scheme is used to determine the backend protocol and security. + # The following schemes are accepted: + # SCHEME PROTOCOL SECURITY + # http:// HTTP None + # https:// HTTP TLS + # grpc:// gRPC None + # grpcs:// gRPC TLS + # It is recommended to explicitly include a scheme. Leaving out the scheme + # may cause constrasting behaviors across platforms. + # If the port is unspecified, the default is: + # - 80 for schemes without TLS + # - 443 for schemes with TLS + # For HTTP backends, use protocol + # to specify the protocol version. # Corresponds to the JSON property `address` # @return [String] attr_accessor :address @@ -431,9 +445,6 @@ module Google # @return [Float] attr_accessor :deadline - # When disable_auth is false, a JWT ID token will be generated with the - # value from BackendRule.address as jwt_audience, overrode to the HTTP - # "Authorization" request header and sent to the backend. # When disable_auth is true, a JWT ID token won't be generated and the # original "Authorization" HTTP header will be preserved. If the header is # used to carry the original token and is expected by the backend, this @@ -467,6 +478,27 @@ module Google # @return [String] attr_accessor :path_translation + # The protocol used for sending a request to the backend. + # The supported values are "http/1.1" and "h2". + # The default value is inferred from the scheme in the + # address field: + # SCHEME PROTOCOL + # http:// http/1.1 + # https:// http/1.1 + # grpc:// h2 + # grpcs:// h2 + # For secure HTTP backends (https://) that support HTTP/2, set this field + # to "h2" for improved performance. + # Configuring this field to non-default values is only supported for secure + # HTTP backends. This field will be ignored for all other backends. + # See + # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype- + # values.xhtml#alpn-protocol-ids + # for more details on the supported values. + # Corresponds to the JSON property `protocol` + # @return [String] + attr_accessor :protocol + # Selects the methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` @@ -486,6 +518,7 @@ module Google @min_deadline = args[:min_deadline] if args.key?(:min_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @path_translation = args[:path_translation] if args.key?(:path_translation) + @protocol = args[:protocol] if args.key?(:protocol) @selector = args[:selector] if args.key?(:selector) end end diff --git a/generated/google/apis/servicenetworking_v1/representations.rb b/generated/google/apis/servicenetworking_v1/representations.rb index 44aac8f86..38a909ec9 100644 --- a/generated/google/apis/servicenetworking_v1/representations.rb +++ b/generated/google/apis/servicenetworking_v1/representations.rb @@ -520,6 +520,7 @@ module Google property :min_deadline, as: 'minDeadline' property :operation_deadline, as: 'operationDeadline' property :path_translation, as: 'pathTranslation' + property :protocol, as: 'protocol' property :selector, as: 'selector' end end diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index 0ca043b9e..afa3ee91b 100644 --- a/generated/google/apis/servicenetworking_v1beta.rb +++ b/generated/google/apis/servicenetworking_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1beta VERSION = 'V1beta' - REVISION = '20200130' + REVISION = '20200214' # 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/servicenetworking_v1beta/classes.rb b/generated/google/apis/servicenetworking_v1beta/classes.rb index 05dfce944..1af4fcec0 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -421,6 +421,20 @@ module Google include Google::Apis::Core::Hashable # The address of the API backend. + # The scheme is used to determine the backend protocol and security. + # The following schemes are accepted: + # SCHEME PROTOCOL SECURITY + # http:// HTTP None + # https:// HTTP TLS + # grpc:// gRPC None + # grpcs:// gRPC TLS + # It is recommended to explicitly include a scheme. Leaving out the scheme + # may cause constrasting behaviors across platforms. + # If the port is unspecified, the default is: + # - 80 for schemes without TLS + # - 443 for schemes with TLS + # For HTTP backends, use protocol + # to specify the protocol version. # Corresponds to the JSON property `address` # @return [String] attr_accessor :address @@ -431,9 +445,6 @@ module Google # @return [Float] attr_accessor :deadline - # When disable_auth is false, a JWT ID token will be generated with the - # value from BackendRule.address as jwt_audience, overrode to the HTTP - # "Authorization" request header and sent to the backend. # When disable_auth is true, a JWT ID token won't be generated and the # original "Authorization" HTTP header will be preserved. If the header is # used to carry the original token and is expected by the backend, this @@ -467,6 +478,27 @@ module Google # @return [String] attr_accessor :path_translation + # The protocol used for sending a request to the backend. + # The supported values are "http/1.1" and "h2". + # The default value is inferred from the scheme in the + # address field: + # SCHEME PROTOCOL + # http:// http/1.1 + # https:// http/1.1 + # grpc:// h2 + # grpcs:// h2 + # For secure HTTP backends (https://) that support HTTP/2, set this field + # to "h2" for improved performance. + # Configuring this field to non-default values is only supported for secure + # HTTP backends. This field will be ignored for all other backends. + # See + # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype- + # values.xhtml#alpn-protocol-ids + # for more details on the supported values. + # Corresponds to the JSON property `protocol` + # @return [String] + attr_accessor :protocol + # Selects the methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` @@ -486,6 +518,7 @@ module Google @min_deadline = args[:min_deadline] if args.key?(:min_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @path_translation = args[:path_translation] if args.key?(:path_translation) + @protocol = args[:protocol] if args.key?(:protocol) @selector = args[:selector] if args.key?(:selector) end end diff --git a/generated/google/apis/servicenetworking_v1beta/representations.rb b/generated/google/apis/servicenetworking_v1beta/representations.rb index 2ad3bab47..cf0e843a2 100644 --- a/generated/google/apis/servicenetworking_v1beta/representations.rb +++ b/generated/google/apis/servicenetworking_v1beta/representations.rb @@ -466,6 +466,7 @@ module Google property :min_deadline, as: 'minDeadline' property :operation_deadline, as: 'operationDeadline' property :path_translation, as: 'pathTranslation' + property :protocol, as: 'protocol' property :selector, as: 'selector' end end diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 51c384212..f8389a7ce 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20200130' + REVISION = '20200214' # 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/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index 489bd79ce..d592fb4ce 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -340,6 +340,20 @@ module Google include Google::Apis::Core::Hashable # The address of the API backend. + # The scheme is used to determine the backend protocol and security. + # The following schemes are accepted: + # SCHEME PROTOCOL SECURITY + # http:// HTTP None + # https:// HTTP TLS + # grpc:// gRPC None + # grpcs:// gRPC TLS + # It is recommended to explicitly include a scheme. Leaving out the scheme + # may cause constrasting behaviors across platforms. + # If the port is unspecified, the default is: + # - 80 for schemes without TLS + # - 443 for schemes with TLS + # For HTTP backends, use protocol + # to specify the protocol version. # Corresponds to the JSON property `address` # @return [String] attr_accessor :address @@ -350,9 +364,6 @@ module Google # @return [Float] attr_accessor :deadline - # When disable_auth is false, a JWT ID token will be generated with the - # value from BackendRule.address as jwt_audience, overrode to the HTTP - # "Authorization" request header and sent to the backend. # When disable_auth is true, a JWT ID token won't be generated and the # original "Authorization" HTTP header will be preserved. If the header is # used to carry the original token and is expected by the backend, this @@ -386,6 +397,27 @@ module Google # @return [String] attr_accessor :path_translation + # The protocol used for sending a request to the backend. + # The supported values are "http/1.1" and "h2". + # The default value is inferred from the scheme in the + # address field: + # SCHEME PROTOCOL + # http:// http/1.1 + # https:// http/1.1 + # grpc:// h2 + # grpcs:// h2 + # For secure HTTP backends (https://) that support HTTP/2, set this field + # to "h2" for improved performance. + # Configuring this field to non-default values is only supported for secure + # HTTP backends. This field will be ignored for all other backends. + # See + # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype- + # values.xhtml#alpn-protocol-ids + # for more details on the supported values. + # Corresponds to the JSON property `protocol` + # @return [String] + attr_accessor :protocol + # Selects the methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` @@ -405,6 +437,7 @@ module Google @min_deadline = args[:min_deadline] if args.key?(:min_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @path_translation = args[:path_translation] if args.key?(:path_translation) + @protocol = args[:protocol] if args.key?(:protocol) @selector = args[:selector] if args.key?(:selector) end end diff --git a/generated/google/apis/serviceusage_v1/representations.rb b/generated/google/apis/serviceusage_v1/representations.rb index 8b63cc612..6f3912960 100644 --- a/generated/google/apis/serviceusage_v1/representations.rb +++ b/generated/google/apis/serviceusage_v1/representations.rb @@ -542,6 +542,7 @@ module Google property :min_deadline, as: 'minDeadline' property :operation_deadline, as: 'operationDeadline' property :path_translation, as: 'pathTranslation' + property :protocol, as: 'protocol' property :selector, as: 'selector' end end diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index 8920ba6bb..2dc624428 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20200130' + REVISION = '20200214' # 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/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index befbf3944..d9c8f3bd5 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -340,6 +340,20 @@ module Google include Google::Apis::Core::Hashable # The address of the API backend. + # The scheme is used to determine the backend protocol and security. + # The following schemes are accepted: + # SCHEME PROTOCOL SECURITY + # http:// HTTP None + # https:// HTTP TLS + # grpc:// gRPC None + # grpcs:// gRPC TLS + # It is recommended to explicitly include a scheme. Leaving out the scheme + # may cause constrasting behaviors across platforms. + # If the port is unspecified, the default is: + # - 80 for schemes without TLS + # - 443 for schemes with TLS + # For HTTP backends, use protocol + # to specify the protocol version. # Corresponds to the JSON property `address` # @return [String] attr_accessor :address @@ -350,9 +364,6 @@ module Google # @return [Float] attr_accessor :deadline - # When disable_auth is false, a JWT ID token will be generated with the - # value from BackendRule.address as jwt_audience, overrode to the HTTP - # "Authorization" request header and sent to the backend. # When disable_auth is true, a JWT ID token won't be generated and the # original "Authorization" HTTP header will be preserved. If the header is # used to carry the original token and is expected by the backend, this @@ -386,6 +397,27 @@ module Google # @return [String] attr_accessor :path_translation + # The protocol used for sending a request to the backend. + # The supported values are "http/1.1" and "h2". + # The default value is inferred from the scheme in the + # address field: + # SCHEME PROTOCOL + # http:// http/1.1 + # https:// http/1.1 + # grpc:// h2 + # grpcs:// h2 + # For secure HTTP backends (https://) that support HTTP/2, set this field + # to "h2" for improved performance. + # Configuring this field to non-default values is only supported for secure + # HTTP backends. This field will be ignored for all other backends. + # See + # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype- + # values.xhtml#alpn-protocol-ids + # for more details on the supported values. + # Corresponds to the JSON property `protocol` + # @return [String] + attr_accessor :protocol + # Selects the methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` @@ -405,6 +437,7 @@ module Google @min_deadline = args[:min_deadline] if args.key?(:min_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @path_translation = args[:path_translation] if args.key?(:path_translation) + @protocol = args[:protocol] if args.key?(:protocol) @selector = args[:selector] if args.key?(:selector) end end diff --git a/generated/google/apis/serviceusage_v1beta1/representations.rb b/generated/google/apis/serviceusage_v1beta1/representations.rb index a16bcdf35..cadfcb218 100644 --- a/generated/google/apis/serviceusage_v1beta1/representations.rb +++ b/generated/google/apis/serviceusage_v1beta1/representations.rb @@ -548,6 +548,7 @@ module Google property :min_deadline, as: 'minDeadline' property :operation_deadline, as: 'operationDeadline' property :path_translation, as: 'pathTranslation' + property :protocol, as: 'protocol' property :selector, as: 'selector' end end