Autogenerated update (2019-05-30)

Update:
- container_v1beta1
- containeranalysis_v1alpha1
- content_v2
- content_v2_1
- dialogflow_v2
- docs_v1
- ml_v1
- toolresults_v1beta3
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
This commit is contained in:
Google APIs 2019-05-30 00:36:59 +00:00
parent 1383e06143
commit 3a41d1089d
23 changed files with 166 additions and 161 deletions

View File

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

View File

@ -771,6 +771,12 @@ module Google
class ClusterAutoscaling class ClusterAutoscaling
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The list of Google Compute Engine [zones](/compute/docs/zones#available)
# in which the NodePool's nodes can be created by NAP.
# Corresponds to the JSON property `autoprovisioningLocations`
# @return [Array<String>]
attr_accessor :autoprovisioning_locations
# AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool created
# by NAP. # by NAP.
# Corresponds to the JSON property `autoprovisioningNodePoolDefaults` # Corresponds to the JSON property `autoprovisioningNodePoolDefaults`
@ -795,6 +801,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@autoprovisioning_locations = args[:autoprovisioning_locations] if args.key?(:autoprovisioning_locations)
@autoprovisioning_node_pool_defaults = args[:autoprovisioning_node_pool_defaults] if args.key?(:autoprovisioning_node_pool_defaults) @autoprovisioning_node_pool_defaults = args[:autoprovisioning_node_pool_defaults] if args.key?(:autoprovisioning_node_pool_defaults)
@enable_node_autoprovisioning = args[:enable_node_autoprovisioning] if args.key?(:enable_node_autoprovisioning) @enable_node_autoprovisioning = args[:enable_node_autoprovisioning] if args.key?(:enable_node_autoprovisioning)
@resource_limits = args[:resource_limits] if args.key?(:resource_limits) @resource_limits = args[:resource_limits] if args.key?(:resource_limits)
@ -2339,6 +2346,12 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :instance_group_urls attr_accessor :instance_group_urls
# The list of Google Compute Engine [zones](/compute/docs/zones#available)
# in which the NodePool's nodes should be located.
# Corresponds to the JSON property `locations`
# @return [Array<String>]
attr_accessor :locations
# NodeManagement defines the set of node management services turned on for the # NodeManagement defines the set of node management services turned on for the
# node pool. # node pool.
# Corresponds to the JSON property `management` # Corresponds to the JSON property `management`
@ -2392,6 +2405,7 @@ module Google
@config = args[:config] if args.key?(:config) @config = args[:config] if args.key?(:config)
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) @initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls) @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
@locations = args[:locations] if args.key?(:locations)
@management = args[:management] if args.key?(:management) @management = args[:management] if args.key?(:management)
@max_pods_constraint = args[:max_pods_constraint] if args.key?(:max_pods_constraint) @max_pods_constraint = args[:max_pods_constraint] if args.key?(:max_pods_constraint)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@ -3752,6 +3766,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :image_type attr_accessor :image_type
# The desired list of Google Compute Engine
# [zones](/compute/docs/zones#available) in which the node pool's nodes
# should be located. Changing the locations for a node pool will result
# in nodes being either created or removed from the node pool, depending
# on whether locations are being added or removed.
# Corresponds to the JSON property `locations`
# @return [Array<String>]
attr_accessor :locations
# The name (project, location, cluster, node pool) of the node pool to # The name (project, location, cluster, node pool) of the node pool to
# update. Specified in the format # update. Specified in the format
# 'projects/*/locations/*/clusters/*/nodePools/*'. # 'projects/*/locations/*/clusters/*/nodePools/*'.
@ -3807,6 +3830,7 @@ module Google
def update!(**args) def update!(**args)
@cluster_id = args[:cluster_id] if args.key?(:cluster_id) @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
@image_type = args[:image_type] if args.key?(:image_type) @image_type = args[:image_type] if args.key?(:image_type)
@locations = args[:locations] if args.key?(:locations)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id) @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
@node_version = args[:node_version] if args.key?(:node_version) @node_version = args[:node_version] if args.key?(:node_version)

View File

