From a015e1e9e99803bd8924c5d92575161eeb433697 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 29 Feb 2020 00:38:29 +0000 Subject: [PATCH] Autogenerated update (2020-02-29) Update: - appengine_v1beta - cloudfunctions_v1 - cloudfunctions_v1beta2 - datacatalog_v1beta1 - dialogflow_v2 - dialogflow_v2beta1 - logging_v2 - oauth2_v2 - pubsub_v1 - pubsub_v1beta1a - servicecontrol_v1 --- generated/google/apis/appengine_v1beta.rb | 2 +- generated/google/apis/cloudfunctions_v1.rb | 2 +- .../google/apis/cloudfunctions_v1beta2.rb | 2 +- generated/google/apis/datacatalog_v1beta1.rb | 2 +- .../apis/datacatalog_v1beta1/classes.rb | 35 +- .../datacatalog_v1beta1/representations.rb | 2 + generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 251 +----- .../apis/dialogflow_v2/representations.rb | 96 +-- .../google/apis/dialogflow_v2/service.rb | 438 +--------- generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 258 +----- .../dialogflow_v2beta1/representations.rb | 96 +-- .../google/apis/dialogflow_v2beta1/service.rb | 810 +----------------- generated/google/apis/logging_v2.rb | 2 +- generated/google/apis/logging_v2/classes.rb | 57 +- .../google/apis/logging_v2/representations.rb | 2 - generated/google/apis/logging_v2/service.rb | 28 +- generated/google/apis/oauth2_v2.rb | 2 +- generated/google/apis/oauth2_v2/classes.rb | 68 -- .../google/apis/oauth2_v2/representations.rb | 32 - generated/google/apis/oauth2_v2/service.rb | 30 - generated/google/apis/pubsub_v1.rb | 2 +- generated/google/apis/pubsub_v1/classes.rb | 28 +- generated/google/apis/pubsub_v1/service.rb | 43 +- generated/google/apis/pubsub_v1beta1a.rb | 2 +- generated/google/apis/servicecontrol_v1.rb | 2 +- 27 files changed, 231 insertions(+), 2065 deletions(-) diff --git a/generated/google/apis/appengine_v1beta.rb b/generated/google/apis/appengine_v1beta.rb index 2dcf81b25..be9e65310 100644 --- a/generated/google/apis/appengine_v1beta.rb +++ b/generated/google/apis/appengine_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1beta VERSION = 'V1beta' - REVISION = '20200122' + REVISION = '20200215' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/cloudfunctions_v1.rb b/generated/google/apis/cloudfunctions_v1.rb index ac299d048..51cf4896e 100644 --- a/generated/google/apis/cloudfunctions_v1.rb +++ b/generated/google/apis/cloudfunctions_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1 VERSION = 'V1' - REVISION = '20200127' + REVISION = '20200219' # 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/cloudfunctions_v1beta2.rb b/generated/google/apis/cloudfunctions_v1beta2.rb index 0806a3e49..db5aa39c3 100644 --- a/generated/google/apis/cloudfunctions_v1beta2.rb +++ b/generated/google/apis/cloudfunctions_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1beta2 VERSION = 'V1beta2' - REVISION = '20191003' + REVISION = '20200219' # 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/datacatalog_v1beta1.rb b/generated/google/apis/datacatalog_v1beta1.rb index a6892e02d..ed5706789 100644 --- a/generated/google/apis/datacatalog_v1beta1.rb +++ b/generated/google/apis/datacatalog_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/data-catalog/docs/ module DatacatalogV1beta1 VERSION = 'V1beta1' - REVISION = '20200218' + REVISION = '20200225' # 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/datacatalog_v1beta1/classes.rb b/generated/google/apis/datacatalog_v1beta1/classes.rb index a85a435b0..494077392 100644 --- a/generated/google/apis/datacatalog_v1beta1/classes.rb +++ b/generated/google/apis/datacatalog_v1beta1/classes.rb @@ -1006,7 +1006,7 @@ module Google # @return [String] attr_accessor :query - # Required. The scope of this search request. + # The criteria that select the subspace used for query matching. # Corresponds to the JSON property `scope` # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope] attr_accessor :scope @@ -1025,7 +1025,7 @@ module Google end end - # + # The criteria that select the subspace used for query matching. class GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope include Google::Apis::Core::Hashable @@ -1038,19 +1038,14 @@ module Google attr_accessor :include_gcp_public_datasets alias_method :include_gcp_public_datasets?, :include_gcp_public_datasets - # Data Catalog tries to automatically choose the right corpus of data to - # search through. You can ensure an organization is included by adding it - # to `include_org_ids`. You can ensure a project's org is included with - # `include_project_ids`. You must specify at least one organization - # using `include_org_ids` or `include_project_ids` in all search requests. - # List of organization IDs to search within. To find your organization ID, - # follow instructions in + # The list of organization IDs to search within. To find your organization + # ID, follow instructions in # https://cloud.google.com/resource-manager/docs/creating-managing-organization. # Corresponds to the JSON property `includeOrgIds` # @return [Array] attr_accessor :include_org_ids - # List of project IDs to search within. To learn more about the + # The list of project IDs to search within. To learn more about the # distinction between project names/IDs/numbers, go to # https://cloud.google.com/docs/overview/#projects. # Corresponds to the JSON property `includeProjectIds` @@ -1354,6 +1349,16 @@ module Google # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue] attr_accessor :enum_value + # Output only. The order of this field with respect to other fields in this tag. + # It can be + # set in Tag. For + # example, a higher value can indicate a more important field. The value can + # be negative. Multiple fields can have the same order, and field orders + # within a tag do not have to be sequential. + # Corresponds to the JSON property `order` + # @return [Fixnum] + attr_accessor :order + # Holds the value for a tag field with string type. # Corresponds to the JSON property `stringValue` # @return [String] @@ -1374,6 +1379,7 @@ module Google @display_name = args[:display_name] if args.key?(:display_name) @double_value = args[:double_value] if args.key?(:double_value) @enum_value = args[:enum_value] if args.key?(:enum_value) + @order = args[:order] if args.key?(:order) @string_value = args[:string_value] if args.key?(:string_value) @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value) end @@ -1468,6 +1474,14 @@ module Google # @return [String] attr_accessor :name + # The order of this field with respect to other fields in this tag + # template. A higher value indicates a more important field. The value can + # be negative. Multiple fields can have the same order, and field orders + # within a tag do not have to be sequential. + # Corresponds to the JSON property `order` + # @return [Fixnum] + attr_accessor :order + # Required. The type of value this tag field can contain. # Corresponds to the JSON property `type` # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType] @@ -1482,6 +1496,7 @@ module Google @display_name = args[:display_name] if args.key?(:display_name) @is_required = args[:is_required] if args.key?(:is_required) @name = args[:name] if args.key?(:name) + @order = args[:order] if args.key?(:order) @type = args[:type] if args.key?(:type) end end diff --git a/generated/google/apis/datacatalog_v1beta1/representations.rb b/generated/google/apis/datacatalog_v1beta1/representations.rb index bf0af5954..7330a872f 100644 --- a/generated/google/apis/datacatalog_v1beta1/representations.rb +++ b/generated/google/apis/datacatalog_v1beta1/representations.rb @@ -633,6 +633,7 @@ module Google property :double_value, as: 'doubleValue' property :enum_value, as: 'enumValue', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue::Representation + property :order, as: 'order' property :string_value, as: 'stringValue' property :timestamp_value, as: 'timestampValue' end @@ -661,6 +662,7 @@ module Google property :display_name, as: 'displayName' property :is_required, as: 'isRequired' property :name, as: 'name' + property :order, as: 'order' property :type, as: 'type', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType::Representation end diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index d2e812051..1c233ad4b 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 = '20200212' + REVISION = '20200225' # 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 6d45d4192..301bee942 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -542,7 +542,7 @@ module Google class GoogleCloudDialogflowV2DetectIntentRequest include Google::Apis::Core::Hashable - # Optional. The natural language speech audio to be processed. This field + # The natural language speech audio to be processed. This field # should be populated iff `query_input` is set to an input audio config. # A single request can contain up to 1 minute of speech audio data. # Corresponds to the JSON property `inputAudio` @@ -557,6 +557,15 @@ module Google # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig] attr_accessor :output_audio_config + # Mask for output_audio_config indicating which settings in this + # request-level config should override speech synthesizer settings defined at + # agent-level. + # If unspecified or empty, output_audio_config replaces the agent-level + # config in its entirety. + # Corresponds to the JSON property `outputAudioConfigMask` + # @return [String] + attr_accessor :output_audio_config_mask + # Represents the query input. It can contain either: # 1. An audio config which # instructs the speech recognizer how to process the speech audio. @@ -579,6 +588,7 @@ module Google def update!(**args) @input_audio = args[:input_audio] if args.key?(:input_audio) @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config) + @output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask) @query_input = args[:query_input] if args.key?(:query_input) @query_params = args[:query_params] if args.key?(:query_params) end @@ -752,123 +762,6 @@ 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. @@ -890,7 +783,7 @@ module Google # @return [String] attr_accessor :name - # Optional. The collection of parameters associated with the event. + # The collection of parameters associated with the event. # Corresponds to the JSON property `parameters` # @return [Hash] attr_accessor :parameters @@ -2540,33 +2433,6 @@ 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 @@ -2621,33 +2487,6 @@ 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 @@ -2791,7 +2630,7 @@ module Google # @return [String] attr_accessor :audio_encoding - # Optional. The synthesis sample rate (in hertz) for this audio. If not + # The synthesis sample rate (in hertz) for this audio. If not # provided, then the synthesizer will use the default sample rate based on # the audio encoding. If this is different from the voice's natural sample # rate, then the synthesizer will honor this request by converting to the @@ -2860,7 +2699,7 @@ module Google class GoogleCloudDialogflowV2QueryParameters include Google::Apis::Core::Hashable - # Optional. The collection of contexts to be activated before this query is + # The collection of contexts to be activated before this query is # executed. # Corresponds to the JSON property `contexts` # @return [Array] @@ -2875,13 +2714,13 @@ module Google # @return [Google::Apis::DialogflowV2::GoogleTypeLatLng] attr_accessor :geo_location - # Optional. This field can be used to pass custom data into the webhook + # This field can be used to pass custom data into the webhook # associated with the agent. Arbitrary JSON objects are supported. # Corresponds to the JSON property `payload` # @return [Hash] attr_accessor :payload - # Optional. Specifies whether to delete all contexts in the current session + # Specifies whether to delete all contexts in the current session # before the new ones are activated. # Corresponds to the JSON property `resetContexts` # @return [Boolean] @@ -2893,14 +2732,14 @@ module Google # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SentimentAnalysisRequestConfig] attr_accessor :sentiment_analysis_request_config - # Optional. Additional session entity types to replace or extend developer + # Additional session entity types to replace or extend developer # entity types with. The entity synonyms apply to all languages and persist # for the session of this query. # Corresponds to the JSON property `sessionEntityTypes` # @return [Array] attr_accessor :session_entity_types - # Optional. The time zone of this conversational query from the + # 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 # agent settings is used. @@ -3156,7 +2995,7 @@ module Google class GoogleCloudDialogflowV2SentimentAnalysisRequestConfig include Google::Apis::Core::Hashable - # Optional. Instructs the service to perform sentiment analysis on + # Instructs the service to perform sentiment analysis on # `query_text`. If not provided, sentiment analysis is not performed on # `query_text`. # Corresponds to the JSON property `analyzeQueryTextSentiment` @@ -3438,56 +3277,6 @@ module Google 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 @@ -3926,7 +3715,7 @@ module Google # @return [String] attr_accessor :name - # Optional. The collection of parameters associated with the event. + # The collection of parameters associated with the event. # Corresponds to the JSON property `parameters` # @return [Hash] attr_accessor :parameters diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index f52296a40..d877ddc69 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -130,24 +130,6 @@ 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 @@ -412,12 +394,6 @@ 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 @@ -430,12 +406,6 @@ 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 @@ -550,12 +520,6 @@ module Google 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 @@ -1135,6 +1099,7 @@ module Google property :input_audio, :base64 => true, as: 'inputAudio' property :output_audio_config, as: 'outputAudioConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig::Representation + property :output_audio_config_mask, as: 'outputAudioConfigMask' property :query_input, as: 'queryInput', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput::Representation property :query_params, as: 'queryParams', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters::Representation @@ -1185,36 +1150,6 @@ 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 @@ -1679,15 +1614,6 @@ 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 @@ -1706,15 +1632,6 @@ 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 @@ -1912,17 +1829,6 @@ module Google 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 98536ddac..f8cc94f55 100644 --- a/generated/google/apis/dialogflow_v2/service.rb +++ b/generated/google/apis/dialogflow_v2/service.rb @@ -48,43 +48,6 @@ module Google @batch_path = 'batch' end - # Creates/updates the specified agent. - # @param [String] parent - # Required. The project of this agent. - # Format: `projects/`. - # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] google_cloud_dialogflow_v2_agent_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::GoogleCloudDialogflowV2Agent] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] - # - # @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 agent_project(parent, google_cloud_dialogflow_v2_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/{+parent}/agent', options) - command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation - command.request_object = google_cloud_dialogflow_v2_agent_object - command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation - command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent - command.params['parent'] = parent unless parent.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 the specified agent. # @param [String] parent # Required. The project that the agent to delete is associated with. @@ -147,6 +110,43 @@ module Google execute_or_queue_command(command, &block) end + # Creates/updates the specified agent. + # @param [String] parent + # Required. The project of this agent. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] google_cloud_dialogflow_v2_agent_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::GoogleCloudDialogflowV2Agent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] + # + # @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 set_project_agent(parent, google_cloud_dialogflow_v2_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/agent', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation + command.request_object = google_cloud_dialogflow_v2_agent_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent + command.params['parent'] = parent unless parent.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 + # Exports the specified agent to a ZIP file. # Operation # @param [String] parent @@ -826,226 +826,6 @@ 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 @@ -1777,150 +1557,6 @@ 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 557ce3472..42f906160 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 = '20200212' + REVISION = '20200225' # 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 43bc7bd13..4e769afe1 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -308,7 +308,7 @@ module Google # @return [String] attr_accessor :name - # Optional. The collection of parameters associated with the event. + # The collection of parameters associated with the event. # Corresponds to the JSON property `parameters` # @return [Hash] attr_accessor :parameters @@ -2613,7 +2613,7 @@ module Google class GoogleCloudDialogflowV2beta1DetectIntentRequest include Google::Apis::Core::Hashable - # Optional. The natural language speech audio to be processed. This field + # The natural language speech audio to be processed. This field # should be populated iff `query_input` is set to an input audio config. # A single request can contain up to 1 minute of speech audio data. # Corresponds to the JSON property `inputAudio` @@ -2628,6 +2628,15 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig] attr_accessor :output_audio_config + # Mask for output_audio_config indicating which settings in this + # request-level config should override speech synthesizer settings defined at + # agent-level. + # If unspecified or empty, output_audio_config replaces the agent-level + # config in its entirety. + # Corresponds to the JSON property `outputAudioConfigMask` + # @return [String] + attr_accessor :output_audio_config_mask + # Represents the query input. It can contain either: # 1. An audio config which # instructs the speech recognizer how to process the speech audio. @@ -2650,6 +2659,7 @@ module Google def update!(**args) @input_audio = args[:input_audio] if args.key?(:input_audio) @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config) + @output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask) @query_input = args[:query_input] if args.key?(:query_input) @query_params = args[:query_params] if args.key?(:query_params) end @@ -2908,124 +2918,6 @@ 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. @@ -3047,7 +2939,7 @@ module Google # @return [String] attr_accessor :name - # Optional. The collection of parameters associated with the event. + # The collection of parameters associated with the event. # Corresponds to the JSON property `parameters` # @return [Hash] attr_accessor :parameters @@ -5435,33 +5327,6 @@ 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 @@ -5542,33 +5407,6 @@ 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 @@ -5625,7 +5463,7 @@ module Google # @return [String] attr_accessor :audio_encoding - # Optional. The synthesis sample rate (in hertz) for this audio. If not + # The synthesis sample rate (in hertz) for this audio. If not # provided, then the synthesizer will use the default sample rate based on # the audio encoding. If this is different from the voice's natural sample # rate, then the synthesizer will honor this request by converting to the @@ -5694,7 +5532,7 @@ module Google class GoogleCloudDialogflowV2beta1QueryParameters include Google::Apis::Core::Hashable - # Optional. The collection of contexts to be activated before this query is + # The collection of contexts to be activated before this query is # executed. # Corresponds to the JSON property `contexts` # @return [Array] @@ -5709,20 +5547,20 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng] attr_accessor :geo_location - # Optional. KnowledgeBases to get alternative results from. If not set, the + # KnowledgeBases to get alternative results from. If not set, the # KnowledgeBases enabled in the agent (through UI) will be used. # Format: `projects//knowledgeBases/`. # Corresponds to the JSON property `knowledgeBaseNames` # @return [Array] attr_accessor :knowledge_base_names - # Optional. This field can be used to pass custom data into the webhook + # This field can be used to pass custom data into the webhook # associated with the agent. Arbitrary JSON objects are supported. # Corresponds to the JSON property `payload` # @return [Hash] attr_accessor :payload - # Optional. Specifies whether to delete all contexts in the current session + # Specifies whether to delete all contexts in the current session # before the new ones are activated. # Corresponds to the JSON property `resetContexts` # @return [Boolean] @@ -5734,14 +5572,14 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig] attr_accessor :sentiment_analysis_request_config - # Optional. Additional session entity types to replace or extend developer + # Additional session entity types to replace or extend developer # entity types with. The entity synonyms apply to all languages and persist # for the session of this query. # Corresponds to the JSON property `sessionEntityTypes` # @return [Array] attr_accessor :session_entity_types - # Optional. For mega agent query, directly specify which sub agents to query. + # 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. @@ -5749,7 +5587,7 @@ module Google # @return [Array] attr_accessor :sub_agents - # Optional. The time zone of this conversational query from the + # 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 # agent settings is used. @@ -5757,7 +5595,7 @@ module Google # @return [String] attr_accessor :time_zone - # Optional. This field can be used to pass HTTP headers for a webhook + # This field can be used to pass HTTP headers for a webhook # call. These headers will be sent to webhook alone with the headers that # have been configured through Dialogflow web console. The headers defined # within this field will overwrite the headers configured through Dialogflow @@ -6045,7 +5883,7 @@ module Google class GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig include Google::Apis::Core::Hashable - # Optional. Instructs the service to perform sentiment analysis on + # Instructs the service to perform sentiment analysis on # `query_text`. If not provided, sentiment analysis is not performed on # `query_text`. # Corresponds to the JSON property `analyzeQueryTextSentiment` @@ -6359,56 +6197,6 @@ 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 7bf565642..f9dd93617 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -436,24 +436,6 @@ 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 @@ -844,12 +826,6 @@ 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 @@ -868,12 +844,6 @@ 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 @@ -988,12 +958,6 @@ 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 @@ -1724,6 +1688,7 @@ module Google property :input_audio, :base64 => true, as: 'inputAudio' property :output_audio_config, as: 'outputAudioConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig::Representation + property :output_audio_config_mask, as: 'outputAudioConfigMask' property :query_input, as: 'queryInput', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput::Representation property :query_params, as: 'queryParams', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters::Representation @@ -1789,36 +1754,6 @@ 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 @@ -2479,15 +2414,6 @@ 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 @@ -2515,15 +2441,6 @@ 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 @@ -2720,17 +2637,6 @@ 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 692caa3f4..fe9a28556 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -48,43 +48,6 @@ module Google @batch_path = 'batch' end - # Creates/updates the specified agent. - # @param [String] parent - # Required. The project of this agent. - # Format: `projects/`. - # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] google_cloud_dialogflow_v2beta1_agent_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] - # - # @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 agent_project(parent, google_cloud_dialogflow_v2beta1_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/{+parent}/agent', options) - command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation - command.request_object = google_cloud_dialogflow_v2beta1_agent_object - command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation - command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent - command.params['parent'] = parent unless parent.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 the specified agent. # @param [String] parent # Required. The project that the agent to delete is associated with. @@ -147,6 +110,43 @@ module Google execute_or_queue_command(command, &block) end + # Creates/updates the specified agent. + # @param [String] parent + # Required. The project of this agent. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] google_cloud_dialogflow_v2beta1_agent_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] + # + # @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 set_project_agent(parent, google_cloud_dialogflow_v2beta1_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/agent', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation + command.request_object = google_cloud_dialogflow_v2beta1_agent_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent + command.params['parent'] = parent unless parent.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 + # Exports the specified agent to a ZIP file. # Operation # @param [String] parent @@ -826,229 +826,6 @@ 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: @@ -2736,151 +2513,6 @@ 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`. @@ -3999,229 +3631,6 @@ 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: @@ -5486,151 +4895,6 @@ 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/logging_v2.rb b/generated/google/apis/logging_v2.rb index cd5cbdce9..926202165 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20200221' + REVISION = '20200222' # 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/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index a0c6b7ac5..1fa408749 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -140,12 +140,12 @@ module Google # @return [String] attr_accessor :kms_key_name - # Output Only. The resource name of the CMEK settings. + # Output only. The resource name of the CMEK settings. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Output Only. The service account that will be used by the Logs Router to + # Output only. The service account that will be used by the Logs Router to # access your Cloud KMS key.Before enabling CMEK for Logs Router, you must first # assign the role roles/cloudkms.cryptoKeyEncrypterDecrypter to the service # account that the Logs Router will use to access your Cloud KMS key. Use @@ -524,8 +524,9 @@ module Google # @return [String] attr_accessor :page_token - # Deprecated. Use resource_names instead. One or more project identifiers or - # project numbers from which to retrieve log entries. Example: "my-project-1A". + # Optional. Deprecated. Use resource_names instead. One or more project + # identifiers or project numbers from which to retrieve log entries. Example: " + # my-project-1A". # Corresponds to the JSON property `projectIds` # @return [Array] attr_accessor :project_ids @@ -715,7 +716,7 @@ module Google # @return [String] attr_accessor :description - # The bucket lifecycle state.Output only. + # Output only. The bucket lifecycle state. # Corresponds to the JSON property `lifecycleState` # @return [String] attr_accessor :lifecycle_state @@ -797,17 +798,17 @@ module Google # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # A project number may optionally be used in place of PROJECT_ID. The project - # number is translated to its corresponding PROJECT_ID internally and the - # log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be - # URL-encoded within log_name. Example: "organizations/1234567890/logs/ - # cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must be less than - # 512 characters long and can only include the following characters: upper and - # lower case alphanumeric characters, forward-slash, underscore, hyphen, and - # period.For backward compatibility, if log_name begins with a forward-slash, - # such as /projects/..., then the log entry is ingested as usual but the forward- - # slash is removed. Listing the log entry will not show the leading slash and - # filtering for a log name with a leading slash will never return any results. + # A project number may be used in place of PROJECT_ID. The project number is + # translated to its corresponding PROJECT_ID internally and the log_name field + # will contain PROJECT_ID in queries and exports.[LOG_ID] must be URL-encoded + # within log_name. Example: "organizations/1234567890/logs/cloudresourcemanager. + # googleapis.com%2Factivity". [LOG_ID] must be less than 512 characters long and + # can only include the following characters: upper and lower case alphanumeric + # characters, forward-slash, underscore, hyphen, and period.For backward + # compatibility, if log_name begins with a forward-slash, such as /projects/..., + # then the log entry is ingested as usual but the forward-slash is removed. + # Listing the log entry will not show the leading slash and filtering for a log + # name with a leading slash will never return any results. # Corresponds to the JSON property `logName` # @return [String] attr_accessor :log_name @@ -871,8 +872,7 @@ module Google # Optional. The span ID within the trace associated with the log entry.For Trace # spans, this is the same format that the Trace API v2 uses: a 16-character - # hexadecimal encoding of an 8-byte array, such as "000000000000004a". + # hexadecimal encoding of an 8-byte array, such as 000000000000004a. # Corresponds to the JSON property `spanId` # @return [String] attr_accessor :span_id @@ -1293,11 +1293,6 @@ module Google attr_accessor :disabled alias_method :disabled?, :disabled - # Do not use. This field is ignored. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - # Optional. An advanced logs filter. The only exported log entries are those # that are in the resource owning the sink and that match the filter. For # example: @@ -1338,11 +1333,6 @@ module Google # @return [String] attr_accessor :output_version_format - # Do not use. This field is ignored. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - # Output only. The last update timestamp of the sink.This field may not be # present for older sinks. # Corresponds to the JSON property `updateTime` @@ -1372,12 +1362,10 @@ module Google @description = args[:description] if args.key?(:description) @destination = args[:destination] if args.key?(:destination) @disabled = args[:disabled] if args.key?(:disabled) - @end_time = args[:end_time] if args.key?(:end_time) @filter = args[:filter] if args.key?(:filter) @include_children = args[:include_children] if args.key?(:include_children) @name = args[:name] if args.key?(:name) @output_version_format = args[:output_version_format] if args.key?(:output_version_format) - @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) @writer_identity = args[:writer_identity] if args.key?(:writer_identity) end @@ -2074,10 +2062,9 @@ module Google # [LOG_ID] must be URL-encoded. For example: # "projects/my-project-id/logs/syslog" # "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" - # The permission logging.logEntries.create is needed on each - # project, organization, billing account, or folder that is receiving new log - # entries, whether the resource is specified in logName or in an - # individual log entry. + # The permission logging.logEntries.create is needed on each project, + # organization, billing account, or folder that is receiving new log entries, + # whether the resource is specified in logName or in an individual log entry. # Corresponds to the JSON property `logName` # @return [String] attr_accessor :log_name @@ -2123,7 +2110,7 @@ module Google end end - # Result returned from WriteLogEntries. empty + # Result returned from WriteLogEntries. class WriteLogEntriesResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/logging_v2/representations.rb b/generated/google/apis/logging_v2/representations.rb index d5a9fc645..bfe7fc608 100644 --- a/generated/google/apis/logging_v2/representations.rb +++ b/generated/google/apis/logging_v2/representations.rb @@ -505,12 +505,10 @@ module Google property :description, as: 'description' property :destination, as: 'destination' property :disabled, as: 'disabled' - property :end_time, as: 'endTime' property :filter, as: 'filter' property :include_children, as: 'includeChildren' property :name, as: 'name' property :output_version_format, as: 'outputVersionFormat' - property :start_time, as: 'startTime' property :update_time, as: 'updateTime' property :writer_identity, as: 'writerIdentity' end diff --git a/generated/google/apis/logging_v2/service.rb b/generated/google/apis/logging_v2/service.rb index bde0201d8..5261c8b5a 100644 --- a/generated/google/apis/logging_v2/service.rb +++ b/generated/google/apis/logging_v2/service.rb @@ -295,8 +295,8 @@ module Google # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - # Note: The locations portion of the resource is required, but supplying the - # character - in place of LOCATION_ID will return all buckets. + # Note: The locations portion of the resource must be specified, but supplying + # the character - in place of LOCATION_ID will return all buckets. # @param [Fixnum] page_size # Optional. The maximum number of results to return from this request. Non- # positive values are ignored. The presence of nextPageToken in the response @@ -1278,8 +1278,8 @@ module Google # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - # Note: The locations portion of the resource is required, but supplying the - # character - in place of LOCATION_ID will return all buckets. + # Note: The locations portion of the resource must be specified, but supplying + # the character - in place of LOCATION_ID will return all buckets. # @param [Fixnum] page_size # Optional. The maximum number of results to return from this request. Non- # positive values are ignored. The presence of nextPageToken in the response @@ -1793,8 +1793,8 @@ module Google # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - # Note: The locations portion of the resource is required, but supplying the - # character - in place of LOCATION_ID will return all buckets. + # Note: The locations portion of the resource must be specified, but supplying + # the character - in place of LOCATION_ID will return all buckets. # @param [Fixnum] page_size # Optional. The maximum number of results to return from this request. Non- # positive values are ignored. The presence of nextPageToken in the response @@ -2346,8 +2346,8 @@ module Google # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - # Note: The locations portion of the resource is required, but supplying the - # character - in place of LOCATION_ID will return all buckets. + # Note: The locations portion of the resource must be specified, but supplying + # the character - in place of LOCATION_ID will return all buckets. # @param [Fixnum] page_size # Optional. The maximum number of results to return from this request. Non- # positive values are ignored. The presence of nextPageToken in the response @@ -3062,8 +3062,8 @@ module Google # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - # Note: The locations portion of the resource is required, but supplying the - # character - in place of LOCATION_ID will return all buckets. + # Note: The locations portion of the resource must be specified, but supplying + # the character - in place of LOCATION_ID will return all buckets. # @param [Fixnum] page_size # Optional. The maximum number of results to return from this request. Non- # positive values are ignored. The presence of nextPageToken in the response @@ -3243,7 +3243,7 @@ module Google # Creates a logs-based metric. # @param [String] parent - # The resource name of the project in which to create the metric: + # Required. The resource name of the project in which to create the metric: # "projects/[PROJECT_ID]" # The new metric must be provided in the request. # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object @@ -3278,7 +3278,7 @@ module Google # Deletes a logs-based metric. # @param [String] metric_name - # The resource name of the metric to delete: + # Required. The resource name of the metric to delete: # "projects/[PROJECT_ID]/metrics/[METRIC_ID]" # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3309,7 +3309,7 @@ module Google # Gets a logs-based metric. # @param [String] metric_name - # The resource name of the desired metric: + # Required. The resource name of the desired metric: # "projects/[PROJECT_ID]/metrics/[METRIC_ID]" # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3382,7 +3382,7 @@ module Google # Creates or updates a logs-based metric. # @param [String] metric_name - # The resource name of the metric to update: + # Required. The resource name of the metric to update: # "projects/[PROJECT_ID]/metrics/[METRIC_ID]" # The updated metric must be provided in the request and it's name field must be # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a diff --git a/generated/google/apis/oauth2_v2.rb b/generated/google/apis/oauth2_v2.rb index 6581079c2..0f5e0eeee 100644 --- a/generated/google/apis/oauth2_v2.rb +++ b/generated/google/apis/oauth2_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/accounts/docs/OAuth2 module Oauth2V2 VERSION = 'V2' - REVISION = '20190313' + REVISION = '20200213' # Associate you with your personal info on Google AUTH_PLUS_ME = 'https://www.googleapis.com/auth/plus.me' diff --git a/generated/google/apis/oauth2_v2/classes.rb b/generated/google/apis/oauth2_v2/classes.rb index f90172b68..b91205e5d 100644 --- a/generated/google/apis/oauth2_v2/classes.rb +++ b/generated/google/apis/oauth2_v2/classes.rb @@ -22,74 +22,6 @@ module Google module Apis module Oauth2V2 - # - class Jwk - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `keys` - # @return [Array] - attr_accessor :keys - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @keys = args[:keys] if args.key?(:keys) - end - - # - class Key - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `alg` - # @return [String] - attr_accessor :alg - - # - # Corresponds to the JSON property `e` - # @return [String] - attr_accessor :e - - # - # Corresponds to the JSON property `kid` - # @return [String] - attr_accessor :kid - - # - # Corresponds to the JSON property `kty` - # @return [String] - attr_accessor :kty - - # - # Corresponds to the JSON property `n` - # @return [String] - attr_accessor :n - - # - # Corresponds to the JSON property `use` - # @return [String] - attr_accessor :use - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @alg = args[:alg] if args.key?(:alg) - @e = args[:e] if args.key?(:e) - @kid = args[:kid] if args.key?(:kid) - @kty = args[:kty] if args.key?(:kty) - @n = args[:n] if args.key?(:n) - @use = args[:use] if args.key?(:use) - end - end - end - # class Tokeninfo include Google::Apis::Core::Hashable diff --git a/generated/google/apis/oauth2_v2/representations.rb b/generated/google/apis/oauth2_v2/representations.rb index f02b18bd9..76f7fed92 100644 --- a/generated/google/apis/oauth2_v2/representations.rb +++ b/generated/google/apis/oauth2_v2/representations.rb @@ -22,18 +22,6 @@ module Google module Apis module Oauth2V2 - class Jwk - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Key - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - class Tokeninfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -46,26 +34,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Jwk - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :keys, as: 'keys', class: Google::Apis::Oauth2V2::Jwk::Key, decorator: Google::Apis::Oauth2V2::Jwk::Key::Representation - - end - - class Key - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :alg, as: 'alg' - property :e, as: 'e' - property :kid, as: 'kid' - property :kty, as: 'kty' - property :n, as: 'n' - property :use, as: 'use' - end - end - end - class Tokeninfo # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/oauth2_v2/service.rb b/generated/google/apis/oauth2_v2/service.rb index d127da457..f61852896 100644 --- a/generated/google/apis/oauth2_v2/service.rb +++ b/generated/google/apis/oauth2_v2/service.rb @@ -51,36 +51,6 @@ module Google @batch_path = 'batch/oauth2/v2' end - # - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::Oauth2V2::Jwk] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Oauth2V2::Jwk] - # - # @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_cert_for_open_id_connect(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'oauth2/v2/certs', options) - command.response_representation = Google::Apis::Oauth2V2::Jwk::Representation - command.response_class = Google::Apis::Oauth2V2::Jwk - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # # @param [String] access_token # @param [String] id_token diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index 58d765d6f..3a0b4c0da 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20200211' + REVISION = '20200218' # 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/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index 655bb836d..8cc012fa0 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -26,7 +26,8 @@ module Google class AcknowledgeRequest include Google::Apis::Core::Hashable - # The acknowledgment ID for the messages being acknowledged that was returned + # Required. The acknowledgment ID for the messages being acknowledged that was + # returned # by the Pub/Sub system in the `Pull` response. Must not be empty. # Corresponds to the JSON property `ackIds` # @return [Array] @@ -135,7 +136,7 @@ module Google # @return [Hash] attr_accessor :labels - # The subscription whose backlog the snapshot retains. + # Required. The subscription whose backlog the snapshot retains. # Specifically, the created snapshot is guaranteed to retain: # (a) The existing backlog on the subscription. More precisely, this is # defined as the messages in the subscription's backlog that are @@ -469,7 +470,8 @@ module Google class ModifyAckDeadlineRequest include Google::Apis::Core::Hashable - # The new ack deadline with respect to the time this request was sent to + # Required. The new ack deadline with respect to the time this request was sent + # to # the Pub/Sub system. For example, if the value is 10, the new # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call # was made. Specifying zero might immediately make the message available for @@ -481,7 +483,7 @@ module Google # @return [Fixnum] attr_accessor :ack_deadline_seconds - # List of acknowledgment IDs. + # Required. List of acknowledgment IDs. # Corresponds to the JSON property `ackIds` # @return [Array] attr_accessor :ack_ids @@ -670,7 +672,7 @@ module Google class PublishRequest include Google::Apis::Core::Hashable - # The messages to publish. + # Required. The messages to publish. # Corresponds to the JSON property `messages` # @return [Array] attr_accessor :messages @@ -762,7 +764,7 @@ module Google class PullRequest include Google::Apis::Core::Hashable - # The maximum number of messages to return for this request. Must be a + # Required. The maximum number of messages to return for this request. Must be a # positive integer. The Pub/Sub system may return fewer than the number # specified. # Corresponds to the JSON property `maxMessages` @@ -1141,7 +1143,7 @@ module Google # @return [String] attr_accessor :message_retention_duration - # The name of the subscription. It must have the format + # Required. The name of the subscription. It must have the format # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must # start with a letter, and contain only letters (`[A-Za-z]`), numbers # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), @@ -1168,7 +1170,8 @@ module Google attr_accessor :retain_acked_messages alias_method :retain_acked_messages?, :retain_acked_messages - # The name of the topic from which this subscription is receiving messages. + # Required. The name of the topic from which this subscription is receiving + # messages. # Format is `projects/`project`/topics/`topic``. # The value of this field will be `_deleted-topic_` if the topic has been # deleted. @@ -1260,7 +1263,7 @@ module Google # @return [Google::Apis::PubsubV1::MessageStoragePolicy] attr_accessor :message_storage_policy - # The name of the topic. It must have the format + # Required. The name of the topic. It must have the format # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent @@ -1297,7 +1300,7 @@ module Google # @return [Google::Apis::PubsubV1::Snapshot] attr_accessor :snapshot - # Indicates which fields in the provided snapshot to update. + # Required. Indicates which fields in the provided snapshot to update. # Must be specified and non-empty. # Corresponds to the JSON property `updateMask` # @return [String] @@ -1323,7 +1326,7 @@ module Google # @return [Google::Apis::PubsubV1::Subscription] attr_accessor :subscription - # Indicates which fields in the provided subscription to update. + # Required. Indicates which fields in the provided subscription to update. # Must be specified and non-empty. # Corresponds to the JSON property `updateMask` # @return [String] @@ -1349,7 +1352,8 @@ module Google # @return [Google::Apis::PubsubV1::Topic] attr_accessor :topic - # Indicates which fields in the provided topic to update. Must be specified + # Required. Indicates which fields in the provided topic to update. Must be + # specified # and non-empty. Note that if `update_mask` contains # "message_storage_policy" then the new value will be determined based on the # policy configured at the project or organization level. The diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index a7ca8af41..3867bfb50 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -66,7 +66,8 @@ module Google # generated name is populated in the returned Snapshot object. Note that for # REST API requests, you must specify a name in the request. # @param [String] name - # User-provided name for this snapshot. If the name is not provided in the + # Required. User-provided name for this snapshot. If the name is not provided in + # the # request, the server will assign a random name for this snapshot on the same # project as the subscription. Note that for REST API requests, you must # specify a name. See the # resource name rules. # @param [String] name - # The name of the topic. It must have the format + # Required. The name of the topic. It must have the format # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent @@ -921,7 +922,7 @@ module Google # configuration or subscriptions. Existing subscriptions to this topic are # not deleted, but their `topic` field is set to `_deleted-topic_`. # @param [String] topic - # Name of the topic to delete. + # Required. Name of the topic to delete. # Format is `projects/`project`/topics/`topic``. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -952,7 +953,7 @@ module Google # Gets the configuration of a topic. # @param [String] topic - # The name of the topic to get. + # Required. The name of the topic to get. # Format is `projects/`project`/topics/`topic``. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1024,7 +1025,7 @@ module Google # Lists matching topics. # @param [String] project - # The name of the project in which to list topics. + # Required. The name of the project in which to list topics. # Format is `projects/`project-id``. # @param [Fixnum] page_size # Maximum number of topics to return. @@ -1064,7 +1065,7 @@ module Google # Updates an existing topic. Note that certain properties of a # topic are not modifiable. # @param [String] name - # The name of the topic. It must have the format + # Required. The name of the topic. It must have the format # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent @@ -1103,7 +1104,7 @@ module Google # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic # does not exist. # @param [String] topic - # The messages in the request will be published on this topic. + # Required. The messages in the request will be published on this topic. # Format is `projects/`project`/topics/`topic``. # @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object # @param [String] fields @@ -1256,7 +1257,7 @@ module Google # Lists the names of the subscriptions on this topic. # @param [String] topic - # The name of the topic that subscriptions are attached to. + # Required. The name of the topic that subscriptions are attached to. # Format is `projects/`project`/topics/`topic``. # @param [Fixnum] page_size # Maximum number of subscription names to return. diff --git a/generated/google/apis/pubsub_v1beta1a.rb b/generated/google/apis/pubsub_v1beta1a.rb index 5cd449a9c..90ff34acd 100644 --- a/generated/google/apis/pubsub_v1beta1a.rb +++ b/generated/google/apis/pubsub_v1beta1a.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1beta1a VERSION = 'V1beta1a' - REVISION = '20200211' + REVISION = '20200218' # 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/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index 44532c657..769c83b64 100644 --- a/generated/google/apis/servicecontrol_v1.rb +++ b/generated/google/apis/servicecontrol_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-control/ module ServicecontrolV1 VERSION = 'V1' - REVISION = '20200210' + REVISION = '20200224' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'