Autogenerated update (2019-05-09)
Update: - accessapproval_v1beta1 - androidpublisher_v3 - datafusion_v1beta1 - dialogflow_v2 - pagespeedonline_v5 - runtimeconfig_v1beta1 - sheets_v4 - vision_v1p2beta1
This commit is contained in:
1 parent
0a5a9595de
commit
949a5d1b80
22 files changed
+3995
-12
No files matched your search
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/access-approval/docs
|
||||
module AccessapprovalV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190412'
|
||||
REVISION = '20190504'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -184,6 +184,11 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :requested_resource_name
|
||||
|
||||
# The properties associated with the resource of the request.
|
||||
# Corresponds to the JSON property `requestedResourceProperties`
|
||||
# @return [Google::Apis::AccessapprovalV1beta1::ResourceProperties]
|
||||
attr_accessor :requested_resource_properties
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -198,6 +203,7 @@ module Google
|
||||
@requested_locations = args[:requested_locations] if args.key?(:requested_locations)
|
||||
@requested_reason = args[:requested_reason] if args.key?(:requested_reason)
|
||||
@requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
|
||||
@requested_resource_properties = args[:requested_resource_properties] if args.key?(:requested_resource_properties)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -301,6 +307,27 @@ module Google
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# The properties associated with the resource of the request.
|
||||
class ResourceProperties
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether an approval will exclude the descendants of the resource being
|
||||
# requested.
|
||||
# Corresponds to the JSON property `excludesDescendants`
|
||||
# @return [Boolean]
|
||||
attr_accessor :excludes_descendants
|
||||
alias_method :excludes_descendants?, :excludes_descendants
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@excludes_descendants = args[:excludes_descendants] if args.key?(:excludes_descendants)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -76,6 +76,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ResourceProperties
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AccessApprovalSettings
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -115,6 +121,8 @@ module Google
|
||||
property :requested_reason, as: 'requestedReason', class: Google::Apis::AccessapprovalV1beta1::AccessReason, decorator: Google::Apis::AccessapprovalV1beta1::AccessReason::Representation
|
||||
|
||||
property :requested_resource_name, as: 'requestedResourceName'
|
||||
property :requested_resource_properties, as: 'requestedResourceProperties', class: Google::Apis::AccessapprovalV1beta1::ResourceProperties, decorator: Google::Apis::AccessapprovalV1beta1::ResourceProperties::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -154,6 +162,13 @@ module Google
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ResourceProperties
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :excludes_descendants, as: 'excludesDescendants'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20190507'
|
||||
REVISION = '20190508'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
||||
@@ -1104,6 +1104,13 @@ module Google
|
||||
class ProductPurchase
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The acknowledgement state of the inapp product. Possible values are:
|
||||
# - Yet to be acknowledged
|
||||
# - Acknowledged
|
||||
# Corresponds to the JSON property `acknowledgementState`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :acknowledgement_state
|
||||
|
||||
# The consumption state of the inapp product. Possible values are:
|
||||
# - Yet to be consumed
|
||||
# - Consumed
|
||||
@@ -1156,6 +1163,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
|
||||
@consumption_state = args[:consumption_state] if args.key?(:consumption_state)
|
||||
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@@ -1166,6 +1174,25 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ProductPurchasesAcknowledgeRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Payload to attach to the purchase.
|
||||
# Corresponds to the JSON property `developerPayload`
|
||||
# @return [String]
|
||||
attr_accessor :developer_payload
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Prorate
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -1640,6 +1667,25 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SubscriptionPurchasesAcknowledgeRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Payload to attach to the purchase.
|
||||
# Corresponds to the JSON property `developerPayload`
|
||||
# @return [String]
|
||||
attr_accessor :developer_payload
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SubscriptionPurchasesDeferRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -226,6 +226,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ProductPurchasesAcknowledgeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Prorate
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -292,6 +298,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubscriptionPurchasesAcknowledgeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubscriptionPurchasesDeferRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -682,6 +694,7 @@ module Google
|
||||
class ProductPurchase
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :acknowledgement_state, as: 'acknowledgementState'
|
||||
property :consumption_state, as: 'consumptionState'
|
||||
property :developer_payload, as: 'developerPayload'
|
||||
property :kind, as: 'kind'
|
||||
@@ -692,6 +705,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ProductPurchasesAcknowledgeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :developer_payload, as: 'developerPayload'
|
||||
end
|
||||
end
|
||||
|
||||
class Prorate
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -815,6 +835,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionPurchasesAcknowledgeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :developer_payload, as: 'developerPayload'
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionPurchasesDeferRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -1918,6 +1918,47 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Acknowledges a purchase of an inapp item.
|
||||
# @param [String] package_name
|
||||
# The package name of the application the inapp product was sold in (for example,
|
||||
# 'com.some.thing').
|
||||
# @param [String] product_id
|
||||
# The inapp product SKU (for example, 'com.some.thing.inapp1').
|
||||
# @param [String] token
|
||||
# The token provided to the user's device when the subscription was purchased.
|
||||
# @param [Google::Apis::AndroidpublisherV3::ProductPurchasesAcknowledgeRequest] product_purchases_acknowledge_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def acknowledge_purchase_product(package_name, product_id, token, product_purchases_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge', options)
|
||||
command.request_representation = Google::Apis::AndroidpublisherV3::ProductPurchasesAcknowledgeRequest::Representation
|
||||
command.request_object = product_purchases_acknowledge_request_object
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['productId'] = product_id unless product_id.nil?
|
||||
command.params['token'] = token unless token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Checks 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,
|
||||
@@ -1958,6 +1999,47 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Acknowledges a subscription purchase.
|
||||
# @param [String] package_name
|
||||
# The package name of the application for which this subscription was purchased (
|
||||
# for example, 'com.some.thing').
|
||||
# @param [String] subscription_id
|
||||
# The purchased subscription ID (for example, 'monthly001').
|
||||
# @param [String] token
|
||||
# The token provided to the user's device when the subscription was purchased.
|
||||
# @param [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesAcknowledgeRequest] subscription_purchases_acknowledge_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def acknowledge_purchase_subscription(package_name, subscription_id, token, subscription_purchases_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge', options)
|
||||
command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesAcknowledgeRequest::Representation
|
||||
command.request_object = subscription_purchases_acknowledge_request_object
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
||||
command.params['token'] = token unless token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels a user's subscription purchase. The subscription remains valid until
|
||||
# its expiration time.
|
||||
# @param [String] package_name
|
||||
|
||||
@@ -34,7 +34,7 @@ module Google
|
||||
# @see https://cloud.google.com/data-fusion/docs
|
||||
module DatafusionV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190424'
|
||||
REVISION = '20190508'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -837,7 +837,7 @@ module Google
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/dialogflow-enterprise/
|
||||
module DialogflowV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190429'
|
||||
REVISION = '20190506'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -4538,7 +4538,7 @@ module Google
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/speed/docs/insights/v5/get-started
|
||||
module PagespeedonlineV5
|
||||
VERSION = 'V5'
|
||||
REVISION = '20181127'
|
||||
REVISION = '20190507'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -240,6 +240,11 @@ module Google
|
||||
# @return [Google::Apis::PagespeedonlineV5::LighthouseResultV5::RuntimeError]
|
||||
attr_accessor :runtime_error
|
||||
|
||||
# The Stack Pack advice strings.
|
||||
# Corresponds to the JSON property `stackPacks`
|
||||
# @return [Array<Google::Apis::PagespeedonlineV5::LighthouseResultV5::StackPack>]
|
||||
attr_accessor :stack_packs
|
||||
|
||||
# Timing information for this LHR.
|
||||
# Corresponds to the JSON property `timing`
|
||||
# @return [Google::Apis::PagespeedonlineV5::LighthouseResultV5::Timing]
|
||||
@@ -268,6 +273,7 @@ module Google
|
||||
@requested_url = args[:requested_url] if args.key?(:requested_url)
|
||||
@run_warnings = args[:run_warnings] if args.key?(:run_warnings)
|
||||
@runtime_error = args[:runtime_error] if args.key?(:runtime_error)
|
||||
@stack_packs = args[:stack_packs] if args.key?(:stack_packs)
|
||||
@timing = args[:timing] if args.key?(:timing)
|
||||
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
||||
end
|
||||
@@ -558,6 +564,43 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class StackPack
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The stack pack advice strings.
|
||||
# Corresponds to the JSON property `descriptions`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :descriptions
|
||||
|
||||
# The stack pack icon data uri.
|
||||
# Corresponds to the JSON property `iconDataURL`
|
||||
# @return [String]
|
||||
attr_accessor :icon_data_url
|
||||
|
||||
# The stack pack id.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# The stack pack title.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@descriptions = args[:descriptions] if args.key?(:descriptions)
|
||||
@icon_data_url = args[:icon_data_url] if args.key?(:icon_data_url)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
end
|
||||
end
|
||||
|
||||
# Timing information for this LHR.
|
||||
class Timing
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -85,6 +85,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StackPack
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Timing
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -184,6 +190,8 @@ module Google
|
||||
collection :run_warnings, as: 'runWarnings'
|
||||
property :runtime_error, as: 'runtimeError', class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::RuntimeError, decorator: Google::Apis::PagespeedonlineV5::LighthouseResultV5::RuntimeError::Representation
|
||||
|
||||
collection :stack_packs, as: 'stackPacks', class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::StackPack, decorator: Google::Apis::PagespeedonlineV5::LighthouseResultV5::StackPack::Representation
|
||||
|
||||
property :timing, as: 'timing', class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::Timing, decorator: Google::Apis::PagespeedonlineV5::LighthouseResultV5::Timing::Representation
|
||||
|
||||
property :user_agent, as: 'userAgent'
|
||||
@@ -269,6 +277,16 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class StackPack
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :descriptions, as: 'descriptions'
|
||||
property :icon_data_url, as: 'iconDataURL'
|
||||
property :id, as: 'id'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
||||
class Timing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -28,7 +28,7 @@ module Google
|
||||
# @see https://cloud.google.com/deployment-manager/runtime-configurator/
|
||||
module RuntimeconfigV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190415'
|
||||
REVISION = '20190506'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -360,7 +360,7 @@ module Google
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/sheets/
|
||||
module SheetsV4
|
||||
VERSION = 'V4'
|
||||
REVISION = '20190429'
|
||||
REVISION = '20190430'
|
||||
|
||||
# See, edit, create, and delete all of your Google Drive files
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/vision/
|
||||
module VisionV1p2beta1
|
||||
VERSION = 'V1p2beta1'
|
||||
REVISION = '20190412'
|
||||
REVISION = '20190503'
|
||||
|
||||
# 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
File diff suppressed because it is too large.
Load diff
@@ -49,6 +49,41 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Service that performs image detection and annotation for a batch of files.
|
||||
# Now only "application/pdf", "image/tiff" and "image/gif" are supported.
|
||||
# This service will extract at most 5 (customers can specify which 5 in
|
||||
# AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each
|
||||
# file provided and perform detection and annotation for each image
|
||||
# extracted.
|
||||
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest] google_cloud_vision_v1p2beta1_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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse]
|
||||
#
|
||||
# @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 annotate_file(google_cloud_vision_v1p2beta1_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1p2beta1/files:annotate', options)
|
||||
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest::Representation
|
||||
command.request_object = google_cloud_vision_v1p2beta1_batch_annotate_files_request_object
|
||||
command.response_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse::Representation
|
||||
command.response_class = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
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
|
||||
@@ -113,6 +148,42 @@ module Google
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Run asynchronous image detection and annotation for a list of images.
|
||||
# Progress and results can be retrieved through the
|
||||
# `google.longrunning.Operations` interface.
|
||||
# `Operation.metadata` contains `OperationMetadata` (metadata).
|
||||
# `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
|
||||
# This service will write image annotation outputs to json files in customer
|
||||
# GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
|
||||
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest] google_cloud_vision_v1p2beta1_async_batch_annotate_images_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::VisionV1p2beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::VisionV1p2beta1::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_image_batch_annotate(google_cloud_vision_v1p2beta1_async_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1p2beta1/images:asyncBatchAnnotate', options)
|
||||
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest::Representation
|
||||
command.request_object = google_cloud_vision_v1p2beta1_async_batch_annotate_images_request_object
|
||||
command.response_representation = Google::Apis::VisionV1p2beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::VisionV1p2beta1::Operation
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
||||
Reference in new issue
Block a user