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
This commit is contained in:
Google APIs 2020-02-29 00:38:29 +00:00
parent 01a8bd6540
commit a015e1e9e9
27 changed files with 231 additions and 2065 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/ # @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta module AppengineV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20200122' REVISION = '20200215'
# View and manage your applications deployed on Google App Engine # View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/functions # @see https://cloud.google.com/functions
module CloudfunctionsV1 module CloudfunctionsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200127' REVISION = '20200219'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/functions # @see https://cloud.google.com/functions
module CloudfunctionsV1beta2 module CloudfunctionsV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20191003' REVISION = '20200219'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/data-catalog/docs/ # @see https://cloud.google.com/data-catalog/docs/
module DatacatalogV1beta1 module DatacatalogV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200218' REVISION = '20200225'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1006,7 +1006,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :query 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` # Corresponds to the JSON property `scope`
# @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope] # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope]
attr_accessor :scope attr_accessor :scope
@ -1025,7 +1025,7 @@ module Google
end end
end end
# # The criteria that select the subspace used for query matching.
class GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope class GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1038,19 +1038,14 @@ module Google
attr_accessor :include_gcp_public_datasets attr_accessor :include_gcp_public_datasets
alias_method :include_gcp_public_datasets?, :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 # The list of organization IDs to search within. To find your organization
# search through. You can ensure an organization is included by adding it # ID, follow instructions in
# 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
# https://cloud.google.com/resource-manager/docs/creating-managing-organization. # https://cloud.google.com/resource-manager/docs/creating-managing-organization.
# Corresponds to the JSON property `includeOrgIds` # Corresponds to the JSON property `includeOrgIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :include_org_ids 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 # distinction between project names/IDs/numbers, go to
# https://cloud.google.com/docs/overview/#projects. # https://cloud.google.com/docs/overview/#projects.
# Corresponds to the JSON property `includeProjectIds` # Corresponds to the JSON property `includeProjectIds`
@ -1354,6 +1349,16 @@ module Google
# @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue] # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue]
attr_accessor :enum_value 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. # Holds the value for a tag field with string type.
# Corresponds to the JSON property `stringValue` # Corresponds to the JSON property `stringValue`
# @return [String] # @return [String]
@ -1374,6 +1379,7 @@ module Google
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@double_value = args[:double_value] if args.key?(:double_value) @double_value = args[:double_value] if args.key?(:double_value)
@enum_value = args[:enum_value] if args.key?(:enum_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) @string_value = args[:string_value] if args.key?(:string_value)
@timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value) @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
end end
@ -1468,6 +1474,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :name 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. # Required. The type of value this tag field can contain.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType] # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType]
@ -1482,6 +1496,7 @@ module Google
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@is_required = args[:is_required] if args.key?(:is_required) @is_required = args[:is_required] if args.key?(:is_required)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@order = args[:order] if args.key?(:order)
@type = args[:type] if args.key?(:type) @type = args[:type] if args.key?(:type)
end end
end end

View File

