Autogenerated update (2019-11-02)

Update:
- compute_alpha
- compute_beta
- compute_v1
- container_v1
- dialogflow_v2
- dialogflow_v2beta1
- drive_v2
- drive_v3
- games_management_v1management
- games_v1
- lifesciences_v2beta
- oslogin_v1
- youtube_partner_v1
This commit is contained in:
Google APIs 2019-11-02 00:36:52 +00:00
parent f23200d05b
commit d2eeb9d578
32 changed files with 210 additions and 1613 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeAlpha
VERSION = 'Alpha'
REVISION = '20190929'
REVISION = '20191009'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3002,7 +3002,8 @@ module Google
# @return [String]
attr_accessor :network
# Settings controlling eviction of unhealthy hosts from the load balancing pool.
# Settings controlling the eviction of unhealthy hosts from the load balancing
# pool for the backend service.
# Corresponds to the JSON property `outlierDetection`
# @return [Google::Apis::ComputeAlpha::OutlierDetection]
attr_accessor :outlier_detection
@ -4165,33 +4166,34 @@ module Google
# @return [Google::Apis::ComputeAlpha::Duration]
attr_accessor :connect_timeout
# The maximum number of connections to the backend cluster. If not specified,
# the default is 1024.
# The maximum number of connections to the backend service. If not specified,
# there is no limit.
# Corresponds to the JSON property `maxConnections`
# @return [Fixnum]
attr_accessor :max_connections
# The maximum number of pending requests allowed to the backend cluster. If not
# specified, the default is 1024.
# The maximum number of pending requests allowed to the backend service. If not
# specified, there is no limit.
# Corresponds to the JSON property `maxPendingRequests`
# @return [Fixnum]
attr_accessor :max_pending_requests
# The maximum number of parallel requests that allowed to the backend cluster.
# If not specified, the default is 1024.
# The maximum number of parallel requests that allowed to the backend service.
# If not specified, there is no limit.
# Corresponds to the JSON property `maxRequests`
# @return [Fixnum]
attr_accessor :max_requests
# Maximum requests for a single backend connection. This parameter is respected
# by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no
# limit. Setting this parameter to 1 will effectively disable keep alive.
# Maximum requests for a single connection to the backend service. This
# parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not
# specified, there is no limit. Setting this parameter to 1 will effectively
# disable keep alive.
# Corresponds to the JSON property `maxRequestsPerConnection`
# @return [Fixnum]
attr_accessor :max_requests_per_connection
# The maximum number of parallel retries allowed to the backend cluster. If not
# specified, the default is 3.
# specified, the default is 1.
# Corresponds to the JSON property `maxRetries`
# @return [Fixnum]
attr_accessor :max_retries
@ -6155,7 +6157,8 @@ module Google
class DisksAddResourcePoliciesRequest
include Google::Apis::Core::Hashable
# Resource policies to be added to this disk.
# Resource policies to be added to this disk. Currently you can only specify one
# policy here.
# Corresponds to the JSON property `resourcePolicies`
# @return [Array<String>]
attr_accessor :resource_policies
@ -10068,7 +10071,8 @@ module Google
class HttpRetryPolicy
include Google::Apis::Core::Hashable
# Specifies the allowed number retries. This number must be > 0.
# Specifies the allowed number retries. This number must be > 0. If not
# specified, defaults to 1.
# Corresponds to the JSON property `numRetries`
# @return [Fixnum]
attr_accessor :num_retries
@ -12445,6 +12449,12 @@ module Google
class InstanceGroupManagerStatus
include Google::Apis::Core::Hashable
# [Output Only] The URL of the Autoscaler that targets this instance group
# manager.
# Corresponds to the JSON property `autoscaler`
# @return [String]
attr_accessor :autoscaler
# [Output Only] A bit indicating whether the managed instance group is in a
# stable state. A stable state means that: none of the instances in the managed
# instance group is currently undergoing any type of change (for example,
@ -12473,6 +12483,7 @@ module Google
# Update properties of this object
def update!(**args)
@autoscaler = args[:autoscaler] if args.key?(:autoscaler)
@is_stable = args[:is_stable] if args.key?(:is_stable)
@stateful = args[:stateful] if args.key?(:stateful)
@version_target = args[:version_target] if args.key?(:version_target)
@ -17066,10 +17077,10 @@ module Google
# a representation of IAMContext.principal even if a token or authority selector
# is present; or - "" (empty string), resulting in a counter with no fields.
# Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==>
# increment counter /iam/policy/backend_debug_access_count `iam_principal=[value
# of IAMContext.principal]`
# At this time we do not support multiple field names (though this may be
# supported in the future).
# increment counter /iam/policy/debug_access_count `iam_principal=[value of
# IAMContext.principal]`
# TODO(b/141846426): Consider supporting "authority" and "iam_principal" fields
# in the same counter.
# Corresponds to the JSON property `counter`
# @return [Google::Apis::ComputeAlpha::LogConfigCounterOptions]
attr_accessor :counter
@ -17128,10 +17139,10 @@ module Google
# a representation of IAMContext.principal even if a token or authority selector
# is present; or - "" (empty string), resulting in a counter with no fields.
# Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==>
# increment counter /iam/policy/backend_debug_access_count `iam_principal=[value
# of IAMContext.principal]`
# At this time we do not support multiple field names (though this may be
# supported in the future).
# increment counter /iam/policy/debug_access_count `iam_principal=[value of
# IAMContext.principal]`
# TODO(b/141846426): Consider supporting "authority" and "iam_principal" fields
# in the same counter.
class LogConfigCounterOptions
include Google::Apis::Core::Hashable
@ -22476,7 +22487,8 @@ module Google
end
end
# Settings controlling eviction of unhealthy hosts from the load balancing pool.
# Settings controlling the eviction of unhealthy hosts from the load balancing
# pool for the backend service.
class OutlierDetection
include Google::Apis::Core::Hashable
@ -22497,21 +22509,21 @@ module Google
# The number of consecutive gateway failures (502, 503, 504 status or connection
# errors that are mapped to one of those status codes) before a consecutive
# gateway failure ejection occurs. Defaults to 5.
# gateway failure ejection occurs. Defaults to 3.
# Corresponds to the JSON property `consecutiveGatewayFailure`
# @return [Fixnum]
attr_accessor :consecutive_gateway_failure
# The percentage chance that a host will be actually ejected when an outlier
# status is detected through consecutive 5xx. This setting can be used to
# disable ejection or to ramp it up slowly. Defaults to 100.
# disable ejection or to ramp it up slowly. Defaults to 0.
# Corresponds to the JSON property `enforcingConsecutiveErrors`
# @return [Fixnum]
attr_accessor :enforcing_consecutive_errors
# The percentage chance that a host will be actually ejected when an outlier
# status is detected through consecutive gateway failures. This setting can be
# used to disable ejection or to ramp it up slowly. Defaults to 0.
# used to disable ejection or to ramp it up slowly. Defaults to 100.
# Corresponds to the JSON property `enforcingConsecutiveGatewayFailure`
# @return [Fixnum]
attr_accessor :enforcing_consecutive_gateway_failure
@ -22532,7 +22544,7 @@ module Google
attr_accessor :interval
# Maximum percentage of hosts in the load balancing pool for the backend service
# that can be ejected. Defaults to 10%.
# that can be ejected. Defaults to 50%.
# Corresponds to the JSON property `maxEjectionPercent`
# @return [Fixnum]
attr_accessor :max_ejection_percent

View File

