Autogenerated update (2018-05-18)

Update:
- analytics_v3
- clouddebugger_v2
- container_v1beta1
- dfareporting_v2_8
- dfareporting_v3_0
- identitytoolkit_v3
- jobs_v2
- script_v1
- spanner_v1
- testing_v1
- vision_v1
- vision_v1p2beta1
- youtube_partner_v1
This commit is contained in:
Google APIs 2018-05-18 00:36:22 +00:00
parent 02b88ae098
commit 4fdd65eba8
41 changed files with 31940 additions and 65 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/analytics/
module AnalyticsV3
VERSION = 'V3'
REVISION = '20180509'
REVISION = '20180514'
# View and manage your Google Analytics data
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
@ -44,6 +44,9 @@ module Google
# View your Google Analytics data
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
# Manage Google Analytics user deletion requests
AUTH_ANALYTICS_USER_DELETION = 'https://www.googleapis.com/auth/analytics.user.deletion'
end
end
end

View File

@ -5327,6 +5327,74 @@ module Google
end
end
# JSON template for a user deletion request resource.
class UserDeletionRequest
include Google::Apis::Core::Hashable
# This marks the point in time for which all user data before should be deleted
# Corresponds to the JSON property `deletionRequestTime`
# @return [DateTime]
attr_accessor :deletion_request_time
# Firebase Project Id
# Corresponds to the JSON property `firebaseProjectId`
# @return [String]
attr_accessor :firebase_project_id
# User ID.
# Corresponds to the JSON property `id`
# @return [Google::Apis::AnalyticsV3::UserDeletionRequest::Id]
attr_accessor :id
# Value is "analytics#userDeletionRequest".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Web property ID of the form UA-XXXXX-YY.
# Corresponds to the JSON property `webPropertyId`
# @return [String]
attr_accessor :web_property_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deletion_request_time = args[:deletion_request_time] if args.key?(:deletion_request_time)
@firebase_project_id = args[:firebase_project_id] if args.key?(:firebase_project_id)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@web_property_id = args[:web_property_id] if args.key?(:web_property_id)
end
# User ID.
class Id
include Google::Apis::Core::Hashable
# Type of user
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# The User's id
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
end
# JSON template for a user reference.
class UserRef
include Google::Apis::Core::Hashable

View File

@ -604,6 +604,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UserDeletionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
class Id
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class UserRef
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1962,6 +1974,27 @@ module Google
end
end
class UserDeletionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deletion_request_time, as: 'deletionRequestTime', type: DateTime
property :firebase_project_id, as: 'firebaseProjectId'
property :id, as: 'id', class: Google::Apis::AnalyticsV3::UserDeletionRequest::Id, decorator: Google::Apis::AnalyticsV3::UserDeletionRequest::Id::Representation
property :kind, as: 'kind'
property :web_property_id, as: 'webPropertyId'
end
class Id
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :user_id, as: 'userId'
end
end
end
class UserRef
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -3672,6 +3672,39 @@ module Google
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Insert or update a user deletion requests.
# @param [Google::Apis::AnalyticsV3::UserDeletionRequest] user_deletion_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 [Google::Apis::AnalyticsV3::UserDeletionRequest] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AnalyticsV3::UserDeletionRequest]
#
# @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 upsert_user_deletion_user_deletion_request(user_deletion_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'userDeletion/userDeletionRequests:upsert', options)
command.request_representation = Google::Apis::AnalyticsV3::UserDeletionRequest::Representation
command.request_object = user_deletion_request_object
command.response_representation = Google::Apis::AnalyticsV3::UserDeletionRequest::Representation
command.response_class = Google::Apis::AnalyticsV3::UserDeletionRequest
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
protected

View File

@ -23,10 +23,10 @@ module Google
# Examines the call stack and variables of a running application without
# stopping or slowing it down.
#
# @see http://cloud.google.com/debugger
# @see https://cloud.google.com/debugger
module ClouddebuggerV2
VERSION = 'V2'
REVISION = '20180112'
REVISION = '20180516'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -133,7 +133,8 @@ module Google
# @return [String]
attr_accessor :log_message_format
# The stack at breakpoint time.
# The stack at breakpoint time, where stack_frames[0] represents the most
# recently entered function.
# Corresponds to the JSON property `stackFrames`
# @return [Array<Google::Apis::ClouddebuggerV2::StackFrame>]
attr_accessor :stack_frames

View File

@ -31,7 +31,7 @@ module Google
# Clouddebugger = Google::Apis::ClouddebuggerV2 # Alias the module
# service = Clouddebugger::CloudDebuggerService.new
#
# @see http://cloud.google.com/debugger
# @see https://cloud.google.com/debugger
class CloudDebuggerService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,

View File

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

View File

@ -1463,6 +1463,12 @@ module Google
# @return [Fixnum]
attr_accessor :disk_size_gb
# Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
# If unspecified, the default disk type is 'pd-standard'
# Corresponds to the JSON property `diskType`
# @return [String]
attr_accessor :disk_type
# The image type to use for this node. Note that for a given image type,
# the latest version of it will be used.
# Corresponds to the JSON property `imageType`
@ -1592,6 +1598,7 @@ module Google
def update!(**args)
@accelerators = args[:accelerators] if args.key?(:accelerators)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@disk_type = args[:disk_type] if args.key?(:disk_type)
@image_type = args[:image_type] if args.key?(:image_type)
@labels = args[:labels] if args.key?(:labels)
@local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count)