@ -633,6 +633,7 @@ module Google
property :double_value, as: 'doubleValue' property :double_value, as: 'doubleValue'
property :enum_value, as: 'enumValue', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue::Representation 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 :string_value, as: 'stringValue'
property :timestamp_value, as: 'timestampValue' property :timestamp_value, as: 'timestampValue'
end end
@ -661,6 +662,7 @@ module Google
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :is_required, as: 'isRequired' property :is_required, as: 'isRequired'
property :name, as: 'name' property :name, as: 'name'
property :order, as: 'order'
property :type, as: 'type', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType::Representation property :type, as: 'type', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType::Representation
end end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/ # @see https://cloud.google.com/dialogflow/
module DialogflowV2 module DialogflowV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200212' REVISION = '20200225'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -542,7 +542,7 @@ module Google
class GoogleCloudDialogflowV2DetectIntentRequest class GoogleCloudDialogflowV2DetectIntentRequest
include Google::Apis::Core::Hashable 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. # 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. # A single request can contain up to 1 minute of speech audio data.
# Corresponds to the JSON property `inputAudio` # Corresponds to the JSON property `inputAudio`
@ -557,6 +557,15 @@ module Google
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig] # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
attr_accessor :output_audio_config 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: # Represents the query input. It can contain either:
# 1. An audio config which # 1. An audio config which
# instructs the speech recognizer how to process the speech audio. # instructs the speech recognizer how to process the speech audio.
@ -579,6 +588,7 @@ module Google
def update!(**args) def update!(**args)
@input_audio = args[:input_audio] if args.key?(:input_audio) @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 = 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_input = args[:query_input] if args.key?(:query_input)
@query_params = args[:query_params] if args.key?(:query_params) @query_params = args[:query_params] if args.key?(:query_params)
end end
@ -752,123 +762,6 @@ module Google
end end
end end
# Represents an agent environment.
class GoogleCloudDialogflowV2Environment
include Google::Apis::Core::Hashable
# Optional. The agent version loaded into this environment.
# Format: `projects/<Project ID>/agent/versions/<Version ID>`.
# 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/<Project ID>/agent/environments/<Environment ID>`.
# 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<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistoryEntry>]
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/<Project ID>/agent/environments/<Environment ID>`.
# 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 # Events allow for matching intents by event name instead of the natural
# language input. For instance, input `<event: ` name: "welcome_event", # language input. For instance, input `<event: ` name: "welcome_event",
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response. # parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
@ -890,7 +783,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name 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` # Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :parameters attr_accessor :parameters
@ -2540,33 +2433,6 @@ module Google
end end
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<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment>]
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. # The response message for Intents.ListIntents.
class GoogleCloudDialogflowV2ListIntentsResponse class GoogleCloudDialogflowV2ListIntentsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2621,33 +2487,6 @@ module Google
end end
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<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version>]
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. # Represents a message posted into a conversation.
class GoogleCloudDialogflowV2Message class GoogleCloudDialogflowV2Message
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2791,7 +2630,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :audio_encoding 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 # 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 # 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 # rate, then the synthesizer will honor this request by converting to the
@ -2860,7 +2699,7 @@ module Google
class GoogleCloudDialogflowV2QueryParameters class GoogleCloudDialogflowV2QueryParameters
include Google::Apis::Core::Hashable 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. # executed.
# Corresponds to the JSON property `contexts` # Corresponds to the JSON property `contexts`
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>] # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
@ -2875,13 +2714,13 @@ module Google
# @return [Google::Apis::DialogflowV2::GoogleTypeLatLng] # @return [Google::Apis::DialogflowV2::GoogleTypeLatLng]
attr_accessor :geo_location 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. # associated with the agent. Arbitrary JSON objects are supported.
# Corresponds to the JSON property `payload` # Corresponds to the JSON property `payload`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :payload 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. # before the new ones are activated.
# Corresponds to the JSON property `resetContexts` # Corresponds to the JSON property `resetContexts`
# @return [Boolean] # @return [Boolean]
@ -2893,14 +2732,14 @@ module Google
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SentimentAnalysisRequestConfig] # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SentimentAnalysisRequestConfig]
attr_accessor :sentiment_analysis_request_config 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 # entity types with. The entity synonyms apply to all languages and persist
# for the session of this query. # for the session of this query.
# Corresponds to the JSON property `sessionEntityTypes` # Corresponds to the JSON property `sessionEntityTypes`
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType>] # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType>]
attr_accessor :session_entity_types 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., # [time zone database](https://www.iana.org/time-zones), e.g.,
# America/New_York, Europe/Paris. If not provided, the time zone specified in # America/New_York, Europe/Paris. If not provided, the time zone specified in
# agent settings is used. # agent settings is used.
@ -3156,7 +2995,7 @@ module Google
class GoogleCloudDialogflowV2SentimentAnalysisRequestConfig class GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
include Google::Apis::Core::Hashable 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`. If not provided, sentiment analysis is not performed on
# `query_text`. # `query_text`.
# Corresponds to the JSON property `analyzeQueryTextSentiment` # Corresponds to the JSON property `analyzeQueryTextSentiment`
@ -3438,56 +3277,6 @@ module Google
end end
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/<Project ID>/agent/versions/<Version ID>`.
# 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. # Description of which voice to use for speech synthesis.
class GoogleCloudDialogflowV2VoiceSelectionParams class GoogleCloudDialogflowV2VoiceSelectionParams
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3926,7 +3715,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name 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` # Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :parameters attr_accessor :parameters

View File

@ -130,24 +130,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end 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 GoogleCloudDialogflowV2EventInput
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -412,12 +394,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2ListEnvironmentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2ListIntentsResponse class GoogleCloudDialogflowV2ListIntentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -430,12 +406,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2Message class GoogleCloudDialogflowV2Message
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -550,12 +520,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2Version
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2VoiceSelectionParams class GoogleCloudDialogflowV2VoiceSelectionParams
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1135,6 +1099,7 @@ module Google
property :input_audio, :base64 => true, as: 'inputAudio' 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, 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_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 property :query_params, as: 'queryParams', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters::Representation
@ -1185,36 +1150,6 @@ module Google
end end
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 class GoogleCloudDialogflowV2EventInput
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1679,15 +1614,6 @@ module Google
end end
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 class GoogleCloudDialogflowV2ListIntentsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1706,15 +1632,6 @@ module Google
end end
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 class GoogleCloudDialogflowV2Message
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1912,17 +1829,6 @@ module Google
end end
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 class GoogleCloudDialogflowV2VoiceSelectionParams
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -48,43 +48,6 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Creates/updates the specified agent.
# @param [String] parent
# Required. The project of this agent.
# Format: `projects/<Project ID>`.
# @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. # Deletes the specified agent.
# @param [String] parent # @param [String] parent
# Required. The project that the agent to delete is associated with. # Required. The project that the agent to delete is associated with.
@ -147,6 +110,43 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates/updates the specified agent.
# @param [String] parent
# Required. The project of this agent.
# Format: `projects/<Project ID>`.
# @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. # Exports the specified agent to a ZIP file.
# Operation <response: ExportAgentResponse> # Operation <response: ExportAgentResponse>
# @param [String] parent # @param [String] parent
@ -826,226 +826,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates an agent environment.
# @param [String] parent
# Required. The agent to create a environment for.
# Format: `projects/<Project ID>/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/<Project ID>/agent/environments/<Environment ID>`.
# @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/<Project ID>/agent/environments/<Environment ID>`.
# @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/<Project ID>/agent/environments/<Environment ID>`.
# @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/<Project ID>/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/<Project ID>/agent/environments/<Environment ID>`.
# @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. # Deletes intents in the specified agent.
# Operation <response: google.protobuf.Empty> # Operation <response: google.protobuf.Empty>
# @param [String] parent # @param [String] parent
@ -1777,150 +1557,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates an agent version.
# @param [String] parent
# Required. The agent to create a version for.
# Format: `projects/<Project ID>/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/<Project ID>/agent/versions/<Version ID>`.
# @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/<Project ID>/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/<Project ID>/agent/versions/<Version ID>`.
# @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 # Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not # makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns # guaranteed. If the server doesn't support this method, it returns

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/ # @see https://cloud.google.com/dialogflow/
module DialogflowV2beta1 module DialogflowV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20200212' REVISION = '20200225'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -308,7 +308,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name 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` # Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :parameters attr_accessor :parameters
@ -2613,7 +2613,7 @@ module Google
class GoogleCloudDialogflowV2beta1DetectIntentRequest class GoogleCloudDialogflowV2beta1DetectIntentRequest
include Google::Apis::Core::Hashable 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. # 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. # A single request can contain up to 1 minute of speech audio data.
# Corresponds to the JSON property `inputAudio` # Corresponds to the JSON property `inputAudio`
@ -2628,6 +2628,15 @@ module Google
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig] # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig]
attr_accessor :output_audio_config 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: # Represents the query input. It can contain either:
# 1. An audio config which # 1. An audio config which
# instructs the speech recognizer how to process the speech audio. # instructs the speech recognizer how to process the speech audio.
@ -2650,6 +2659,7 @@ module Google
def update!(**args) def update!(**args)
@input_audio = args[:input_audio] if args.key?(:input_audio) @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 = 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_input = args[:query_input] if args.key?(:query_input)
@query_params = args[:query_params] if args.key?(:query_params) @query_params = args[:query_params] if args.key?(:query_params)
end end
@ -2908,124 +2918,6 @@ module Google
end end
end end
# Represents an agent environment.
class GoogleCloudDialogflowV2beta1Environment
include Google::Apis::Core::Hashable
# Optional. The agent version loaded into this environment.
# Format: `projects/<Project ID>/agent/versions/<Version ID>`.
# 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/<Project ID>/agent/environments/<Environment ID>`.
# 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<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry>]
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/<Project ID>/agent/environments/<Environment ID>`.
# 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 # Events allow for matching intents by event name instead of the natural
# language input. For instance, input `<event: ` name: "welcome_event", # language input. For instance, input `<event: ` name: "welcome_event",
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response. # parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
@ -3047,7 +2939,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name 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` # Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :parameters attr_accessor :parameters
@ -5435,33 +5327,6 @@ module Google
end end
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<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment>]
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. # The response message for Intents.ListIntents.
class GoogleCloudDialogflowV2beta1ListIntentsResponse class GoogleCloudDialogflowV2beta1ListIntentsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5542,33 +5407,6 @@ module Google
end end
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<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version>]
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 # Represents the contents of the original request that was passed to
# the `[Streaming]DetectIntent` call. # the `[Streaming]DetectIntent` call.
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
@ -5625,7 +5463,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :audio_encoding 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 # 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 # 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 # rate, then the synthesizer will honor this request by converting to the
@ -5694,7 +5532,7 @@ module Google
class GoogleCloudDialogflowV2beta1QueryParameters class GoogleCloudDialogflowV2beta1QueryParameters
include Google::Apis::Core::Hashable 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. # executed.
# Corresponds to the JSON property `contexts` # Corresponds to the JSON property `contexts`
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context>] # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context>]
@ -5709,20 +5547,20 @@ module Google
# @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng] # @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng]
attr_accessor :geo_location 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. # KnowledgeBases enabled in the agent (through UI) will be used.
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. # Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
# Corresponds to the JSON property `knowledgeBaseNames` # Corresponds to the JSON property `knowledgeBaseNames`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :knowledge_base_names 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. # associated with the agent. Arbitrary JSON objects are supported.
# Corresponds to the JSON property `payload` # Corresponds to the JSON property `payload`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :payload 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. # before the new ones are activated.
# Corresponds to the JSON property `resetContexts` # Corresponds to the JSON property `resetContexts`
# @return [Boolean] # @return [Boolean]
@ -5734,14 +5572,14 @@ module Google
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig] # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig]
attr_accessor :sentiment_analysis_request_config 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 # entity types with. The entity synonyms apply to all languages and persist
# for the session of this query. # for the session of this query.
# Corresponds to the JSON property `sessionEntityTypes` # Corresponds to the JSON property `sessionEntityTypes`
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType>] # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType>]
attr_accessor :session_entity_types 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 # 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. # be returned. If empty, Dialogflow will decide which sub agents to query.
# If specified for a non-mega-agent query, will be silently ignored. # If specified for a non-mega-agent query, will be silently ignored.
@ -5749,7 +5587,7 @@ module Google
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SubAgent>] # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SubAgent>]
attr_accessor :sub_agents 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., # [time zone database](https://www.iana.org/time-zones), e.g.,
# America/New_York, Europe/Paris. If not provided, the time zone specified in # America/New_York, Europe/Paris. If not provided, the time zone specified in
# agent settings is used. # agent settings is used.
@ -5757,7 +5595,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :time_zone 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 # call. These headers will be sent to webhook alone with the headers that
# have been configured through Dialogflow web console. The headers defined # have been configured through Dialogflow web console. The headers defined
# within this field will overwrite the headers configured through Dialogflow # within this field will overwrite the headers configured through Dialogflow
@ -6045,7 +5883,7 @@ module Google
class GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig class GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
include Google::Apis::Core::Hashable 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`. If not provided, sentiment analysis is not performed on
# `query_text`. # `query_text`.
# Corresponds to the JSON property `analyzeQueryTextSentiment` # Corresponds to the JSON property `analyzeQueryTextSentiment`
@ -6359,56 +6197,6 @@ module Google
end end
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/<Project ID>/agent/versions/<Version ID>`.
# 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. # Description of which voice to use for speech synthesis.
class GoogleCloudDialogflowV2beta1VoiceSelectionParams class GoogleCloudDialogflowV2beta1VoiceSelectionParams
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -436,24 +436,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end 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 GoogleCloudDialogflowV2beta1EventInput
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -844,12 +826,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1ListIntentsResponse class GoogleCloudDialogflowV2beta1ListIntentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -868,12 +844,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -988,12 +958,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1Version
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1VoiceSelectionParams class GoogleCloudDialogflowV2beta1VoiceSelectionParams
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1724,6 +1688,7 @@ module Google
property :input_audio, :base64 => true, as: 'inputAudio' 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, 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_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 property :query_params, as: 'queryParams', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters::Representation
@ -1789,36 +1754,6 @@ module Google
end end
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 class GoogleCloudDialogflowV2beta1EventInput
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2479,15 +2414,6 @@ module Google
end end
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 class GoogleCloudDialogflowV2beta1ListIntentsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2515,15 +2441,6 @@ module Google
end end
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 class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2720,17 +2637,6 @@ module Google
end end
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 class GoogleCloudDialogflowV2beta1VoiceSelectionParams
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -48,43 +48,6 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Creates/updates the specified agent.
# @param [String] parent
# Required. The project of this agent.
# Format: `projects/<Project ID>`.
# @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. # Deletes the specified agent.
# @param [String] parent # @param [String] parent
# Required. The project that the agent to delete is associated with. # Required. The project that the agent to delete is associated with.
@ -147,6 +110,43 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates/updates the specified agent.
# @param [String] parent
# Required. The project of this agent.
# Format: `projects/<Project ID>`.
# @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. # Exports the specified agent to a ZIP file.
# Operation <response: ExportAgentResponse> # Operation <response: ExportAgentResponse>
# @param [String] parent # @param [String] parent
@ -826,229 +826,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates an agent environment.
# @param [String] parent
# Required. The agent to create a environment for.
# Format: `projects/<Project ID>/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/<Project ID>/agent/environments/<Environment ID>`.
# @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/<Project ID>/agent/environments/<Environment ID>`.
# @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/<Project ID>/agent/environments/<Environment ID>`.
# @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/<Project ID>/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/<Project ID>/agent/environments/<Environment ID>`.
# 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. # Deletes all active contexts in the specified session.
# @param [String] parent # @param [String] parent
# Required. The name of the session to delete all contexts from. Format: # Required. The name of the session to delete all contexts from. Format:
@ -2736,151 +2513,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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/<Project ID>/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/<Project ID>/agent/versions/<Version ID>`.
# @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/<Project ID>/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/<Project ID>/agent/versions/<Version ID>`.
# @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. # Creates a knowledge base.
# Note: The `projects.agent.knowledgeBases` resource is deprecated; # Note: The `projects.agent.knowledgeBases` resource is deprecated;
# only use `projects.knowledgeBases`. # only use `projects.knowledgeBases`.
@ -3999,229 +3631,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates an agent environment.
# @param [String] parent
# Required. The agent to create a environment for.
# Format: `projects/<Project ID>/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/<Project ID>/agent/environments/<Environment ID>`.
# @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/<Project ID>/agent/environments/<Environment ID>`.
# @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/<Project ID>/agent/environments/<Environment ID>`.
# @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/<Project ID>/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/<Project ID>/agent/environments/<Environment ID>`.
# 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. # Deletes all active contexts in the specified session.
# @param [String] parent # @param [String] parent
# Required. The name of the session to delete all contexts from. Format: # Required. The name of the session to delete all contexts from. Format:
@ -5486,151 +4895,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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/<Project ID>/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/<Project ID>/agent/versions/<Version ID>`.
# @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/<Project ID>/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/<Project ID>/agent/versions/<Version ID>`.
# @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 # Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not # makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns # guaranteed. If the server doesn't support this method, it returns