@ -8184,6 +8184,7 @@ module Google
class InstanceGroupManagerStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :autoscaler, as: 'autoscaler'
property :is_stable, as: 'isStable'
property :stateful, as: 'stateful', class: Google::Apis::ComputeAlpha::InstanceGroupManagerStatusStateful, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerStatusStateful::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20190929'
REVISION = '20191009'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2753,7 +2753,8 @@ module Google
# @return [String]
attr_accessor :network
# Settings controlling eviction of unhealthy hosts from the load balancing pool.
# Settings controlling the eviction of unhealthy hosts from the load balancing
# pool for the backend service.
# Corresponds to the JSON property `outlierDetection`
# @return [Google::Apis::ComputeBeta::OutlierDetection]
attr_accessor :outlier_detection
@ -3777,33 +3778,34 @@ module Google
# @return [Google::Apis::ComputeBeta::Duration]
attr_accessor :connect_timeout
# The maximum number of connections to the backend cluster. If not specified,
# the default is 1024.
# The maximum number of connections to the backend service. If not specified,
# there is no limit.
# Corresponds to the JSON property `maxConnections`
# @return [Fixnum]
attr_accessor :max_connections
# The maximum number of pending requests allowed to the backend cluster. If not
# specified, the default is 1024.
# The maximum number of pending requests allowed to the backend service. If not
# specified, there is no limit.
# Corresponds to the JSON property `maxPendingRequests`
# @return [Fixnum]
attr_accessor :max_pending_requests
# The maximum number of parallel requests that allowed to the backend cluster.
# If not specified, the default is 1024.
# The maximum number of parallel requests that allowed to the backend service.
# If not specified, there is no limit.
# Corresponds to the JSON property `maxRequests`
# @return [Fixnum]
attr_accessor :max_requests
# Maximum requests for a single backend connection. This parameter is respected
# by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no
# limit. Setting this parameter to 1 will effectively disable keep alive.
# Maximum requests for a single connection to the backend service. This
# parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not
# specified, there is no limit. Setting this parameter to 1 will effectively
# disable keep alive.
# Corresponds to the JSON property `maxRequestsPerConnection`
# @return [Fixnum]
attr_accessor :max_requests_per_connection
# The maximum number of parallel retries allowed to the backend cluster. If not
# specified, the default is 3.
# specified, the default is 1.
# Corresponds to the JSON property `maxRetries`
# @return [Fixnum]
attr_accessor :max_retries
@ -5630,7 +5632,8 @@ module Google
class DisksAddResourcePoliciesRequest
include Google::Apis::Core::Hashable
# Resource policies to be added to this disk.
# Resource policies to be added to this disk. Currently you can only specify one
# policy here.
# Corresponds to the JSON property `resourcePolicies`
# @return [Array<String>]
attr_accessor :resource_policies
@ -9092,7 +9095,8 @@ module Google
class HttpRetryPolicy
include Google::Apis::Core::Hashable
# Specifies the allowed number retries. This number must be > 0.
# Specifies the allowed number retries. This number must be > 0. If not
# specified, defaults to 1.
# Corresponds to the JSON property `numRetries`
# @return [Fixnum]
attr_accessor :num_retries
@ -14989,10 +14993,10 @@ module Google
# a representation of IAMContext.principal even if a token or authority selector
# is present; or - "" (empty string), resulting in a counter with no fields.
# Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==>
# increment counter /iam/policy/backend_debug_access_count `iam_principal=[value
# of IAMContext.principal]`
# At this time we do not support multiple field names (though this may be
# supported in the future).
# increment counter /iam/policy/debug_access_count `iam_principal=[value of
# IAMContext.principal]`
# TODO(b/141846426): Consider supporting "authority" and "iam_principal" fields
# in the same counter.
# Corresponds to the JSON property `counter`
# @return [Google::Apis::ComputeBeta::LogConfigCounterOptions]
attr_accessor :counter
@ -15051,10 +15055,10 @@ module Google
# a representation of IAMContext.principal even if a token or authority selector
# is present; or - "" (empty string), resulting in a counter with no fields.
# Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==>
# increment counter /iam/policy/backend_debug_access_count `iam_principal=[value
# of IAMContext.principal]`
# At this time we do not support multiple field names (though this may be
# supported in the future).
# increment counter /iam/policy/debug_access_count `iam_principal=[value of
# IAMContext.principal]`
# TODO(b/141846426): Consider supporting "authority" and "iam_principal" fields
# in the same counter.
class LogConfigCounterOptions
include Google::Apis::Core::Hashable
@ -19306,7 +19310,8 @@ module Google
end
end
# Settings controlling eviction of unhealthy hosts from the load balancing pool.
# Settings controlling the eviction of unhealthy hosts from the load balancing
# pool for the backend service.
class OutlierDetection
include Google::Apis::Core::Hashable
@ -19327,21 +19332,21 @@ module Google
# The number of consecutive gateway failures (502, 503, 504 status or connection
# errors that are mapped to one of those status codes) before a consecutive
# gateway failure ejection occurs. Defaults to 5.
# gateway failure ejection occurs. Defaults to 3.
# Corresponds to the JSON property `consecutiveGatewayFailure`
# @return [Fixnum]
attr_accessor :consecutive_gateway_failure
# The percentage chance that a host will be actually ejected when an outlier
# status is detected through consecutive 5xx. This setting can be used to
# disable ejection or to ramp it up slowly. Defaults to 100.
# disable ejection or to ramp it up slowly. Defaults to 0.
# Corresponds to the JSON property `enforcingConsecutiveErrors`
# @return [Fixnum]
attr_accessor :enforcing_consecutive_errors
# The percentage chance that a host will be actually ejected when an outlier
# status is detected through consecutive gateway failures. This setting can be
# used to disable ejection or to ramp it up slowly. Defaults to 0.
# used to disable ejection or to ramp it up slowly. Defaults to 100.
# Corresponds to the JSON property `enforcingConsecutiveGatewayFailure`
# @return [Fixnum]
attr_accessor :enforcing_consecutive_gateway_failure
@ -19362,7 +19367,7 @@ module Google
attr_accessor :interval
# Maximum percentage of hosts in the load balancing pool for the backend service
# that can be ejected. Defaults to 10%.
# that can be ejected. Defaults to 50%.
# Corresponds to the JSON property `maxEjectionPercent`
# @return [Fixnum]
attr_accessor :max_ejection_percent

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20190929'
REVISION = '20191009'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2633,7 +2633,8 @@ module Google
# @return [String]
attr_accessor :name
# Settings controlling eviction of unhealthy hosts from the load balancing pool.
# Settings controlling the eviction of unhealthy hosts from the load balancing
# pool for the backend service.
# Corresponds to the JSON property `outlierDetection`
# @return [Google::Apis::ComputeV1::OutlierDetection]
attr_accessor :outlier_detection
@ -3322,33 +3323,34 @@ module Google
class CircuitBreakers
include Google::Apis::Core::Hashable
# The maximum number of connections to the backend cluster. If not specified,
# the default is 1024.
# The maximum number of connections to the backend service. If not specified,
# there is no limit.
# Corresponds to the JSON property `maxConnections`
# @return [Fixnum]
attr_accessor :max_connections
# The maximum number of pending requests allowed to the backend cluster. If not
# specified, the default is 1024.
# The maximum number of pending requests allowed to the backend service. If not
# specified, there is no limit.
# Corresponds to the JSON property `maxPendingRequests`
# @return [Fixnum]
attr_accessor :max_pending_requests
# The maximum number of parallel requests that allowed to the backend cluster.
# If not specified, the default is 1024.
# The maximum number of parallel requests that allowed to the backend service.
# If not specified, there is no limit.
# Corresponds to the JSON property `maxRequests`
# @return [Fixnum]
attr_accessor :max_requests
# Maximum requests for a single backend connection. This parameter is respected
# by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no
# limit. Setting this parameter to 1 will effectively disable keep alive.
# Maximum requests for a single connection to the backend service. This
# parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not
# specified, there is no limit. Setting this parameter to 1 will effectively
# disable keep alive.
# Corresponds to the JSON property `maxRequestsPerConnection`
# @return [Fixnum]
attr_accessor :max_requests_per_connection
# The maximum number of parallel retries allowed to the backend cluster. If not
# specified, the default is 3.
# specified, the default is 1.
# Corresponds to the JSON property `maxRetries`
# @return [Fixnum]
attr_accessor :max_retries
@ -5140,7 +5142,8 @@ module Google
class DisksAddResourcePoliciesRequest
include Google::Apis::Core::Hashable
# Resource policies to be added to this disk.
# Resource policies to be added to this disk. Currently you can only specify one
# policy here.
# Corresponds to the JSON property `resourcePolicies`
# @return [Array<String>]
attr_accessor :resource_policies
@ -8372,7 +8375,8 @@ module Google
class HttpRetryPolicy
include Google::Apis::Core::Hashable
# Specifies the allowed number retries. This number must be > 0.
# Specifies the allowed number retries. This number must be > 0. If not
# specified, defaults to 1.
# Corresponds to the JSON property `numRetries`
# @return [Fixnum]
attr_accessor :num_retries
@ -13903,10 +13907,10 @@ module Google
# a representation of IAMContext.principal even if a token or authority selector
# is present; or - "" (empty string), resulting in a counter with no fields.
# Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==>
# increment counter /iam/policy/backend_debug_access_count `iam_principal=[value
# of IAMContext.principal]`
# At this time we do not support multiple field names (though this may be
# supported in the future).
# increment counter /iam/policy/debug_access_count `iam_principal=[value of
# IAMContext.principal]`
# TODO(b/141846426): Consider supporting "authority" and "iam_principal" fields
# in the same counter.
# Corresponds to the JSON property `counter`
# @return [Google::Apis::ComputeV1::LogConfigCounterOptions]
attr_accessor :counter
@ -13965,10 +13969,10 @@ module Google
# a representation of IAMContext.principal even if a token or authority selector
# is present; or - "" (empty string), resulting in a counter with no fields.
# Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==>
# increment counter /iam/policy/backend_debug_access_count `iam_principal=[value
# of IAMContext.principal]`
# At this time we do not support multiple field names (though this may be
# supported in the future).
# increment counter /iam/policy/debug_access_count `iam_principal=[value of
# IAMContext.principal]`
# TODO(b/141846426): Consider supporting "authority" and "iam_principal" fields
# in the same counter.
class LogConfigCounterOptions
include Google::Apis::Core::Hashable
@ -18173,7 +18177,8 @@ module Google
end
end
# Settings controlling eviction of unhealthy hosts from the load balancing pool.
# Settings controlling the eviction of unhealthy hosts from the load balancing
# pool for the backend service.
class OutlierDetection
include Google::Apis::Core::Hashable
@ -18194,21 +18199,21 @@ module Google
# The number of consecutive gateway failures (502, 503, 504 status or connection
# errors that are mapped to one of those status codes) before a consecutive
# gateway failure ejection occurs. Defaults to 5.
# gateway failure ejection occurs. Defaults to 3.
# Corresponds to the JSON property `consecutiveGatewayFailure`
# @return [Fixnum]
attr_accessor :consecutive_gateway_failure
# The percentage chance that a host will be actually ejected when an outlier
# status is detected through consecutive 5xx. This setting can be used to
# disable ejection or to ramp it up slowly. Defaults to 100.
# disable ejection or to ramp it up slowly. Defaults to 0.
# Corresponds to the JSON property `enforcingConsecutiveErrors`
# @return [Fixnum]
attr_accessor :enforcing_consecutive_errors
# The percentage chance that a host will be actually ejected when an outlier
# status is detected through consecutive gateway failures. This setting can be
# used to disable ejection or to ramp it up slowly. Defaults to 0.
# used to disable ejection or to ramp it up slowly. Defaults to 100.
# Corresponds to the JSON property `enforcingConsecutiveGatewayFailure`
# @return [Fixnum]
attr_accessor :enforcing_consecutive_gateway_failure
@ -18229,7 +18234,7 @@ module Google
attr_accessor :interval
# Maximum percentage of hosts in the load balancing pool for the backend service
# that can be ejected. Defaults to 10%.
# that can be ejected. Defaults to 50%.
# Corresponds to the JSON property `maxEjectionPercent`
# @return [Fixnum]
attr_accessor :max_ejection_percent