@ -692,6 +692,7 @@ module Google
class ClusterAutoscaling class ClusterAutoscaling
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :autoprovisioning_locations, as: 'autoprovisioningLocations'
property :autoprovisioning_node_pool_defaults, as: 'autoprovisioningNodePoolDefaults', class: Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults, decorator: Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults::Representation property :autoprovisioning_node_pool_defaults, as: 'autoprovisioningNodePoolDefaults', class: Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults, decorator: Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults::Representation
property :enable_node_autoprovisioning, as: 'enableNodeAutoprovisioning' property :enable_node_autoprovisioning, as: 'enableNodeAutoprovisioning'
@ -1076,6 +1077,7 @@ module Google
property :initial_node_count, as: 'initialNodeCount' property :initial_node_count, as: 'initialNodeCount'
collection :instance_group_urls, as: 'instanceGroupUrls' collection :instance_group_urls, as: 'instanceGroupUrls'
collection :locations, as: 'locations'
property :management, as: 'management', class: Google::Apis::ContainerV1beta1::NodeManagement, decorator: Google::Apis::ContainerV1beta1::NodeManagement::Representation property :management, as: 'management', class: Google::Apis::ContainerV1beta1::NodeManagement, decorator: Google::Apis::ContainerV1beta1::NodeManagement::Representation
property :max_pods_constraint, as: 'maxPodsConstraint', class: Google::Apis::ContainerV1beta1::MaxPodsConstraint, decorator: Google::Apis::ContainerV1beta1::MaxPodsConstraint::Representation property :max_pods_constraint, as: 'maxPodsConstraint', class: Google::Apis::ContainerV1beta1::MaxPodsConstraint, decorator: Google::Apis::ContainerV1beta1::MaxPodsConstraint::Representation
@ -1401,6 +1403,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cluster_id, as: 'clusterId' property :cluster_id, as: 'clusterId'
property :image_type, as: 'imageType' property :image_type, as: 'imageType'
collection :locations, as: 'locations'
property :name, as: 'name' property :name, as: 'name'
property :node_pool_id, as: 'nodePoolId' property :node_pool_id, as: 'nodePoolId'
property :node_version, as: 'nodeVersion' property :node_version, as: 'nodeVersion'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-analysis/api/reference/rest/ # @see https://cloud.google.com/container-analysis/api/reference/rest/
module ContaineranalysisV1alpha1 module ContaineranalysisV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20190503' REVISION = '20190524'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content # @see https://developers.google.com/shopping-content
module ContentV2 module ContentV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20190513' REVISION = '20190524'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -4020,7 +4020,7 @@ module Google
# @return [Google::Apis::ContentV2::OrderCustomer] # @return [Google::Apis::ContentV2::OrderCustomer]
attr_accessor :customer attr_accessor :customer
# The details for the delivery. # Delivery details for shipments.
# Corresponds to the JSON property `deliveryDetails` # Corresponds to the JSON property `deliveryDetails`
# @return [Google::Apis::ContentV2::OrderDeliveryDetails] # @return [Google::Apis::ContentV2::OrderDeliveryDetails]
attr_accessor :delivery_details attr_accessor :delivery_details

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content # @see https://developers.google.com/shopping-content
module ContentV2_1 module ContentV2_1
VERSION = 'V2_1' VERSION = 'V2_1'
REVISION = '20190513' REVISION = '20190524'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -3396,7 +3396,7 @@ module Google
# @return [Google::Apis::ContentV2_1::OrderCustomer] # @return [Google::Apis::ContentV2_1::OrderCustomer]
attr_accessor :customer attr_accessor :customer
# The details for the delivery. # Delivery details for shipments.
# Corresponds to the JSON property `deliveryDetails` # Corresponds to the JSON property `deliveryDetails`
# @return [Google::Apis::ContentV2_1::OrderDeliveryDetails] # @return [Google::Apis::ContentV2_1::OrderDeliveryDetails]
attr_accessor :delivery_details attr_accessor :delivery_details

View File

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

View File

@ -836,10 +836,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :model_variant attr_accessor :model_variant
# Optional. The collection of phrase hints which are used to boost accuracy # Optional. A list of strings containing words and phrases that the speech
# of speech recognition. # recognizer should recognize with higher likelihood.
# Refer to # See [the Cloud Speech
# [Cloud Speech API
# documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase- # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-
# hints) # hints)
# for more details. # for more details.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/docs/ # @see https://developers.google.com/docs/
module DocsV1 module DocsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190501' REVISION = '20190523'
# View and manage your Google Docs documents # View and manage your Google Docs documents
AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents' AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents'

View File