View File

@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/logging/docs/ # @see https://cloud.google.com/logging/docs/
module LoggingV2 module LoggingV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200221' REVISION = '20200222'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -140,12 +140,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :kms_key_name 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` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name 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 # access your Cloud KMS key.Before enabling CMEK for Logs Router, you must first
# assign the role roles/cloudkms.cryptoKeyEncrypterDecrypter to the service # assign the role roles/cloudkms.cryptoKeyEncrypterDecrypter to the service
# account that the Logs Router will use to access your Cloud KMS key. Use # account that the Logs Router will use to access your Cloud KMS key. Use
@ -524,8 +524,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :page_token attr_accessor :page_token
# Deprecated. Use resource_names instead. One or more project identifiers or # Optional. Deprecated. Use resource_names instead. One or more project
# project numbers from which to retrieve log entries. Example: "my-project-1A". # identifiers or project numbers from which to retrieve log entries. Example: "
# my-project-1A".
# Corresponds to the JSON property `projectIds` # Corresponds to the JSON property `projectIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :project_ids attr_accessor :project_ids
@ -715,7 +716,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# The bucket lifecycle state.Output only. # Output only. The bucket lifecycle state.
# Corresponds to the JSON property `lifecycleState` # Corresponds to the JSON property `lifecycleState`
# @return [String] # @return [String]
attr_accessor :lifecycle_state attr_accessor :lifecycle_state
@ -797,17 +798,17 @@ module Google
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
# "folders/[FOLDER_ID]/logs/[LOG_ID]" # "folders/[FOLDER_ID]/logs/[LOG_ID]"
# A project number may optionally be used in place of PROJECT_ID. The project # A project number may be used in place of PROJECT_ID. The project number is
# number is translated to its corresponding PROJECT_ID internally and the # translated to its corresponding PROJECT_ID internally and the log_name field
# log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be # will contain PROJECT_ID in queries and exports.[LOG_ID] must be URL-encoded
# URL-encoded within log_name. Example: "organizations/1234567890/logs/ # within log_name. Example: "organizations/1234567890/logs/cloudresourcemanager.
# cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must be less than # googleapis.com%2Factivity". [LOG_ID] must be less than 512 characters long and
# 512 characters long and can only include the following characters: upper and # can only include the following characters: upper and lower case alphanumeric
# lower case alphanumeric characters, forward-slash, underscore, hyphen, and # characters, forward-slash, underscore, hyphen, and period.For backward
# period.For backward compatibility, if log_name begins with a forward-slash, # compatibility, if log_name begins with a forward-slash, such as /projects/...,
# such as /projects/..., then the log entry is ingested as usual but the forward- # then the log entry is ingested as usual but the forward-slash is removed.
# slash is removed. Listing the log entry will not show the leading slash and # Listing the log entry will not show the leading slash and filtering for a log
# filtering for a log name with a leading slash will never return any results. # name with a leading slash will never return any results.
# Corresponds to the JSON property `logName` # Corresponds to the JSON property `logName`
# @return [String] # @return [String]
attr_accessor :log_name attr_accessor :log_name
@ -871,8 +872,7 @@ module Google
# Optional. The span ID within the trace associated with the log entry.For Trace # 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 # spans, this is the same format that the Trace API v2 uses: a 16-character
# hexadecimal encoding of an 8-byte array, such as <code>"000000000000004a"</ # hexadecimal encoding of an 8-byte array, such as 000000000000004a.
# code>.
# Corresponds to the JSON property `spanId` # Corresponds to the JSON property `spanId`
# @return [String] # @return [String]
attr_accessor :span_id attr_accessor :span_id
@ -1293,11 +1293,6 @@ module Google
attr_accessor :disabled attr_accessor :disabled
alias_method :disabled?, :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 # 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 # that are in the resource owning the sink and that match the filter. For
# example: # example:
@ -1338,11 +1333,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :output_version_format 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 # Output only. The last update timestamp of the sink.This field may not be
# present for older sinks. # present for older sinks.
# Corresponds to the JSON property `updateTime` # Corresponds to the JSON property `updateTime`
@ -1372,12 +1362,10 @@ module Google
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@destination = args[:destination] if args.key?(:destination) @destination = args[:destination] if args.key?(:destination)
@disabled = args[:disabled] if args.key?(:disabled) @disabled = args[:disabled] if args.key?(:disabled)
@end_time = args[:end_time] if args.key?(:end_time)
@filter = args[:filter] if args.key?(:filter) @filter = args[:filter] if args.key?(:filter)
@include_children = args[:include_children] if args.key?(:include_children) @include_children = args[:include_children] if args.key?(:include_children)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@output_version_format = args[:output_version_format] if args.key?(:output_version_format) @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) @update_time = args[:update_time] if args.key?(:update_time)
@writer_identity = args[:writer_identity] if args.key?(:writer_identity) @writer_identity = args[:writer_identity] if args.key?(:writer_identity)
end end
@ -2074,10 +2062,9 @@ module Google
# [LOG_ID] must be URL-encoded. For example: # [LOG_ID] must be URL-encoded. For example:
# "projects/my-project-id/logs/syslog" # "projects/my-project-id/logs/syslog"
# "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" # "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
# The permission <code>logging.logEntries.create</code> is needed on each # The permission logging.logEntries.create is needed on each project,
# project, organization, billing account, or folder that is receiving new log # organization, billing account, or folder that is receiving new log entries,
# entries, whether the resource is specified in <code>logName</code> or in an # whether the resource is specified in logName or in an individual log entry.
# individual log entry.
# Corresponds to the JSON property `logName` # Corresponds to the JSON property `logName`
# @return [String] # @return [String]
attr_accessor :log_name attr_accessor :log_name
@ -2123,7 +2110,7 @@ module Google
end end
end end
# Result returned from WriteLogEntries. empty # Result returned from WriteLogEntries.
class WriteLogEntriesResponse class WriteLogEntriesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -505,12 +505,10 @@ module Google
property :description, as: 'description' property :description, as: 'description'
property :destination, as: 'destination' property :destination, as: 'destination'
property :disabled, as: 'disabled' property :disabled, as: 'disabled'
property :end_time, as: 'endTime'
property :filter, as: 'filter' property :filter, as: 'filter'
property :include_children, as: 'includeChildren' property :include_children, as: 'includeChildren'
property :name, as: 'name' property :name, as: 'name'
property :output_version_format, as: 'outputVersionFormat' property :output_version_format, as: 'outputVersionFormat'
property :start_time, as: 'startTime'
property :update_time, as: 'updateTime' property :update_time, as: 'updateTime'
property :writer_identity, as: 'writerIdentity' property :writer_identity, as: 'writerIdentity'
end end