View File

@ -21720,6 +21720,14 @@ module Google
# @param [String] subnetwork
# Name of the Subnetwork resource to patch.
# @param [Google::Apis::ComputeV1::Subnetwork] subnetwork_object
# @param [Fixnum] drain_timeout_seconds
# The drain timeout specifies the upper bound in seconds on the amount of time
# allowed to drain connections from the current ACTIVE subnetwork to the current
# BACKUP subnetwork. The drain timeout is only applicable when the following
# conditions are true: - the subnetwork being patched has purpose =
# INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP -
# the patch request is setting the role to ACTIVE. Note that after this patch
# operation the roles of the ACTIVE and BACKUP subnetworks will be swapped.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
@ -21750,7 +21758,7 @@ module Google
# @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_subnetwork(project, region, subnetwork, subnetwork_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, drain_timeout_seconds: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
command.request_representation = Google::Apis::ComputeV1::Subnetwork::Representation
command.request_object = subnetwork_object
@ -21759,6 +21767,7 @@ module Google
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
command.query['drainTimeoutSeconds'] = drain_timeout_seconds unless drain_timeout_seconds.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1
VERSION = 'V1'
REVISION = '20191021'
REVISION = '20191024'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -524,7 +524,8 @@ module Google
attr_accessor :monitoring_service
# The name of this cluster. The name must be unique within this project
# and zone, and can be up to 40 characters with the following restrictions:
# and location (e.g. zone or region), and can be up to 40 characters with
# the following restrictions:
# * Lowercase letters, numbers, and hyphens only.
# * Must start with a letter.
# * Must end with a number or a letter.

View File

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

View File

