Autogenerated update (2020-07-14)

Update:
- blogger_v3
- cloudtrace_v1
- cloudtrace_v2
- compute_beta
- compute_v1
- content_v2
- content_v2_1
- drive_v2
- networkmanagement_v1
- networkmanagement_v1beta1
- osconfig_v1beta
- realtimebidding_v1
- serviceconsumermanagement_v1
- serviceconsumermanagement_v1beta1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- sheets_v4
- vision_v1
This commit is contained in:
Google APIs committed 2020-07-14 00:38:22 +00:00
1 parent fcca6d7496
commit 1946d6b405
48 files changed
+5662 -97

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/blogger/docs/3.0/getting_started
module BloggerV3
VERSION = 'V3'
REVISION = '20200409'
REVISION = '20200711'
# Manage your Blogger account
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'
+1 -1
View File
@@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/trace
module CloudtraceV1
VERSION = 'V1'
REVISION = '20200309'
REVISION = '20200707'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -56,8 +56,6 @@ module Google
# in the existing trace and its spans are overwritten by the provided values,
# and any new fields provided are merged with the existing trace data. If the
# ID does not match, a new trace is created.
# In this case, writing traces is not considered an active developer
# method since traces are machine generated.
# @param [String] project_id
# Required. ID of the Cloud project where the trace data is stored.
# @param [Google::Apis::CloudtraceV1::Traces] traces_object
@@ -91,8 +89,6 @@ module Google
end
# Gets a single trace by its ID.
# In this case, getting for traces is considered an active developer method,
# even though it is technically a read-only method.
# @param [String] project_id
# Required. ID of the Cloud project where the trace data is stored.
# @param [String] trace_id
@@ -126,8 +122,6 @@ module Google
end
# Returns of a list of traces that match the specified filter conditions.
# In this case, listing for traces is considered an active developer method,
# even though it is technically a read-only method.
# @param [String] project_id
# Required. ID of the Cloud project where the trace data is stored.
# @param [String] end_time
+1 -1
View File
@@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/trace
module CloudtraceV2
VERSION = 'V2'
REVISION = '20200414'
REVISION = '20200707'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -322,7 +322,7 @@ module Google
# @return [Google::Apis::CloudtraceV2::Links]
attr_accessor :links
# The resource name of the span in the following format:
# Required. The resource name of the span in the following format:
# projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
# identifier for a trace within a project;
# it is a 32-character hexadecimal encoding of a 16-byte array.
@@ -352,7 +352,8 @@ module Google
# @return [String]
attr_accessor :span_id
# Distinguishes between spans generated in a particular context. For example,
# Optional. Distinguishes between spans generated in a particular context. For
# example,
# two spans with the same name may be distinguished using `CLIENT` (caller)
# and `SERVER` (callee) to identify an RPC call.
# Corresponds to the JSON property `spanKind`
@@ -53,8 +53,6 @@ module Google
# Sends new spans to new or existing traces. You cannot update
# existing spans.
# In this case, writing traces is not considered an active developer
# method since traces are machine generated.
# @param [String] name
# Required. The name of the project where the spans belong. The format is
# `projects/[PROJECT_ID]`.
@@ -89,10 +87,8 @@ module Google
end
# Creates a new span.
# In this case, writing traces is not considered an active developer
# method since traces are machine generated.
# @param [String] name
# The resource name of the span in the following format:
# Required. The resource name of the span in the following format:
# projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
# identifier for a trace within a project;
# it is a 32-character hexadecimal encoding of a 16-byte array.
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20200612'
REVISION = '20200629'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -7812,6 +7812,60 @@ module Google
end
end
#
class GrpcHealthCheck
include Google::Apis::Core::Hashable
# The gRPC service name for the health check. This field is optional. The value
# of grpc_service_name has the following meanings by convention:
# - Empty service_name means the overall status of all services at the backend.
# - Non-empty service_name means the health of that gRPC service, as defined by
# the owner of the service.
# The grpc_service_name can only be ASCII.
# Corresponds to the JSON property `grpcServiceName`
# @return [String]
attr_accessor :grpc_service_name
# The port number for the health check request. Must be specified if port_name
# and port_specification are not set or if port_specification is USE_FIXED_PORT.
# Valid values are 1 through 65535.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence. The port_name should conform to
# RFC1035.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Specifies how port is selected for health checking, can be one of following
# values:
# USE_FIXED_PORT: The port number in port is used for health checking.
# USE_NAMED_PORT: The portName is used for health checking.
# USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each
# network endpoint is used for health checking. For other backends, the port or
# named port specified in the Backend Service is used for health checking.
# If not specified, gRPC health check follows behavior specified in port and
# portName fields.
# Corresponds to the JSON property `portSpecification`
# @return [String]
attr_accessor :port_specification
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@grpc_service_name = args[:grpc_service_name] if args.key?(:grpc_service_name)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@port_specification = args[:port_specification] if args.key?(:port_specification)
end
end
#
class GlobalNetworkEndpointGroupsAttachEndpointsRequest
include Google::Apis::Core::Hashable
@@ -8309,6 +8363,11 @@ module Google
# @return [String]
attr_accessor :description
#
# Corresponds to the JSON property `grpcHealthCheck`
# @return [Google::Apis::ComputeBeta::GrpcHealthCheck]
attr_accessor :grpc_health_check
# A so-far unhealthy instance will be marked healthy after this many consecutive
# successes. The default value is 2.
# Corresponds to the JSON property `healthyThreshold`
@@ -8407,6 +8466,7 @@ module Google
@check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@grpc_health_check = args[:grpc_health_check] if args.key?(:grpc_health_check)
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
@http2_health_check = args[:http2_health_check] if args.key?(:http2_health_check)
@http_health_check = args[:http_health_check] if args.key?(:http_health_check)
@@ -30728,6 +30788,225 @@ module Google
end
end
# Represents a Target gRPC Proxy resource.
# A target gRPC proxy is a component of load balancers intended for load
# balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy.
# The Target gRPC Proxy references a URL map which specifies how traffic routes
# to gRPC backend services.
class TargetGrpcProxy
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in
# order to patch/update the TargetGrpcProxy; otherwise, the request will fail
# with error 412 conditionNotMet. To see the latest fingerprint, make a get()
# request to retrieve the TargetGrpcProxy.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :fingerprint
# [Output Only] The unique identifier for the resource type. The server
# generates this identifier.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] Type of the resource. Always compute#targetGrpcProxy for target
# grpc proxies.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
# z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Server-defined URL with id for the resource.
# Corresponds to the JSON property `selfLinkWithId`
# @return [String]
attr_accessor :self_link_with_id
# URL to the UrlMap resource that defines the mapping from URL to the
# BackendService. The protocol field in the BackendService must be set to GRPC.
# Corresponds to the JSON property `urlMap`
# @return [String]
attr_accessor :url_map
# If true, indicates that the BackendServices referenced by the urlMap may be
# accessed by gRPC applications without using a sidecar proxy. This will enable
# configuration checks on urlMap and its referenced BackendServices to not allow
# unsupported features. A gRPC application must use "xds-experimental:///"
# scheme in the target URI of the service it is connecting to. If false,
# indicates that the BackendServices referenced by the urlMap will be accessed
# by gRPC applications via a sidecar proxy. In this case, a gRPC application
# must not use "xds-experimental:///" scheme in the target URI of the service it
# is connecting to
# Corresponds to the JSON property `validateForProxyless`
# @return [Boolean]
attr_accessor :validate_for_proxyless
alias_method :validate_for_proxyless?, :validate_for_proxyless
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
@self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
@url_map = args[:url_map] if args.key?(:url_map)
@validate_for_proxyless = args[:validate_for_proxyless] if args.key?(:validate_for_proxyless)
end
end
#
class TargetGrpcProxyList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of TargetGrpcProxy resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::TargetGrpcProxy>]
attr_accessor :items
# [Output Only] Type of the resource. Always compute#targetGrpcProxy for target
# grpc proxies.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@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)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
#
class TargetHttpProxiesScopedList
include Google::Apis::Core::Hashable
@@ -952,6 +952,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GrpcHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GlobalNetworkEndpointGroupsAttachEndpointsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -4102,6 +4108,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TargetGrpcProxy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetGrpcProxyList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class TargetHttpProxiesScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -6713,6 +6743,16 @@ module Google
end
end
class GrpcHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :grpc_service_name, as: 'grpcServiceName'
property :port, as: 'port'
property :port_name, as: 'portName'
property :port_specification, as: 'portSpecification'
end
end
class GlobalNetworkEndpointGroupsAttachEndpointsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -6830,6 +6870,8 @@ module Google
property :check_interval_sec, as: 'checkIntervalSec'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :grpc_health_check, as: 'grpcHealthCheck', class: Google::Apis::ComputeBeta::GrpcHealthCheck, decorator: Google::Apis::ComputeBeta::GrpcHealthCheck::Representation
property :healthy_threshold, as: 'healthyThreshold'
property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeBeta::Http2HealthCheck, decorator: Google::Apis::ComputeBeta::Http2HealthCheck::Representation
@@ -12477,6 +12519,54 @@ module Google
end
end
class TargetGrpcProxy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :fingerprint, :base64 => true, as: 'fingerprint'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :self_link_with_id, as: 'selfLinkWithId'
property :url_map, as: 'urlMap'
property :validate_for_proxyless, as: 'validateForProxyless'
end
end
class TargetGrpcProxyList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::TargetGrpcProxy, decorator: Google::Apis::ComputeBeta::TargetGrpcProxy::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning, decorator: Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning::Datum, decorator: Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class TargetHttpProxiesScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -28161,6 +28161,263 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified TargetGrpcProxy in the given scope
# @param [String] project
# Project ID for this request.
# @param [String] target_grpc_proxy
# Name of the TargetGrpcProxy resource to delete.
# @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
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_target_grpc_proxy(project, target_grpc_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options)
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.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
# Returns the specified TargetGrpcProxy resource in the given scope.
# @param [String] project
# Project ID for this request.
# @param [String] target_grpc_proxy
# Name of the TargetGrpcProxy resource to return.
# @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::ComputeBeta::TargetGrpcProxy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::TargetGrpcProxy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_target_grpc_proxy(project, target_grpc_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options)
command.response_representation = Google::Apis::ComputeBeta::TargetGrpcProxy::Representation
command.response_class = Google::Apis::ComputeBeta::TargetGrpcProxy
command.params['project'] = project unless project.nil?
command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.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
# Creates a TargetGrpcProxy in the specified project in the given scope using
# the parameters that are included in the request.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeBeta::TargetGrpcProxy] target_grpc_proxy_object
# @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
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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 insert_target_grpc_proxy(project, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/targetGrpcProxies', options)
command.request_representation = Google::Apis::ComputeBeta::TargetGrpcProxy::Representation
command.request_object = target_grpc_proxy_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.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
# Lists the TargetGrpcProxies for a project in the given scope.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named `example-instance` by specifying `name != example-instance`.
# You can also filter nested fields. For example, you could specify `scheduling.
# automaticRestart = false` to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
# expression. However, you can include `AND` and `OR` expressions explicitly.
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
# Broadwell") AND (scheduling.automaticRestart = true) ```
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than `maxResults`, Compute Engine returns a `
# nextPageToken` that can be used to get the next page of results in subsequent
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
# creationTimestamp` field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
# by a previous list request to get the next page of results.
# @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::ComputeBeta::TargetGrpcProxyList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::TargetGrpcProxyList]
#
# @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_target_grpc_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/targetGrpcProxies', options)
command.response_representation = Google::Apis::ComputeBeta::TargetGrpcProxyList::Representation
command.response_class = Google::Apis::ComputeBeta::TargetGrpcProxyList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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
# Patches the specified TargetGrpcProxy resource with the data included in the
# request. This method supports PATCH semantics and uses JSON merge patch format
# and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] target_grpc_proxy
# Name of the TargetGrpcProxy resource to patch.
# @param [Google::Apis::ComputeBeta::TargetGrpcProxy] target_grpc_proxy_object
# @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
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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_target_grpc_proxy(project, target_grpc_proxy, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options)
command.request_representation = Google::Apis::ComputeBeta::TargetGrpcProxy::Representation
command.request_object = target_grpc_proxy_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.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
# Retrieves the list of all TargetHttpProxy resources, regional and global,
# available to the specified project.
# @param [String] project
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20200612'
REVISION = '20200629'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+279
View File
@@ -7281,6 +7281,60 @@ module Google
end
end
#
class GrpcHealthCheck
include Google::Apis::Core::Hashable
# The gRPC service name for the health check. This field is optional. The value
# of grpc_service_name has the following meanings by convention:
# - Empty service_name means the overall status of all services at the backend.
# - Non-empty service_name means the health of that gRPC service, as defined by
# the owner of the service.
# The grpc_service_name can only be ASCII.
# Corresponds to the JSON property `grpcServiceName`
# @return [String]
attr_accessor :grpc_service_name
# The port number for the health check request. Must be specified if port_name
# and port_specification are not set or if port_specification is USE_FIXED_PORT.
# Valid values are 1 through 65535.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence. The port_name should conform to
# RFC1035.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Specifies how port is selected for health checking, can be one of following
# values:
# USE_FIXED_PORT: The port number in port is used for health checking.
# USE_NAMED_PORT: The portName is used for health checking.
# USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each
# network endpoint is used for health checking. For other backends, the port or
# named port specified in the Backend Service is used for health checking.
# If not specified, gRPC health check follows behavior specified in port and
# portName fields.
# Corresponds to the JSON property `portSpecification`
# @return [String]
attr_accessor :port_specification
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@grpc_service_name = args[:grpc_service_name] if args.key?(:grpc_service_name)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@port_specification = args[:port_specification] if args.key?(:port_specification)
end
end
#
class GlobalNetworkEndpointGroupsAttachEndpointsRequest
include Google::Apis::Core::Hashable
@@ -7778,6 +7832,11 @@ module Google
# @return [String]
attr_accessor :description
#
# Corresponds to the JSON property `grpcHealthCheck`
# @return [Google::Apis::ComputeV1::GrpcHealthCheck]
attr_accessor :grpc_health_check
# A so-far unhealthy instance will be marked healthy after this many consecutive
# successes. The default value is 2.
# Corresponds to the JSON property `healthyThreshold`
@@ -7876,6 +7935,7 @@ module Google
@check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@grpc_health_check = args[:grpc_health_check] if args.key?(:grpc_health_check)
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
@http2_health_check = args[:http2_health_check] if args.key?(:http2_health_check)
@http_health_check = args[:http_health_check] if args.key?(:http_health_check)
@@ -27905,6 +27965,225 @@ module Google
end
end
# Represents a Target gRPC Proxy resource.
# A target gRPC proxy is a component of load balancers intended for load
# balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy.
# The Target gRPC Proxy references a URL map which specifies how traffic routes
# to gRPC backend services.
class TargetGrpcProxy
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in
# order to patch/update the TargetGrpcProxy; otherwise, the request will fail
# with error 412 conditionNotMet. To see the latest fingerprint, make a get()
# request to retrieve the TargetGrpcProxy.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :fingerprint
# [Output Only] The unique identifier for the resource type. The server
# generates this identifier.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] Type of the resource. Always compute#targetGrpcProxy for target
# grpc proxies.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
# z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Server-defined URL with id for the resource.
# Corresponds to the JSON property `selfLinkWithId`
# @return [String]
attr_accessor :self_link_with_id
# URL to the UrlMap resource that defines the mapping from URL to the
# BackendService. The protocol field in the BackendService must be set to GRPC.
# Corresponds to the JSON property `urlMap`
# @return [String]
attr_accessor :url_map
# If true, indicates that the BackendServices referenced by the urlMap may be
# accessed by gRPC applications without using a sidecar proxy. This will enable
# configuration checks on urlMap and its referenced BackendServices to not allow
# unsupported features. A gRPC application must use "xds-experimental:///"
# scheme in the target URI of the service it is connecting to. If false,
# indicates that the BackendServices referenced by the urlMap will be accessed
# by gRPC applications via a sidecar proxy. In this case, a gRPC application
# must not use "xds-experimental:///" scheme in the target URI of the service it
# is connecting to
# Corresponds to the JSON property `validateForProxyless`
# @return [Boolean]
attr_accessor :validate_for_proxyless
alias_method :validate_for_proxyless?, :validate_for_proxyless
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
@self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
@url_map = args[:url_map] if args.key?(:url_map)
@validate_for_proxyless = args[:validate_for_proxyless] if args.key?(:validate_for_proxyless)
end
end
#
class TargetGrpcProxyList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of TargetGrpcProxy resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::TargetGrpcProxy>]
attr_accessor :items
# [Output Only] Type of the resource. Always compute#targetGrpcProxy for target
# grpc proxies.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeV1::TargetGrpcProxyList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@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)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeV1::TargetGrpcProxyList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
#
class TargetHttpProxiesScopedList
include Google::Apis::Core::Hashable
@@ -916,6 +916,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GrpcHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GlobalNetworkEndpointGroupsAttachEndpointsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -3760,6 +3766,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TargetGrpcProxy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetGrpcProxyList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class TargetHttpProxiesScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -6257,6 +6287,16 @@ module Google
end
end
class GrpcHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :grpc_service_name, as: 'grpcServiceName'
property :port, as: 'port'
property :port_name, as: 'portName'
property :port_specification, as: 'portSpecification'
end
end
class GlobalNetworkEndpointGroupsAttachEndpointsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -6374,6 +6414,8 @@ module Google
property :check_interval_sec, as: 'checkIntervalSec'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :grpc_health_check, as: 'grpcHealthCheck', class: Google::Apis::ComputeV1::GrpcHealthCheck, decorator: Google::Apis::ComputeV1::GrpcHealthCheck::Representation
property :healthy_threshold, as: 'healthyThreshold'
property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeV1::Http2HealthCheck, decorator: Google::Apis::ComputeV1::Http2HealthCheck::Representation
@@ -11441,6 +11483,54 @@ module Google
end
end
class TargetGrpcProxy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :fingerprint, :base64 => true, as: 'fingerprint'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :self_link_with_id, as: 'selfLinkWithId'
property :url_map, as: 'urlMap'
property :validate_for_proxyless, as: 'validateForProxyless'
end
end
class TargetGrpcProxyList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::TargetGrpcProxy, decorator: Google::Apis::ComputeV1::TargetGrpcProxy::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeV1::TargetGrpcProxyList::Warning, decorator: Google::Apis::ComputeV1::TargetGrpcProxyList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::TargetGrpcProxyList::Warning::Datum, decorator: Google::Apis::ComputeV1::TargetGrpcProxyList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class TargetHttpProxiesScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+257
View File
@@ -24204,6 +24204,263 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified TargetGrpcProxy in the given scope
# @param [String] project
# Project ID for this request.
# @param [String] target_grpc_proxy
# Name of the TargetGrpcProxy resource to delete.
# @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
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_target_grpc_proxy(project, target_grpc_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.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
# Returns the specified TargetGrpcProxy resource in the given scope.
# @param [String] project
# Project ID for this request.
# @param [String] target_grpc_proxy
# Name of the TargetGrpcProxy resource to return.
# @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::ComputeV1::TargetGrpcProxy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::TargetGrpcProxy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_target_grpc_proxy(project, target_grpc_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options)
command.response_representation = Google::Apis::ComputeV1::TargetGrpcProxy::Representation
command.response_class = Google::Apis::ComputeV1::TargetGrpcProxy
command.params['project'] = project unless project.nil?
command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.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
# Creates a TargetGrpcProxy in the specified project in the given scope using
# the parameters that are included in the request.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeV1::TargetGrpcProxy] target_grpc_proxy_object
# @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
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @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 insert_target_grpc_proxy(project, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/targetGrpcProxies', options)
command.request_representation = Google::Apis::ComputeV1::TargetGrpcProxy::Representation
command.request_object = target_grpc_proxy_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.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
# Lists the TargetGrpcProxies for a project in the given scope.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named `example-instance` by specifying `name != example-instance`.
# You can also filter nested fields. For example, you could specify `scheduling.
# automaticRestart = false` to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
# expression. However, you can include `AND` and `OR` expressions explicitly.
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
# Broadwell") AND (scheduling.automaticRestart = true) ```
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than `maxResults`, Compute Engine returns a `
# nextPageToken` that can be used to get the next page of results in subsequent
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
# creationTimestamp` field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
# by a previous list request to get the next page of results.
# @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::ComputeV1::TargetGrpcProxyList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::TargetGrpcProxyList]
#
# @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_target_grpc_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/targetGrpcProxies', options)
command.response_representation = Google::Apis::ComputeV1::TargetGrpcProxyList::Representation
command.response_class = Google::Apis::ComputeV1::TargetGrpcProxyList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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
# Patches the specified TargetGrpcProxy resource with the data included in the
# request. This method supports PATCH semantics and uses JSON merge patch format
# and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] target_grpc_proxy
# Name of the TargetGrpcProxy resource to patch.
# @param [Google::Apis::ComputeV1::TargetGrpcProxy] target_grpc_proxy_object
# @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
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @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_target_grpc_proxy(project, target_grpc_proxy, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options)
command.request_representation = Google::Apis::ComputeV1::TargetGrpcProxy::Representation
command.request_object = target_grpc_proxy_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.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
# Retrieves the list of all TargetHttpProxy resources, regional and global,
# available to the specified project.
# @param [String] project
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20200615'
REVISION = '20200702'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
+2 -2
View File
@@ -9365,7 +9365,7 @@ module Google
# @return [String]
attr_accessor :brand
# Link to the canonical version of the landing page.
# URL for the canonical version of your item's landing page.
# Corresponds to the JSON property `canonicalLink`
# @return [String]
attr_accessor :canonical_link
@@ -9619,7 +9619,7 @@ module Google
# @return [Fixnum]
attr_accessor :min_handling_time
# Link to a mobile-optimized version of the landing page.
# URL for the mobile-optimized version of your item's landing page.
# Corresponds to the JSON property `mobileLink`
# @return [String]
attr_accessor :mobile_link
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2_1
VERSION = 'V2_1'
REVISION = '20200617'
REVISION = '20200702'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -8577,7 +8577,7 @@ module Google
# @return [String]
attr_accessor :brand
# Link to the canonical version of the landing page.
# URL for the canonical version of your item's landing page.
# Corresponds to the JSON property `canonicalLink`
# @return [String]
attr_accessor :canonical_link
@@ -8794,7 +8794,7 @@ module Google
# @return [Fixnum]
attr_accessor :min_handling_time
# Link to a mobile-optimized version of the landing page.
# URL for the mobile-optimized version of your item's landing page.
# Corresponds to the JSON property `mobileLink`
# @return [String]
attr_accessor :mobile_link
@@ -8829,12 +8829,12 @@ module Google
# @return [Google::Apis::ContentV2_1::Price]
attr_accessor :price
# Technical specification or additional product details
# Technical specification or additional product details.
# Corresponds to the JSON property `productDetails`
# @return [Array<Google::Apis::ContentV2_1::ProductProductDetail>]
attr_accessor :product_details
# List of important bullet points describing the product
# Bullet points describing the most relevant highlights of a product.
# Corresponds to the JSON property `productHighlights`
# @return [Array<String>]
attr_accessor :product_highlights
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV2
VERSION = 'V2'
REVISION = '20200618'
REVISION = '20200701'
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
+8 -4
View File
@@ -1594,14 +1594,16 @@ module Google
# created as head revision, and previous unpinned revisions are preserved for a
# short period of time. Pinned revisions are stored indefinitely, using
# additional storage quota, up to a maximum of 200 revisions. For details on how
# revisions are retained, see the Drive Help Center.
# revisions are retained, see the Drive Help Center. Note that this field is
# ignored if there is no payload in the request.
# @param [Boolean] ocr
# Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
# @param [String] ocr_language
# If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
# @param [Boolean] pinned
# Whether to pin the new revision. A file can have a maximum of 200 pinned
# revisions.
# revisions. Note that this field is ignored if there is no payload in the
# request.
# @param [String] remove_parents
# Comma-separated list of parent IDs to remove.
# @param [Boolean] set_modified_date
@@ -1811,14 +1813,16 @@ module Google
# created as head revision, and previous unpinned revisions are preserved for a
# short period of time. Pinned revisions are stored indefinitely, using
# additional storage quota, up to a maximum of 200 revisions. For details on how
# revisions are retained, see the Drive Help Center.
# revisions are retained, see the Drive Help Center. Note that this field is
# ignored if there is no payload in the request.
# @param [Boolean] ocr
# Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
# @param [String] ocr_language
# If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
# @param [Boolean] pinned
# Whether to pin the new revision. A file can have a maximum of 200 pinned
# revisions.
# revisions. Note that this field is ignored if there is no payload in the
# request.
# @param [String] remove_parents
# Comma-separated list of parent IDs to remove.
# @param [Boolean] set_modified_date
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/
module NetworkmanagementV1
VERSION = 'V1'
REVISION = '20200505'
REVISION = '20200615'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -59,7 +59,7 @@ module Google
# `
# "audit_configs": [
# `
# "service": "allServices"
# "service": "allServices",
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
@@ -68,18 +68,18 @@ module Google
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# "log_type": "DATA_WRITE"
# `,
# `
# "log_type": "ADMIN_READ",
# "log_type": "ADMIN_READ"
# `
# ]
# `,
# `
# "service": "sampleservice.googleapis.com"
# "service": "sampleservice.googleapis.com",
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "log_type": "DATA_READ"
# `,
# `
# "log_type": "DATA_WRITE",
@@ -131,7 +131,7 @@ module Google
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# "log_type": "DATA_WRITE"
# `
# ]
# `
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/
module NetworkmanagementV1beta1
VERSION = 'V1beta1'
REVISION = '20200505'
REVISION = '20200615'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -59,7 +59,7 @@ module Google
# `
# "audit_configs": [
# `
# "service": "allServices"
# "service": "allServices",
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
@@ -68,18 +68,18 @@ module Google
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# "log_type": "DATA_WRITE"
# `,
# `
# "log_type": "ADMIN_READ",
# "log_type": "ADMIN_READ"
# `
# ]
# `,
# `
# "service": "sampleservice.googleapis.com"
# "service": "sampleservice.googleapis.com",
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "log_type": "DATA_READ"
# `,
# `
# "log_type": "DATA_WRITE",
@@ -131,7 +131,7 @@ module Google
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# "log_type": "DATA_WRITE"
# `
# ]
# `
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/
module OsconfigV1beta
VERSION = 'V1beta'
REVISION = '20200601'
REVISION = '20200706'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1096,7 +1096,7 @@ module Google
attr_accessor :recurring_schedule
# Output only. Time the patch deployment was last updated. Timestamp is in
# [RFC3339]("https://www.ietf.org/rfc/rfc3339.txt) text format.
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
@@ -1148,7 +1148,7 @@ module Google
attr_accessor :instance_name_prefixes
# Targets any of the VM instances specified. Instances are specified by their
# URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
# URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
# `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
# `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/
# instances/[INSTANCE_NAME]`
+1 -1
View File
@@ -28,7 +28,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/
module RealtimebiddingV1
VERSION = 'V1'
REVISION = '20200623'
REVISION = '20200713'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -0,0 +1,36 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/recommendationengine_v1beta1/service.rb'
require 'google/apis/recommendationengine_v1beta1/classes.rb'
require 'google/apis/recommendationengine_v1beta1/representations.rb'
module Google
module Apis
# Recommendations AI
#
# Recommendations AI service enables customers to build end-to-end personalized
# recommendation systems without requiring a high level of expertise in machine
# learning, recommendation system, or Google Cloud.
#
# @see https://cloud.google.com/recommendations/docs/
module RecommendationengineV1beta1
VERSION = 'V1beta1'
REVISION = '20200706'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,848 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module RecommendationengineV1beta1
class GoogleApiHttpBody
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1alphaTuningMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1alphaTuningResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1BigQuerySource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1Catalog
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1CatalogInlineSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1CatalogItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1EventDetail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1FeatureMap
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1FeatureMapFloatList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1FeatureMapStringList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1GcsSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1Image
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ImportMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1InputConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ListCatalogsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ListUserEventsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1PredictRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1PredictResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ProductCatalogItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ProductDetail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1ProductEventDetail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1PurchaseTransaction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1UserEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1UserEventImportSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1UserEventInlineSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudRecommendationengineV1beta1UserInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleLongrunningListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleLongrunningOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleProtobufEmpty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleRpcStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleApiHttpBody
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content_type, as: 'contentType'
property :data, :base64 => true, as: 'data'
collection :extensions, as: 'extensions'
end
end
class GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :rejoined_user_events_count, :numeric_string => true, as: 'rejoinedUserEventsCount'
end
end
class GoogleCloudRecommendationengineV1alphaTuningMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :recommendation_model, as: 'recommendationModel'
end
end
class GoogleCloudRecommendationengineV1alphaTuningResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudRecommendationengineV1beta1BigQuerySource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data_schema, as: 'dataSchema'
property :dataset_id, as: 'datasetId'
property :gcs_staging_dir, as: 'gcsStagingDir'
property :project_id, as: 'projectId'
property :table_id, as: 'tableId'
end
end
class GoogleCloudRecommendationengineV1beta1Catalog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :catalog_item_level_config, as: 'catalogItemLevelConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig::Representation
property :default_event_store_id, as: 'defaultEventStoreId'
property :display_name, as: 'displayName'
property :name, as: 'name'
end
end
class GoogleCloudRecommendationengineV1beta1CatalogInlineSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :catalog_items, as: 'catalogItems', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation
end
end
class GoogleCloudRecommendationengineV1beta1CatalogItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :category_hierarchies, as: 'categoryHierarchies', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy::Representation
property :description, as: 'description'
property :id, as: 'id'
property :item_attributes, as: 'itemAttributes', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap::Representation
property :item_group_id, as: 'itemGroupId'
property :language_code, as: 'languageCode'
property :product_metadata, as: 'productMetadata', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItem::Representation
collection :tags, as: 'tags'
property :title, as: 'title'
end
end
class GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :categories, as: 'categories'
end
end
class GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :event_item_level, as: 'eventItemLevel'
property :predict_item_level, as: 'predictItemLevel'
end
end
class GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :prediction_api_key_registration, as: 'predictionApiKeyRegistration', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::Representation
end
end
class GoogleCloudRecommendationengineV1beta1EventDetail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :event_attributes, as: 'eventAttributes', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap::Representation
collection :experiment_ids, as: 'experimentIds'
property :page_view_id, as: 'pageViewId'
property :recommendation_token, as: 'recommendationToken'
property :referrer_uri, as: 'referrerUri'
property :uri, as: 'uri'
end
end
class GoogleCloudRecommendationengineV1beta1FeatureMap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :categorical_features, as: 'categoricalFeatures', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapStringList, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapStringList::Representation
hash :numerical_features, as: 'numericalFeatures', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapFloatList, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapFloatList::Representation
end
end
class GoogleCloudRecommendationengineV1beta1FeatureMapFloatList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :value, as: 'value'
end
end
class GoogleCloudRecommendationengineV1beta1FeatureMapStringList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :value, as: 'value'
end
end
class GoogleCloudRecommendationengineV1beta1GcsSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :input_uris, as: 'inputUris'
property :json_schema, as: 'jsonSchema'
end
end
class GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :canonical_catalog_item, as: 'canonicalCatalogItem', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation
collection :catalog_items, as: 'catalogItems', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation
end
end
class GoogleCloudRecommendationengineV1beta1Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :uri, as: 'uri'
property :width, as: 'width'
end
end
class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :errors_config, as: 'errorsConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig::Representation
property :request_id, as: 'requestId'
property :update_mask, as: 'updateMask'
end
end
class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :error_samples, as: 'errorSamples', class: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus, decorator: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus::Representation
property :errors_config, as: 'errorsConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::Representation
end
end
class GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_prefix, as: 'gcsPrefix'
end
end
class GoogleCloudRecommendationengineV1beta1ImportMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :failure_count, :numeric_string => true, as: 'failureCount'
property :operation_name, as: 'operationName'
property :request_id, as: 'requestId'
property :success_count, :numeric_string => true, as: 'successCount'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :errors_config, as: 'errorsConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig::Representation
property :request_id, as: 'requestId'
end
end
class GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :error_samples, as: 'errorSamples', class: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus, decorator: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus::Representation
property :errors_config, as: 'errorsConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::Representation
property :import_summary, as: 'importSummary', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventImportSummary, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventImportSummary::Representation
end
end
class GoogleCloudRecommendationengineV1beta1InputConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :big_query_source, as: 'bigQuerySource', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1BigQuerySource, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1BigQuerySource::Representation
property :catalog_inline_source, as: 'catalogInlineSource', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogInlineSource, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogInlineSource::Representation
property :gcs_source, as: 'gcsSource', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GcsSource, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GcsSource::Representation
property :user_event_inline_source, as: 'userEventInlineSource', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventInlineSource, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventInlineSource::Representation
end
end
class GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :catalog_items, as: 'catalogItems', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudRecommendationengineV1beta1ListCatalogsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :catalogs, as: 'catalogs', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :prediction_api_key_registrations, as: 'predictionApiKeyRegistrations', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::Representation
end
end
class GoogleCloudRecommendationengineV1beta1ListUserEventsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :user_events, as: 'userEvents', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation
end
end
class GoogleCloudRecommendationengineV1beta1PredictRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dry_run, as: 'dryRun'
property :filter, as: 'filter'
hash :labels, as: 'labels'
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
hash :params, as: 'params'
property :user_event, as: 'userEvent', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation
end
end
class GoogleCloudRecommendationengineV1beta1PredictResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dry_run, as: 'dryRun'
collection :items_missing_in_catalog, as: 'itemsMissingInCatalog'
hash :metadata, as: 'metadata'
property :next_page_token, as: 'nextPageToken'
property :recommendation_token, as: 'recommendationToken'
collection :results, as: 'results', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult::Representation
end
end
class GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :item_metadata, as: 'itemMetadata'
end
end
class GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_key, as: 'apiKey'
end
end
class GoogleCloudRecommendationengineV1beta1ProductCatalogItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :available_quantity, :numeric_string => true, as: 'availableQuantity'
property :canonical_product_uri, as: 'canonicalProductUri'
hash :costs, as: 'costs'
property :currency_code, as: 'currencyCode'
property :exact_price, as: 'exactPrice', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice::Representation
collection :images, as: 'images', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image::Representation
property :price_range, as: 'priceRange', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange::Representation
property :stock_state, as: 'stockState'
end
end
class GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_price, as: 'displayPrice'
property :original_price, as: 'originalPrice'
end
end
class GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max, as: 'max'
property :min, as: 'min'
end
end
class GoogleCloudRecommendationengineV1beta1ProductDetail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :available_quantity, as: 'availableQuantity'
property :currency_code, as: 'currencyCode'
property :display_price, as: 'displayPrice'
property :id, as: 'id'
property :item_attributes, as: 'itemAttributes', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap::Representation
property :original_price, as: 'originalPrice'
property :quantity, as: 'quantity'
property :stock_state, as: 'stockState'
end
end
class GoogleCloudRecommendationengineV1beta1ProductEventDetail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cart_id, as: 'cartId'
property :list_id, as: 'listId'
collection :page_categories, as: 'pageCategories', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy::Representation
collection :product_details, as: 'productDetails', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductDetail, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductDetail::Representation
property :purchase_transaction, as: 'purchaseTransaction', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurchaseTransaction, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurchaseTransaction::Representation
property :search_query, as: 'searchQuery'
end
end
class GoogleCloudRecommendationengineV1beta1PurchaseTransaction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :costs, as: 'costs'
property :currency_code, as: 'currencyCode'
property :id, as: 'id'
property :revenue, as: 'revenue'
hash :taxes, as: 'taxes'
end
end
class GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :operation_name, as: 'operationName'
end
end
class GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter'
property :force, as: 'force'
end
end
class GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :purged_events_count, :numeric_string => true, as: 'purgedEventsCount'
collection :user_events_sample, as: 'userEventsSample', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation
end
end
class GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :user_event_rejoin_scope, as: 'userEventRejoinScope'
end
end
class GoogleCloudRecommendationengineV1beta1UserEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :event_detail, as: 'eventDetail', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1EventDetail, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1EventDetail::Representation
property :event_source, as: 'eventSource'
property :event_time, as: 'eventTime'
property :event_type, as: 'eventType'
property :product_event_detail, as: 'productEventDetail', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductEventDetail, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductEventDetail::Representation
property :user_info, as: 'userInfo', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserInfo, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserInfo::Representation
end
end
class GoogleCloudRecommendationengineV1beta1UserEventImportSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :joined_events_count, :numeric_string => true, as: 'joinedEventsCount'
property :unjoined_events_count, :numeric_string => true, as: 'unjoinedEventsCount'
end
end
class GoogleCloudRecommendationengineV1beta1UserEventInlineSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :user_events, as: 'userEvents', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation
end
end
class GoogleCloudRecommendationengineV1beta1UserInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :direct_user_request, as: 'directUserRequest'
property :ip_address, as: 'ipAddress'
property :user_agent, as: 'userAgent'
property :user_id, as: 'userId'
property :visitor_id, as: 'visitorId'
end
end
class GoogleLongrunningListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation, decorator: Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation
end
end
class GoogleLongrunningOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus, decorator: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class GoogleProtobufEmpty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleRpcStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
end
end
end
@@ -0,0 +1,990 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module RecommendationengineV1beta1
# Recommendations AI
#
# Recommendations AI service enables customers to build end-to-end personalized
# recommendation systems without requiring a high level of expertise in machine
# learning, recommendation system, or Google Cloud.
#
# @example
# require 'google/apis/recommendationengine_v1beta1'
#
# Recommendationengine = Google::Apis::RecommendationengineV1beta1 # Alias the module
# service = Recommendationengine::RecommendationsAIService.new
#
# @see https://cloud.google.com/recommendations/docs/
class RecommendationsAIService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://recommendationengine.googleapis.com/', '')
@batch_path = 'batch'
end
# Lists all the catalog configurations associated with the project.
# @param [String] parent
# Required. The account resource name with an associated location.
# @param [Fixnum] page_size
# Optional. Maximum number of results to return. If unspecified, defaults
# to 50. Max allowed value is 1000.
# @param [String] page_token
# Optional. A page token, received from a previous `ListCatalogs`
# call. Provide this to retrieve the subsequent page.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_catalogs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/catalogs', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogsResponse::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the catalog configuration.
# @param [String] name
# The fully qualified resource name of the catalog.
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog] google_cloud_recommendationengine_v1beta1_catalog_object
# @param [String] update_mask
# Optional. Indicates which fields in the provided 'recommendation_model' to
# update. If not set, will only update the catalog_item_level_config field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_catalog(name, google_cloud_recommendationengine_v1beta1_catalog_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_catalog_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a catalog item.
# @param [String] parent
# Required. The parent catalog resource name, such as
# "projects/*/locations/global/catalogs/default_catalog".
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] google_cloud_recommendationengine_v1beta1_catalog_item_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_catalog_catalog_item(parent, google_cloud_recommendationengine_v1beta1_catalog_item_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/catalogItems', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_catalog_item_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a catalog item.
# @param [String] name
# Required. Full resource name of catalog item, such as
# "projects/*/locations/global/catalogs/default_catalog/catalogItems/
# some_catalog_item_id".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_catalog_catalog_item(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a specific catalog item.
# @param [String] name
# Required. Full resource name of catalog item, such as
# "projects/*/locations/global/catalogs/default_catalog/catalogitems/
# some_catalog_item_id".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_catalog_catalog_item(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Method for getting the catalog items associated with item group id.
# @param [String] parent
# Required. Parent resource name of group id item, such as
# "projects/*/locations/global/catalogs/default_catalog".
# @param [String] item_group_id
# Required. Catalog item identifier for prediction results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_catalog_catalog_item_group_id_items(parent, item_group_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/catalogItems:groupIdItems', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse
command.params['parent'] = parent unless parent.nil?
command.query['itemGroupId'] = item_group_id unless item_group_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Bulk import of multiple catalog items. Request processing may be
# synchronous. No partial updating supported. Non-existing items will be
# created.
# Operation.response is of type ImportResponse. Note that it is
# possible for a subset of the items to be successfully updated.
# @param [String] parent
# Required. "projects/1234/locations/global/catalogs/default_catalog"
# If no updateMask is specified, requires catalogItems.create permission.
# If updateMask is specified, requires catalogItems.update permission.
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest] google_cloud_recommendationengine_v1beta1_import_catalog_items_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation]
#
# @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 import_project_location_catalog_catalog_item(parent, google_cloud_recommendationengine_v1beta1_import_catalog_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/catalogItems:import', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_import_catalog_items_request_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a list of catalog items.
# @param [String] parent
# Required. The parent catalog resource name, such as
# "projects/*/locations/global/catalogs/default_catalog".
# @param [String] filter
# Optional. A filter to apply on the list results.
# @param [Fixnum] page_size
# Optional. Maximum number of results to return per page. If zero, the
# service will choose a reasonable default.
# @param [String] page_token
# Optional. The previous ListCatalogItemsResponse.next_page_token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_catalog_catalog_items(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/catalogItems', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a catalog item. Partial updating is supported. Non-existing
# items will be created.
# @param [String] name
# Required. Full resource name of catalog item, such as
# "projects/*/locations/global/catalogs/default_catalog/catalogItems/
# some_catalog_item_id".
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] google_cloud_recommendationengine_v1beta1_catalog_item_object
# @param [String] update_mask
# Optional. Indicates which fields in the provided 'item' to update. If not
# set, will by default update all fields.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_catalog_catalog_item(name, google_cloud_recommendationengine_v1beta1_catalog_item_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_catalog_item_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_catalog_event_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_catalog_event_store_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Makes a recommendation prediction. If using API Key based authentication,
# the API Key must be registered using the
# PredictionApiKeyRegistry
# service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
# @param [String] name
# Required. Full resource name of the format:
# `name=projects/*/locations/global/catalogs/default_catalog/eventStores/
# default_event_store/placements/*`
# The id of the recommendation engine placement. This id is used to identify
# the set of models that will be used to make the prediction.
# We currently support three placements with the following IDs by default:
# * `shopping_cart`: Predicts items frequently bought together with one or
# more catalog items in the same shopping session. Commonly displayed after
# `add-to-cart` events, on product detail pages, or on the shopping cart
# page.
# * `home_page`: Predicts the next product that a user will most likely
# engage with or purchase based on the shopping or viewing history of the
# specified `userId` or `visitorId`. For example - Recommendations for you.
# * `product_detail`: Predicts the next product that a user will most likely
# engage with or purchase. The prediction is based on the shopping or
# viewing history of the specified `userId` or `visitorId` and its
# relevance to a specified `CatalogItem`. Typically used on product detail
# pages. For example - More items like this.
# * `recently_viewed_default`: Returns up to 75 items recently viewed by the
# specified `userId` or `visitorId`, most recent ones first. Returns
# nothing if neither of them has viewed any items yet. For example -
# Recently viewed.
# The full list of available placements can be seen at
# https://console.cloud.google.com/recommendation/datafeeds/default_catalog/
# dashboard
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictRequest] google_cloud_recommendationengine_v1beta1_predict_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponse]
#
# @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 predict_project_location_catalog_event_store_placement(name, google_cloud_recommendationengine_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:predict', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictRequest::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_predict_request_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponse::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Register an API key for use with predict method.
# @param [String] parent
# Required. The parent resource path.
# "projects/*/locations/global/catalogs/default_catalog/eventStores/
# default_event_store".
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest] google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_catalog_event_store_prediction_api_key_registration(parent, google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/predictionApiKeyRegistrations', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Unregister an apiKey from using for predict method.
# @param [String] name
# Required. The API key to unregister including full resource path.
# "projects/*/locations/global/catalogs/default_catalog/eventStores/
# default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>"
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_catalog_event_store_prediction_api_key_registration(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List the registered apiKeys for use with predict method.
# @param [String] parent
# Required. The parent placement resource name such as
# "projects/1234/locations/global/catalogs/default_catalog/eventStores/
# default_event_store"
# @param [Fixnum] page_size
# Optional. Maximum number of results to return per page. If unset, the
# service will choose a reasonable default.
# @param [String] page_token
# Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_catalog_event_store_prediction_api_key_registrations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/predictionApiKeyRegistrations', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Writes a single user event from the browser. This uses a GET request to
# due to browser restriction of POST-ing to a 3rd party domain.
# This method is used only by the Recommendations AI JavaScript pixel.
# Users should not call this method directly.
# @param [String] parent
# Required. The parent eventStore name, such as
# "projects/1234/locations/global/catalogs/default_catalog/eventStores/
# default_event_store".
# @param [Fixnum] ets
# Optional. The event timestamp in milliseconds. This prevents browser caching
# of
# otherwise identical get requests. The name is abbreviated to reduce the
# payload bytes.
# @param [String] uri
# Optional. The url including cgi-parameters but excluding the hash fragment.
# The URL
# must be truncated to 1.5K bytes to conservatively be under the 2K bytes.
# This is often more useful than the referer url, because many browsers only
# send the domain for 3rd party requests.
# @param [String] user_event
# Required. URL encoded UserEvent proto.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleApiHttpBody] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleApiHttpBody]
#
# @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 collect_project_location_catalog_event_store_user_event(parent, ets: nil, uri: nil, user_event: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/userEvents:collect', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleApiHttpBody::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleApiHttpBody
command.params['parent'] = parent unless parent.nil?
command.query['ets'] = ets unless ets.nil?
command.query['uri'] = uri unless uri.nil?
command.query['userEvent'] = user_event unless user_event.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Bulk import of User events. Request processing might be
# synchronous. Events that already exist are skipped.
# Use this method for backfilling historical user events.
# Operation.response is of type ImportResponse. Note that it is
# possible for a subset of the items to be successfully inserted.
# Operation.metadata is of type ImportMetadata.
# @param [String] parent
# Required. "projects/1234/locations/global/catalogs/default_catalog/eventStores/
# default_event_store"
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest] google_cloud_recommendationengine_v1beta1_import_user_events_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation]
#
# @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 import_project_location_catalog_event_store_user_event(parent, google_cloud_recommendationengine_v1beta1_import_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/userEvents:import', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_import_user_events_request_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a list of user events within a time range, with potential filtering.
# The method does not list unjoined user events.
# Unjoined user event definition: when a user event is ingested from
# Recommendations AI User Event APIs, the catalog item included in the user
# event is connected with the current catalog. If a catalog item of the
# ingested event is not in the current catalog, it could lead to degraded
# model quality. This is called an unjoined event.
# @param [String] parent
# Required. The parent eventStore resource name, such as
# "projects/*/locations/*/catalogs/default_catalog/eventStores/
# default_event_store".
# @param [String] filter
# Optional. Filtering expression to specify restrictions over
# returned events. This is a sequence of terms, where each term applies some
# kind of a restriction to the returned user events. Use this expression to
# restrict results to a specific time range, or filter events by eventType.
# eg: eventTime > "2012-04-23T18:25:43.511Z" eventsMissingCatalogItems
# eventTime<"2012-04-23T18:25:43.511Z" eventType=search
# We expect only 3 types of fields:
# * eventTime: this can be specified a maximum of 2 times, once with a
# less than operator and once with a greater than operator. The
# eventTime restrict should result in one contiguous valid eventTime
# range.
# * eventType: only 1 eventType restriction can be specified.
# * eventsMissingCatalogItems: specififying this will restrict results
# to events for which catalog items were not found in the catalog. The
# default behavior is to return only those events for which catalog
# items were found.
# Some examples of valid filters expressions:
# * Example 1: eventTime > "2012-04-23T18:25:43.511Z"
# eventTime < "2012-04-23T18:30:43.511Z"
# * Example 2: eventTime > "2012-04-23T18:25:43.511Z"
# eventType = detail-page-view
# * Example 3: eventsMissingCatalogItems
# eventType = search eventTime < "2018-04-23T18:30:43.511Z"
# * Example 4: eventTime > "2012-04-23T18:25:43.511Z"
# * Example 5: eventType = search
# * Example 6: eventsMissingCatalogItems
# @param [Fixnum] page_size
# Optional. Maximum number of results to return per page. If zero, the
# service will choose a reasonable default.
# @param [String] page_token
# Optional. The previous ListUserEventsResponse.next_page_token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListUserEventsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListUserEventsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_catalog_event_store_user_events(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/userEvents', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListUserEventsResponse::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListUserEventsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes permanently all user events specified by the filter provided.
# Depending on the number of events specified by the filter, this operation
# could take hours or days to complete. To test a filter, use the list
# command first.
# @param [String] parent
# Required. The resource name of the event_store under which the events are
# created. The format is
# "projects/$`projectId`/locations/global/catalogs/$`catalogId`/eventStores/$`
# eventStoreId`"
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest] google_cloud_recommendationengine_v1beta1_purge_user_events_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation]
#
# @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 purge_project_location_catalog_event_store_user_event(parent, google_cloud_recommendationengine_v1beta1_purge_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/userEvents:purge', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_purge_user_events_request_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Triggers a user event rejoin operation with latest catalog data. Events
# will not be annotated with detailed catalog information if catalog item is
# missing at the time the user event is ingested, and these events are stored
# as unjoined events with a limited usage on training and serving. This API
# can be used to trigger a 'join' operation on specified events with latest
# version of catalog items. It can also be used to correct events joined with
# wrong catalog items.
# @param [String] parent
# Required. Full resource name of user event, such as
# "projects/*/locations/*/catalogs/default_catalog/eventStores/
# default_event_store".
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest] google_cloud_recommendationengine_v1beta1_rejoin_user_events_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation]
#
# @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 rejoin_project_location_catalog_event_store_user_event(parent, google_cloud_recommendationengine_v1beta1_rejoin_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/userEvents:rejoin', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_rejoin_user_events_request_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Writes a single user event.
# @param [String] parent
# Required. The parent eventStore resource name, such as
# "projects/1234/locations/global/catalogs/default_catalog/eventStores/
# default_event_store".
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent] google_cloud_recommendationengine_v1beta1_user_event_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent]
#
# @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 write_project_location_catalog_event_store_user_event(parent, google_cloud_recommendationengine_v1beta1_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/userEvents:write', options)
command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation
command.request_object = google_cloud_recommendationengine_v1beta1_user_event_object
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_catalog_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_catalog_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse::Representation
command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1
VERSION = 'V1'
REVISION = '20200617'
REVISION = '20200711'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1967,8 +1967,8 @@ module Google
# existing data unusable.
# The following are specific rules for service defined Monitoring metric
# descriptors:
# * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
# `launch_stage` fields are all required. The `unit` field must be specified
# * `type`, `metric_kind`, `value_type`, `description`, and `display_name`
# fields are all required. The `unit` field must be specified
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
# * Maximum of default 500 metric descriptors per service is allowed.
# * Maximum of default 10 labels per metric descriptor is allowed.
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1beta1
VERSION = 'V1beta1'
REVISION = '20200617'
REVISION = '20200711'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1745,8 +1745,8 @@ module Google
# existing data unusable.
# The following are specific rules for service defined Monitoring metric
# descriptors:
# * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
# `launch_stage` fields are all required. The `unit` field must be specified
# * `type`, `metric_kind`, `value_type`, `description`, and `display_name`
# fields are all required. The `unit` field must be specified
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
# * Maximum of default 500 metric descriptors per service is allowed.
# * Maximum of default 10 labels per metric descriptor is allowed.
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1
VERSION = 'V1'
REVISION = '20200615'
REVISION = '20200711'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2318,8 +2318,8 @@ module Google
# existing data unusable.
# The following are specific rules for service defined Monitoring metric
# descriptors:
# * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
# `launch_stage` fields are all required. The `unit` field must be specified
# * `type`, `metric_kind`, `value_type`, `description`, and `display_name`
# fields are all required. The `unit` field must be specified
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
# * Maximum of default 500 metric descriptors per service is allowed.
# * Maximum of default 10 labels per metric descriptor is allowed.
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1beta
VERSION = 'V1beta'
REVISION = '20200615'
REVISION = '20200711'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2076,8 +2076,8 @@ module Google
# existing data unusable.
# The following are specific rules for service defined Monitoring metric
# descriptors:
# * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
# `launch_stage` fields are all required. The `unit` field must be specified
# * `type`, `metric_kind`, `value_type`, `description`, and `display_name`
# fields are all required. The `unit` field must be specified
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
# * Maximum of default 500 metric descriptors per service is allowed.
# * Maximum of default 10 labels per metric descriptor is allowed.
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1
VERSION = 'V1'
REVISION = '20200617'
REVISION = '20200711'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2975,8 +2975,8 @@ module Google
# existing data unusable.
# The following are specific rules for service defined Monitoring metric
# descriptors:
# * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
# `launch_stage` fields are all required. The `unit` field must be specified
# * `type`, `metric_kind`, `value_type`, `description`, and `display_name`
# fields are all required. The `unit` field must be specified
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
# * Maximum of default 500 metric descriptors per service is allowed.
# * Maximum of default 10 labels per metric descriptor is allowed.
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1
VERSION = 'V1beta1'
REVISION = '20200617'
REVISION = '20200711'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -3152,8 +3152,8 @@ module Google
# existing data unusable.
# The following are specific rules for service defined Monitoring metric
# descriptors:
# * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
# `launch_stage` fields are all required. The `unit` field must be specified
# * `type`, `metric_kind`, `value_type`, `description`, and `display_name`
# fields are all required. The `unit` field must be specified
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
# * Maximum of default 500 metric descriptors per service is allowed.
# * Maximum of default 10 labels per metric descriptor is allowed.
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/
module SheetsV4
VERSION = 'V4'
REVISION = '20200616'
REVISION = '20200707'
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
+28 -28
View File
@@ -480,7 +480,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -578,7 +578,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -1744,7 +1744,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -3891,7 +3891,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -3927,7 +3927,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -4053,7 +4053,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -4114,7 +4114,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -4458,7 +4458,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -4594,7 +4594,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -5521,7 +5521,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -5607,7 +5607,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -5925,7 +5925,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -6296,7 +6296,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -6705,7 +6705,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -6795,7 +6795,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -7625,7 +7625,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -7761,7 +7761,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -7835,7 +7835,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -7897,7 +7897,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -8669,7 +8669,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -9158,7 +9158,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -9228,7 +9228,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -9547,7 +9547,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -9999,7 +9999,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -10761,7 +10761,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -10820,7 +10820,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -10915,7 +10915,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
@@ -10979,7 +10979,7 @@ module Google
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# Indexes are half open, i.e. the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1
VERSION = 'V1'
REVISION = '20200612'
REVISION = '20200710'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -8991,6 +8991,8 @@ module Google
# Image content, represented as a stream of bytes.
# Note: As with all `bytes` fields, protobuffers use a pure binary
# representation, whereas JSON representations use base64.
# Currently, this field only works for BatchAnnotateImages requests. It does
# not work for AsyncBatchAnnotateImages requests.
# Corresponds to the JSON property `content`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]