View File

@ -295,8 +295,8 @@ module Google
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
# Note: The locations portion of the resource is required, but supplying the # Note: The locations portion of the resource must be specified, but supplying
# character - in place of LOCATION_ID will return all buckets. # the character - in place of LOCATION_ID will return all buckets.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non- # Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response # positive values are ignored. The presence of nextPageToken in the response
@ -1278,8 +1278,8 @@ module Google
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
# Note: The locations portion of the resource is required, but supplying the # Note: The locations portion of the resource must be specified, but supplying
# character - in place of LOCATION_ID will return all buckets. # the character - in place of LOCATION_ID will return all buckets.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non- # Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response # positive values are ignored. The presence of nextPageToken in the response
@ -1793,8 +1793,8 @@ module Google
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
# Note: The locations portion of the resource is required, but supplying the # Note: The locations portion of the resource must be specified, but supplying
# character - in place of LOCATION_ID will return all buckets. # the character - in place of LOCATION_ID will return all buckets.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non- # Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response # positive values are ignored. The presence of nextPageToken in the response
@ -2346,8 +2346,8 @@ module Google
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
# Note: The locations portion of the resource is required, but supplying the # Note: The locations portion of the resource must be specified, but supplying
# character - in place of LOCATION_ID will return all buckets. # the character - in place of LOCATION_ID will return all buckets.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non- # Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response # positive values are ignored. The presence of nextPageToken in the response
@ -3062,8 +3062,8 @@ module Google
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]" # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
# Note: The locations portion of the resource is required, but supplying the # Note: The locations portion of the resource must be specified, but supplying
# character - in place of LOCATION_ID will return all buckets. # the character - in place of LOCATION_ID will return all buckets.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non- # Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response # positive values are ignored. The presence of nextPageToken in the response
@ -3243,7 +3243,7 @@ module Google
# Creates a logs-based metric. # Creates a logs-based metric.
# @param [String] parent # @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]" # "projects/[PROJECT_ID]"
# The new metric must be provided in the request. # The new metric must be provided in the request.
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
@ -3278,7 +3278,7 @@ module Google
# Deletes a logs-based metric. # Deletes a logs-based metric.
# @param [String] metric_name # @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]" # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3309,7 +3309,7 @@ module Google
# Gets a logs-based metric. # Gets a logs-based metric.
# @param [String] metric_name # @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]" # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3382,7 +3382,7 @@ module Google
# Creates or updates a logs-based metric. # Creates or updates a logs-based metric.
# @param [String] metric_name # @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]" # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
# The updated metric must be provided in the request and it's name field must be # 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 # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/accounts/docs/OAuth2 # @see https://developers.google.com/accounts/docs/OAuth2
module Oauth2V2 module Oauth2V2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20190313' REVISION = '20200213'
# Associate you with your personal info on Google # Associate you with your personal info on Google
AUTH_PLUS_ME = 'https://www.googleapis.com/auth/plus.me' AUTH_PLUS_ME = 'https://www.googleapis.com/auth/plus.me'