@ -130,60 +130,6 @@ module Google
end
end
# Represents article answer.
class GoogleCloudDialogflowV2ArticleAnswer
include Google::Apis::Core::Hashable
# The name of answer record, in the format of
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
# Corresponds to the JSON property `answerRecord`
# @return [String]
attr_accessor :answer_record
# Article match confidence.
# The system's confidence score that this article is a good match for this
# converstation, as a value from 0.0 (completely uncertain) to 1.0
# (completely certain).
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# A map that contains metadata about the answer and the
# document from which it originates.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
# Article snippets.
# Corresponds to the JSON property `snippets`
# @return [Array<String>]
attr_accessor :snippets
# The article title.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# The article URI.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@answer_record = args[:answer_record] if args.key?(:answer_record)
@confidence = args[:confidence] if args.key?(:confidence)
@metadata = args[:metadata] if args.key?(:metadata)
@snippets = args[:snippets] if args.key?(:snippets)
@title = args[:title] if args.key?(:title)
@uri = args[:uri] if args.key?(:uri)
end
end
# The request message for EntityTypes.BatchCreateEntities.
class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
include Google::Apis::Core::Hashable
@ -792,101 +738,6 @@ module Google
end
end
# Represents answer from "frequently asked questions".
class GoogleCloudDialogflowV2FaqAnswer
include Google::Apis::Core::Hashable
# The piece of text from the `source` knowledge base document.
# Corresponds to the JSON property `answer`
# @return [String]
attr_accessor :answer
# The name of answer record, in the format of
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
# Corresponds to the JSON property `answerRecord`
# @return [String]
attr_accessor :answer_record
# The system's confidence score that this Knowledge answer is a good match
# for this conversational query, range from 0.0 (completely uncertain)
# to 1.0 (completely certain).
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# A map that contains metadata about the answer and the
# document from which it originates.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
# The corresponding FAQ question.
# Corresponds to the JSON property `question`
# @return [String]
attr_accessor :question
# Indicates which Knowledge Document this answer was extracted
# from.
# Format: `projects/<Project ID>/agent/knowledgeBases/<Knowledge Base
# ID>/documents/<Document ID>`.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@answer = args[:answer] if args.key?(:answer)
@answer_record = args[:answer_record] if args.key?(:answer_record)
@confidence = args[:confidence] if args.key?(:confidence)
@metadata = args[:metadata] if args.key?(:metadata)
@question = args[:question] if args.key?(:question)
@source = args[:source] if args.key?(:source)
end
end
# Represents a notification sent to Cloud Pub/Sub subscribers for
# human agent assistant events in a specific conversation.
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
include Google::Apis::Core::Hashable
# The conversation this notification refers to.
# Format: `projects/<Project ID>/conversations/<Conversation ID>`.
# Corresponds to the JSON property `conversation`
# @return [String]
attr_accessor :conversation
# The participant that the suggestion is compiled for. And This field is used
# to call Participants.ListSuggestions API. Format:
# `projects/<Project ID>/conversations/<Conversation
# ID>/participants/<Participant ID>`.
# It will not be set in legacy workflow.
# HumanAgentAssistantConfig.name for more
# information.
# Corresponds to the JSON property `participant`
# @return [String]
attr_accessor :participant
# The suggestion results payload that this notification refers to.
# Corresponds to the JSON property `suggestionResults`
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult>]
attr_accessor :suggestion_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@conversation = args[:conversation] if args.key?(:conversation)
@participant = args[:participant] if args.key?(:participant)
@suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
end
end
# The request message for Agents.ImportAgent.
class GoogleCloudDialogflowV2ImportAgentRequest
include Google::Apis::Core::Hashable
@ -1083,9 +934,12 @@ module Google
attr_accessor :parent_followup_intent_name
# Optional. The priority of this intent. Higher numbers represent higher
# priorities. If this is zero or unspecified, we use the default
# priority 500000.
# Negative numbers mean that the intent is disabled.
# priorities.
# - If the supplied value is unspecified or 0, the service
# translates the value to 500,000, which corresponds to the
# `Normal` priority in the console.
# - If the supplied value is negative, the intent is ignored
# in runtime detect intent requests.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
@ -1549,6 +1403,11 @@ module Google
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelectItem>]
attr_accessor :items
# Optional. Subtitle of the list.
# Corresponds to the JSON property `subtitle`
# @return [String]
attr_accessor :subtitle
# Optional. The overall title of the list.
# Corresponds to the JSON property `title`
# @return [String]
@ -1561,6 +1420,7 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@subtitle = args[:subtitle] if args.key?(:subtitle)
@title = args[:title] if args.key?(:title)
end
end
@ -1942,25 +1802,6 @@ module Google
end
end
# Metadata in google::longrunning::Operation for Knowledge operations.
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
include Google::Apis::Core::Hashable
# Output only. The current state of this operation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
end
end
# The response message for Contexts.ListContexts.
class GoogleCloudDialogflowV2ListContextsResponse
include Google::Apis::Core::Hashable
@ -2565,118 +2406,6 @@ module Google
end
end
# The response message for [Participants.SuggestArticles]
class GoogleCloudDialogflowV2SuggestArticlesResponse
include Google::Apis::Core::Hashable
# Articles ordered by score in descending order.
# Corresponds to the JSON property `articleAnswers`
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer>]
attr_accessor :article_answers
# Number of messages prior to and including
# last_conversation_message to compile the suggestion. It may be smaller
# than the CompileSuggestionRequest.context_messages_count field in the
# request if there aren't that many messages in the conversation.
# Corresponds to the JSON property `contextSize`
# @return [Fixnum]
attr_accessor :context_size
# The name of the latest conversation message used to compile
# suggestion for.
# Format: `projects/<Project ID>/conversations/<Conversation
# ID>/messages/<Message ID>`.
# Corresponds to the JSON property `latestMessage`
# @return [String]
attr_accessor :latest_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@article_answers = args[:article_answers] if args.key?(:article_answers)
@context_size = args[:context_size] if args.key?(:context_size)
@latest_message = args[:latest_message] if args.key?(:latest_message)
end
end
# The request message for [Participants.SuggestFaqAnswers]
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
include Google::Apis::Core::Hashable
# Number of messages prior to and including
# last_conversation_message to compile the suggestion. It may be smaller
# than the CompileSuggestionRequest.context_messages_count field in the
# request if there aren't that many messages in the conversation.
# Corresponds to the JSON property `contextSize`
# @return [Fixnum]
attr_accessor :context_size
# Answers extracted from FAQ documents.
# Corresponds to the JSON property `faqAnswers`
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer>]
attr_accessor :faq_answers
# The name of the latest conversation message used to compile
# suggestion for.
# Format: `projects/<Project ID>/conversations/<Conversation
# ID>/messages/<Message ID>`.
# Corresponds to the JSON property `latestMessage`
# @return [String]
attr_accessor :latest_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_size = args[:context_size] if args.key?(:context_size)
@faq_answers = args[:faq_answers] if args.key?(:faq_answers)
@latest_message = args[:latest_message] if args.key?(:latest_message)
end
end
# One response of different type of suggestion response which is used in
# the response of Participants.AnalyzeContent and
# Participants.AnalyzeContent, as well as HumanAgentAssistantEvent.
class GoogleCloudDialogflowV2SuggestionResult
include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
attr_accessor :error
# The response message for [Participants.SuggestArticles]
# Corresponds to the JSON property `suggestArticlesResponse`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse]
attr_accessor :suggest_articles_response
# The request message for [Participants.SuggestFaqAnswers]
# Corresponds to the JSON property `suggestFaqAnswersResponse`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
attr_accessor :suggest_faq_answers_response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
end
end
# Configuration of how speech should be synthesized.
class GoogleCloudDialogflowV2SynthesizeSpeechConfig
include Google::Apis::Core::Hashable
@ -3362,10 +3091,13 @@ module Google
# @return [String]
attr_accessor :parent_followup_intent_name
# Optional. The priority of this intent. Higher numbers represent higher
# priorities. If this is zero or unspecified, we use the default
# priority 500000.
# Negative numbers mean that the intent is disabled.
# The priority of this intent. Higher numbers represent higher
# priorities.
# - If the supplied value is unspecified or 0, the service
# translates the value to 500,000, which corresponds to the
# `Normal` priority in the console.
# - If the supplied value is negative, the intent is ignored
# in runtime detect intent requests.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
@ -4009,6 +3741,11 @@ module Google
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem>]
attr_accessor :items
# Optional. Subtitle of the list.
# Corresponds to the JSON property `subtitle`
# @return [String]
attr_accessor :subtitle
# Optional. The overall title of the list.
# Corresponds to the JSON property `title`
# @return [String]
@ -4021,6 +3758,7 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@subtitle = args[:subtitle] if args.key?(:subtitle)
@title = args[:title] if args.key?(:title)
end
end

View File

@ -28,12 +28,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2ArticleAnswer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -142,18 +136,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2FaqAnswer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2ImportAgentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -316,12 +298,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2ListContextsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -412,24 +388,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestArticlesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestionResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SynthesizeSpeechConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -910,18 +868,6 @@ module Google
end
end
class GoogleCloudDialogflowV2ArticleAnswer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :answer_record, as: 'answerRecord'
property :confidence, as: 'confidence'
hash :metadata, as: 'metadata'
collection :snippets, as: 'snippets'
property :title, as: 'title'
property :uri, as: 'uri'
end
end
class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1092,28 +1038,6 @@ module Google
end
end
class GoogleCloudDialogflowV2FaqAnswer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :answer, as: 'answer'
property :answer_record, as: 'answerRecord'
property :confidence, as: 'confidence'
hash :metadata, as: 'metadata'
property :question, as: 'question'
property :source, as: 'source'
end
end
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :conversation, as: 'conversation'
property :participant, as: 'participant'
collection :suggestion_results, as: 'suggestionResults', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult::Representation
end
end
class GoogleCloudDialogflowV2ImportAgentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1296,6 +1220,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelectItem, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelectItem::Representation
property :subtitle, as: 'subtitle'
property :title, as: 'title'
end
end
@ -1402,13 +1327,6 @@ module Google
end
end
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
end
end
class GoogleCloudDialogflowV2ListContextsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1568,38 +1486,6 @@ module Google
end
end
class GoogleCloudDialogflowV2SuggestArticlesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :article_answers, as: 'articleAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer::Representation
property :context_size, as: 'contextSize'
property :latest_message, as: 'latestMessage'
end
end
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_size, as: 'contextSize'
collection :faq_answers, as: 'faqAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer::Representation
property :latest_message, as: 'latestMessage'
end
end
class GoogleCloudDialogflowV2SuggestionResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation
property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse::Representation
property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse::Representation
end
end
class GoogleCloudDialogflowV2SynthesizeSpeechConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1951,6 +1837,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem::Representation
property :subtitle, as: 'subtitle'
property :title, as: 'title'
end
end

