Autogenerated update (2018-05-17)
Update: - analyticsreporting_v4 - androidpublisher_v2 - container_v1 - dlp_v2 - language_v1 - language_v1beta1 - language_v1beta2 - runtimeconfig_v1beta1 - vision_v1p1beta1
This commit is contained in:
1 parent
b2ec73b99e
commit
02b88ae098
25 files changed
+3289
-117
No files matched your search
@@ -18,14 +18,14 @@ require 'google/apis/analyticsreporting_v4/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Analytics Reporting API
|
||||
# Analytics Reporting API
|
||||
#
|
||||
# Accesses Analytics report data.
|
||||
#
|
||||
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
||||
module AnalyticsreportingV4
|
||||
VERSION = 'V4'
|
||||
REVISION = '20171108'
|
||||
REVISION = '20180515'
|
||||
|
||||
# View and manage your Google Analytics data
|
||||
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||
|
||||
@@ -1031,7 +1031,7 @@ module Google
|
||||
|
||||
# Page size is for paging and specifies the maximum number of returned rows.
|
||||
# Page size should be >= 0. A query returns the default of 1,000 rows.
|
||||
# The Analytics Core Reporting API returns a maximum of 10,000 rows per
|
||||
# The Analytics Core Reporting API returns a maximum of 100,000 rows per
|
||||
# request, no matter how many you ask for. It can also return fewer rows
|
||||
# than requested, if there aren't as many dimension segments as you expect.
|
||||
# For instance, there are fewer than 300 possible values for `ga:country`,
|
||||
|
||||
@@ -20,7 +20,7 @@ require 'google/apis/errors'
|
||||
module Google
|
||||
module Apis
|
||||
module AnalyticsreportingV4
|
||||
# Google Analytics Reporting API
|
||||
# Analytics Reporting API
|
||||
#
|
||||
# Accesses Analytics report data.
|
||||
#
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180504'
|
||||
REVISION = '20180515'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
||||
@@ -2045,6 +2045,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Refund a user's subscription or in-app purchase order.
|
||||
# @param [String] package_name
|
||||
# The package name of the application for which this subscription or in-app item
|
||||
# was purchased (for example, 'com.some.thing').
|
||||
# @param [String] order_id
|
||||
# The order ID provided to the user when the subscription or in-app order was
|
||||
# purchased.
|
||||
# @param [Boolean] revoke
|
||||
# Whether to revoke the purchased item. If set to true, access to the
|
||||
# subscription or in-app item will be terminated immediately. If the item is a
|
||||
# recurring subscription, all future payments will also be terminated. Consumed
|
||||
# in-app items need to be handled by developer's app. (optional)
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def refund_order(package_name, order_id, revoke: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{packageName}/orders/{orderId}:refund', options)
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['revoke'] = revoke unless revoke.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Checks the purchase and consumption status of an inapp item.
|
||||
# @param [String] package_name
|
||||
# The package name of the application the inapp product was sold in (for example,
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180427'
|
||||
REVISION = '20180504'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -308,7 +308,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the addons of a specific cluster.
|
||||
# Sets the addons for a specific cluster.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster) of the cluster to set addons.
|
||||
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
||||
@@ -376,7 +376,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the locations of a specific cluster.
|
||||
# Sets the locations for a specific cluster.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster) of the cluster to set locations.
|
||||
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
||||
@@ -410,7 +410,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the logging service of a specific cluster.
|
||||
# Sets the logging service for a specific cluster.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster) of the cluster to set logging.
|
||||
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
||||
@@ -480,7 +480,7 @@ module Google
|
||||
end
|
||||
|
||||
# Used to set master auth materials. Currently supports :-
|
||||
# Changing the admin password of a specific cluster.
|
||||
# Changing the admin password for a specific cluster.
|
||||
# This can be either via password generation or explicitly set the password.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster) of the cluster to set auth.
|
||||
@@ -515,7 +515,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the monitoring service of a specific cluster.
|
||||
# Sets the monitoring service for a specific cluster.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster) of the cluster to set monitoring.
|
||||
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
||||
@@ -685,7 +685,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the master of a specific cluster.
|
||||
# Updates the master for a specific cluster.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster) of the cluster to update.
|
||||
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
||||
@@ -938,7 +938,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the autoscaling settings of a specific node pool.
|
||||
# Sets the autoscaling settings for a specific node pool.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster, node pool) of the node pool to set
|
||||
# autoscaler settings. Specified in the format
|
||||
@@ -1008,7 +1008,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the size of a specific node pool.
|
||||
# Sets the size for a specific node pool.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster, node pool id) of the node pool to set
|
||||
# size.
|
||||
@@ -1043,7 +1043,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the version and/or image type of a specific node pool.
|
||||
# Updates the version and/or image type for a specific node pool.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster, node pool) of the node pool to
|
||||
# update. Specified in the format
|
||||
@@ -1241,7 +1241,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the addons of a specific cluster.
|
||||
# Sets the addons for a specific cluster.
|
||||
# @param [String] project_id
|
||||
# Deprecated. The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
@@ -1568,7 +1568,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the locations of a specific cluster.
|
||||
# Sets the locations for a specific cluster.
|
||||
# @param [String] project_id
|
||||
# Deprecated. The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
@@ -1613,7 +1613,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the logging service of a specific cluster.
|
||||
# Sets the logging service for a specific cluster.
|
||||
# @param [String] project_id
|
||||
# Deprecated. The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
@@ -1658,7 +1658,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the master of a specific cluster.
|
||||
# Updates the master for a specific cluster.
|
||||
# @param [String] project_id
|
||||
# Deprecated. The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
@@ -1703,7 +1703,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the monitoring service of a specific cluster.
|
||||
# Sets the monitoring service for a specific cluster.
|
||||
# @param [String] project_id
|
||||
# Deprecated. The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
@@ -1836,7 +1836,7 @@ module Google
|
||||
end
|
||||
|
||||
# Used to set master auth materials. Currently supports :-
|
||||
# Changing the admin password of a specific cluster.
|
||||
# Changing the admin password for a specific cluster.
|
||||
# This can be either via password generation or explicitly set the password.
|
||||
# @param [String] project_id
|
||||
# Deprecated. The Google Developers Console [project ID or project
|
||||
@@ -2017,7 +2017,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the autoscaling settings of a specific node pool.
|
||||
# Sets the autoscaling settings for a specific node pool.
|
||||
# @param [String] project_id
|
||||
# Deprecated. The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
@@ -2358,7 +2358,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the size of a specific node pool.
|
||||
# Sets the size for a specific node pool.
|
||||
# @param [String] project_id
|
||||
# Deprecated. The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
@@ -2407,7 +2407,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the version and/or image type of a specific node pool.
|
||||
# Updates the version and/or image type for a specific node pool.
|
||||
# @param [String] project_id
|
||||
# Deprecated. The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/dlp/docs/
|
||||
module DlpV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180507'
|
||||
REVISION = '20180515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -208,6 +208,11 @@ module Google
|
||||
# @return [Fixnum]
|
||||
attr_accessor :rows_limit
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `sampleMethod`
|
||||
# @return [String]
|
||||
attr_accessor :sample_method
|
||||
|
||||
# Message defining the location of a BigQuery table. A table is uniquely
|
||||
# identified by its project_id, dataset_id, and table_name. Within a query
|
||||
# a table is often referenced with a string in the format of:
|
||||
@@ -225,6 +230,7 @@ module Google
|
||||
def update!(**args)
|
||||
@identifying_fields = args[:identifying_fields] if args.key?(:identifying_fields)
|
||||
@rows_limit = args[:rows_limit] if args.key?(:rows_limit)
|
||||
@sample_method = args[:sample_method] if args.key?(:sample_method)
|
||||
@table_reference = args[:table_reference] if args.key?(:table_reference)
|
||||
end
|
||||
end
|
||||
@@ -598,6 +604,18 @@ module Google
|
||||
# @return [Array<String>]
|
||||
attr_accessor :file_types
|
||||
|
||||
# Limits the number of files to scan to this percentage of the input FileSet.
|
||||
# Number of files scanned is rounded down. Must be between 0 and 100,
|
||||
# inclusively. Both 0 and 100 means no limit. Defaults to 0.
|
||||
# Corresponds to the JSON property `filesLimitPercent`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :files_limit_percent
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `sampleMethod`
|
||||
# @return [String]
|
||||
attr_accessor :sample_method
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -607,6 +625,8 @@ module Google
|
||||
@bytes_limit_per_file = args[:bytes_limit_per_file] if args.key?(:bytes_limit_per_file)
|
||||
@file_set = args[:file_set] if args.key?(:file_set)
|
||||
@file_types = args[:file_types] if args.key?(:file_types)
|
||||
@files_limit_percent = args[:files_limit_percent] if args.key?(:files_limit_percent)
|
||||
@sample_method = args[:sample_method] if args.key?(:sample_method)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -963,6 +963,7 @@ module Google
|
||||
collection :identifying_fields, as: 'identifyingFields', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId::Representation
|
||||
|
||||
property :rows_limit, :numeric_string => true, as: 'rowsLimit'
|
||||
property :sample_method, as: 'sampleMethod'
|
||||
property :table_reference, as: 'tableReference', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable::Representation
|
||||
|
||||
end
|
||||
@@ -1075,6 +1076,8 @@ module Google
|
||||
property :file_set, as: 'fileSet', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet::Representation
|
||||
|
||||
collection :file_types, as: 'fileTypes'
|
||||
property :files_limit_percent, as: 'filesLimitPercent'
|
||||
property :sample_method, as: 'sampleMethod'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/natural-language/
|
||||
module LanguageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180322'
|
||||
REVISION = '20180514'
|
||||
|
||||
# Apply machine learning models to reveal the structure and meaning of text
|
||||
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
|
||||
|
||||
@@ -441,6 +441,7 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The content of the input in string format.
|
||||
# Cloud audit logging exempt since it is based on user data.
|
||||
# Corresponds to the JSON property `content`
|
||||
# @return [String]
|
||||
attr_accessor :content
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/natural-language/
|
||||
module LanguageV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20180221'
|
||||
REVISION = '20180514'
|
||||
|
||||
# Apply machine learning models to reveal the structure and meaning of text
|
||||
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
|
||||
|
||||
@@ -315,6 +315,7 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The content of the input in string format.
|
||||
# Cloud audit logging exempt since it is based on user data.
|
||||
# Corresponds to the JSON property `content`
|
||||
# @return [String]
|
||||
attr_accessor :content
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/natural-language/
|
||||
module LanguageV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20180322'
|
||||
REVISION = '20180514'
|
||||
|
||||
# Apply machine learning models to reveal the structure and meaning of text
|
||||
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
|
||||
|
||||
@@ -440,6 +440,7 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The content of the input in string format.
|
||||
# Cloud audit logging exempt since it is based on user data.
|
||||
# Corresponds to the JSON property `content`
|
||||
# @return [String]
|
||||
attr_accessor :content
|
||||
|
||||
@@ -82,11 +82,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Request for the `CreateSnapshot` method.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in
|
||||
# backward-incompatible ways and is not recommended for production use.
|
||||
# It is not subject to any SLA or deprecation policy.
|
||||
# Request for the `CreateSnapshot` method.
|
||||
class CreateSnapshotRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -132,11 +128,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Response for the `ListSnapshots` method.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# Response for the `ListSnapshots` method.
|
||||
class ListSnapshotsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -189,11 +181,8 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Response for the `ListTopicSnapshots` method.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# Response for the `ListTopicSnapshots` method.
|
||||
# [ALPHA] This method is a part of a closed Alpha API.
|
||||
class ListTopicSnapshotsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -605,11 +594,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Request for the `Seek` method.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# Request for the `Seek` method.
|
||||
class SeekRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -714,11 +699,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# A snapshot resource.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# A snapshot resource.
|
||||
class Snapshot
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -788,11 +769,8 @@ module Google
|
||||
# If `retain_acked_messages` is true, then this also configures the retention
|
||||
# of acknowledged messages, and thus configures how far back in time a `Seek`
|
||||
# can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
|
||||
# minutes.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# minutes.
|
||||
# [ALPHA] This field is a part of a closed Alpha API.
|
||||
# Corresponds to the JSON property `messageRetentionDuration`
|
||||
# @return [String]
|
||||
attr_accessor :message_retention_duration
|
||||
@@ -815,11 +793,8 @@ module Google
|
||||
# Indicates whether to retain acknowledged messages. If true, then
|
||||
# messages are not expunged from the subscription's backlog, even if they are
|
||||
# acknowledged, until they fall out of the `message_retention_duration`
|
||||
# window.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# window.
|
||||
# [ALPHA] This field is a part of a closed Alpha API.
|
||||
# Corresponds to the JSON property `retainAckedMessages`
|
||||
# @return [Boolean]
|
||||
attr_accessor :retain_acked_messages
|
||||
@@ -914,19 +889,11 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Request for the UpdateSnapshot method.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# Request for the UpdateSnapshot method.
|
||||
class UpdateSnapshotRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A snapshot resource.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# A snapshot resource.
|
||||
# Corresponds to the JSON property `snapshot`
|
||||
# @return [Google::Apis::PubsubV1::Snapshot]
|
||||
attr_accessor :snapshot
|
||||
|
||||
@@ -47,21 +47,18 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Creates a snapshot from the requested subscription.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# [ALPHA] This method is a part of a closed Alpha API.
|
||||
# Creates a snapshot from the requested subscription.
|
||||
# If the snapshot already exists, returns `ALREADY_EXISTS`.
|
||||
# If the requested subscription doesn't exist, returns `NOT_FOUND`.
|
||||
# If the backlog in the subscription is too old -- and the resulting snapshot
|
||||
# would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
|
||||
# See also the `Snapshot.expire_time` field. If the name is not provided in
|
||||
# the request, the server will assign a random
|
||||
# See also the `Snapshot.expire_time` field.
|
||||
# If the name is not provided in the request, the server will assign a random
|
||||
# name for this snapshot on the same project as the subscription, conforming
|
||||
# to the [resource name format](https://cloud.google.com/pubsub/docs/overview#
|
||||
# names).
|
||||
# The generated
|
||||
# to the
|
||||
# [resource name
|
||||
# format](https://cloud.google.com/pubsub/docs/overview#names). The generated
|
||||
# name is populated in the returned Snapshot object. Note that for REST API
|
||||
# requests, you must specify a name in the request.
|
||||
# @param [String] name
|
||||
@@ -100,15 +97,11 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Removes an existing snapshot. <br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# When the snapshot is deleted, all messages retained in the snapshot
|
||||
# Removes an existing snapshot. All messages retained in the snapshot
|
||||
# are immediately dropped. After a snapshot is deleted, a new one may be
|
||||
# created with the same name, but the new one has no association with the old
|
||||
# snapshot or its subscription, unless the same subscription is specified.
|
||||
# [ALPHA] This method is a part of a closed Alpha API.
|
||||
# @param [String] snapshot
|
||||
# The name of the snapshot to delete.
|
||||
# Format is `projects/`project`/snapshots/`snap``.
|
||||
@@ -139,11 +132,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the configuration details of a snapshot.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# Gets the configuration details of a snapshot.
|
||||
# [ALPHA] This method is a part of a closed Alpha API.
|
||||
# @param [String] snapshot
|
||||
# The name of the snapshot to get.
|
||||
# Format is `projects/`project`/snapshots/`snap``.
|
||||
@@ -207,11 +197,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the existing snapshots.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# Lists the existing snapshots.
|
||||
# [ALPHA] This method is a part of a closed Alpha API.
|
||||
# @param [String] project
|
||||
# The name of the cloud project that snapshots belong to.
|
||||
# Format is `projects/`project``.
|
||||
@@ -250,12 +237,9 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates an existing snapshot.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# Note that certain properties of a snapshot are not modifiable.
|
||||
# Updates an existing snapshot. Note that certain properties of a
|
||||
# snapshot are not modifiable.
|
||||
# [ALPHA] This method is a part of a closed Alpha API.
|
||||
# @param [String] name
|
||||
# The name of the snapshot.
|
||||
# @param [Google::Apis::PubsubV1::UpdateSnapshotRequest] update_snapshot_request_object
|
||||
@@ -738,11 +722,8 @@ module Google
|
||||
end
|
||||
|
||||
# Seeks an existing subscription to a point in time or to a given snapshot,
|
||||
# whichever is provided in the request.<br><br>
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# whichever is provided in the request.
|
||||
# [ALPHA] This method is a part of a closed Alpha API.
|
||||
# @param [String] subscription
|
||||
# The subscription to affect.
|
||||
# @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object
|
||||
@@ -1135,10 +1116,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the names of the snapshots on this topic.<br><br>
|
||||
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
||||
# changed in backward-incompatible ways and is not recommended for production
|
||||
# use. It is not subject to any SLA or deprecation policy.
|
||||
# Lists the names of the snapshots on this topic.
|
||||
# [ALPHA] This method is a part of a closed Alpha API.
|
||||
# @param [String] topic
|
||||
# The name of the topic that snapshots are attached to.
|
||||
# Format is `projects/`project`/topics/`topic``.
|
||||
|
||||
@@ -28,7 +28,7 @@ module Google
|
||||
# @see https://cloud.google.com/deployment-manager/runtime-configurator/
|
||||
module RuntimeconfigV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20180416'
|
||||
REVISION = '20180515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -33,7 +33,7 @@ module Google
|
||||
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
||||
# who is authenticated with a Google account or a service account.
|
||||
# * `user:`emailid``: An email address that represents a specific Google
|
||||
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
||||
# account. For example, `alice@gmail.com` .
|
||||
# * `serviceAccount:`emailid``: An email address that represents a service
|
||||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
# * `group:`emailid``: An email address that represents a Google group.
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/vision/
|
||||
module VisionV1p1beta1
|
||||
VERSION = 'V1p1beta1'
|
||||
REVISION = '20180416'
|
||||
REVISION = '20180515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,12 +22,108 @@ module Google
|
||||
module Apis
|
||||
module VisionV1p1beta1
|
||||
|
||||
class AnnotateFileResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnnotateImageResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AsyncAnnotateFileResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AsyncBatchAnnotateFilesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Block
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BoundingPoly
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Color
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ColorInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CropHint
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CropHintsAnnotation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DetectedBreak
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DetectedLanguage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DominantColorsAnnotation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EntityAnnotation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FaceAnnotation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GcsDestination
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GcsSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1AnnotateImageRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -40,6 +136,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -118,12 +226,30 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1GcsDestination
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1GcsSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1Image
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1ImageAnnotationContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1ImageContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -142,6 +268,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1InputConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1LatLongRect
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -154,6 +286,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1OutputConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1Page
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -496,18 +634,278 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1BatchOperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1BoundingPoly
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1NormalizedVertex
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1ReferenceImage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1Vertex
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImageAnnotationContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImageProperties
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InputConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Landmark
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LatLng
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LocationInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NormalizedVertex
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OutputConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Page
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Paragraph
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Position
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Property
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SafeSearchAnnotation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Symbol
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TextAnnotation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TextProperty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Vertex
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebDetection
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebEntity
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebImage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebLabel
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebPage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Word
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnnotateFileResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::InputConfig, decorator: Google::Apis::VisionV1p1beta1::InputConfig::Representation
|
||||
|
||||
collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::AnnotateImageResponse::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AnnotateImageResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :context, as: 'context', class: Google::Apis::VisionV1p1beta1::ImageAnnotationContext, decorator: Google::Apis::VisionV1p1beta1::ImageAnnotationContext::Representation
|
||||
|
||||
property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p1beta1::CropHintsAnnotation, decorator: Google::Apis::VisionV1p1beta1::CropHintsAnnotation::Representation
|
||||
|
||||
property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
|
||||
|
||||
collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1p1beta1::FaceAnnotation, decorator: Google::Apis::VisionV1p1beta1::FaceAnnotation::Representation
|
||||
|
||||
property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p1beta1::TextAnnotation, decorator: Google::Apis::VisionV1p1beta1::TextAnnotation::Representation
|
||||
|
||||
property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p1beta1::ImageProperties, decorator: Google::Apis::VisionV1p1beta1::ImageProperties::Representation
|
||||
|
||||
collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation
|
||||
|
||||
collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation
|
||||
|
||||
collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation
|
||||
|
||||
property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p1beta1::SafeSearchAnnotation, decorator: Google::Apis::VisionV1p1beta1::SafeSearchAnnotation::Representation
|
||||
|
||||
collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation
|
||||
|
||||
property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p1beta1::WebDetection, decorator: Google::Apis::VisionV1p1beta1::WebDetection::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AsyncAnnotateFileResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p1beta1::OutputConfig, decorator: Google::Apis::VisionV1p1beta1::OutputConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AsyncBatchAnnotateFilesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p1beta1::AsyncAnnotateFileResponse::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Block
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :block_type, as: 'blockType'
|
||||
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
|
||||
|
||||
property :confidence, as: 'confidence'
|
||||
collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p1beta1::Paragraph, decorator: Google::Apis::VisionV1p1beta1::Paragraph::Representation
|
||||
|
||||
property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BoundingPoly
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p1beta1::NormalizedVertex, decorator: Google::Apis::VisionV1p1beta1::NormalizedVertex::Representation
|
||||
|
||||
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p1beta1::Vertex, decorator: Google::Apis::VisionV1p1beta1::Vertex::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Color
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -518,6 +916,114 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ColorInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :color, as: 'color', class: Google::Apis::VisionV1p1beta1::Color, decorator: Google::Apis::VisionV1p1beta1::Color::Representation
|
||||
|
||||
property :pixel_fraction, as: 'pixelFraction'
|
||||
property :score, as: 'score'
|
||||
end
|
||||
end
|
||||
|
||||
class CropHint
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
|
||||
|
||||
property :confidence, as: 'confidence'
|
||||
property :importance_fraction, as: 'importanceFraction'
|
||||
end
|
||||
end
|
||||
|
||||
class CropHintsAnnotation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1p1beta1::CropHint, decorator: Google::Apis::VisionV1p1beta1::CropHint::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class DetectedBreak
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :is_prefix, as: 'isPrefix'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class DetectedLanguage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :confidence, as: 'confidence'
|
||||
property :language_code, as: 'languageCode'
|
||||
end
|
||||
end
|
||||
|
||||
class DominantColorsAnnotation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :colors, as: 'colors', class: Google::Apis::VisionV1p1beta1::ColorInfo, decorator: Google::Apis::VisionV1p1beta1::ColorInfo::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class EntityAnnotation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
|
||||
|
||||
property :confidence, as: 'confidence'
|
||||
property :description, as: 'description'
|
||||
property :locale, as: 'locale'
|
||||
collection :locations, as: 'locations', class: Google::Apis::VisionV1p1beta1::LocationInfo, decorator: Google::Apis::VisionV1p1beta1::LocationInfo::Representation
|
||||
|
||||
property :mid, as: 'mid'
|
||||
collection :properties, as: 'properties', class: Google::Apis::VisionV1p1beta1::Property, decorator: Google::Apis::VisionV1p1beta1::Property::Representation
|
||||
|
||||
property :score, as: 'score'
|
||||
property :topicality, as: 'topicality'
|
||||
end
|
||||
end
|
||||
|
||||
class FaceAnnotation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :anger_likelihood, as: 'angerLikelihood'
|
||||
property :blurred_likelihood, as: 'blurredLikelihood'
|
||||
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
|
||||
|
||||
property :detection_confidence, as: 'detectionConfidence'
|
||||
property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
|
||||
|
||||
property :headwear_likelihood, as: 'headwearLikelihood'
|
||||
property :joy_likelihood, as: 'joyLikelihood'
|
||||
property :landmarking_confidence, as: 'landmarkingConfidence'
|
||||
collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p1beta1::Landmark, decorator: Google::Apis::VisionV1p1beta1::Landmark::Representation
|
||||
|
||||
property :pan_angle, as: 'panAngle'
|
||||
property :roll_angle, as: 'rollAngle'
|
||||
property :sorrow_likelihood, as: 'sorrowLikelihood'
|
||||
property :surprise_likelihood, as: 'surpriseLikelihood'
|
||||
property :tilt_angle, as: 'tiltAngle'
|
||||
property :under_exposed_likelihood, as: 'underExposedLikelihood'
|
||||
end
|
||||
end
|
||||
|
||||
class GcsDestination
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class GcsSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1AnnotateImageRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -533,6 +1039,8 @@ module Google
|
||||
class GoogleCloudVisionV1p1beta1AnnotateImageResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :context, as: 'context', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageAnnotationContext::Representation
|
||||
|
||||
property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1CropHintsAnnotation::Representation
|
||||
|
||||
property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
|
||||
@@ -558,6 +1066,28 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :features, as: 'features', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature::Representation
|
||||
|
||||
property :image_context, as: 'imageContext', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext::Representation
|
||||
|
||||
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig::Representation
|
||||
|
||||
property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1OutputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1OutputConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :requests, as: 'requests', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -699,6 +1229,20 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1GcsDestination
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1GcsSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1Image
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -708,6 +1252,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1ImageAnnotationContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :page_number, as: 'pageNumber'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1ImageContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -737,6 +1289,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1InputConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsSource, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsSource::Representation
|
||||
|
||||
property :mime_type, as: 'mimeType'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1LatLongRect
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -755,6 +1316,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1OutputConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :batch_size, as: 'batchSize'
|
||||
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsDestination, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsDestination::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p1beta1Page
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1360,6 +1930,95 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1BatchOperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
property :state, as: 'state'
|
||||
property :submit_time, as: 'submitTime'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1BoundingPoly
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1NormalizedVertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1NormalizedVertex::Representation
|
||||
|
||||
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Vertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Vertex::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :reference_images, as: 'referenceImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ReferenceImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ReferenceImage::Representation
|
||||
|
||||
collection :statuses, as: 'statuses', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1NormalizedVertex
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :x, as: 'x'
|
||||
property :y, as: 'y'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1ReferenceImage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :bounding_polys, as: 'boundingPolys', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudVisionV1p3beta1Vertex
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :x, as: 'x'
|
||||
property :y, as: 'y'
|
||||
end
|
||||
end
|
||||
|
||||
class ImageAnnotationContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :page_number, as: 'pageNumber'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class ImageProperties
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1p1beta1::DominantColorsAnnotation, decorator: Google::Apis::VisionV1p1beta1::DominantColorsAnnotation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class InputConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p1beta1::GcsSource, decorator: Google::Apis::VisionV1p1beta1::GcsSource::Representation
|
||||
|
||||
property :mime_type, as: 'mimeType'
|
||||
end
|
||||
end
|
||||
|
||||
class Landmark
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :position, as: 'position', class: Google::Apis::VisionV1p1beta1::Position, decorator: Google::Apis::VisionV1p1beta1::Position::Representation
|
||||
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class LatLng
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1368,6 +2027,107 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class LocationInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1p1beta1::LatLng, decorator: Google::Apis::VisionV1p1beta1::LatLng::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class NormalizedVertex
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :x, as: 'x'
|
||||
property :y, as: 'y'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class OperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :state, as: 'state'
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class OutputConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :batch_size, as: 'batchSize'
|
||||
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p1beta1::GcsDestination, decorator: Google::Apis::VisionV1p1beta1::GcsDestination::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Page
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p1beta1::Block, decorator: Google::Apis::VisionV1p1beta1::Block::Representation
|
||||
|
||||
property :confidence, as: 'confidence'
|
||||
property :height, as: 'height'
|
||||
property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation
|
||||
|
||||
property :width, as: 'width'
|
||||
end
|
||||
end
|
||||
|
||||
class Paragraph
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
|
||||
|
||||
property :confidence, as: 'confidence'
|
||||
property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation
|
||||
|
||||
collection :words, as: 'words', class: Google::Apis::VisionV1p1beta1::Word, decorator: Google::Apis::VisionV1p1beta1::Word::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Position
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :x, as: 'x'
|
||||
property :y, as: 'y'
|
||||
property :z, as: 'z'
|
||||
end
|
||||
end
|
||||
|
||||
class Property
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :uint64_value, :numeric_string => true, as: 'uint64Value'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class SafeSearchAnnotation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :adult, as: 'adult'
|
||||
property :medical, as: 'medical'
|
||||
property :racy, as: 'racy'
|
||||
property :spoof, as: 'spoof'
|
||||
property :violence, as: 'violence'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1376,6 +2136,114 @@ module Google
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class Symbol
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
|
||||
|
||||
property :confidence, as: 'confidence'
|
||||
property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation
|
||||
|
||||
property :text, as: 'text'
|
||||
end
|
||||
end
|
||||
|
||||
class TextAnnotation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :pages, as: 'pages', class: Google::Apis::VisionV1p1beta1::Page, decorator: Google::Apis::VisionV1p1beta1::Page::Representation
|
||||
|
||||
property :text, as: 'text'
|
||||
end
|
||||
end
|
||||
|
||||
class TextProperty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1p1beta1::DetectedBreak, decorator: Google::Apis::VisionV1p1beta1::DetectedBreak::Representation
|
||||
|
||||
collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p1beta1::DetectedLanguage, decorator: Google::Apis::VisionV1p1beta1::DetectedLanguage::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Vertex
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :x, as: 'x'
|
||||
property :y, as: 'y'
|
||||
end
|
||||
end
|
||||
|
||||
class WebDetection
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1p1beta1::WebLabel, decorator: Google::Apis::VisionV1p1beta1::WebLabel::Representation
|
||||
|
||||
collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation
|
||||
|
||||
collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p1beta1::WebPage, decorator: Google::Apis::VisionV1p1beta1::WebPage::Representation
|
||||
|
||||
collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation
|
||||
|
||||
collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation
|
||||
|
||||
collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p1beta1::WebEntity, decorator: Google::Apis::VisionV1p1beta1::WebEntity::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class WebEntity
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :entity_id, as: 'entityId'
|
||||
property :score, as: 'score'
|
||||
end
|
||||
end
|
||||
|
||||
class WebImage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :score, as: 'score'
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
class WebLabel
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :label, as: 'label'
|
||||
property :language_code, as: 'languageCode'
|
||||
end
|
||||
end
|
||||
|
||||
class WebPage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation
|
||||
|
||||
property :page_title, as: 'pageTitle'
|
||||
collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation
|
||||
|
||||
property :score, as: 'score'
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
class Word
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
|
||||
|
||||
property :confidence, as: 'confidence'
|
||||
property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation
|
||||
|
||||
collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p1beta1::Symbol, decorator: Google::Apis::VisionV1p1beta1::Symbol::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -49,6 +49,41 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Run asynchronous image detection and annotation for a list of generic
|
||||
# files, such as PDF files, which may contain multiple pages and multiple
|
||||
# images per page. Progress and results can be retrieved through the
|
||||
# `google.longrunning.Operations` interface.
|
||||
# `Operation.metadata` contains `OperationMetadata` (metadata).
|
||||
# `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
|
||||
# @param [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest] google_cloud_vision_v1p1beta1_async_batch_annotate_files_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::VisionV1p1beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::VisionV1p1beta1::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 async_file_batch_annotate(google_cloud_vision_v1p1beta1_async_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1p1beta1/files:asyncBatchAnnotate', options)
|
||||
command.request_representation = Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest::Representation
|
||||
command.request_object = google_cloud_vision_v1p1beta1_async_batch_annotate_files_request_object
|
||||
command.response_representation = Google::Apis::VisionV1p1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::VisionV1p1beta1::Operation
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Run image detection and annotation for a batch of images.
|
||||
# @param [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest] google_cloud_vision_v1p1beta1_batch_annotate_images_request_object
|
||||
# @param [String] fields
|
||||
|
||||
Reference in new issue
Block a user