View File

@ -22,74 +22,6 @@ module Google
module Apis module Apis
module Oauth2V2 module Oauth2V2
#
class Jwk
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `keys`
# @return [Array<Google::Apis::Oauth2V2::Jwk::Key>]
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 class Tokeninfo
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -22,18 +22,6 @@ module Google
module Apis module Apis
module Oauth2V2 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 Tokeninfo
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -46,26 +34,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end 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 class Tokeninfo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -51,36 +51,6 @@ module Google
@batch_path = 'batch/oauth2/v2' @batch_path = 'batch/oauth2/v2'
end 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] access_token
# @param [String] id_token # @param [String] id_token

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1 module PubsubV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200211' REVISION = '20200218'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,8 @@ module Google
class AcknowledgeRequest class AcknowledgeRequest
include Google::Apis::Core::Hashable 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. # by the Pub/Sub system in the `Pull` response. Must not be empty.
# Corresponds to the JSON property `ackIds` # Corresponds to the JSON property `ackIds`
# @return [Array<String>] # @return [Array<String>]
@ -135,7 +136,7 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels 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: # Specifically, the created snapshot is guaranteed to retain:
# (a) The existing backlog on the subscription. More precisely, this is # (a) The existing backlog on the subscription. More precisely, this is
# defined as the messages in the subscription's backlog that are # defined as the messages in the subscription's backlog that are
@ -469,7 +470,8 @@ module Google
class ModifyAckDeadlineRequest class ModifyAckDeadlineRequest
include Google::Apis::Core::Hashable 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 # the Pub/Sub system. For example, if the value is 10, the new
# ack deadline will expire 10 seconds after the `ModifyAckDeadline` call # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
# was made. Specifying zero might immediately make the message available for # was made. Specifying zero might immediately make the message available for
@ -481,7 +483,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ack_deadline_seconds attr_accessor :ack_deadline_seconds
# List of acknowledgment IDs. # Required. List of acknowledgment IDs.
# Corresponds to the JSON property `ackIds` # Corresponds to the JSON property `ackIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ack_ids attr_accessor :ack_ids
@ -670,7 +672,7 @@ module Google
class PublishRequest class PublishRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The messages to publish. # Required. The messages to publish.
# Corresponds to the JSON property `messages` # Corresponds to the JSON property `messages`
# @return [Array<Google::Apis::PubsubV1::Message>] # @return [Array<Google::Apis::PubsubV1::Message>]
attr_accessor :messages attr_accessor :messages
@ -762,7 +764,7 @@ module Google
class PullRequest class PullRequest
include Google::Apis::Core::Hashable 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 # positive integer. The Pub/Sub system may return fewer than the number
# specified. # specified.
# Corresponds to the JSON property `maxMessages` # Corresponds to the JSON property `maxMessages`
@ -1141,7 +1143,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :message_retention_duration 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 # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
# start with a letter, and contain only letters (`[A-Za-z]`), numbers # start with a letter, and contain only letters (`[A-Za-z]`), numbers
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
@ -1168,7 +1170,8 @@ module Google
attr_accessor :retain_acked_messages attr_accessor :retain_acked_messages
alias_method :retain_acked_messages?, :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``. # Format is `projects/`project`/topics/`topic``.
# The value of this field will be `_deleted-topic_` if the topic has been # The value of this field will be `_deleted-topic_` if the topic has been
# deleted. # deleted.
@ -1260,7 +1263,7 @@ module Google
# @return [Google::Apis::PubsubV1::MessageStoragePolicy] # @return [Google::Apis::PubsubV1::MessageStoragePolicy]
attr_accessor :message_storage_policy 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, # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
@ -1297,7 +1300,7 @@ module Google
# @return [Google::Apis::PubsubV1::Snapshot] # @return [Google::Apis::PubsubV1::Snapshot]
attr_accessor :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. # Must be specified and non-empty.
# Corresponds to the JSON property `updateMask` # Corresponds to the JSON property `updateMask`
# @return [String] # @return [String]
@ -1323,7 +1326,7 @@ module Google
# @return [Google::Apis::PubsubV1::Subscription] # @return [Google::Apis::PubsubV1::Subscription]
attr_accessor :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. # Must be specified and non-empty.
# Corresponds to the JSON property `updateMask` # Corresponds to the JSON property `updateMask`
# @return [String] # @return [String]
@ -1349,7 +1352,8 @@ module Google
# @return [Google::Apis::PubsubV1::Topic] # @return [Google::Apis::PubsubV1::Topic]
attr_accessor :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 # and non-empty. Note that if `update_mask` contains
# "message_storage_policy" then the new value will be determined based on the # "message_storage_policy" then the new value will be determined based on the
# policy configured at the project or organization level. The # policy configured at the project or organization level. The