View File

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

View File

@ -22,60 +22,6 @@ module Google
module Apis
module DialogflowV2beta1
# Represents article answer.
class GoogleCloudDialogflowV2ArticleAnswer
include Google::Apis::Core::Hashable
# The name of answer record, in the format of
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
# Corresponds to the JSON property `answerRecord`
# @return [String]
attr_accessor :answer_record
# Article match confidence.
# The system's confidence score that this article is a good match for this
# converstation, as a value from 0.0 (completely uncertain) to 1.0
# (completely certain).
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# A map that contains metadata about the answer and the
# document from which it originates.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
# Article snippets.
# Corresponds to the JSON property `snippets`
# @return [Array<String>]
attr_accessor :snippets
# The article title.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# The article URI.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@answer_record = args[:answer_record] if args.key?(:answer_record)
@confidence = args[:confidence] if args.key?(:confidence)
@metadata = args[:metadata] if args.key?(:metadata)
@snippets = args[:snippets] if args.key?(:snippets)
@title = args[:title] if args.key?(:title)
@uri = args[:uri] if args.key?(:uri)
end
end
# The response message for EntityTypes.BatchUpdateEntityTypes.
class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
include Google::Apis::Core::Hashable
@ -311,101 +257,6 @@ module Google
end
end
# Represents answer from "frequently asked questions".
class GoogleCloudDialogflowV2FaqAnswer
include Google::Apis::Core::Hashable
# The piece of text from the `source` knowledge base document.
# Corresponds to the JSON property `answer`
# @return [String]
attr_accessor :answer
# The name of answer record, in the format of
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
# Corresponds to the JSON property `answerRecord`
# @return [String]
attr_accessor :answer_record
# The system's confidence score that this Knowledge answer is a good match
# for this conversational query, range from 0.0 (completely uncertain)
# to 1.0 (completely certain).
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# A map that contains metadata about the answer and the
# document from which it originates.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
# The corresponding FAQ question.
# Corresponds to the JSON property `question`
# @return [String]
attr_accessor :question
# Indicates which Knowledge Document this answer was extracted
# from.
# Format: `projects/<Project ID>/agent/knowledgeBases/<Knowledge Base
# ID>/documents/<Document ID>`.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@answer = args[:answer] if args.key?(:answer)
@answer_record = args[:answer_record] if args.key?(:answer_record)
@confidence = args[:confidence] if args.key?(:confidence)
@metadata = args[:metadata] if args.key?(:metadata)
@question = args[:question] if args.key?(:question)
@source = args[:source] if args.key?(:source)
end
end
# Represents a notification sent to Cloud Pub/Sub subscribers for
# human agent assistant events in a specific conversation.
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
include Google::Apis::Core::Hashable
# The conversation this notification refers to.
# Format: `projects/<Project ID>/conversations/<Conversation ID>`.
# Corresponds to the JSON property `conversation`
# @return [String]
attr_accessor :conversation
# The participant that the suggestion is compiled for. And This field is used
# to call Participants.ListSuggestions API. Format:
# `projects/<Project ID>/conversations/<Conversation
# ID>/participants/<Participant ID>`.
# It will not be set in legacy workflow.
# HumanAgentAssistantConfig.name for more
# information.
# Corresponds to the JSON property `participant`
# @return [String]
attr_accessor :participant
# The suggestion results payload that this notification refers to.
# Corresponds to the JSON property `suggestionResults`
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestionResult>]
attr_accessor :suggestion_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@conversation = args[:conversation] if args.key?(:conversation)
@participant = args[:participant] if args.key?(:participant)
@suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
end
end
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
@ -503,9 +354,12 @@ module Google
attr_accessor :parent_followup_intent_name
# Optional. The priority of this intent. Higher numbers represent higher
# priorities. If this is zero or unspecified, we use the default
# priority 500000.
# Negative numbers mean that the intent is disabled.
# priorities.
# - If the supplied value is unspecified or 0, the service
# translates the value to 500,000, which corresponds to the
# `Normal` priority in the console.
# - If the supplied value is negative, the intent is ignored
# in runtime detect intent requests.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
@ -950,6 +804,11 @@ module Google
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageListSelectItem>]
attr_accessor :items
# Optional. Subtitle of the list.
# Corresponds to the JSON property `subtitle`
# @return [String]
attr_accessor :subtitle
# Optional. The overall title of the list.
# Corresponds to the JSON property `title`
# @return [String]
@ -962,6 +821,7 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@subtitle = args[:subtitle] if args.key?(:subtitle)
@title = args[:title] if args.key?(:title)
end
end
@ -1343,25 +1203,6 @@ module Google
end
end
# Metadata in google::longrunning::Operation for Knowledge operations.
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
include Google::Apis::Core::Hashable
# Output only. The current state of this operation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
end
end
# Represents the contents of the original request that was passed to
# the `[Streaming]DetectIntent` call.
class GoogleCloudDialogflowV2OriginalDetectIntentRequest
@ -1640,118 +1481,6 @@ module Google
end
end
# The response message for [Participants.SuggestArticles]
class GoogleCloudDialogflowV2SuggestArticlesResponse
include Google::Apis::Core::Hashable
# Articles ordered by score in descending order.
# Corresponds to the JSON property `articleAnswers`
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleAnswer>]
attr_accessor :article_answers
# Number of messages prior to and including
# last_conversation_message to compile the suggestion. It may be smaller
# than the CompileSuggestionRequest.context_messages_count field in the
# request if there aren't that many messages in the conversation.
# Corresponds to the JSON property `contextSize`
# @return [Fixnum]
attr_accessor :context_size
# The name of the latest conversation message used to compile
# suggestion for.
# Format: `projects/<Project ID>/conversations/<Conversation
# ID>/messages/<Message ID>`.
# Corresponds to the JSON property `latestMessage`
# @return [String]
attr_accessor :latest_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@article_answers = args[:article_answers] if args.key?(:article_answers)
@context_size = args[:context_size] if args.key?(:context_size)
@latest_message = args[:latest_message] if args.key?(:latest_message)
end
end
# The request message for [Participants.SuggestFaqAnswers]
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
include Google::Apis::Core::Hashable
# Number of messages prior to and including
# last_conversation_message to compile the suggestion. It may be smaller
# than the CompileSuggestionRequest.context_messages_count field in the
# request if there aren't that many messages in the conversation.
# Corresponds to the JSON property `contextSize`
# @return [Fixnum]
attr_accessor :context_size
# Answers extracted from FAQ documents.
# Corresponds to the JSON property `faqAnswers`
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FaqAnswer>]
attr_accessor :faq_answers
# The name of the latest conversation message used to compile
# suggestion for.
# Format: `projects/<Project ID>/conversations/<Conversation
# ID>/messages/<Message ID>`.
# Corresponds to the JSON property `latestMessage`
# @return [String]
attr_accessor :latest_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_size = args[:context_size] if args.key?(:context_size)
@faq_answers = args[:faq_answers] if args.key?(:faq_answers)
@latest_message = args[:latest_message] if args.key?(:latest_message)
end
end
# One response of different type of suggestion response which is used in
# the response of Participants.AnalyzeContent and
# Participants.AnalyzeContent, as well as HumanAgentAssistantEvent.
class GoogleCloudDialogflowV2SuggestionResult
include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::DialogflowV2beta1::GoogleRpcStatus]
attr_accessor :error
# The response message for [Participants.SuggestArticles]
# Corresponds to the JSON property `suggestArticlesResponse`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse]
attr_accessor :suggest_articles_response
# The request message for [Participants.SuggestFaqAnswers]
# Corresponds to the JSON property `suggestFaqAnswersResponse`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
attr_accessor :suggest_faq_answers_response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
end
end
# The request message for a webhook call.
class GoogleCloudDialogflowV2WebhookRequest
include Google::Apis::Core::Hashable
@ -3033,10 +2762,13 @@ module Google
# @return [String]
attr_accessor :parent_followup_intent_name
# Optional. The priority of this intent. Higher numbers represent higher
# priorities. If this is zero or unspecified, we use the default
# priority 500000.
# Negative numbers mean that the intent is disabled.
# The priority of this intent. Higher numbers represent higher
# priorities.
# - If the supplied value is unspecified or 0, the service
# translates the value to 500,000, which corresponds to the
# `Normal` priority in the console.
# - If the supplied value is negative, the intent is ignored
# in runtime detect intent requests.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
@ -3699,6 +3431,11 @@ module Google
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem>]
attr_accessor :items
# Optional. Subtitle of the list.
# Corresponds to the JSON property `subtitle`
# @return [String]
attr_accessor :subtitle
# Optional. The overall title of the list.
# Corresponds to the JSON property `title`
# @return [String]
@ -3711,6 +3448,7 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@subtitle = args[:subtitle] if args.key?(:subtitle)
@title = args[:title] if args.key?(:title)
end
end
@ -4794,6 +4532,13 @@ module Google
# @return [String]
attr_accessor :display_name
# Language which represents the KnowledgeBase. When the KnowledgeBase is
# created/updated, this is populated for all non en-us languages. If not
# populated, the default language en-us applies.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# The knowledge base resource name.
# The name must be empty when creating a knowledge base.
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
@ -4808,6 +4553,7 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@language_code = args[:language_code] if args.key?(:language_code)
@name = args[:name] if args.key?(:name)
end
end