@ -4623,8 +4623,6 @@ module Google
end end
# A border around a table cell. # A border around a table cell.
# Table cell borders cannot be transparent. To hide a table cell border, make
# its width 0.
class TableCellBorder class TableCellBorder
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4700,29 +4698,21 @@ module Google
attr_accessor :background_color attr_accessor :background_color
# A border around a table cell. # A border around a table cell.
# Table cell borders cannot be transparent. To hide a table cell border, make
# its width 0.
# Corresponds to the JSON property `borderBottom` # Corresponds to the JSON property `borderBottom`
# @return [Google::Apis::DocsV1::TableCellBorder] # @return [Google::Apis::DocsV1::TableCellBorder]
attr_accessor :border_bottom attr_accessor :border_bottom
# A border around a table cell. # A border around a table cell.
# Table cell borders cannot be transparent. To hide a table cell border, make
# its width 0.
# Corresponds to the JSON property `borderLeft` # Corresponds to the JSON property `borderLeft`
# @return [Google::Apis::DocsV1::TableCellBorder] # @return [Google::Apis::DocsV1::TableCellBorder]
attr_accessor :border_left attr_accessor :border_left
# A border around a table cell. # A border around a table cell.
# Table cell borders cannot be transparent. To hide a table cell border, make
# its width 0.
# Corresponds to the JSON property `borderRight` # Corresponds to the JSON property `borderRight`
# @return [Google::Apis::DocsV1::TableCellBorder] # @return [Google::Apis::DocsV1::TableCellBorder]
attr_accessor :border_right attr_accessor :border_right
# A border around a table cell. # A border around a table cell.
# Table cell borders cannot be transparent. To hide a table cell border, make
# its width 0.
# Corresponds to the JSON property `borderTop` # Corresponds to the JSON property `borderTop`
# @return [Google::Apis::DocsV1::TableCellBorder] # @return [Google::Apis::DocsV1::TableCellBorder]
attr_accessor :border_top attr_accessor :border_top

View File

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

View File

@ -1716,6 +1716,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :runtime_version attr_accessor :runtime_version
# Optional. Specifies the service account for resource access control.
# Corresponds to the JSON property `serviceAccount`
# @return [String]
attr_accessor :service_account
# Output only. The state of a version. # Output only. The state of a version.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
@ -1744,6 +1749,7 @@ module Google
@prediction_class = args[:prediction_class] if args.key?(:prediction_class) @prediction_class = args[:prediction_class] if args.key?(:prediction_class)
@python_version = args[:python_version] if args.key?(:python_version) @python_version = args[:python_version] if args.key?(:python_version)
@runtime_version = args[:runtime_version] if args.key?(:runtime_version) @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
@service_account = args[:service_account] if args.key?(:service_account)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
end end
end end

View File