View File

@ -715,6 +715,7 @@ module Google
collection :accelerators, as: 'accelerators', class: Google::Apis::ContainerV1beta1::AcceleratorConfig, decorator: Google::Apis::ContainerV1beta1::AcceleratorConfig::Representation
property :disk_size_gb, as: 'diskSizeGb'
property :disk_type, as: 'diskType'
property :image_type, as: 'imageType'
hash :labels, as: 'labels'
property :local_ssd_count, as: 'localSsdCount'

View File

@ -296,7 +296,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the details of a specific cluster.
# Gets the details for a specific cluster.
# @param [String] name
# The name (project, location, cluster) of the cluster to retrieve.
# Specified in the format 'projects/*/locations/*/clusters/*'.
@ -386,7 +386,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/*'.
@ -454,7 +454,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/*'.
@ -488,7 +488,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/*'.
@ -558,7 +558,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.
# Modify basic_auth.csv and reset the K8S API server.
# @param [String] name
@ -594,7 +594,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/*'.
@ -730,7 +730,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the settings of a specific cluster.
# Updates the settings for a specific cluster.
# @param [String] name
# The name (project, location, cluster) of the cluster to update.
# Specified in the format 'projects/*/locations/*/clusters/*'.
@ -764,7 +764,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/*'.
@ -1087,7 +1087,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.
@ -1320,7 +1320,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).
@ -1512,7 +1512,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the details of a specific cluster.
# Gets the details 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).
@ -1647,7 +1647,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).
@ -1692,7 +1692,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).
@ -1737,7 +1737,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).
@ -1782,7 +1782,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).
@ -1915,7 +1915,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.
# Modify basic_auth.csv and reset the K8S API server.
# @param [String] project_id
@ -2052,7 +2052,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the settings of a specific cluster.
# Updates the settings 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).
@ -2438,7 +2438,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).

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/doubleclick-advertisers/
module DfareportingV2_8
VERSION = 'V2_8'
REVISION = '20171109'
REVISION = '20180514'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'

View File

@ -501,7 +501,7 @@ module Google
# @return [Fixnum]
attr_accessor :subaccount_id
# Trafficker type of this user profile.
# Trafficker type of this user profile. This is a read-only field.
# Corresponds to the JSON property `traffickerType`
# @return [String]
attr_accessor :trafficker_type
@ -2850,10 +2850,10 @@ module Google
# @return [String]
attr_accessor :commercial_id
# List of companion creatives assigned to an in-Stream videocreative. Acceptable
# values include IDs of existing flash and image creatives. Applicable to the
# following creative types: all VPAID and all INSTREAM_VIDEO with
# dynamicAssetSelection set to false.
# List of companion creatives assigned to an in-Stream video creative.
# Acceptable values include IDs of existing flash and image creatives.
# Applicable to the following creative types: all VPAID and all INSTREAM_VIDEO
# with dynamicAssetSelection set to false.
# Corresponds to the JSON property `companionCreatives`
# @return [Array<Fixnum>]
attr_accessor :companion_creatives

View File

@ -7642,7 +7642,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of sizes, possibly filtered.
# Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally
# unique and may include values not currently in use by your account. Due to
# this, the list of sizes returned by this method may differ from the list seen
# in the Trafficking UI.
# @param [Fixnum] profile_id
# User profile ID associated with this request.
# @param [Fixnum] height

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/doubleclick-advertisers/
module DfareportingV3_0
VERSION = 'V3_0'
REVISION = '20171109'
REVISION = '20180514'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'

View File

@ -501,7 +501,7 @@ module Google
# @return [Fixnum]
attr_accessor :subaccount_id
# Trafficker type of this user profile.
# Trafficker type of this user profile. This is a read-only field.
# Corresponds to the JSON property `traffickerType`
# @return [String]
attr_accessor :trafficker_type
@ -2885,10 +2885,10 @@ module Google
# @return [String]
attr_accessor :commercial_id
# List of companion creatives assigned to an in-Stream videocreative. Acceptable
# values include IDs of existing flash and image creatives. Applicable to the
# following creative types: all VPAID and all INSTREAM_VIDEO with
# dynamicAssetSelection set to false.
# List of companion creatives assigned to an in-Stream video creative.
# Acceptable values include IDs of existing flash and image creatives.
# Applicable to the following creative types: all VPAID and all INSTREAM_VIDEO
# with dynamicAssetSelection set to false.
# Corresponds to the JSON property `companionCreatives`
# @return [Array<Fixnum>]
attr_accessor :companion_creatives

View File

@ -7616,7 +7616,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of sizes, possibly filtered.
# Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally
# unique and may include values not currently in use by your account. Due to
# this, the list of sizes returned by this method may differ from the list seen
# in the Trafficking UI.
# @param [Fixnum] profile_id
# User profile ID associated with this request.
# @param [Fixnum] height

View File

@ -0,0 +1,40 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/dfareporting_v3_1/service.rb'
require 'google/apis/dfareporting_v3_1/classes.rb'
require 'google/apis/dfareporting_v3_1/representations.rb'
module Google
module Apis
# DCM/DFA Reporting And Trafficking API
#
# Manages your DoubleClick Campaign Manager ad campaigns and reports.
#
# @see https://developers.google.com/doubleclick-advertisers/
module DfareportingV3_1
VERSION = 'V3_1'
REVISION = '20180514'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
# View and manage DoubleClick for Advertisers reports
AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting'
# View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns
AUTH_DFATRAFFICKING = 'https://www.googleapis.com/auth/dfatrafficking'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/identity-toolkit/v3/
module IdentitytoolkitV3
VERSION = 'V3'
REVISION = '20171122'
REVISION = '20180419'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -419,6 +419,18 @@ module Google
# @return [String]
attr_accessor :session_id
# For multi-tenant use cases, in order to construct sign-in URL with the correct
# IDP parameters, Firebear needs to know which Tenant to retrieve IDP configs
# from.
# Corresponds to the JSON property `tenantId`
# @return [String]
attr_accessor :tenant_id
# Tenant project number to be used for idp discovery.
# Corresponds to the JSON property `tenantProjectNumber`
# @return [Fixnum]
attr_accessor :tenant_project_number
def initialize(**args)
update!(**args)
end
@ -439,6 +451,8 @@ module Google
@ota_app = args[:ota_app] if args.key?(:ota_app)
@provider_id = args[:provider_id] if args.key?(:provider_id)
@session_id = args[:session_id] if args.key?(:session_id)
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
@tenant_project_number = args[:tenant_project_number] if args.key?(:tenant_project_number)
end
end
@ -1137,6 +1151,18 @@ module Google
# @return [String]
attr_accessor :photo_url
# For multi-tenant use cases, in order to construct sign-in URL with the correct
# IDP parameters, Firebear needs to know which Tenant to retrieve IDP configs
# from.
# Corresponds to the JSON property `tenantId`
# @return [String]
attr_accessor :tenant_id
# Tenant project number to be used for idp discovery.
# Corresponds to the JSON property `tenantProjectNumber`
# @return [Fixnum]
attr_accessor :tenant_project_number
def initialize(**args)
update!(**args)
end
@ -1155,6 +1181,8 @@ module Google
@password = args[:password] if args.key?(:password)
@phone_number = args[:phone_number] if args.key?(:phone_number)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
@tenant_project_number = args[:tenant_project_number] if args.key?(:tenant_project_number)
end
end
@ -1330,6 +1358,18 @@ module Google
# @return [String]
attr_accessor :session_id
# For multi-tenant use cases, in order to construct sign-in URL with the correct
# IDP parameters, Firebear needs to know which Tenant to retrieve IDP configs
# from.
# Corresponds to the JSON property `tenantId`
# @return [String]
attr_accessor :tenant_id
# Tenant project number to be used for idp discovery.
# Corresponds to the JSON property `tenantProjectNumber`
# @return [Fixnum]
attr_accessor :tenant_project_number
def initialize(**args)
update!(**args)
end
@ -1347,6 +1387,8 @@ module Google
@return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token)
@return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
@session_id = args[:session_id] if args.key?(:session_id)
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
@tenant_project_number = args[:tenant_project_number] if args.key?(:tenant_project_number)
end
end
@ -1440,6 +1482,18 @@ module Google
attr_accessor :return_secure_token
alias_method :return_secure_token?, :return_secure_token
# For multi-tenant use cases, in order to construct sign-in URL with the correct
# IDP parameters, Firebear needs to know which Tenant to retrieve IDP configs
# from.
# Corresponds to the JSON property `tenantId`
# @return [String]
attr_accessor :tenant_id
# Tenant project number to be used for idp discovery.
# Corresponds to the JSON property `tenantProjectNumber`
# @return [Fixnum]
attr_accessor :tenant_project_number
def initialize(**args)
update!(**args)
end
@ -1455,6 +1509,8 @@ module Google
@password = args[:password] if args.key?(:password)
@pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
@return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
@tenant_project_number = args[:tenant_project_number] if args.key?(:tenant_project_number)
end
end

View File

@ -375,6 +375,8 @@ module Google
property :ota_app, as: 'otaApp'
property :provider_id, as: 'providerId'
property :session_id, as: 'sessionId'
property :tenant_id, as: 'tenantId'
property :tenant_project_number, :numeric_string => true, as: 'tenantProjectNumber'
end
end
@ -555,6 +557,8 @@ module Google
property :password, as: 'password'
property :phone_number, as: 'phoneNumber'
property :photo_url, as: 'photoUrl'
property :tenant_id, as: 'tenantId'
property :tenant_project_number, :numeric_string => true, as: 'tenantProjectNumber'
end
end
@ -593,6 +597,8 @@ module Google
property :return_refresh_token, as: 'returnRefreshToken'
property :return_secure_token, as: 'returnSecureToken'
property :session_id, as: 'sessionId'
property :tenant_id, as: 'tenantId'
property :tenant_project_number, :numeric_string => true, as: 'tenantProjectNumber'
end
end
@ -618,6 +624,8 @@ module Google
property :password, as: 'password'
property :pending_id_token, as: 'pendingIdToken'
property :return_secure_token, as: 'returnSecureToken'
property :tenant_id, as: 'tenantId'
property :tenant_project_number, :numeric_string => true, as: 'tenantProjectNumber'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/job-discovery/docs
module JobsV2
VERSION = 'V2'
REVISION = '20180509'
REVISION = '20180514'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -737,8 +737,6 @@ module Google
# Input only.
# Create job request.
# The job typically becomes searchable within 10 seconds, but it may take
# up to 5 minutes for the job to become searchable.
class CreateJobRequest
include Google::Apis::Core::Hashable
@ -973,7 +971,7 @@ module Google
# Input only.
# Delete job by filter request.
# The job typically becomes unsearchable within 10 seconds, but it may take
# up to 5 minutes for the job to become unsearchable.
# up to 5 minutes.
class DeleteJobsByFilterRequest
include Google::Apis::Core::Hashable
@ -3307,8 +3305,6 @@ module Google
# Input only.
# Update job request.
# The job typically becomes searchable within 10 seconds, but it may take
# up to 5 minutes for the job to become searchable.
class UpdateJobRequest
include Google::Apis::Core::Hashable

View File

@ -338,6 +338,8 @@ module Google
end
# Creates a new job.
# Typically, the job becomes searchable within 10 seconds, but it may take
# up to 5 minutes.
# @param [Google::Apis::JobsV2::CreateJobRequest] create_job_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -367,9 +369,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified job. You can specify whether to synchronously wait
# for validation, indexing, and general processing to be completed before
# the response is returned.
# Deletes the specified job.
# Typically, the job becomes unsearchable within 10 seconds, but it may take
# up to 5 minutes.
# @param [String] name
# Required.
# The resource name of the job to be deleted, such as "jobs/11111111".
@ -441,7 +443,7 @@ module Google
end
# Retrieves the specified job, whose status is OPEN or recently EXPIRED
# in 60 days.
# within the last 90 days.
# @param [String] name
# Required.
# The resource name of the job to retrieve, such as "jobs/11111111".
@ -568,12 +570,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the specified job. You can specify whether to synchronously wait
# for validation, indexing, and general processing to be completed before
# the response is returned.
# If this call is executed synchronously, the returned job
# is guaranteed to be fully processed and complete upon response.
# The `companyName` and `distributorCompanyId` job fields cannot be updated.
# Updates the specified job.
# Typically, the updated contents become visible in search results within 10
# seconds, but it may take up to 5 minutes.
# @param [String] name
# Required during job update.
# Resource name assigned to a job by the API, for example, "/jobs/foo". Use

View File

@ -31,7 +31,7 @@ module Google
# @see https://developers.google.com/apps-script/api/
module ScriptV1
VERSION = 'V1'
REVISION = '20180501'
REVISION = '20180516'
# Read, send, delete, and manage your email
AUTH_SCOPE = 'https://mail.google.com/'

View File

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

View File

@ -220,7 +220,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.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20180404'
REVISION = '20180516'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

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

View File

@ -22,6 +22,32 @@ module Google
module Apis
module VisionV1
# Response to a single file annotation request. A file may contain one or more
# images, which individually have their own responses.
class AnnotateFileResponse
include Google::Apis::Core::Hashable
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1::InputConfig]
attr_accessor :input_config
# Individual responses to images found within the file.
# Corresponds to the JSON property `responses`
# @return [Array<Google::Apis::VisionV1::AnnotateImageResponse>]
attr_accessor :responses
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@input_config = args[:input_config] if args.key?(:input_config)
@responses = args[:responses] if args.key?(:responses)
end
end
# Request for performing Google Cloud Vision API tasks over a user-provided
# image, with user-requested features.
class AnnotateImageRequest
@ -58,6 +84,12 @@ module Google
class AnnotateImageResponse
include Google::Apis::Core::Hashable
# If an image was produced from a file (e.g. a PDF), this message gives
# information about the source of that image.
# Corresponds to the JSON property `context`
# @return [Google::Apis::VisionV1::ImageAnnotationContext]
attr_accessor :context
# Set of crop hints that are used to generate new crops when serving images.
# Corresponds to the JSON property `cropHintsAnnotation`
# @return [Google::Apis::VisionV1::CropHintsAnnotation]
@ -165,6 +197,7 @@ module Google
# Update properties of this object
def update!(**args)
@context = args[:context] if args.key?(:context)
@crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
@error = args[:error] if args.key?(:error)
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
@ -179,6 +212,102 @@ module Google
end
end
# An offline file annotation request.
class AsyncAnnotateFileRequest
include Google::Apis::Core::Hashable
# Required. Requested features.
# Corresponds to the JSON property `features`
# @return [Array<Google::Apis::VisionV1::Feature>]
attr_accessor :features
# Image context and/or feature-specific parameters.
# Corresponds to the JSON property `imageContext`
# @return [Google::Apis::VisionV1::ImageContext]
attr_accessor :image_context
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1::InputConfig]
attr_accessor :input_config
# The desired output location and metadata.
# Corresponds to the JSON property `outputConfig`
# @return [Google::Apis::VisionV1::OutputConfig]
attr_accessor :output_config
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@features = args[:features] if args.key?(:features)
@image_context = args[:image_context] if args.key?(:image_context)
@input_config = args[:input_config] if args.key?(:input_config)
@output_config = args[:output_config] if args.key?(:output_config)
end
end
# The response for a single offline file annotation request.
class AsyncAnnotateFileResponse
include Google::Apis::Core::Hashable
# The desired output location and metadata.
# Corresponds to the JSON property `outputConfig`
# @return [Google::Apis::VisionV1::OutputConfig]
attr_accessor :output_config
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@output_config = args[:output_config] if args.key?(:output_config)
end
end
# Multiple async file annotation requests are batched into a single service
# call.
class AsyncBatchAnnotateFilesRequest
include Google::Apis::Core::Hashable
# Individual async file annotation requests for this batch.
# Corresponds to the JSON property `requests`
# @return [Array<Google::Apis::VisionV1::AsyncAnnotateFileRequest>]
attr_accessor :requests
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@requests = args[:requests] if args.key?(:requests)
end
end
# Response to an async batch file annotation request.
class AsyncBatchAnnotateFilesResponse
include Google::Apis::Core::Hashable
# The list of file annotation responses, one for each request in
# AsyncBatchAnnotateFilesRequest.
# Corresponds to the JSON property `responses`
# @return [Array<Google::Apis::VisionV1::AsyncAnnotateFileResponse>]
attr_accessor :responses
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@responses = args[:responses] if args.key?(:responses)
end
end
# Multiple image annotation requests are batched into a single service call.
class BatchAnnotateImagesRequest
include Google::Apis::Core::Hashable
@ -264,6 +393,11 @@ module Google
class BoundingPoly
include Google::Apis::Core::Hashable
# The bounding polygon normalized vertices.
# Corresponds to the JSON property `normalizedVertices`
# @return [Array<Google::Apis::VisionV1::NormalizedVertex>]
attr_accessor :normalized_vertices
# The bounding polygon vertices.
# Corresponds to the JSON property `vertices`
# @return [Array<Google::Apis::VisionV1::Vertex>]
@ -275,6 +409,7 @@ module Google
# Update properties of this object
def update!(**args)
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
@vertices = args[:vertices] if args.key?(:vertices)
end
end
@ -959,6 +1094,56 @@ module Google
end
end
# The Google Cloud Storage location where the output will be written to.
class GcsDestination
include Google::Apis::Core::Hashable
# Google Cloud Storage URI where the results will be stored. Results will
# be in JSON format and preceded by its corresponding input URI. This field
# can either represent a single file, or a prefix for multiple outputs.
# Prefixes must end in a `/`.
# Examples:
# * File: gs://bucket-name/filename.json
# * Prefix: gs://bucket-name/prefix/here/
# * File: gs://bucket-name/prefix/here
# If multiple outputs, each response is still AnnotateFileResponse, each of
# which contains some subset of the full list of AnnotateImageResponse.
# Multiple outputs can happen if, for example, the output JSON is too large
# and overflows into multiple sharded files.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@uri = args[:uri] if args.key?(:uri)
end
end
# The Google Cloud Storage location where the input will be read from.
class GcsSource
include Google::Apis::Core::Hashable
# Google Cloud Storage URI for the input file. This must only be a
# Google Cloud Storage object. Wildcards are not currently supported.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@uri = args[:uri] if args.key?(:uri)
end
end
# Response to a single file annotation request. A file may contain one or more
# images, which individually have their own responses.
class GoogleCloudVisionV1p2beta1AnnotateFileResponse
@ -2470,6 +2655,194 @@ module Google
end
end
# Metadata for the batch operations such as the current state.
# This is included in the `metadata` field of the `Operation` returned by the
# `GetOperation` call of the `google::longrunning::Operations` service.
class GoogleCloudVisionV1p3beta1BatchOperationMetadata
include Google::Apis::Core::Hashable
# The time when the batch request is finished and
# google.longrunning.Operation.done is set to true.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# The current state of the batch operation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# The time when the batch request was submitted to the server.
# Corresponds to the JSON property `submitTime`
# @return [String]
attr_accessor :submit_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@state = args[:state] if args.key?(:state)
@submit_time = args[:submit_time] if args.key?(:submit_time)
end
end
# A bounding polygon for the detected image annotation.
class GoogleCloudVisionV1p3beta1BoundingPoly
include Google::Apis::Core::Hashable
# The bounding polygon normalized vertices.
# Corresponds to the JSON property `normalizedVertices`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1NormalizedVertex>]
attr_accessor :normalized_vertices
# The bounding polygon vertices.
# Corresponds to the JSON property `vertices`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Vertex>]
attr_accessor :vertices
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
@vertices = args[:vertices] if args.key?(:vertices)
end
end
# Response message for the `ImportProductSets` method.
# This message is returned by the
# google.longrunning.Operations.GetOperation method in the returned
# google.longrunning.Operation.response field.
class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
include Google::Apis::Core::Hashable
# The list of reference_images that are imported successfully.
# Corresponds to the JSON property `referenceImages`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ReferenceImage>]
attr_accessor :reference_images
# The rpc status for each ImportProductSet request, including both successes
# and errors.
# The number of statuses here matches the number of lines in the csv file,
# and statuses[i] stores the success or failure status of processing the i-th
# line of the csv, starting from line 0.
# Corresponds to the JSON property `statuses`
# @return [Array<Google::Apis::VisionV1::Status>]
attr_accessor :statuses
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@reference_images = args[:reference_images] if args.key?(:reference_images)
@statuses = args[:statuses] if args.key?(:statuses)
end
end
# A vertex represents a 2D point in the image.
# NOTE: the normalized vertex coordinates are relative to the original image
# and range from 0 to 1.
class GoogleCloudVisionV1p3beta1NormalizedVertex
include Google::Apis::Core::Hashable
# X coordinate.
# Corresponds to the JSON property `x`
# @return [Float]
attr_accessor :x
# Y coordinate.
# Corresponds to the JSON property `y`
# @return [Float]
attr_accessor :y
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@x = args[:x] if args.key?(:x)
@y = args[:y] if args.key?(:y)
end
end
# A `ReferenceImage` represents a product image and its associated metadata,
# such as bounding boxes.
class GoogleCloudVisionV1p3beta1ReferenceImage
include Google::Apis::Core::Hashable
# Bounding polygons around the areas of interest in the reference image.
# Optional. If this field is empty, the system will try to detect regions of
# interest. At most 10 bounding polygons will be used.
# The provided shape is converted into a non-rotated rectangle. Once
# converted, the small edge of the rectangle must be greater than or equal
# to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
# is not).
# Corresponds to the JSON property `boundingPolys`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly>]
attr_accessor :bounding_polys
# The resource name of the reference image.
# Format is:
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
# IMAGE_ID`.
# This field is ignored when creating a reference image.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The Google Cloud Storage URI of the reference image.
# The URI must start with `gs://`.
# Required.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
@name = args[:name] if args.key?(:name)
@uri = args[:uri] if args.key?(:uri)
end
end
# A vertex represents a 2D point in the image.
# NOTE: the vertex coordinates are in the same scale as the original image.
class GoogleCloudVisionV1p3beta1Vertex
include Google::Apis::Core::Hashable
# X coordinate.
# Corresponds to the JSON property `x`
# @return [Fixnum]
attr_accessor :x
# Y coordinate.
# Corresponds to the JSON property `y`
# @return [Fixnum]
attr_accessor :y
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@x = args[:x] if args.key?(:x)
@y = args[:y] if args.key?(:y)
end
end
# Client image to perform Google Cloud Vision API tasks over.
class Image
include Google::Apis::Core::Hashable
@ -2498,6 +2871,33 @@ module Google
end
end
# If an image was produced from a file (e.g. a PDF), this message gives
# information about the source of that image.
class ImageAnnotationContext
include Google::Apis::Core::Hashable
# If the file was a PDF or TIFF, this field gives the page number within
# the file used to produce the image.
# Corresponds to the JSON property `pageNumber`
# @return [Fixnum]
attr_accessor :page_number
# The URI of the file used to produce the image.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_number = args[:page_number] if args.key?(:page_number)
@uri = args[:uri] if args.key?(:uri)
end
end
# Image context and/or feature-specific parameters.
class ImageContext
include Google::Apis::Core::Hashable
@ -2603,6 +3003,32 @@ module Google
end
end
# The desired input location and metadata.
class InputConfig
include Google::Apis::Core::Hashable
# The Google Cloud Storage location where the input will be read from.
# Corresponds to the JSON property `gcsSource`
# @return [Google::Apis::VisionV1::GcsSource]
attr_accessor :gcs_source
# The type of the file. Currently only "application/pdf" and "image/tiff"
# are supported. Wildcards are not supported.
# Corresponds to the JSON property `mimeType`
# @return [String]
attr_accessor :mime_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
@mime_type = args[:mime_type] if args.key?(:mime_type)
end
end
# A face-specific landmark (for example, a face feature).
class Landmark
include Google::Apis::Core::Hashable
@ -2740,6 +3166,33 @@ module Google
end
end
# A vertex represents a 2D point in the image.
# NOTE: the normalized vertex coordinates are relative to the original image
# and range from 0 to 1.
class NormalizedVertex
include Google::Apis::Core::Hashable
# X coordinate.
# Corresponds to the JSON property `x`
# @return [Float]
attr_accessor :x
# Y coordinate.
# Corresponds to the JSON property `y`
# @return [Float]
attr_accessor :y
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@x = args[:x] if args.key?(:x)
@y = args[:y] if args.key?(:y)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
@ -2837,6 +3290,70 @@ module Google
end
end
# Contains metadata for the BatchAnnotateImages operation.
class OperationMetadata
include Google::Apis::Core::Hashable
# The time when the batch request was received.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Current state of the batch operation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# The time when the operation result was last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@state = args[:state] if args.key?(:state)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# The desired output location and metadata.
class OutputConfig
include Google::Apis::Core::Hashable
# The max number of response protos to put into each output JSON file on
# Google Cloud Storage.
# The valid range is [1, 100]. If not specified, the default value is 20.
# For example, for one pdf file with 100 pages, 100 response protos will
# be generated. If `batch_size` = 20, then 5 json files each
# containing 20 response protos will be written under the prefix
# `gcs_destination`.`uri`.
# Currently, batch_size only applies to GcsDestination, with potential future
# support for other output configurations.
# Corresponds to the JSON property `batchSize`
# @return [Fixnum]
attr_accessor :batch_size
# The Google Cloud Storage location where the output will be written to.
# Corresponds to the JSON property `gcsDestination`
# @return [Google::Apis::VisionV1::GcsDestination]
attr_accessor :gcs_destination
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@batch_size = args[:batch_size] if args.key?(:batch_size)
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
end
end
# Detected page from OCR.
class Page
include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis
module VisionV1
class AnnotateFileResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnnotateImageRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -34,6 +40,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AsyncAnnotateFileRequest
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 AsyncBatchAnnotateFilesRequest
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 BatchAnnotateImagesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -136,6 +166,18 @@ module Google
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 GoogleCloudVisionV1p2beta1AnnotateFileResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -370,12 +412,54 @@ 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 Image
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 ImageContext
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -394,6 +478,12 @@ module Google
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
@ -424,12 +514,30 @@ module Google
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
@ -532,6 +640,16 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::InputConfig, decorator: Google::Apis::VisionV1::InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::AnnotateImageResponse, decorator: Google::Apis::VisionV1::AnnotateImageResponse::Representation
end
end
class AnnotateImageRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -547,6 +665,8 @@ module Google
class AnnotateImageResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context, as: 'context', class: Google::Apis::VisionV1::ImageAnnotationContext, decorator: Google::Apis::VisionV1::ImageAnnotationContext::Representation
property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::CropHintsAnnotation, decorator: Google::Apis::VisionV1::CropHintsAnnotation::Representation
property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
@ -572,6 +692,44 @@ module Google
end
end
class AsyncAnnotateFileRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :features, as: 'features', class: Google::Apis::VisionV1::Feature, decorator: Google::Apis::VisionV1::Feature::Representation
property :image_context, as: 'imageContext', class: Google::Apis::VisionV1::ImageContext, decorator: Google::Apis::VisionV1::ImageContext::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::InputConfig, decorator: Google::Apis::VisionV1::InputConfig::Representation
property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1::OutputConfig, decorator: Google::Apis::VisionV1::OutputConfig::Representation
end
end
class AsyncAnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1::OutputConfig, decorator: Google::Apis::VisionV1::OutputConfig::Representation
end
end
class AsyncBatchAnnotateFilesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :requests, as: 'requests', class: Google::Apis::VisionV1::AsyncAnnotateFileRequest, decorator: Google::Apis::VisionV1::AsyncAnnotateFileRequest::Representation
end
end
class AsyncBatchAnnotateFilesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1::AsyncAnnotateFileResponse::Representation
end
end
class BatchAnnotateImagesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -605,6 +763,8 @@ module Google
class BoundingPoly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1::NormalizedVertex, decorator: Google::Apis::VisionV1::NormalizedVertex::Representation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::Vertex, decorator: Google::Apis::VisionV1::Vertex::Representation
end
@ -742,6 +902,20 @@ module Google
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 GoogleCloudVisionV1p2beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1161,6 +1335,61 @@ 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::VisionV1::GoogleCloudVisionV1p3beta1NormalizedVertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1NormalizedVertex::Representation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Vertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Vertex::Representation
end
end
class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :reference_images, as: 'referenceImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ReferenceImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ReferenceImage::Representation
collection :statuses, as: 'statuses', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::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::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::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 Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1170,6 +1399,14 @@ module Google
end
end
class ImageAnnotationContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_number, as: 'pageNumber'
property :uri, as: 'uri'
end
end
class ImageContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1199,6 +1436,15 @@ module Google
end
end
class InputConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1::GcsSource, decorator: Google::Apis::VisionV1::GcsSource::Representation
property :mime_type, as: 'mimeType'
end
end
class Landmark
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1243,6 +1489,14 @@ module Google
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
@ -1255,6 +1509,24 @@ module Google
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::VisionV1::GcsDestination, decorator: Google::Apis::VisionV1::GcsDestination::Representation
end
end
class Page
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -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::VisionV1::AsyncBatchAnnotateFilesRequest] 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::VisionV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::VisionV1::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_batch_annotate_files(async_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/files:asyncBatchAnnotate', options)
command.request_representation = Google::Apis::VisionV1::AsyncBatchAnnotateFilesRequest::Representation
command.request_object = async_batch_annotate_files_request_object
command.response_representation = Google::Apis::VisionV1::Operation::Representation
command.response_class = Google::Apis::VisionV1::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::VisionV1::BatchAnnotateImagesRequest] batch_annotate_images_request_object
# @param [String] fields

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p2beta1
VERSION = 'V1p2beta1'
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

View File

@ -22,12 +22,108 @@ module Google
module Apis
module VisionV1p2beta1
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 GoogleCloudVisionV1p2beta1AnnotateFileResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -334,24 +430,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::VisionV1p2beta1::InputConfig, decorator: Google::Apis::VisionV1p2beta1::InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::AnnotateImageResponse::Representation
end
end
class AnnotateImageResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context, as: 'context', class: Google::Apis::VisionV1p2beta1::ImageAnnotationContext, decorator: Google::Apis::VisionV1p2beta1::ImageAnnotationContext::Representation
property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p2beta1::CropHintsAnnotation, decorator: Google::Apis::VisionV1p2beta1::CropHintsAnnotation::Representation
property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation
collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1p2beta1::FaceAnnotation, decorator: Google::Apis::VisionV1p2beta1::FaceAnnotation::Representation
property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p2beta1::TextAnnotation, decorator: Google::Apis::VisionV1p2beta1::TextAnnotation::Representation
property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p2beta1::ImageProperties, decorator: Google::Apis::VisionV1p2beta1::ImageProperties::Representation
collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p2beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::EntityAnnotation::Representation
collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p2beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::EntityAnnotation::Representation
collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p2beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::EntityAnnotation::Representation
property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p2beta1::SafeSearchAnnotation, decorator: Google::Apis::VisionV1p2beta1::SafeSearchAnnotation::Representation
collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p2beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::EntityAnnotation::Representation
property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p2beta1::WebDetection, decorator: Google::Apis::VisionV1p2beta1::WebDetection::Representation
end
end
class AsyncAnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p2beta1::OutputConfig, decorator: Google::Apis::VisionV1p2beta1::OutputConfig::Representation
end
end
class AsyncBatchAnnotateFilesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::BoundingPoly::Representation
property :confidence, as: 'confidence'
collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p2beta1::Paragraph, decorator: Google::Apis::VisionV1p2beta1::Paragraph::Representation
property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::TextProperty, decorator: Google::Apis::VisionV1p2beta1::TextProperty::Representation
end
end
class BoundingPoly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p2beta1::NormalizedVertex, decorator: Google::Apis::VisionV1p2beta1::NormalizedVertex::Representation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p2beta1::Vertex, decorator: Google::Apis::VisionV1p2beta1::Vertex::Representation
end
end
class Color
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -362,6 +712,114 @@ module Google
end
end
class ColorInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :color, as: 'color', class: Google::Apis::VisionV1p2beta1::Color, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::CropHint, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::ColorInfo, decorator: Google::Apis::VisionV1p2beta1::ColorInfo::Representation
end
end
class EntityAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::BoundingPoly::Representation
property :confidence, as: 'confidence'
property :description, as: 'description'
property :locale, as: 'locale'
collection :locations, as: 'locations', class: Google::Apis::VisionV1p2beta1::LocationInfo, decorator: Google::Apis::VisionV1p2beta1::LocationInfo::Representation
property :mid, as: 'mid'
collection :properties, as: 'properties', class: Google::Apis::VisionV1p2beta1::Property, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::BoundingPoly::Representation
property :detection_confidence, as: 'detectionConfidence'
property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p2beta1::BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::BoundingPoly::Representation
property :headwear_likelihood, as: 'headwearLikelihood'
property :joy_likelihood, as: 'joyLikelihood'
property :landmarking_confidence, as: 'landmarkingConfidence'
collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p2beta1::Landmark, decorator: Google::Apis::VisionV1p2beta1::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 GoogleCloudVisionV1p2beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -894,6 +1352,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::VisionV1p2beta1::GoogleCloudVisionV1p3beta1NormalizedVertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1NormalizedVertex::Representation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Vertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Vertex::Representation
end
end
class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :reference_images, as: 'referenceImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ReferenceImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ReferenceImage::Representation
collection :statuses, as: 'statuses', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::DominantColorsAnnotation, decorator: Google::Apis::VisionV1p2beta1::DominantColorsAnnotation::Representation
end
end
class InputConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p2beta1::GcsSource, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::Position, decorator: Google::Apis::VisionV1p2beta1::Position::Representation
property :type, as: 'type'
end
end
class LatLng
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -902,6 +1449,22 @@ module Google
end
end
class LocationInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1p2beta1::LatLng, decorator: Google::Apis::VisionV1p2beta1::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
@ -914,6 +1477,79 @@ module Google
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::VisionV1p2beta1::GcsDestination, decorator: Google::Apis::VisionV1p2beta1::GcsDestination::Representation
end
end
class Page
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p2beta1::Block, decorator: Google::Apis::VisionV1p2beta1::Block::Representation
property :confidence, as: 'confidence'
property :height, as: 'height'
property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::TextProperty, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::BoundingPoly::Representation
property :confidence, as: 'confidence'
property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::TextProperty, decorator: Google::Apis::VisionV1p2beta1::TextProperty::Representation
collection :words, as: 'words', class: Google::Apis::VisionV1p2beta1::Word, decorator: Google::Apis::VisionV1p2beta1::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
@ -922,6 +1558,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::VisionV1p2beta1::BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::BoundingPoly::Representation
property :confidence, as: 'confidence'
property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::TextProperty, decorator: Google::Apis::VisionV1p2beta1::TextProperty::Representation
property :text, as: 'text'
end
end
class TextAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :pages, as: 'pages', class: Google::Apis::VisionV1p2beta1::Page, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::DetectedBreak, decorator: Google::Apis::VisionV1p2beta1::DetectedBreak::Representation
collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p2beta1::DetectedLanguage, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::WebLabel, decorator: Google::Apis::VisionV1p2beta1::WebLabel::Representation
collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p2beta1::WebImage, decorator: Google::Apis::VisionV1p2beta1::WebImage::Representation
collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p2beta1::WebPage, decorator: Google::Apis::VisionV1p2beta1::WebPage::Representation
collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::WebImage, decorator: Google::Apis::VisionV1p2beta1::WebImage::Representation
collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p2beta1::WebImage, decorator: Google::Apis::VisionV1p2beta1::WebImage::Representation
collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p2beta1::WebEntity, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::WebImage, decorator: Google::Apis::VisionV1p2beta1::WebImage::Representation
property :page_title, as: 'pageTitle'
collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::WebImage, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::BoundingPoly::Representation
property :confidence, as: 'confidence'
property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::TextProperty, decorator: Google::Apis::VisionV1p2beta1::TextProperty::Representation
collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p2beta1::Symbol, decorator: Google::Apis::VisionV1p2beta1::Symbol::Representation
end
end
end
end
end

View File

@ -49,9 +49,9 @@ module Google
@batch_path = 'batch'
end
# Run async image detection and annotation for a list of generic files (e.g.
# PDF) which may contain multiple pages and multiple images per page.
# Progress and results can be retrieved through the
# 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).

View File

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