View File

@ -22,12 +22,6 @@ module Google
module Apis
module DialogflowV2beta1
class GoogleCloudDialogflowV2ArticleAnswer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -70,18 +64,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2FaqAnswer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2Intent
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -226,12 +208,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2OriginalDetectIntentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -262,24 +238,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestArticlesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestionResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2WebhookRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -946,18 +904,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2ArticleAnswer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :answer_record, as: 'answerRecord'
property :confidence, as: 'confidence'
hash :metadata, as: 'metadata'
collection :snippets, as: 'snippets'
property :title, as: 'title'
property :uri, as: 'uri'
end
end
class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1021,28 +967,6 @@ module Google
end
end
class GoogleCloudDialogflowV2FaqAnswer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :answer, as: 'answer'
property :answer_record, as: 'answerRecord'
property :confidence, as: 'confidence'
hash :metadata, as: 'metadata'
property :question, as: 'question'
property :source, as: 'source'
end
end
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :conversation, as: 'conversation'
property :participant, as: 'participant'
collection :suggestion_results, as: 'suggestionResults', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestionResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestionResult::Representation
end
end
class GoogleCloudDialogflowV2Intent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1197,6 +1121,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageListSelectItem, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageListSelectItem::Representation
property :subtitle, as: 'subtitle'
property :title, as: 'title'
end
end
@ -1303,13 +1228,6 @@ module Google
end
end
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
end
end
class GoogleCloudDialogflowV2OriginalDetectIntentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1370,38 +1288,6 @@ module Google
end
end
class GoogleCloudDialogflowV2SuggestArticlesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :article_answers, as: 'articleAnswers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleAnswer::Representation
property :context_size, as: 'contextSize'
property :latest_message, as: 'latestMessage'
end
end
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_size, as: 'contextSize'
collection :faq_answers, as: 'faqAnswers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FaqAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FaqAnswer::Representation
property :latest_message, as: 'latestMessage'
end
end
class GoogleCloudDialogflowV2SuggestionResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::DialogflowV2beta1::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2beta1::GoogleRpcStatus::Representation
property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse::Representation
property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse::Representation
end
end
class GoogleCloudDialogflowV2WebhookRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1898,6 +1784,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem::Representation
property :subtitle, as: 'subtitle'
property :title, as: 'title'
end
end
@ -2204,6 +2091,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :language_code, as: 'languageCode'
property :name, as: 'name'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV2
VERSION = 'V2'
REVISION = '20191015'
REVISION = '20191017'
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -795,7 +795,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates an existing comment. This method supports patch semantics.
# Updates an existing comment.
# @param [String] file_id
# The ID of the file.
# @param [String] comment_id
@ -2960,7 +2960,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates an existing reply. This method supports patch semantics.
# Updates an existing reply.
# @param [String] file_id
# The ID of the file.
# @param [String] comment_id
@ -3156,7 +3156,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a revision. This method supports patch semantics.
# Updates a revision.
# @param [String] file_id
# The ID for the file.
# @param [String] revision_id

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV3
VERSION = 'V3'
REVISION = '20190926'
REVISION = '20191017'
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesManagementV1management
VERSION = 'V1management'
REVISION = '20190725'
REVISION = '20191017'
# Create, edit, and delete your Google Play Games activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

@ -364,6 +364,11 @@ module Google
# @return [String]
attr_accessor :player_id
#
# Corresponds to the JSON property `playerStattus`
# @return [String]
attr_accessor :player_stattus
# This is a JSON template for profile settings
# Corresponds to the JSON property `profileSettings`
# @return [Google::Apis::GamesManagementV1management::ProfileSettings]
@ -390,6 +395,7 @@ module Google
@name = args[:name] if args.key?(:name)
@original_player_id = args[:original_player_id] if args.key?(:original_player_id)
@player_id = args[:player_id] if args.key?(:player_id)
@player_stattus = args[:player_stattus] if args.key?(:player_stattus)
@profile_settings = args[:profile_settings] if args.key?(:profile_settings)
@title = args[:title] if args.key?(:title)
end
@ -510,32 +516,6 @@ module Google
end
end
# This is a JSON template for multiple quests reset all request.
class QuestsResetMultipleForAllRequest
include Google::Apis::Core::Hashable
# Uniquely identifies the type of this resource. Value is always the fixed
# string gamesManagement#questsResetMultipleForAllRequest.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The IDs of quests to reset.
# Corresponds to the JSON property `quest_ids`
# @return [Array<String>]
attr_accessor :quest_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@quest_ids = args[:quest_ids] if args.key?(:quest_ids)
end
end
# This is a JSON template for multiple scores reset all request.
class ScoresResetMultipleForAllRequest
include Google::Apis::Core::Hashable

View File

@ -106,12 +106,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class QuestsResetMultipleForAllRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ScoresResetMultipleForAllRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -218,6 +212,7 @@ module Google
property :original_player_id, as: 'originalPlayerId'
property :player_id, as: 'playerId'
property :player_stattus, as: 'playerStattus'
property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesManagementV1management::ProfileSettings, decorator: Google::Apis::GamesManagementV1management::ProfileSettings::Representation
property :title, as: 'title'
@ -258,14 +253,6 @@ module Google
end
end
class QuestsResetMultipleForAllRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :quest_ids, as: 'quest_ids'
end
end
class ScoresResetMultipleForAllRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -487,164 +487,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Resets all player progress on the quest with the given ID for the currently
# authenticated player. This method is only accessible to whitelisted tester
# accounts for your application.
# @param [String] quest_id
# The ID of the quest.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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 reset_quest(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'quests/{questId}/reset', options)
command.params['questId'] = quest_id unless quest_id.nil?
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
# Resets all player progress on all quests for the currently authenticated
# player. This method is only accessible to whitelisted tester accounts for your
# application.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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 reset_quest_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'quests/reset', options)
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
# Resets all draft quests for all players. This method is only available to user
# accounts for your developer console.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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 reset_quest_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'quests/resetAllForAllPlayers', options)
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
# Resets all player progress on the quest with the given ID for all players.
# This method is only available to user accounts for your developer console.
# Only draft quests can be reset.
# @param [String] quest_id
# The ID of the quest.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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 reset_quest_for_all_players(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'quests/{questId}/resetForAllPlayers', options)
command.params['questId'] = quest_id unless quest_id.nil?
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
# Resets quests with the given IDs for all players. This method is only
# available to user accounts for your developer console. Only draft quests may
# be reset.
# @param [Google::Apis::GamesManagementV1management::QuestsResetMultipleForAllRequest] quests_reset_multiple_for_all_request_object
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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 reset_quest_multiple_for_all_players(quests_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'quests/resetMultipleForAllPlayers', options)
command.request_representation = Google::Apis::GamesManagementV1management::QuestsResetMultipleForAllRequest::Representation
command.request_object = quests_reset_multiple_for_all_request_object
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
# Reset all rooms for the currently authenticated player for your application.
# This method is only accessible to whitelisted tester accounts for your
# application.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/
module GamesV1
VERSION = 'V1'
REVISION = '20190725'
REVISION = '20191017'
# View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