@ -604,6 +604,7 @@ module Google
property :prediction_class, as: 'predictionClass' property :prediction_class, as: 'predictionClass'
property :python_version, as: 'pythonVersion' property :python_version, as: 'pythonVersion'
property :runtime_version, as: 'runtimeVersion' property :runtime_version, as: 'runtimeVersion'
property :service_account, as: 'serviceAccount'
property :state, as: 'state' property :state, as: 'state'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/test-lab/ # @see https://firebase.google.com/docs/test-lab/
module ToolresultsV1beta3 module ToolresultsV1beta3
VERSION = 'V1beta3' VERSION = 'V1beta3'
REVISION = '20190508' REVISION = '20190529'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -945,43 +945,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for different # The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [ # programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). The error model is designed to be: # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# - Simple to use and understand for most users - Flexible enough to meet # data: error code, error message, and error details.
# unexpected needs # You can find out more about this error model and how to work with it in the [
# # Overview # API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of [google.rpc.Code][
# ], but it may accept additional error codes if needed. The error message
# should be a developer-facing English message that helps developers *understand*
# and *resolve* the error. If a localized user-facing error message is needed,
# put the localized message in the error details or localize it in the client.
# The optional error details may contain arbitrary information about the error.
# There is a predefined set of error detail types in the package `google.rpc`
# that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a consistent developer
# experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may have a
# `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the `
# Status` message should be used directly inside batch response, one for each
# error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be represented
# directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::ToolresultsV1beta3::Status] # @return [Google::Apis::ToolresultsV1beta3::Status]
attr_accessor :error attr_accessor :error
@ -1867,43 +1834,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for different # The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [ # programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). The error model is designed to be: # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# - Simple to use and understand for most users - Flexible enough to meet # data: error code, error message, and error details.
# unexpected needs # You can find out more about this error model and how to work with it in the [
# # Overview # API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of [google.rpc.Code][
# ], but it may accept additional error codes if needed. The error message
# should be a developer-facing English message that helps developers *understand*
# and *resolve* the error. If a localized user-facing error message is needed,
# put the localized message in the error details or localize it in the client.
# The optional error details may contain arbitrary information about the error.
# There is a predefined set of error detail types in the package `google.rpc`
# that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a consistent developer
# experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may have a
# `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the `
# Status` message should be used directly inside batch response, one for each
# error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be represented
# directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1 module VisionV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190503' REVISION = '20190527'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2190,8 +2190,8 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsSource] # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -2507,7 +2507,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -3965,8 +3967,8 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsSource] # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -4282,7 +4284,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -5806,8 +5810,8 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsSource] # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -6123,7 +6127,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -7730,8 +7736,8 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1GcsSource] # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -8047,7 +8053,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -9674,8 +9682,8 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsSource] # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -10059,7 +10067,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -11170,8 +11180,8 @@ module Google
# @return [Google::Apis::VisionV1::GcsSource] # @return [Google::Apis::VisionV1::GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -11834,7 +11844,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -11886,8 +11898,12 @@ module Google
attr_accessor :filter attr_accessor :filter
# The list of product categories to search in. Currently, we only consider # The list of product categories to search in. Currently, we only consider
# the first category, and either "homegoods", "apparel", or "toys" should be # the first category, and either "homegoods-v2", "apparel-v2", or "toys-v2"
# specified. # should be specified. The legacy categories "homegoods", "apparel", and
# "toys" are still supported but will be deprecated. For new products, please
# use "homegoods-v2", "apparel-v2", or "toys-v2" for better product search
# accuracy. It is recommended to migrate existing products to these
# categories as well.
# Corresponds to the JSON property `productCategories` # Corresponds to the JSON property `productCategories`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :product_categories attr_accessor :product_categories

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1p1beta1 module VisionV1p1beta1
VERSION = 'V1p1beta1' VERSION = 'V1p1beta1'
REVISION = '20190503' REVISION = '20190527'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2277,8 +2277,8 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsSource] # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -2627,7 +2627,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -2706,8 +2708,12 @@ module Google
attr_accessor :filter attr_accessor :filter
# The list of product categories to search in. Currently, we only consider # The list of product categories to search in. Currently, we only consider
# the first category, and either "homegoods", "apparel", or "toys" should be # the first category, and either "homegoods-v2", "apparel-v2", or "toys-v2"
# specified. # should be specified. The legacy categories "homegoods", "apparel", and
# "toys" are still supported but will be deprecated. For new products, please
# use "homegoods-v2", "apparel-v2", or "toys-v2" for better product search
# accuracy. It is recommended to migrate existing products to these
# categories as well.
# Corresponds to the JSON property `productCategories` # Corresponds to the JSON property `productCategories`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :product_categories attr_accessor :product_categories
@ -4152,8 +4158,8 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsSource] # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -4469,7 +4475,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -5993,8 +6001,8 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsSource] # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -6310,7 +6318,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -7917,8 +7927,8 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1GcsSource] # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -8234,7 +8244,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -9861,8 +9873,8 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsSource] # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -10246,7 +10258,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -11132,8 +11146,8 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GcsSource] # @return [Google::Apis::VisionV1p1beta1::GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -11629,7 +11643,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1p2beta1 module VisionV1p2beta1
VERSION = 'V1p2beta1' VERSION = 'V1p2beta1'
REVISION = '20190503' REVISION = '20190527'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1859,8 +1859,8 @@ module Google
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1GcsSource] # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -2176,7 +2176,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -4052,8 +4054,8 @@ module Google
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1GcsSource] # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -4402,7 +4404,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -4481,8 +4485,12 @@ module Google
attr_accessor :filter attr_accessor :filter
# The list of product categories to search in. Currently, we only consider # The list of product categories to search in. Currently, we only consider
# the first category, and either "homegoods", "apparel", or "toys" should be # the first category, and either "homegoods-v2", "apparel-v2", or "toys-v2"
# specified. # should be specified. The legacy categories "homegoods", "apparel", and
# "toys" are still supported but will be deprecated. For new products, please
# use "homegoods-v2", "apparel-v2", or "toys-v2" for better product search
# accuracy. It is recommended to migrate existing products to these
# categories as well.
# Corresponds to the JSON property `productCategories` # Corresponds to the JSON property `productCategories`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :product_categories attr_accessor :product_categories
@ -5993,8 +6001,8 @@ module Google
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1GcsSource] # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -6310,7 +6318,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -7917,8 +7927,8 @@ module Google
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1GcsSource] # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -8234,7 +8244,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -9861,8 +9873,8 @@ module Google
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsSource] # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -10246,7 +10258,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]
@ -11132,8 +11146,8 @@ module Google
# @return [Google::Apis::VisionV1p2beta1::GcsSource] # @return [Google::Apis::VisionV1p2beta1::GcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff" # The type of the file. Currently only "application/pdf", "image/tiff" and
# are supported. Wildcards are not supported. # "image/gif" are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType` # Corresponds to the JSON property `mimeType`
# @return [String] # @return [String]
attr_accessor :mime_type attr_accessor :mime_type
@ -11629,7 +11643,9 @@ module Google
attr_accessor :name attr_accessor :name
# The category for the product identified by the reference image. This should # The category for the product identified by the reference image. This should
# be either "homegoods", "apparel", or "toys". # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
# "homegoods", "apparel", and "toys" are still supported, but these should
# not be used for new products.
# This field is immutable. # This field is immutable.
# Corresponds to the JSON property `productCategory` # Corresponds to the JSON property `productCategory`
# @return [String] # @return [String]