View File

@ -66,7 +66,8 @@ module Google
# generated name is populated in the returned Snapshot object. Note that for # generated name is populated in the returned Snapshot object. Note that for
# REST API requests, you must specify a name in the request. # REST API requests, you must specify a name in the request.
# @param [String] name # @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 # 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 # project as the subscription. Note that for REST API requests, you must
# specify a name. See the <a # specify a name. See the <a
@ -113,7 +114,7 @@ module Google
# created with the same name, but the new one has no association with the old # created with the same name, but the new one has no association with the old
# snapshot or its subscription, unless the same subscription is specified. # snapshot or its subscription, unless the same subscription is specified.
# @param [String] snapshot # @param [String] snapshot
# The name of the snapshot to delete. # Required. The name of the snapshot to delete.
# Format is `projects/`project`/snapshots/`snap``. # Format is `projects/`project`/snapshots/`snap``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -148,7 +149,7 @@ module Google
# is, you can set the acknowledgment state of messages in an existing # is, you can set the acknowledgment state of messages in an existing
# subscription to the state captured by a snapshot. # subscription to the state captured by a snapshot.
# @param [String] snapshot # @param [String] snapshot
# The name of the snapshot to get. # Required. The name of the snapshot to get.
# Format is `projects/`project`/snapshots/`snap``. # Format is `projects/`project`/snapshots/`snap``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -225,7 +226,7 @@ module Google
# acknowledgment state of messages in an existing subscription to the state # acknowledgment state of messages in an existing subscription to the state
# captured by a snapshot. # captured by a snapshot.
# @param [String] project # @param [String] project
# The name of the project in which to list snapshots. # Required. The name of the project in which to list snapshots.
# Format is `projects/`project-id``. # Format is `projects/`project-id``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of snapshots to return. # Maximum number of snapshots to return.
@ -382,7 +383,7 @@ module Google
# but such a message may be redelivered later. Acknowledging a message more # but such a message may be redelivered later. Acknowledging a message more
# than once will not result in an error. # than once will not result in an error.
# @param [String] subscription # @param [String] subscription
# The subscription whose message is being acknowledged. # Required. The subscription whose message is being acknowledged.
# Format is `projects/`project`/subscriptions/`sub``. # Format is `projects/`project`/subscriptions/`sub``.
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
# @param [String] fields # @param [String] fields
@ -427,7 +428,7 @@ module Google
# generated name is populated in the returned Subscription object. Note that # generated name is populated in the returned Subscription object. Note that
# for REST API requests, you must specify a name in the request. # for REST API requests, you must specify a name in the request.
# @param [String] name # @param [String] name
# 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 # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
# start with a letter, and contain only letters (`[A-Za-z]`), numbers # start with a letter, and contain only letters (`[A-Za-z]`), numbers
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
@ -469,7 +470,7 @@ module Google
# the same name, but the new one has no association with the old # the same name, but the new one has no association with the old
# subscription or its topic unless the same topic is specified. # subscription or its topic unless the same topic is specified.
# @param [String] subscription # @param [String] subscription
# The subscription to delete. # Required. The subscription to delete.
# Format is `projects/`project`/subscriptions/`sub``. # Format is `projects/`project`/subscriptions/`sub``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -500,7 +501,7 @@ module Google
# Gets the configuration details of a subscription. # Gets the configuration details of a subscription.
# @param [String] subscription # @param [String] subscription
# The name of the subscription to get. # Required. The name of the subscription to get.
# Format is `projects/`project`/subscriptions/`sub``. # Format is `projects/`project`/subscriptions/`sub``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -572,7 +573,7 @@ module Google
# Lists matching subscriptions. # Lists matching subscriptions.
# @param [String] project # @param [String] project
# The name of the project in which to list subscriptions. # Required. The name of the project in which to list subscriptions.
# Format is `projects/`project-id``. # Format is `projects/`project-id``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of subscriptions to return. # Maximum number of subscriptions to return.
@ -615,7 +616,7 @@ module Google
# processing was interrupted. Note that this does not modify the # processing was interrupted. Note that this does not modify the
# subscription-level `ackDeadlineSeconds` used for subsequent messages. # subscription-level `ackDeadlineSeconds` used for subsequent messages.
# @param [String] subscription # @param [String] subscription
# The name of the subscription. # Required. The name of the subscription.
# Format is `projects/`project`/subscriptions/`sub``. # Format is `projects/`project`/subscriptions/`sub``.
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
# @param [String] fields # @param [String] fields
@ -653,7 +654,7 @@ module Google
# attributes of a push subscription. Messages will accumulate for delivery # attributes of a push subscription. Messages will accumulate for delivery
# continuously through the call regardless of changes to the `PushConfig`. # continuously through the call regardless of changes to the `PushConfig`.
# @param [String] subscription # @param [String] subscription
# The name of the subscription. # Required. The name of the subscription.
# Format is `projects/`project`/subscriptions/`sub``. # Format is `projects/`project`/subscriptions/`sub``.
# @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
# @param [String] fields # @param [String] fields
@ -688,7 +689,7 @@ module Google
# Updates an existing subscription. Note that certain properties of a # Updates an existing subscription. Note that certain properties of a
# subscription, such as its topic, are not modifiable. # subscription, such as its topic, are not modifiable.
# @param [String] name # @param [String] name
# 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 # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
# start with a letter, and contain only letters (`[A-Za-z]`), numbers # start with a letter, and contain only letters (`[A-Za-z]`), numbers
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
@ -728,7 +729,7 @@ module Google
# there are too many concurrent pull requests pending for the given # there are too many concurrent pull requests pending for the given
# subscription. # subscription.
# @param [String] subscription # @param [String] subscription
# The subscription from which messages should be pulled. # Required. The subscription from which messages should be pulled.
# Format is `projects/`project`/subscriptions/`sub``. # Format is `projects/`project`/subscriptions/`sub``.
# @param [Google::Apis::PubsubV1::PullRequest] pull_request_object # @param [Google::Apis::PubsubV1::PullRequest] pull_request_object
# @param [String] fields # @param [String] fields
@ -769,7 +770,7 @@ module Google
# captured by a snapshot. Note that both the subscription and the snapshot # captured by a snapshot. Note that both the subscription and the snapshot
# must be on the same topic. # must be on the same topic.
# @param [String] subscription # @param [String] subscription
# The subscription to affect. # Required. The subscription to affect.
# @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object # @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -879,7 +880,7 @@ module Google
# <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> # <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
# resource name rules</a>. # resource name rules</a>.
# @param [String] name # @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, # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
@ -921,7 +922,7 @@ module Google
# configuration or subscriptions. Existing subscriptions to this topic are # configuration or subscriptions. Existing subscriptions to this topic are
# not deleted, but their `topic` field is set to `_deleted-topic_`. # not deleted, but their `topic` field is set to `_deleted-topic_`.
# @param [String] topic # @param [String] topic
# Name of the topic to delete. # Required. Name of the topic to delete.
# Format is `projects/`project`/topics/`topic``. # Format is `projects/`project`/topics/`topic``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -952,7 +953,7 @@ module Google
# Gets the configuration of a topic. # Gets the configuration of a topic.
# @param [String] 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``. # Format is `projects/`project`/topics/`topic``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1024,7 +1025,7 @@ module Google
# Lists matching topics. # Lists matching topics.
# @param [String] project # @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``. # Format is `projects/`project-id``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of topics to return. # Maximum number of topics to return.
@ -1064,7 +1065,7 @@ module Google
# Updates an existing topic. Note that certain properties of a # Updates an existing topic. Note that certain properties of a
# topic are not modifiable. # topic are not modifiable.
# @param [String] name # @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, # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent # 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 # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
# does not exist. # does not exist.
# @param [String] topic # @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``. # Format is `projects/`project`/topics/`topic``.
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object # @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
# @param [String] fields # @param [String] fields
@ -1256,7 +1257,7 @@ module Google
# Lists the names of the subscriptions on this topic. # Lists the names of the subscriptions on this topic.
# @param [String] 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``. # Format is `projects/`project`/topics/`topic``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of subscription names to return. # Maximum number of subscription names to return.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1beta1a module PubsubV1beta1a
VERSION = 'V1beta1a' VERSION = 'V1beta1a'
REVISION = '20200211' REVISION = '20200218'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-control/ # @see https://cloud.google.com/service-control/
module ServicecontrolV1 module ServicecontrolV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200210' REVISION = '20200224'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'