View File

@ -2038,6 +2038,11 @@ module Google
# @return [String]
attr_accessor :player_id
#
# Corresponds to the JSON property `playerStattus`
# @return [String]
attr_accessor :player_stattus
# This is a JSON template for profile settings
# Corresponds to the JSON property `profileSettings`
# @return [Google::Apis::GamesV1::ProfileSettings]
@ -2064,6 +2069,7 @@ module Google
@name = args[:name] if args.key?(:name)
@original_player_id = args[:original_player_id] if args.key?(:original_player_id)
@player_id = args[:player_id] if args.key?(:player_id)
@player_stattus = args[:player_stattus] if args.key?(:player_stattus)
@profile_settings = args[:profile_settings] if args.key?(:profile_settings)
@title = args[:title] if args.key?(:title)
end
@ -2775,298 +2781,6 @@ module Google
end
end
# This is a JSON template for a Quest resource.
class Quest
include Google::Apis::Core::Hashable
# The timestamp at which the user accepted the quest in milliseconds since the
# epoch in UTC. Only present if the player has accepted the quest.
# Corresponds to the JSON property `acceptedTimestampMillis`
# @return [Fixnum]
attr_accessor :accepted_timestamp_millis
# The ID of the application this quest is part of.
# Corresponds to the JSON property `applicationId`
# @return [String]
attr_accessor :application_id
# The banner image URL for the quest.
# Corresponds to the JSON property `bannerUrl`
# @return [String]
attr_accessor :banner_url
# The description of the quest.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The timestamp at which the quest ceases to be active in milliseconds since the
# epoch in UTC.
# Corresponds to the JSON property `endTimestampMillis`
# @return [Fixnum]
attr_accessor :end_timestamp_millis
# The icon image URL for the quest.
# Corresponds to the JSON property `iconUrl`
# @return [String]
attr_accessor :icon_url
# The ID of the quest.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Indicates whether the banner image being returned is a default image, or is
# game-provided.
# Corresponds to the JSON property `isDefaultBannerUrl`
# @return [Boolean]
attr_accessor :is_default_banner_url
alias_method :is_default_banner_url?, :is_default_banner_url
# Indicates whether the icon image being returned is a default image, or is game-
# provided.
# Corresponds to the JSON property `isDefaultIconUrl`
# @return [Boolean]
attr_accessor :is_default_icon_url
alias_method :is_default_icon_url?, :is_default_icon_url
# Uniquely identifies the type of this resource. Value is always the fixed
# string games#quest.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The timestamp at which the quest was last updated by the user in milliseconds
# since the epoch in UTC. Only present if the player has accepted the quest.
# Corresponds to the JSON property `lastUpdatedTimestampMillis`
# @return [Fixnum]
attr_accessor :last_updated_timestamp_millis
# The quest milestones.
# Corresponds to the JSON property `milestones`
# @return [Array<Google::Apis::GamesV1::QuestMilestone>]
attr_accessor :milestones
# The name of the quest.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The timestamp at which the user should be notified that the quest will end
# soon in milliseconds since the epoch in UTC.
# Corresponds to the JSON property `notifyTimestampMillis`
# @return [Fixnum]
attr_accessor :notify_timestamp_millis
# The timestamp at which the quest becomes active in milliseconds since the
# epoch in UTC.
# Corresponds to the JSON property `startTimestampMillis`
# @return [Fixnum]
attr_accessor :start_timestamp_millis
# The state of the quest.
# Possible values are:
# - "UPCOMING": The quest is upcoming. The user can see the quest, but cannot
# accept it until it is open.
# - "OPEN": The quest is currently open and may be accepted at this time.
# - "ACCEPTED": The user is currently participating in this quest.
# - "COMPLETED": The user has completed the quest.
# - "FAILED": The quest was attempted but was not completed before the deadline
# expired.
# - "EXPIRED": The quest has expired and was not accepted.
# - "DELETED": The quest should be deleted from the local database.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@accepted_timestamp_millis = args[:accepted_timestamp_millis] if args.key?(:accepted_timestamp_millis)
@application_id = args[:application_id] if args.key?(:application_id)
@banner_url = args[:banner_url] if args.key?(:banner_url)
@description = args[:description] if args.key?(:description)
@end_timestamp_millis = args[:end_timestamp_millis] if args.key?(:end_timestamp_millis)
@icon_url = args[:icon_url] if args.key?(:icon_url)
@id = args[:id] if args.key?(:id)
@is_default_banner_url = args[:is_default_banner_url] if args.key?(:is_default_banner_url)
@is_default_icon_url = args[:is_default_icon_url] if args.key?(:is_default_icon_url)
@kind = args[:kind] if args.key?(:kind)
@last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis)
@milestones = args[:milestones] if args.key?(:milestones)
@name = args[:name] if args.key?(:name)
@notify_timestamp_millis = args[:notify_timestamp_millis] if args.key?(:notify_timestamp_millis)
@start_timestamp_millis = args[:start_timestamp_millis] if args.key?(:start_timestamp_millis)
@state = args[:state] if args.key?(:state)
end
end
# This is a JSON template for a Quest Criterion Contribution resource.
class QuestContribution
include Google::Apis::Core::Hashable
# The formatted value of the contribution as a string. Format depends on the
# configuration for the associated event definition in the Play Games Developer
# Console.
# Corresponds to the JSON property `formattedValue`
# @return [String]
attr_accessor :formatted_value
# Uniquely identifies the type of this resource. Value is always the fixed
# string games#questContribution.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The value of the contribution.
# Corresponds to the JSON property `value`
# @return [Fixnum]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
@kind = args[:kind] if args.key?(:kind)
@value = args[:value] if args.key?(:value)
end
end
# This is a JSON template for a Quest Criterion resource.
class QuestCriterion
include Google::Apis::Core::Hashable
# This is a JSON template for a Quest Criterion Contribution resource.
# Corresponds to the JSON property `completionContribution`
# @return [Google::Apis::GamesV1::QuestContribution]
attr_accessor :completion_contribution
# This is a JSON template for a Quest Criterion Contribution resource.
# Corresponds to the JSON property `currentContribution`
# @return [Google::Apis::GamesV1::QuestContribution]
attr_accessor :current_contribution
# The ID of the event the criterion corresponds to.
# Corresponds to the JSON property `eventId`
# @return [String]
attr_accessor :event_id
# This is a JSON template for a Quest Criterion Contribution resource.
# Corresponds to the JSON property `initialPlayerProgress`
# @return [Google::Apis::GamesV1::QuestContribution]
attr_accessor :initial_player_progress
# Uniquely identifies the type of this resource. Value is always the fixed
# string games#questCriterion.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@completion_contribution = args[:completion_contribution] if args.key?(:completion_contribution)
@current_contribution = args[:current_contribution] if args.key?(:current_contribution)
@event_id = args[:event_id] if args.key?(:event_id)
@initial_player_progress = args[:initial_player_progress] if args.key?(:initial_player_progress)
@kind = args[:kind] if args.key?(:kind)
end
end
# This is a JSON template for a list of quest objects.
class ListQuestResponse
include Google::Apis::Core::Hashable
# The quests.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::GamesV1::Quest>]
attr_accessor :items
# Uniquely identifies the type of this resource. Value is always the fixed
# string games#questListResponse.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Token corresponding to the next page of results.
# 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)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# This is a JSON template for a Quest Milestone resource.
class QuestMilestone
include Google::Apis::Core::Hashable
# The completion reward data of the milestone, represented as a Base64-encoded
# string. This is a developer-specified binary blob with size between 0 and 2 KB
# before encoding.
# Corresponds to the JSON property `completionRewardData`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :completion_reward_data
# The criteria of the milestone.
# Corresponds to the JSON property `criteria`
# @return [Array<Google::Apis::GamesV1::QuestCriterion>]
attr_accessor :criteria
# The milestone ID.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Uniquely identifies the type of this resource. Value is always the fixed
# string games#questMilestone.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The current state of the milestone.
# Possible values are:
# - "COMPLETED_NOT_CLAIMED" - The milestone is complete, but has not yet been
# claimed.
# - "CLAIMED" - The milestone is complete and has been claimed.
# - "NOT_COMPLETED" - The milestone has not yet been completed.
# - "NOT_STARTED" - The milestone is for a quest that has not yet been accepted.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@completion_reward_data = args[:completion_reward_data] if args.key?(:completion_reward_data)
@criteria = args[:criteria] if args.key?(:criteria)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@state = args[:state] if args.key?(:state)
end
end
# This is a JSON template for the result of checking a revision.
class CheckRevisionResponse
include Google::Apis::Core::Hashable

View File

@ -406,36 +406,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Quest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QuestContribution
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QuestCriterion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListQuestResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QuestMilestone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CheckRevisionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1141,6 +1111,7 @@ module Google
property :original_player_id, as: 'originalPlayerId'
property :player_id, as: 'playerId'
property :player_stattus, as: 'playerStattus'
property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesV1::ProfileSettings, decorator: Google::Apis::GamesV1::ProfileSettings::Representation
property :title, as: 'title'
@ -1339,74 +1310,6 @@ module Google
end
end
class Quest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :accepted_timestamp_millis, :numeric_string => true, as: 'acceptedTimestampMillis'
property :application_id, as: 'applicationId'
property :banner_url, as: 'bannerUrl'
property :description, as: 'description'
property :end_timestamp_millis, :numeric_string => true, as: 'endTimestampMillis'
property :icon_url, as: 'iconUrl'
property :id, as: 'id'
property :is_default_banner_url, as: 'isDefaultBannerUrl'
property :is_default_icon_url, as: 'isDefaultIconUrl'
property :kind, as: 'kind'
property :last_updated_timestamp_millis, :numeric_string => true, as: 'lastUpdatedTimestampMillis'
collection :milestones, as: 'milestones', class: Google::Apis::GamesV1::QuestMilestone, decorator: Google::Apis::GamesV1::QuestMilestone::Representation
property :name, as: 'name'
property :notify_timestamp_millis, :numeric_string => true, as: 'notifyTimestampMillis'
property :start_timestamp_millis, :numeric_string => true, as: 'startTimestampMillis'
property :state, as: 'state'
end
end
class QuestContribution
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :formatted_value, as: 'formattedValue'
property :kind, as: 'kind'
property :value, :numeric_string => true, as: 'value'
end
end
class QuestCriterion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :completion_contribution, as: 'completionContribution', class: Google::Apis::GamesV1::QuestContribution, decorator: Google::Apis::GamesV1::QuestContribution::Representation
property :current_contribution, as: 'currentContribution', class: Google::Apis::GamesV1::QuestContribution, decorator: Google::Apis::GamesV1::QuestContribution::Representation
property :event_id, as: 'eventId'
property :initial_player_progress, as: 'initialPlayerProgress', class: Google::Apis::GamesV1::QuestContribution, decorator: Google::Apis::GamesV1::QuestContribution::Representation
property :kind, as: 'kind'
end
end
class ListQuestResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::Quest, decorator: Google::Apis::GamesV1::Quest::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class QuestMilestone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :completion_reward_data, :base64 => true, as: 'completionRewardData'
collection :criteria, as: 'criteria', class: Google::Apis::GamesV1::QuestCriterion, decorator: Google::Apis::GamesV1::QuestCriterion::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :state, as: 'state'
end
end
class CheckRevisionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -856,129 +856,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Report that a reward for the milestone corresponding to milestoneId for the
# quest corresponding to questId has been claimed by the currently authorized
# user.
# @param [String] quest_id
# The ID of the quest.
# @param [String] milestone_id
# The ID of the milestone.
# @param [Fixnum] request_id
# A numeric ID to ensure that the request is handled correctly across retries.
# Your client application must generate this ID randomly.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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 claim_quest_milestone(quest_id, milestone_id, request_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'quests/{questId}/milestones/{milestoneId}/claim', options)
command.params['questId'] = quest_id unless quest_id.nil?
command.params['milestoneId'] = milestone_id unless milestone_id.nil?
command.query['requestId'] = request_id unless request_id.nil?
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
# Indicates that the currently authorized user will participate in the quest.
# @param [String] quest_id
# The ID of the quest.
# @param [String] language
# The preferred language to use for strings returned by this method.
# @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::GamesV1::Quest] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GamesV1::Quest]
#
# @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 accept_quest(quest_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'quests/{questId}/accept', options)
command.response_representation = Google::Apis::GamesV1::Quest::Representation
command.response_class = Google::Apis::GamesV1::Quest
command.params['questId'] = quest_id unless quest_id.nil?
command.query['language'] = language unless language.nil?
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
# Get a list of quests for your application and the currently authenticated
# player.
# @param [String] player_id
# A player ID. A value of me may be used in place of the authenticated player's
# ID.
# @param [String] language
# The preferred language to use for strings returned by this method.
# @param [Fixnum] max_results
# The maximum number of quest resources to return in the response, used for
# paging. For any response, the actual number of quest resources returned may be
# less than the specified maxResults. Acceptable values are 1 to 50, inclusive. (
# Default: 50).
# @param [String] page_token
# The token returned by the previous request.
# @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::GamesV1::ListQuestResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GamesV1::ListQuestResponse]
#
# @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_quests(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'players/{playerId}/quests', options)
command.response_representation = Google::Apis::GamesV1::ListQuestResponse::Representation
command.response_class = Google::Apis::GamesV1::ListQuestResponse
command.params['playerId'] = player_id unless player_id.nil?
command.query['language'] = language unless language.nil?
command.query['maxResults'] = max_results unless max_results.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?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Checks whether the games client is out of date.
# @param [String] client_revision
# The revision of the client SDK used by your application. Format:

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/life-sciences
module LifesciencesV2beta
VERSION = 'V2beta'
REVISION = '20191015'
REVISION = '20191030'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -60,7 +60,8 @@ module Google
# By default, after an action fails, no further actions are run. This flag
# indicates that this action must be run even if the pipeline has already
# failed. This is useful for actions that copy output files off of the VM
# or for debugging.
# or for debugging. Note that no actions will be run if image prefetching
# fails.
# Corresponds to the JSON property `alwaysRun`
# @return [Boolean]
attr_accessor :always_run

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/compute/docs/oslogin/
module OsloginV1
VERSION = 'V1'
REVISION = '20191018'
REVISION = '20191030'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -191,7 +191,8 @@ module Google
# Retrieves an SSH public key.
# @param [String] name
# The fingerprint of the public key to retrieve. Public keys are identified
# Required. The fingerprint of the public key to retrieve. Public keys are
# identified
# by their SHA-256 fingerprint. The fingerprint of the public key is in
# format `users/`user`/sshPublicKeys/`fingerprint``.
# @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20191014'
REVISION = '20191024'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'