Autogenerated update (2020-08-11)

Update:
- admin_directory_v1
- admin_reports_v1
- androidmanagement_v1
- clouderrorreporting_v1beta1
- docs_v1
- indexing_v3
- manufacturers_v1
- playablelocations_v3
- securitycenter_v1
- securitycenter_v1beta1
- securitycenter_v1p1alpha1
- securitycenter_v1p1beta1
- slides_v1
- streetviewpublish_v1
- tasks_v1
- translate_v3
- translate_v3beta1
- vectortile_v1
- youtube_partner_v1
This commit is contained in:
Google APIs 2020-08-11 00:38:09 +00:00
parent c6029e32ba
commit f087c37dbe
56 changed files with 4251 additions and 5936 deletions

View File

@ -7687,6 +7687,7 @@
"/androidmanagement:v1/ApplicationPolicy": application_policy
"/androidmanagement:v1/ApplicationPolicy/accessibleTrackIds": accessible_track_ids
"/androidmanagement:v1/ApplicationPolicy/accessibleTrackIds/accessible_track_id": accessible_track_id
"/androidmanagement:v1/ApplicationPolicy/connectedWorkAndPersonalApp": connected_work_and_personal_app
"/androidmanagement:v1/ApplicationPolicy/defaultPermissionPolicy": default_permission_policy
"/androidmanagement:v1/ApplicationPolicy/delegatedScopes": delegated_scopes
"/androidmanagement:v1/ApplicationPolicy/delegatedScopes/delegated_scope": delegated_scope
@ -121150,6 +121151,7 @@
"/securitycenter:v1/GoogleCloudSecuritycenterV1p1beta1Finding/parent": parent
"/securitycenter:v1/GoogleCloudSecuritycenterV1p1beta1Finding/resourceName": resource_name
"/securitycenter:v1/GoogleCloudSecuritycenterV1p1beta1Finding/securityMarks": security_marks
"/securitycenter:v1/GoogleCloudSecuritycenterV1p1beta1Finding/severity": severity
"/securitycenter:v1/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties": source_properties
"/securitycenter:v1/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties/source_property": source_property
"/securitycenter:v1/GoogleCloudSecuritycenterV1p1beta1Finding/state": state
@ -121507,6 +121509,7 @@
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/parent": parent
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/resourceName": resource_name
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/securityMarks": security_marks
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/severity": severity
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties": source_properties
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties/source_property": source_property
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/state": state
@ -121768,6 +121771,7 @@
"/securitycenter:v1p1alpha1/GoogleCloudSecuritycenterV1p1beta1Finding/parent": parent
"/securitycenter:v1p1alpha1/GoogleCloudSecuritycenterV1p1beta1Finding/resourceName": resource_name
"/securitycenter:v1p1alpha1/GoogleCloudSecuritycenterV1p1beta1Finding/securityMarks": security_marks
"/securitycenter:v1p1alpha1/GoogleCloudSecuritycenterV1p1beta1Finding/severity": severity
"/securitycenter:v1p1alpha1/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties": source_properties
"/securitycenter:v1p1alpha1/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties/source_property": source_property
"/securitycenter:v1p1alpha1/GoogleCloudSecuritycenterV1p1beta1Finding/state": state
@ -121913,6 +121917,7 @@
"/securitycenter:v1p1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/parent": parent
"/securitycenter:v1p1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/resourceName": resource_name
"/securitycenter:v1p1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/securityMarks": security_marks
"/securitycenter:v1p1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/severity": severity
"/securitycenter:v1p1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties": source_properties
"/securitycenter:v1p1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties/source_property": source_property
"/securitycenter:v1p1beta1/GoogleCloudSecuritycenterV1p1beta1Finding/state": state

View File

@ -18,15 +18,16 @@ require 'google/apis/admin_directory_v1/representations.rb'
module Google
module Apis
# Admin Directory API
# Admin SDK
#
# Manages enterprise resources such as users and groups, administrative
# notifications, security features, and more.
# Admin SDK lets administrators of enterprise domains to view and manage
# resources like user, groups etc. It also provides audit and usage reports of
# domain.
#
# @see https://developers.google.com/admin-sdk/directory/
# @see http://developers.google.com/admin-sdk/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20200605'
REVISION = '20200810'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
@ -67,9 +68,6 @@ module Google
# View groups on your domain
AUTH_ADMIN_DIRECTORY_GROUP_READONLY = 'https://www.googleapis.com/auth/admin.directory.group.readonly'
# View and manage notifications received on your domain
AUTH_ADMIN_DIRECTORY_NOTIFICATIONS = 'https://www.googleapis.com/auth/admin.directory.notifications'
# View and manage organization units on your domain
AUTH_ADMIN_DIRECTORY_ORGUNIT = 'https://www.googleapis.com/auth/admin.directory.orgunit'

File diff suppressed because it is too large Load Diff

View File

@ -286,18 +286,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Notification
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Notifications
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrgUnit
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -406,6 +394,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UserCustomProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserEmail
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1087,33 +1081,6 @@ module Google
end
end
class Notification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :body, as: 'body'
property :etag, as: 'etag'
property :from_address, as: 'fromAddress'
property :is_unread, as: 'isUnread'
property :kind, as: 'kind'
property :notification_id, as: 'notificationId'
property :send_time, as: 'sendTime', type: DateTime
property :subject, as: 'subject'
end
end
class Notifications
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::Notification, decorator: Google::Apis::AdminDirectoryV1::Notification::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :unread_notifications_count, as: 'unreadNotificationsCount'
end
end
class OrgUnit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1303,7 +1270,8 @@ module Google
property :change_password_at_next_login, as: 'changePasswordAtNextLogin'
property :creation_time, as: 'creationTime', type: DateTime
hash :custom_schemas, as: 'customSchemas'
hash :custom_schemas, as: 'customSchemas', class: Google::Apis::AdminDirectoryV1::UserCustomProperties, decorator: Google::Apis::AdminDirectoryV1::UserCustomProperties::Representation
property :customer_id, as: 'customerId'
property :deletion_time, as: 'deletionTime', type: DateTime
@ -1376,6 +1344,12 @@ module Google
end
end
class UserCustomProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class UserEmail
# @private
class Representation < Google::Apis::Core::JsonRepresentation

File diff suppressed because it is too large Load Diff

View File

@ -18,15 +18,16 @@ require 'google/apis/admin_reports_v1/representations.rb'
module Google
module Apis
# Admin Reports API
# Admin SDK
#
# Fetches reports for the administrators of G Suite customers about the usage,
# collaboration, security, and risk for their users.
# Admin SDK lets administrators of enterprise domains to view and manage
# resources like user, groups etc. It also provides audit and usage reports of
# domain.
#
# @see /admin-sdk/reports/
# @see http://developers.google.com/admin-sdk/
module AdminReportsV1
VERSION = 'ReportsV1'
REVISION = '20191014'
REVISION = '20200810'
# View audit reports for your G Suite domain
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'

View File

@ -22,7 +22,7 @@ module Google
module Apis
module AdminReportsV1
# JSON template for a collection of activites.
# JSON template for a collection of activities.
class Activities
include Google::Apis::Core::Hashable
@ -166,15 +166,13 @@ module Google
# Name of the event. This is the specific name of the activity reported by the
# API. And each eventName is related to a specific G Suite service or feature
# which the API organizes into types of events.
# For eventName request parameters in general:
# - If no eventName is given, the report returns all possible instances of an
# eventName.
# - When you request an eventName, the API's response returns all activities
# which contain that eventName. It is possible that the returned activities will
# have other eventName properties in addition to the one requested.
# For more information about eventName properties, see the list of event names
# for various applications above in applicationName.
# which the API organizes into types of events. For eventName request parameters
# in general: - If no eventName is given, the report returns all possible
# instances of an eventName. - When you request an eventName, the API's response
# returns all activities which contain that eventName. It is possible that the
# returned activities will have other eventName properties in addition to the
# one requested. For more information about eventName properties, see the list
# of event names for various applications above in applicationName.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -351,7 +349,7 @@ module Google
end
end
# An notification channel used to watch for resource changes.
# A notification channel used to watch for resource changes.
class Channel
include Google::Apis::Core::Hashable
@ -489,12 +487,12 @@ module Google
class UsageReport
include Google::Apis::Core::Hashable
# The date of the report request.
# Output only. The date of the report request.
# Corresponds to the JSON property `date`
# @return [String]
attr_accessor :date
# Information about the type of the item.
# Output only. Information about the type of the item.
# Corresponds to the JSON property `entity`
# @return [Google::Apis::AdminReportsV1::UsageReport::Entity]
attr_accessor :entity
@ -510,8 +508,9 @@ module Google
# @return [String]
attr_accessor :kind
# Parameter value pairs for various applications. For the Customers usage report
# parameters and values, see the customer usage parameters reference.
# Output only. Parameter value pairs for various applications. For the Customers
# usage report parameters and values, see the customer usage parameters
# reference.
# Corresponds to the JSON property `parameters`
# @return [Array<Google::Apis::AdminReportsV1::UsageReport::Parameter>]
attr_accessor :parameters
@ -529,32 +528,32 @@ module Google
@parameters = args[:parameters] if args.key?(:parameters)
end
# Information about the type of the item.
# Output only. Information about the type of the item.
class Entity
include Google::Apis::Core::Hashable
# The unique identifier of the customer's account.
# Output only. The unique identifier of the customer's account.
# Corresponds to the JSON property `customerId`
# @return [String]
attr_accessor :customer_id
# Object key. Only relevant if entity.type = "OBJECT" Note: external-facing name
# of report is "Entities" rather than "Objects".
# Output only. Object key. Only relevant if entity.type = "OBJECT" Note:
# external-facing name of report is "Entities" rather than "Objects".
# Corresponds to the JSON property `entityId`
# @return [String]
attr_accessor :entity_id
# The user's immutable G Suite profile identifier.
# Output only. The user's immutable G Suite profile identifier.
# Corresponds to the JSON property `profileId`
# @return [String]
attr_accessor :profile_id
# The type of item. The value is customer.
# Output only. The type of item. The value is customer.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# The user's email address. Only relevant if entity.type = "USER"
# Output only. The user's email address. Only relevant if entity.type = "USER"
# Corresponds to the JSON property `userEmail`
# @return [String]
attr_accessor :user_email
@ -577,7 +576,7 @@ module Google
class Parameter
include Google::Apis::Core::Hashable
# Boolean value of the parameter.
# Output only. Boolean value of the parameter.
# Corresponds to the JSON property `boolValue`
# @return [Boolean]
attr_accessor :bool_value
@ -589,22 +588,22 @@ module Google
# @return [DateTime]
attr_accessor :datetime_value
# Integer value of the parameter.
# Output only. Integer value of the parameter.
# Corresponds to the JSON property `intValue`
# @return [Fixnum]
attr_accessor :int_value
# Nested message value of the parameter.
# Output only. Nested message value of the parameter.
# Corresponds to the JSON property `msgValue`
# @return [Array<Hash<String,Object>>]
attr_accessor :msg_value
#
# Name of the parameter.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# String value of the parameter.
# Output only. String value of the parameter.
# Corresponds to the JSON property `stringValue`
# @return [String]
attr_accessor :string_value
@ -684,12 +683,11 @@ module Google
# @return [Array<Google::Apis::AdminReportsV1::UsageReports::Warning::Datum>]
attr_accessor :data
# The human readable messages for a warning are:
# - Data is not available warning - Sorry, data for date yyyy-mm-dd for
# application "application name" is not available.
# - Partial data is available warning - Data for date yyyy-mm-dd for application
# "application name" is not available right now, please try again after a few
# hours.
# The human readable messages for a warning are: - Data is not available warning
# - Sorry, data for date yyyy-mm-dd for application "application name" is not
# available. - Partial data is available warning - Data for date yyyy-mm-dd for
# application "application name" is not available right now, please try again
# after a few hours.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message

View File

@ -20,10 +20,11 @@ require 'google/apis/errors'
module Google
module Apis
module AdminReportsV1
# Admin Reports API
# Admin SDK
#
# Fetches reports for the administrators of G Suite customers about the usage,
# collaboration, security, and risk for their users.
# Admin SDK lets administrators of enterprise domains to view and manage
# resources like user, groups etc. It also provides audit and usage reports of
# domain.
#
# @example
# require 'google/apis/admin_reports_v1'
@ -31,7 +32,7 @@ module Google
# Admin = Google::Apis::AdminReportsV1 # Alias the module
# service = Admin::ReportsService.new
#
# @see /admin-sdk/reports/
# @see http://developers.google.com/admin-sdk/
class ReportsService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
@ -39,16 +40,12 @@ module Google
attr_accessor :key
# @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'admin/reports/v1/')
super('https://www.googleapis.com/', '')
@batch_path = 'batch/admin/reports_v1'
end
@ -76,15 +73,13 @@ module Google
# Sets the end of the range of time shown in the report. The date is in the RFC
# 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the
# approximate time of the API request. An API report has three basic time
# concepts:
# - Date of the API's request for a report: When the API created and retrieved
# the report.
# - Report's start time: The beginning of the timespan shown in the report. The
# startTime must be before the endTime (if specified) and the current time when
# the request is made, or the API returns an error.
# - Report's end time: The end of the timespan shown in the report. For example,
# concepts: - *Date of the API's request for a report*: When the API created and
# retrieved the report. - *Report's start time*: The beginning of the timespan
# shown in the report. The startTime must be before the endTime (if specified)
# and the current time when the request is made, or the API returns an error. - *
# Report's end time*: The end of the timespan shown in the report. For example,
# the timespan of events summarized in a report can start in April and end in
# May. The report itself can be requested in August. If the endTime is not
# May. The report itself can be requested in August. If the endTime is not
# specified, the report returns all activities from the startTime until the
# current time or the most recent 180 days if the startTime is more than 180
# days in the past.
@ -101,39 +96,33 @@ module Google
# @param [String] filters
# The filters query string is a comma-separated list. The list is composed of
# event parameters that are manipulated by relational operators. Event
# parameters are in the form [parameter1 name][relational operator][parameter1
# value],[parameter2 name][relational operator][parameter2 value],...
# These event parameters are associated with a specific eventName. An empty
# report is returned if the filtered request's parameter does not belong to the
# eventName. For more information about eventName parameters, see the list of
# event names for various applications above in applicationName.
# In the following Admin Activity example, the <> operator is URL-encoded in the
# request's query string (%3C%3E):
# GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%
# 3EREAD_ONLY_ACCESS
# In the following Drive example, the list can be a view or edit event's doc_id
# parameters are in the form parameter1 name[parameter1 value],parameter2 name[
# parameter2 value],... These event parameters are associated with a specific
# eventName. An empty report is returned if the filtered request's parameter
# does not belong to the eventName. For more information about eventName
# parameters, see the list of event names for various applications above in
# applicationName. In the following Admin Activity example, the <> operator is
# URL-encoded in the request's query string (%3C%3E): GET...&eventName=
# CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the
# following Drive example, the list can be a view or edit event's doc_id
# parameter with a value that is manipulated by an 'equal to' (==) or 'not equal
# to' (<>) relational operator. In the first example, the report returns each
# edited document's doc_id. In the second example, the report returns each
# viewed document's doc_id that equals the value 12345 and does not return any
# viewed document's which have a doc_id value of 98765. The <> operator is URL-
# encoded in the request's query string (%3C%3E):
# GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==
# 12345,doc_id%3C%3E98765
# The relational operators include:
# - == - 'equal to'.
# - <> - 'not equal to'. It is URL-encoded (%3C%3E).
# - < - 'less than'. It is URL-encoded (%3C).
# - <= - 'less than or equal to'. It is URL-encoded (%3C=).
# - > - 'greater than'. It is URL-encoded (%3E).
# - >= - 'greater than or equal to'. It is URL-encoded (%3E=).
# Note: The API doesn't accept multiple values of a parameter. If a particular
# encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=
# doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The
# relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is
# URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less
# than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-
# encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=). *
# Note:* The API doesn't accept multiple values of a parameter. If a particular
# parameter is supplied more than once in the API request, the API only accepts
# the last value of that request parameter.
# In addition, if an invalid request parameter is supplied in the API request,
# the API ignores that request parameter and returns the response corresponding
# to the remaining valid request parameters. If no parameters are requested, all
# parameters are returned.
# the last value of that request parameter. In addition, if an invalid request
# parameter is supplied in the API request, the API ignores that request
# parameter and returns the response corresponding to the remaining valid
# request parameters. If no parameters are requested, all parameters are
# returned.
# @param [Fixnum] max_results
# Determines how many activity records are shown on each response page. For
# example, if the request sets maxResults=1 and the report has two activities,
@ -158,10 +147,8 @@ module Google
# @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.
# 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
#
@ -174,8 +161,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_activities(user_key, application_name, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, org_unit_id: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'activity/users/{userKey}/applications/{applicationName}', options)
def list_activities(user_key, application_name, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, org_unit_id: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'admin/reports/v1/activity/users/{userKey}/applications/{applicationName}', options)
command.response_representation = Google::Apis::AdminReportsV1::Activities::Representation
command.response_class = Google::Apis::AdminReportsV1::Activities
command.params['userKey'] = user_key unless user_key.nil?
@ -191,7 +178,6 @@ module Google
command.query['startTime'] = start_time unless start_time.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
@ -217,15 +203,13 @@ module Google
# Sets the end of the range of time shown in the report. The date is in the RFC
# 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the
# approximate time of the API request. An API report has three basic time
# concepts:
# - Date of the API's request for a report: When the API created and retrieved
# the report.
# - Report's start time: The beginning of the timespan shown in the report. The
# startTime must be before the endTime (if specified) and the current time when
# the request is made, or the API returns an error.
# - Report's end time: The end of the timespan shown in the report. For example,
# concepts: - *Date of the API's request for a report*: When the API created and
# retrieved the report. - *Report's start time*: The beginning of the timespan
# shown in the report. The startTime must be before the endTime (if specified)
# and the current time when the request is made, or the API returns an error. - *
# Report's end time*: The end of the timespan shown in the report. For example,
# the timespan of events summarized in a report can start in April and end in
# May. The report itself can be requested in August. If the endTime is not
# May. The report itself can be requested in August. If the endTime is not
# specified, the report returns all activities from the startTime until the
# current time or the most recent 180 days if the startTime is more than 180
# days in the past.
@ -242,39 +226,33 @@ module Google
# @param [String] filters
# The filters query string is a comma-separated list. The list is composed of
# event parameters that are manipulated by relational operators. Event
# parameters are in the form [parameter1 name][relational operator][parameter1
# value],[parameter2 name][relational operator][parameter2 value],...
# These event parameters are associated with a specific eventName. An empty
# report is returned if the filtered request's parameter does not belong to the
# eventName. For more information about eventName parameters, see the list of
# event names for various applications above in applicationName.
# In the following Admin Activity example, the <> operator is URL-encoded in the
# request's query string (%3C%3E):
# GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%
# 3EREAD_ONLY_ACCESS
# In the following Drive example, the list can be a view or edit event's doc_id
# parameters are in the form parameter1 name[parameter1 value],parameter2 name[
# parameter2 value],... These event parameters are associated with a specific
# eventName. An empty report is returned if the filtered request's parameter
# does not belong to the eventName. For more information about eventName
# parameters, see the list of event names for various applications above in
# applicationName. In the following Admin Activity example, the <> operator is
# URL-encoded in the request's query string (%3C%3E): GET...&eventName=
# CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the
# following Drive example, the list can be a view or edit event's doc_id
# parameter with a value that is manipulated by an 'equal to' (==) or 'not equal
# to' (<>) relational operator. In the first example, the report returns each
# edited document's doc_id. In the second example, the report returns each
# viewed document's doc_id that equals the value 12345 and does not return any
# viewed document's which have a doc_id value of 98765. The <> operator is URL-
# encoded in the request's query string (%3C%3E):
# GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==
# 12345,doc_id%3C%3E98765
# The relational operators include:
# - == - 'equal to'.
# - <> - 'not equal to'. It is URL-encoded (%3C%3E).
# - < - 'less than'. It is URL-encoded (%3C).
# - <= - 'less than or equal to'. It is URL-encoded (%3C=).
# - > - 'greater than'. It is URL-encoded (%3E).
# - >= - 'greater than or equal to'. It is URL-encoded (%3E=).
# Note: The API doesn't accept multiple values of a parameter. If a particular
# encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=
# doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The
# relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is
# URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less
# than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-
# encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=). *
# Note:* The API doesn't accept multiple values of a parameter. If a particular
# parameter is supplied more than once in the API request, the API only accepts
# the last value of that request parameter.
# In addition, if an invalid request parameter is supplied in the API request,
# the API ignores that request parameter and returns the response corresponding
# to the remaining valid request parameters. If no parameters are requested, all
# parameters are returned.
# the last value of that request parameter. In addition, if an invalid request
# parameter is supplied in the API request, the API ignores that request
# parameter and returns the response corresponding to the remaining valid
# request parameters. If no parameters are requested, all parameters are
# returned.
# @param [Fixnum] max_results
# Determines how many activity records are shown on each response page. For
# example, if the request sets maxResults=1 and the report has two activities,
@ -299,10 +277,8 @@ module Google
# @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.
# 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
#
@ -315,8 +291,8 @@ module Google
# @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 watch_activity(user_key, application_name, channel_object = nil, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, org_unit_id: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'activity/users/{userKey}/applications/{applicationName}/watch', options)
def watch_activity(user_key, application_name, channel_object = nil, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, org_unit_id: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch', options)
command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation
command.request_object = channel_object
command.response_representation = Google::Apis::AdminReportsV1::Channel::Representation
@ -334,19 +310,16 @@ module Google
command.query['startTime'] = start_time unless start_time.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
# Stop watching resources through this channel
# Stop watching resources through this channel.
# @param [Google::Apis::AdminReportsV1::Channel] channel_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.
# 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
#
@ -359,13 +332,12 @@ module Google
# @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 stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '/admin/reports_v1/channels/stop', options)
def stop_channel(channel_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'admin/reports_v1/channels/stop', options)
command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation
command.request_object = channel_object
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
@ -387,24 +359,20 @@ module Google
# refine a report's results. The parameter is associated with a specific
# application. The application values for the Customers usage report include
# accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail,
# gplus, device_management, meet, and sites.
# A parameters query string is in the CSV form of app_name1:param_name1,
# app_name2:param_name2.
# Note: The API doesn't accept multiple values of a parameter. If a particular
# parameter is supplied more than once in the API request, the API only accepts
# the last value of that request parameter.
# In addition, if an invalid request parameter is supplied in the API request,
# the API ignores that request parameter and returns the response corresponding
# to the remaining valid request parameters.
# gplus, device_management, meet, and sites. A parameters query string is in the
# CSV form of app_name1:param_name1, app_name2:param_name2. *Note:* The API
# doesn't accept multiple values of a parameter. If a particular parameter is
# supplied more than once in the API request, the API only accepts the last
# value of that request parameter. In addition, if an invalid request parameter
# is supplied in the API request, the API ignores that request parameter and
# returns the response corresponding to the remaining valid request parameters.
# An example of an invalid request parameter is one that does not belong to the
# application. If no parameters are requested, all parameters are returned.
# @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.
# 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
#
@ -417,8 +385,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_customer_usage_report(date, customer_id: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'usage/dates/{date}', options)
def get_customer_usage_report(date, customer_id: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'admin/reports/v1/usage/dates/{date}', options)
command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation
command.response_class = Google::Apis::AdminReportsV1::UsageReports
command.params['date'] = date unless date.nil?
@ -427,7 +395,6 @@ module Google
command.query['parameters'] = parameters unless parameters.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
@ -449,22 +416,16 @@ module Google
# parameters where the parameter's value is manipulated by a relational operator.
# The filters query string includes the name of the application whose usage is
# returned in the report. The application values for the Entities usage report
# include accounts, docs, and gmail.
# Filters are in the form [application name]:[parameter name][relational
# operator][parameter value],....
# In this example, the <> 'not equal to' operator is URL-encoded in the request'
# s query string (%3C%3E):
# GET https://www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/
# dates/2017-12-01 ?parameters=gplus:community_name,gplus:num_total_members &
# filters=gplus:num_total_members>0
# The relational operators include:
# - == - 'equal to'.
# - <> - 'not equal to'. It is URL-encoded (%3C%3E).
# - < - 'less than'. It is URL-encoded (%3C).
# - <= - 'less than or equal to'. It is URL-encoded (%3C=).
# - > - 'greater than'. It is URL-encoded (%3E).
# - >= - 'greater than or equal to'. It is URL-encoded (%3E=). Filters can only
# be applied to numeric parameters.
# include accounts, docs, and gmail. Filters are in the form [application name]:
# parameter name[parameter value],.... In this example, the <> 'not equal to'
# operator is URL-encoded in the request's query string (%3C%3E): GET https://
# www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-
# 01 ?parameters=gplus:community_name,gplus:num_total_members &filters=gplus:
# num_total_members>0 The relational operators include: - == - 'equal to'. - <> -
# 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-
# encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > -
# 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It
# is URL-encoded (%3E=). Filters can only be applied to numeric parameters.
# @param [Fixnum] max_results
# Determines how many activity records are shown on each response page. For
# example, if the request sets maxResults=1 and the report has two activities,
@ -478,24 +439,20 @@ module Google
# The parameters query string is a comma-separated list of event parameters that
# refine a report's results. The parameter is associated with a specific
# application. The application values for the Entities usage report are only
# gplus.
# A parameter query string is in the CSV form of [app_name1:param_name1], [
# app_name2:param_name2]....
# Note: The API doesn't accept multiple values of a parameter. If a particular
# parameter is supplied more than once in the API request, the API only accepts
# the last value of that request parameter.
# In addition, if an invalid request parameter is supplied in the API request,
# the API ignores that request parameter and returns the response corresponding
# to the remaining valid request parameters.
# An example of an invalid request parameter is one that does not belong to the
# application. If no parameters are requested, all parameters are returned.
# gplus. A parameter query string is in the CSV form of [app_name1:param_name1],
# [app_name2:param_name2].... *Note:* The API doesn't accept multiple values of
# a parameter. If a particular parameter is supplied more than once in the API
# request, the API only accepts the last value of that request parameter. In
# addition, if an invalid request parameter is supplied in the API request, the
# API ignores that request parameter and returns the response corresponding to
# the remaining valid request parameters. An example of an invalid request
# parameter is one that does not belong to the application. If no parameters are
# requested, all parameters are returned.
# @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.
# 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
#
@ -508,8 +465,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_entity_usage_report(entity_type, entity_key, date, customer_id: nil, filters: nil, max_results: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'usage/{entityType}/{entityKey}/dates/{date}', options)
def get_entity_usage_report(entity_type, entity_key, date, customer_id: nil, filters: nil, max_results: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}', options)
command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation
command.response_class = Google::Apis::AdminReportsV1::UsageReports
command.params['entityType'] = entity_type unless entity_type.nil?
@ -522,7 +479,6 @@ module Google
command.query['parameters'] = parameters unless parameters.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
@ -544,27 +500,21 @@ module Google
# parameters where the parameter's value is manipulated by a relational operator.
# The filters query string includes the name of the application whose usage is
# returned in the report. The application values for the Users Usage Report
# include accounts, docs, and gmail.
# Filters are in the form [application name]:[parameter name][relational
# operator][parameter value],....
# In this example, the <> 'not equal to' operator is URL-encoded in the request'
# s query string (%3C%3E):
# GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-
# 03 ?parameters=accounts:last_login_time &filters=accounts:last_login_time>2010-
# 10-28T10:26:35.000Z
# The relational operators include:
# - == - 'equal to'.
# - <> - 'not equal to'. It is URL-encoded (%3C%3E).
# - < - 'less than'. It is URL-encoded (%3C).
# - <= - 'less than or equal to'. It is URL-encoded (%3C=).
# - > - 'greater than'. It is URL-encoded (%3E).
# - >= - 'greater than or equal to'. It is URL-encoded (%3E=).
# include accounts, docs, and gmail. Filters are in the form [application name]:
# parameter name[parameter value],.... In this example, the <> 'not equal to'
# operator is URL-encoded in the request's query string (%3C%3E): GET https://
# www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03 ?
# parameters=accounts:last_login_time &filters=accounts:last_login_time>2010-10-
# 28T10:26:35.000Z The relational operators include: - == - 'equal to'. - <> - '
# not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-
# encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > -
# 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It
# is URL-encoded (%3E=).
# @param [Fixnum] max_results
# Determines how many activity records are shown on each response page. For
# example, if the request sets maxResults=1 and the report has two activities,
# the report has two pages. The response's nextPageToken property has the token
# to the second page.
# The maxResults query string is optional.
# to the second page. The maxResults query string is optional.
# @param [String] org_unit_id
# ID of the organizational unit to report on. User activity will be shown only
# for users who belong to the specified organizational unit. Data before Dec 17,
@ -578,24 +528,20 @@ module Google
# refine a report's results. The parameter is associated with a specific
# application. The application values for the Customers usage report include
# accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail,
# gplus, device_management, meet, and sites.
# A parameters query string is in the CSV form of app_name1:param_name1,
# app_name2:param_name2.
# Note: The API doesn't accept multiple values of a parameter.
# If a particular parameter is supplied more than once in the API request, the
# API only accepts the last value of that request parameter. In addition, if an
# invalid request parameter is supplied in the API request, the API ignores that
# request parameter and returns the response corresponding to the remaining
# valid request parameters.
# gplus, device_management, meet, and sites. A parameters query string is in the
# CSV form of app_name1:param_name1, app_name2:param_name2. *Note:* The API
# doesn't accept multiple values of a parameter. If a particular parameter is
# supplied more than once in the API request, the API only accepts the last
# value of that request parameter. In addition, if an invalid request parameter
# is supplied in the API request, the API ignores that request parameter and
# returns the response corresponding to the remaining valid request parameters.
# An example of an invalid request parameter is one that does not belong to the
# application. If no parameters are requested, all parameters are returned.
# @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.
# 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
#
@ -608,8 +554,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_usage_report(user_key, date, customer_id: nil, filters: nil, max_results: nil, org_unit_id: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'usage/users/{userKey}/dates/{date}', options)
def get_user_usage_report(user_key, date, customer_id: nil, filters: nil, max_results: nil, org_unit_id: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'admin/reports/v1/usage/users/{userKey}/dates/{date}', options)
command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation
command.response_class = Google::Apis::AdminReportsV1::UsageReports
command.params['userKey'] = user_key unless user_key.nil?
@ -622,7 +568,6 @@ module Google
command.query['parameters'] = parameters unless parameters.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
@ -631,7 +576,6 @@ module Google
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20200803'
REVISION = '20200807'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'

View File

@ -234,6 +234,12 @@ module Google
# @return [Array<String>]
attr_accessor :accessible_track_ids
# Controls whether the app can communicate with itself across a devices work
# and personal profiles, subject to user consent.
# Corresponds to the JSON property `connectedWorkAndPersonalApp`
# @return [String]
attr_accessor :connected_work_and_personal_app
# The default policy for all permissions requested by the app. If specified,
# this overrides the policy-level default_permission_policy which applies to all
# apps. It does not override the permission_grants which applies to all apps.
@ -268,13 +274,9 @@ module Google
# Managed configuration applied to the app. The format for the configuration is
# dictated by the ManagedProperty values supported by the app. Each field name
# in the managed configuration must match the key field of the ManagedProperty.
# The field value must be compatible with the type of the ManagedProperty: <
# table> <tr><td><i>type</i></td><td><i>JSON value</i></td></tr> <tr><td>BOOL</
# td><td>true or false</td></tr> <tr><td>STRING</td><td>string</td></tr> <tr><td>
# INTEGER</td><td>number</td></tr> <tr><td>CHOICE</td><td>string</td></tr> <tr><
# td>MULTISELECT</td><td>array of strings</td></tr> <tr><td>HIDDEN</td><td>
# string</td></tr> <tr><td>BUNDLE_ARRAY</td><td>array of objects</td></tr> </
# table>
# The field value must be compatible with the type of the ManagedProperty: *type*
# *JSON value* BOOL true or false STRING string INTEGER number CHOICE string
# MULTISELECT array of strings HIDDEN string BUNDLE_ARRAY array of objects
# Corresponds to the JSON property `managedConfiguration`
# @return [Hash<String,Object>]
attr_accessor :managed_configuration
@ -314,6 +316,7 @@ module Google
# Update properties of this object
def update!(**args)
@accessible_track_ids = args[:accessible_track_ids] if args.key?(:accessible_track_ids)
@connected_work_and_personal_app = args[:connected_work_and_personal_app] if args.key?(:connected_work_and_personal_app)
@default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
@delegated_scopes = args[:delegated_scopes] if args.key?(:delegated_scopes)
@disabled = args[:disabled] if args.key?(:disabled)
@ -617,11 +620,10 @@ module Google
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# A full date, with non-zero year, month and day values
# A month and day value, with a zero year, e.g. an anniversary
# A year on its own, with zero month and day values
# A year and month value, with a zero day, e.g. a credit card expiration
# is relative to the Proleptic Gregorian Calendar. This can represent: A full
# date, with non-zero year, month and day values A month and day value, with a
# zero year, e.g. an anniversary A year on its own, with zero month and day
# values A year and month value, with a zero day, e.g. a credit card expiration
# dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp.
class Date
include Google::Apis::Core::Hashable
@ -1018,11 +1020,9 @@ module Google
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for Empty is empty JSON object ``.
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# Empty is empty JSON object ``.
class Empty
include Google::Apis::Core::Hashable
@ -1248,11 +1248,10 @@ module Google
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# A full date, with non-zero year, month and day values
# A month and day value, with a zero year, e.g. an anniversary
# A year on its own, with zero month and day values
# A year and month value, with a zero day, e.g. a credit card expiration
# is relative to the Proleptic Gregorian Calendar. This can represent: A full
# date, with non-zero year, month and day values A month and day value, with a
# zero year, e.g. an anniversary A year on its own, with zero month and day
# values A year and month value, with a zero day, e.g. a credit card expiration
# dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp.
# Corresponds to the JSON property `endDate`
# @return [Google::Apis::AndroidmanagementV1::Date]
@ -1260,11 +1259,10 @@ module Google
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# A full date, with non-zero year, month and day values
# A month and day value, with a zero year, e.g. an anniversary
# A year on its own, with zero month and day values
# A year and month value, with a zero day, e.g. a credit card expiration
# is relative to the Proleptic Gregorian Calendar. This can represent: A full
# date, with non-zero year, month and day values A month and day value, with a
# zero year, e.g. an anniversary A year on its own, with zero month and day
# values A year and month value, with a zero day, e.g. a credit card expiration
# dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp.
# Corresponds to the JSON property `startDate`
# @return [Google::Apis::AndroidmanagementV1::Date]
@ -1669,8 +1667,8 @@ module Google
class ManagedConfigurationTemplate
include Google::Apis::Core::Hashable
# Optional, a map containing <key, value> configuration variables defined for
# the configuration.
# Optional, a map containing configuration variables defined for the
# configuration.
# Corresponds to the JSON property `configurationVariables`
# @return [Hash<String,String>]
attr_accessor :configuration_variables
@ -1884,8 +1882,8 @@ module Google
# compliance, this specifies the full path to the offending field. The path is
# formatted in the same way the policy JSON field would be referenced in
# JavaScript, that is: 1) For object-typed fields, the field name is followed by
# a dot then by a subfield name. 2) For array-typed fields, the field name is
# followed by the array index enclosed in brackets. For example, to indicate a
# a dot then by a subfield name. 2) For array-typed fields, the field name is
# followed by the array index enclosed in brackets. For example, to indicate a
# problem with the url field in the externalData field in the 3rd application,
# the path would be applications[2].externalData.url
# Corresponds to the JSON property `fieldPath`
@ -1909,7 +1907,7 @@ module Google
attr_accessor :package_name
# The name of the policy setting. This is the JSON field name of a top-level
# Policy field.
# Policy field.
# Corresponds to the JSON property `settingName`
# @return [String]
attr_accessor :setting_name
@ -3098,13 +3096,12 @@ module Google
include Google::Apis::Core::Hashable
# Controls whether personal usage is allowed on a device provisioned with this
# enrollment token.For company-owned devices:
# Enabling personal usage allows the user to set up a work profile on the device.
# Disabling personal usage requires the user provision the device as a fully
# managed device.For personally-owned devices:
# Enabling personal usage allows the user to set up a work profile on the device.
# Disabling personal usage will prevent the device from provisioning. Personal
# usage cannot be disabled on personally-owned device.
# enrollment token.For company-owned devices: Enabling personal usage allows the
# user to set up a work profile on the device. Disabling personal usage requires
# the user provision the device as a fully managed device.For personally-owned
# devices: Enabling personal usage allows the user to set up a work profile on
# the device. Disabling personal usage will prevent the device from provisioning.
# Personal usage cannot be disabled on personally-owned device.
# Corresponds to the JSON property `allowPersonalUsage`
# @return [String]
attr_accessor :allow_personal_usage
@ -3125,9 +3122,9 @@ module Google
# Sign-in URL for authentication when device is provisioned with a sign-in
# enrollment token. The sign-in endpoint should finish authentication flow with
# a URL in the form of https://enterprise.google.com/android/enroll?et=<token>
# for a successful login, or https://enterprise.google.com/android/enroll/
# invalid for a failed login.
# a URL in the form of https://enterprise.google.com/android/enroll?et= for a
# successful login, or https://enterprise.google.com/android/enroll/invalid for
# a failed login.
# Corresponds to the JSON property `signinUrl`
# @return [String]
attr_accessor :signin_url
@ -3482,9 +3479,9 @@ module Google
# @return [String]
attr_accessor :default_message
# A map containing <locale, message> pairs, where locale is a well-formed BCP 47
# language (https://www.w3.org/International/articles/language-tags/) code, such
# as en-US, es-ES, or fr.
# A map containing pairs, where locale is a well-formed BCP 47 language (https://
# www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES,
# or fr.
# Corresponds to the JSON property `localizedMessages`
# @return [Hash<String,String>]
attr_accessor :localized_messages
@ -3559,9 +3556,9 @@ module Google
include Google::Apis::Core::Hashable
# The actual bytes of the image in a base64url encoded string (c.f. RFC4648,
# section 5 "Base 64 Encoding with URL and Filename Safe Alphabet"). <ul> <li>
# The image type can be png or jpg. <li>The image should ideally be square. <li>
# The image should ideally have a size of 512x512. </ul>
# section 5 "Base 64 Encoding with URL and Filename Safe Alphabet"). - The image
# type can be png or jpg. - The image should ideally be square. - The image
# should ideally have a size of 512x512.
# Corresponds to the JSON property `imageData`
# @return [String]
attr_accessor :image_data
@ -3582,10 +3579,10 @@ module Google
# The features to enable. Use this if you want to control exactly which feature(
# s) will be activated; leave empty to allow all features.Restrictions / things
# to note: <ul> <li> If no features are listed here, all features are enabled —
# this is the default behavior where you give access to all features to your
# admins. <li> This must not contain any FEATURE_UNSPECIFIED values. <li>
# Repeated values are ignored </ul>
# to note: - If no features are listed here, all features are enabled — this is
# the default behavior where you give access to all features to your admins. -
# This must not contain any FEATURE_UNSPECIFIED values. - Repeated values are
# ignored
# Corresponds to the JSON property `enabledFeatures`
# @return [Array<String>]
attr_accessor :enabled_features

View File

@ -489,6 +489,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accessible_track_ids, as: 'accessibleTrackIds'
property :connected_work_and_personal_app, as: 'connectedWorkAndPersonalApp'
property :default_permission_policy, as: 'defaultPermissionPolicy'
collection :delegated_scopes, as: 'delegatedScopes'
property :disabled, as: 'disabled'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/error-reporting/
module ClouderrorreportingV1beta1
VERSION = 'V1beta1'
REVISION = '20200723'
REVISION = '20200806'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -35,43 +35,39 @@ module Google
end
end
# A description of the context in which an error occurred.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# A description of the context in which an error occurred. This data should be
# provided by the application when reporting an error, unless the error report
# has been generated automatically from Google App Engine logs.
class ErrorContext
include Google::Apis::Core::Hashable
# HTTP request data that is related to a reported error.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# HTTP request data that is related to a reported error. This data should be
# provided by the application when reporting an error, unless the error report
# has been generated automatically from Google App Engine logs.
# Corresponds to the JSON property `httpRequest`
# @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext]
attr_accessor :http_request
# Indicates a location in the source code of the service for which errors are
# reported. `functionName` must be provided by the application when reporting
# an error, unless the error report contains a `message` with a supported
# exception stack trace. All fields are optional for the later case.
# reported. `functionName` must be provided by the application when reporting an
# error, unless the error report contains a `message` with a supported exception
# stack trace. All fields are optional for the later case.
# Corresponds to the JSON property `reportLocation`
# @return [Google::Apis::ClouderrorreportingV1beta1::SourceLocation]
attr_accessor :report_location
# Source code that was used to build the executable which has
# caused the given error message.
# Source code that was used to build the executable which has caused the given
# error message.
# Corresponds to the JSON property `sourceReferences`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::SourceReference>]
attr_accessor :source_references
# The user who caused or was affected by the crash.
# This can be a user ID, an email address, or an arbitrary token that
# uniquely identifies the user.
# When sending an error report, leave this field empty if the user was not
# logged in. In this case the
# Error Reporting system will use other data, such as remote IP address, to
# distinguish affected users. See `affected_users_count` in
# `ErrorGroupStats`.
# The user who caused or was affected by the crash. This can be a user ID, an
# email address, or an arbitrary token that uniquely identifies the user. When
# sending an error report, leave this field empty if the user was not logged in.
# In this case the Error Reporting system will use other data, such as remote IP
# address, to distinguish affected users. See `affected_users_count` in `
# ErrorGroupStats`.
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
@ -93,17 +89,16 @@ module Google
class ErrorEvent
include Google::Apis::Core::Hashable
# A description of the context in which an error occurred.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# A description of the context in which an error occurred. This data should be
# provided by the application when reporting an error, unless the error report
# has been generated automatically from Google App Engine logs.
# Corresponds to the JSON property `context`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext]
attr_accessor :context
# Time when the event occurred as provided in the error report.
# If the report did not contain a timestamp, the time the error was received
# by the Error Reporting system is used.
# Time when the event occurred as provided in the error report. If the report
# did not contain a timestamp, the time the error was received by the Error
# Reporting system is used.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@ -113,8 +108,8 @@ module Google
# @return [String]
attr_accessor :message
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
# Describes a running service that sends errors. Its version changes over time
# and multiple versions can run in parallel.
# Corresponds to the JSON property `serviceContext`
# @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
attr_accessor :service_context
@ -136,20 +131,20 @@ module Google
class ErrorGroup
include Google::Apis::Core::Hashable
# Group IDs are unique for a given project. If the same kind of error
# occurs in different service contexts, it will receive the same group ID.
# Group IDs are unique for a given project. If the same kind of error occurs in
# different service contexts, it will receive the same group ID.
# Corresponds to the JSON property `groupId`
# @return [String]
attr_accessor :group_id
# The group resource name.
# Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
# The group resource name. Example: projects/my-project-123/groups/
# CNSgkpnppqKCUw
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Error group's resolution status.
# An unspecified resolution status will be interpreted as OPEN
# Error group's resolution status. An unspecified resolution status will be
# interpreted as OPEN
# Corresponds to the JSON property `resolutionStatus`
# @return [String]
attr_accessor :resolution_status
@ -172,43 +167,39 @@ module Google
end
end
# Data extracted for a specific group based on certain filter criteria,
# such as a given time period and/or service filter.
# Data extracted for a specific group based on certain filter criteria, such as
# a given time period and/or service filter.
class ErrorGroupStats
include Google::Apis::Core::Hashable
# Service contexts with a non-zero error count for the given filter
# criteria. This list can be truncated if multiple services are affected.
# Refer to `num_affected_services` for the total count.
# Service contexts with a non-zero error count for the given filter criteria.
# This list can be truncated if multiple services are affected. Refer to `
# num_affected_services` for the total count.
# Corresponds to the JSON property `affectedServices`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ServiceContext>]
attr_accessor :affected_services
# Approximate number of affected users in the given group that
# match the filter criteria.
# Users are distinguished by data in the `ErrorContext` of the
# individual error events, such as their login name or their remote
# IP address in case of HTTP requests.
# The number of affected users can be zero even if the number of
# errors is non-zero if no data was provided from which the
# affected user could be deduced.
# Users are counted based on data in the request
# context that was provided in the error report. If more users are
# implicitly affected, such as due to a crash of the whole service,
# this is not reflected here.
# Approximate number of affected users in the given group that match the filter
# criteria. Users are distinguished by data in the `ErrorContext` of the
# individual error events, such as their login name or their remote IP address
# in case of HTTP requests. The number of affected users can be zero even if the
# number of errors is non-zero if no data was provided from which the affected
# user could be deduced. Users are counted based on data in the request context
# that was provided in the error report. If more users are implicitly affected,
# such as due to a crash of the whole service, this is not reflected here.
# Corresponds to the JSON property `affectedUsersCount`
# @return [Fixnum]
attr_accessor :affected_users_count
# Approximate total number of events in the given group that match
# the filter criteria.
# Approximate total number of events in the given group that match the filter
# criteria.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Approximate first occurrence that was ever seen for this group
# and which matches the given filter criteria, ignoring the
# time_range that was specified in the request.
# Approximate first occurrence that was ever seen for this group and which
# matches the given filter criteria, ignoring the time_range that was specified
# in the request.
# Corresponds to the JSON property `firstSeenTime`
# @return [String]
attr_accessor :first_seen_time
@ -218,15 +209,15 @@ module Google
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
attr_accessor :group
# Approximate last occurrence that was ever seen for this group and
# which matches the given filter criteria, ignoring the time_range
# that was specified in the request.
# Approximate last occurrence that was ever seen for this group and which
# matches the given filter criteria, ignoring the time_range that was specified
# in the request.
# Corresponds to the JSON property `lastSeenTime`
# @return [String]
attr_accessor :last_seen_time
# The total number of services with a non-zero error count for the given
# filter criteria.
# The total number of services with a non-zero error count for the given filter
# criteria.
# Corresponds to the JSON property `numAffectedServices`
# @return [Fixnum]
attr_accessor :num_affected_services
@ -236,11 +227,9 @@ module Google
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent]
attr_accessor :representative
# Approximate number of occurrences over time.
# Timed counts returned by ListGroups are guaranteed to be:
# - Inside the requested time interval
# - Non-overlapping, and
# - Ordered by ascending time.
# Approximate number of occurrences over time. Timed counts returned by
# ListGroups are guaranteed to be: - Inside the requested time interval - Non-
# overlapping, and - Ordered by ascending time.
# Corresponds to the JSON property `timedCounts`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TimedCount>]
attr_accessor :timed_counts
@ -263,10 +252,9 @@ module Google
end
end
# HTTP request data that is related to a reported error.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# HTTP request data that is related to a reported error. This data should be
# provided by the application when reporting an error, unless the error report
# has been generated automatically from Google App Engine logs.
class HttpRequestContext
include Google::Apis::Core::Hashable
@ -280,10 +268,9 @@ module Google
# @return [String]
attr_accessor :referrer
# The IP address from which the request originated.
# This can be IPv4, IPv6, or a token which is derived from the
# IP address, depending on the data that has been provided
# in the error report.
# The IP address from which the request originated. This can be IPv4, IPv6, or a
# token which is derived from the IP address, depending on the data that has
# been provided in the error report.
# Corresponds to the JSON property `remoteIp`
# @return [String]
attr_accessor :remote_ip
@ -327,9 +314,8 @@ module Google
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorEvent>]
attr_accessor :error_events
# If non-empty, more results are available.
# Pass this token, along with the same query parameters as the first
# request, to view the next page of results.
# If non-empty, more results are available. Pass this token, along with the same
# query parameters as the first request, to view the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -360,17 +346,16 @@ module Google
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>]
attr_accessor :error_group_stats
# If non-empty, more results are available.
# Pass this token, along with the same query parameters as the first
# request, to view the next page of results.
# If non-empty, more results are available. Pass this token, along with the same
# query parameters as the first request, to view the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The timestamp specifies the start time to which the request was restricted.
# The start time is set based on the requested time range. It may be adjusted
# to a later time if a project has exceeded the storage quota and older data
# has been deleted.
# The start time is set based on the requested time range. It may be adjusted to
# a later time if a project has exceeded the storage quota and older data has
# been deleted.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
@ -387,8 +372,8 @@ module Google
end
end
# Response for reporting an individual error event.
# Data may be added to this message in the future.
# Response for reporting an individual error event. Data may be added to this
# message in the future.
class ReportErrorEventResponse
include Google::Apis::Core::Hashable
@ -405,54 +390,43 @@ module Google
class ReportedErrorEvent
include Google::Apis::Core::Hashable
# A description of the context in which an error occurred.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# A description of the context in which an error occurred. This data should be
# provided by the application when reporting an error, unless the error report
# has been generated automatically from Google App Engine logs.
# Corresponds to the JSON property `context`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext]
attr_accessor :context
# Optional. Time when the event occurred.
# If not provided, the time when the event was received by the
# Error Reporting system will be used.
# Optional. Time when the event occurred. If not provided, the time when the
# event was received by the Error Reporting system will be used.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# Required. The error message.
# If no `context.reportLocation` is provided, the message must contain a
# header (typically consisting of the exception type name and an error
# message) and an exception stack trace in one of the supported programming
# languages and formats.
# Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
# Supported stack trace formats are:
# * **Java**: Must be the return value of
# [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/
# lang/Throwable.html#printStackTrace%28%29).
# * **Python**: Must be the return value of
# [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#
# traceback.format_exc).
# * **JavaScript**: Must be the value of
# [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
# by V8.
# * **Ruby**: Must contain frames returned by
# [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-
# i-backtrace).
# * **C#**: Must be the return value of
# [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.
# exception.tostring.aspx).
# * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
# and contain the result of
# [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).
# * **Go**: Must be the return value of
# [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
# Required. The error message. If no `context.reportLocation` is provided, the
# message must contain a header (typically consisting of the exception type name
# and an error message) and an exception stack trace in one of the supported
# programming languages and formats. Supported languages are Java, Python,
# JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are: * **Java*
# *: Must be the return value of [`Throwable.printStackTrace()`](https://docs.
# oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29). *
# **Python**: Must be the return value of [`traceback.format_exc()`](https://
# docs.python.org/2/library/traceback.html#traceback.format_exc). * **JavaScript*
# *: Must be the value of [`error.stack`](https://github.com/v8/v8/wiki/Stack-
# Trace-API) as returned by V8. * **Ruby**: Must contain frames returned by [`
# Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-
# backtrace). * **C#**: Must be the return value of [`Exception.ToString()`](
# https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). * **
# PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` and
# contain the result of [`(string)$exception`](http://php.net/manual/en/
# exception.tostring.php). * **Go**: Must be the return value of [`runtime.Stack(
# )`](https://golang.org/pkg/runtime/debug/#Stack).
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
# Describes a running service that sends errors. Its version changes over time
# and multiple versions can run in parallel.
# Corresponds to the JSON property `serviceContext`
# @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
attr_accessor :service_context
@ -470,33 +444,31 @@ module Google
end
end
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
# Describes a running service that sends errors. Its version changes over time
# and multiple versions can run in parallel.
class ServiceContext
include Google::Apis::Core::Hashable
# Type of the MonitoredResource. List of possible values:
# https://cloud.google.com/monitoring/api/resources
# Value is set automatically for incoming errors and must not be set when
# reporting errors.
# Type of the MonitoredResource. List of possible values: https://cloud.google.
# com/monitoring/api/resources Value is set automatically for incoming errors
# and must not be set when reporting errors.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
# An identifier of the service, such as the name of the
# executable, job, or Google App Engine service name. This field is expected
# to have a low number of values that are relatively stable over time, as
# opposed to `version`, which can be changed whenever new code is deployed.
# Contains the service name for error reports extracted from Google
# App Engine logs or `default` if the App Engine default service is used.
# An identifier of the service, such as the name of the executable, job, or
# Google App Engine service name. This field is expected to have a low number of
# values that are relatively stable over time, as opposed to `version`, which
# can be changed whenever new code is deployed. Contains the service name for
# error reports extracted from Google App Engine logs or `default` if the App
# Engine default service is used.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# Represents the source code version that the developer provided,
# which could represent a version label or a Git SHA-1 hash, for example.
# For App Engine standard environment, the version is set to the version of
# the app.
# Represents the source code version that the developer provided, which could
# represent a version label or a Git SHA-1 hash, for example. For App Engine
# standard environment, the version is set to the version of the app.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
@ -514,21 +486,21 @@ module Google
end
# Indicates a location in the source code of the service for which errors are
# reported. `functionName` must be provided by the application when reporting
# an error, unless the error report contains a `message` with a supported
# exception stack trace. All fields are optional for the later case.
# reported. `functionName` must be provided by the application when reporting an
# error, unless the error report contains a `message` with a supported exception
# stack trace. All fields are optional for the later case.
class SourceLocation
include Google::Apis::Core::Hashable
# The source code filename, which can include a truncated relative
# path, or a full path from a production machine.
# The source code filename, which can include a truncated relative path, or a
# full path from a production machine.
# Corresponds to the JSON property `filePath`
# @return [String]
attr_accessor :file_path
# Human-readable name of a function or method.
# The value can include optional context like the class or package name.
# For example, `my.package.MyClass.method` in case of Java.
# Human-readable name of a function or method. The value can include optional
# context like the class or package name. For example, `my.package.MyClass.
# method` in case of Java.
# Corresponds to the JSON property `functionName`
# @return [String]
attr_accessor :function_name
@ -555,14 +527,14 @@ module Google
class SourceReference
include Google::Apis::Core::Hashable
# Optional. A URI string identifying the repository.
# Example: "https://github.com/GoogleCloudPlatform/kubernetes.git"
# Optional. A URI string identifying the repository. Example: "https://github.
# com/GoogleCloudPlatform/kubernetes.git"
# Corresponds to the JSON property `repository`
# @return [String]
attr_accessor :repository
# The canonical and persistent identifier of the deployed revision.
# Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b"
# The canonical and persistent identifier of the deployed revision. Example (git)
# : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
# Corresponds to the JSON property `revisionId`
# @return [String]
attr_accessor :revision_id
@ -578,9 +550,8 @@ module Google
end
end
# The number of errors in a given time period.
# All numbers are approximate since the error events are sampled
# before counting them.
# The number of errors in a given time period. All numbers are approximate since
# the error events are sampled before counting them.
class TimedCount
include Google::Apis::Core::Hashable
@ -615,8 +586,8 @@ module Google
class TrackingIssue
include Google::Apis::Core::Hashable
# A URL pointing to a related entry in an issue tracking system.
# Example: `https://github.com/user/project/issues/4`
# A URL pointing to a related entry in an issue tracking system. Example: `https:
# //github.com/user/project/issues/4`
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url

View File

@ -50,11 +50,10 @@ module Google
# Deletes all error events of a given project.
# @param [String] project_name
# Required. The resource name of the Google Cloud Platform project. Written
# as `projects/`projectID``, where ``projectID`` is the
# [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`.
# Required. The resource name of the Google Cloud Platform project. Written as `
# projects/`projectID``, where ``projectID`` is the [Google Cloud Platform
# project ID](https://support.google.com/cloud/answer/6158840). Example: `
# projects/my-project-123`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -84,11 +83,10 @@ module Google
# Lists the specified events.
# @param [String] project_name
# Required. The resource name of the Google Cloud Platform project. Written
# as `projects/`projectID``, where ``projectID`` is the
# [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`.
# Required. The resource name of the Google Cloud Platform project. Written as `
# projects/`projectID``, where ``projectID`` is the [Google Cloud Platform
# project ID](https://support.google.com/cloud/answer/6158840). Example: `
# projects/my-project-123`.
# @param [String] group_id
# Required. The group for which events shall be returned.
# @param [Fixnum] page_size
@ -96,17 +94,14 @@ module Google
# @param [String] page_token
# Optional. A `next_page_token` provided by a previous response.
# @param [String] service_filter_resource_type
# Optional. The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.resource_type).
# Optional. The exact value to match against [`ServiceContext.resource_type`](/
# error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
# @param [String] service_filter_service
# Optional. The exact value to match against
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.service).
# Optional. The exact value to match against [`ServiceContext.service`](/error-
# reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
# @param [String] service_filter_version
# Optional. The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version).
# Optional. The exact value to match against [`ServiceContext.version`](/error-
# reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
# @param [String] time_range_period
# Restricts the query to the specified time range.
# @param [String] fields
@ -143,20 +138,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Report an individual error event.
# This endpoint accepts **either** an OAuth token,
# **or** an [API key](https://support.google.com/cloud/answer/6158862)
# for authentication. To use an API key, append it to the URL as the value of
# a `key` parameter. For example:
# `POST
# https://clouderrorreporting.googleapis.com/v1beta1/`projectName`/events:report?
# key=123ABC456`
# Report an individual error event. This endpoint accepts **either** an OAuth
# token, **or** an [API key](https://support.google.com/cloud/answer/6158862)
# for authentication. To use an API key, append it to the URL as the value of a `
# key` parameter. For example: `POST https://clouderrorreporting.googleapis.com/
# v1beta1/`projectName`/events:report?key=123ABC456`
# @param [String] project_name
# Required. The resource name of the Google Cloud Platform project. Written
# as `projects/`projectId``, where ``projectId`` is the
# [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840).
# Example: // `projects/my-project-123`.
# Required. The resource name of the Google Cloud Platform project. Written as `
# projects/`projectId``, where ``projectId`` is the [Google Cloud Platform
# project ID](https://support.google.com/cloud/answer/6158840). Example: // `
# projects/my-project-123`.
# @param [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -189,46 +180,41 @@ module Google
# Lists the specified groups.
# @param [String] project_name
# Required. The resource name of the Google Cloud Platform project. Written
# as `projects/`projectID``, where ``projectID`` is the
# [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`.
# Required. The resource name of the Google Cloud Platform project. Written as `
# projects/`projectID``, where ``projectID`` is the [Google Cloud Platform
# project ID](https://support.google.com/cloud/answer/6158840). Example: `
# projects/my-project-123`.
# @param [String] alignment
# Optional. The alignment of the timed counts to be returned.
# Default is `ALIGNMENT_EQUAL_AT_END`.
# Optional. The alignment of the timed counts to be returned. Default is `
# ALIGNMENT_EQUAL_AT_END`.
# @param [String] alignment_time
# Optional. Time where the timed counts shall be aligned if rounded
# alignment is chosen. Default is 00:00 UTC.
# Optional. Time where the timed counts shall be aligned if rounded alignment is
# chosen. Default is 00:00 UTC.
# @param [Array<String>, String] group_id
# Optional. List all <code>ErrorGroupStats</code> with these IDs.
# Optional. List all ErrorGroupStats with these IDs.
# @param [String] order
# Optional. The sort order in which the results are returned.
# Default is `COUNT_DESC`.
# Optional. The sort order in which the results are returned. Default is `
# COUNT_DESC`.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return per response.
# Default is 20.
# Optional. The maximum number of results to return per response. Default is 20.
# @param [String] page_token
# Optional. A `next_page_token` provided by a previous response. To view
# additional results, pass this token along with the identical query
# parameters as the first request.
# additional results, pass this token along with the identical query parameters
# as the first request.
# @param [String] service_filter_resource_type
# Optional. The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.resource_type).
# Optional. The exact value to match against [`ServiceContext.resource_type`](/
# error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
# @param [String] service_filter_service
# Optional. The exact value to match against
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.service).
# Optional. The exact value to match against [`ServiceContext.service`](/error-
# reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
# @param [String] service_filter_version
# Optional. The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version).
# Optional. The exact value to match against [`ServiceContext.version`](/error-
# reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
# @param [String] time_range_period
# Restricts the query to the specified time range.
# @param [String] timed_count_duration
# Optional. The preferred duration for a single returned `TimedCount`.
# If not set, no timed counts are returned.
# Optional. The preferred duration for a single returned `TimedCount`. If not
# set, no timed counts are returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -269,12 +255,11 @@ module Google
# Get the specified group.
# @param [String] group_name
# Required. The group resource name. Written as
# `projects/`projectID`/groups/`group_name``. Call
# [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/
# v1beta1/projects.groupStats/list)
# to return a list of groups belonging to this project.
# Example: `projects/my-project-123/groups/my-group`
# Required. The group resource name. Written as `projects/`projectID`/groups/`
# group_name``. Call [`groupStats.list`](https://cloud.google.com/error-
# reporting/reference/rest/v1beta1/projects.groupStats/list) to return a list of
# groups belonging to this project. Example: `projects/my-project-123/groups/my-
# group`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -302,11 +287,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Replace the data for the specified group.
# Fails if the group does not exist.
# Replace the data for the specified group. Fails if the group does not exist.
# @param [String] name
# The group resource name.
# Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
# The group resource name. Example: projects/my-project-123/groups/
# CNSgkpnppqKCUw
# @param [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup] error_group_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -47,23 +47,19 @@ module Google
@batch_path = 'batch'
end
# Applies one or more updates to the document.
# Each request is validated before
# being applied. If any request is not valid, then the entire request will
# fail and nothing will be applied.
# Some requests have replies to
# give you some information about how they are applied. Other requests do
# not need to return information; these each return an empty reply.
# The order of replies matches that of the requests.
# For example, suppose you call batchUpdate with four updates, and only the
# third one returns information. The response would have two empty replies,
# the reply to the third request, and another empty reply, in that order.
# Because other users may be editing the document, the document
# might not exactly reflect your changes: your changes may
# be altered with respect to collaborator changes. If there are no
# collaborators, the document should reflect your changes. In any case,
# the updates in your request are guaranteed to be applied together
# atomically.
# Applies one or more updates to the document. Each request is validated before
# being applied. If any request is not valid, then the entire request will fail
# and nothing will be applied. Some requests have replies to give you some
# information about how they are applied. Other requests do not need to return
# information; these each return an empty reply. The order of replies matches
# that of the requests. For example, suppose you call batchUpdate with four
# updates, and only the third one returns information. The response would have
# two empty replies, the reply to the third request, and another empty reply, in
# that order. Because other users may be editing the document, the document
# might not exactly reflect your changes: your changes may be altered with
# respect to collaborator changes. If there are no collaborators, the document
# should reflect your changes. In any case, the updates in your request are
# guaranteed to be applied together atomically.
# @param [String] document_id
# The ID of the document to update.
# @param [Google::Apis::DocsV1::BatchUpdateDocumentRequest] batch_update_document_request_object
@ -96,9 +92,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a blank document using the title given in the request. Other fields
# in the request, including any provided content, are ignored.
# Returns the created document.
# Creates a blank document using the title given in the request. Other fields in
# the request, including any provided content, are ignored. Returns the created
# document.
# @param [Google::Apis::DocsV1::Document] document_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -134,8 +130,7 @@ module Google
# @param [String] suggestions_view_mode
# The suggestions view mode to apply to the document. This allows viewing the
# document with all suggestions inline, accepted or rejected. If one is not
# specified, DEFAULT_FOR_CURRENT_ACCESS is
# used.
# specified, DEFAULT_FOR_CURRENT_ACCESS is used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/search/apis/indexing-api/
module IndexingV3
VERSION = 'V3'
REVISION = '20200214'
REVISION = '20200804'
# Submit data to Google for indexing
AUTH_INDEXING = 'https://www.googleapis.com/auth/indexing'

View File

@ -42,13 +42,13 @@ module Google
end
end
# `UrlNotification` is the resource used in all Indexing API calls.
# It describes one event in the life cycle of a Web Document.
# `UrlNotification` is the resource used in all Indexing API calls. It describes
# one event in the life cycle of a Web Document.
class UrlNotification
include Google::Apis::Core::Hashable
# Creation timestamp for this notification.
# Users should _not_ specify it, the field is ignored at the request time.
# Creation timestamp for this notification. Users should _not_ specify it, the
# field is ignored at the request time.
# Corresponds to the JSON property `notifyTime`
# @return [String]
attr_accessor :notify_time
@ -58,9 +58,9 @@ module Google
# @return [String]
attr_accessor :type
# The object of this notification. The URL must be owned by the publisher
# of this notification and, in case of `URL_UPDATED` notifications, it _must_
# be crawlable by Google.
# The object of this notification. The URL must be owned by the publisher of
# this notification and, in case of `URL_UPDATED` notifications, it _must_ be
# crawlable by Google.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -82,14 +82,14 @@ module Google
class UrlNotificationMetadata
include Google::Apis::Core::Hashable
# `UrlNotification` is the resource used in all Indexing API calls.
# It describes one event in the life cycle of a Web Document.
# `UrlNotification` is the resource used in all Indexing API calls. It describes
# one event in the life cycle of a Web Document.
# Corresponds to the JSON property `latestRemove`
# @return [Google::Apis::IndexingV3::UrlNotification]
attr_accessor :latest_remove
# `UrlNotification` is the resource used in all Indexing API calls.
# It describes one event in the life cycle of a Web Document.
# `UrlNotification` is the resource used in all Indexing API calls. It describes
# one event in the life cycle of a Web Document.
# Corresponds to the JSON property `latestUpdate`
# @return [Google::Apis::IndexingV3::UrlNotification]
attr_accessor :latest_update

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/manufacturers/
module ManufacturersV1
VERSION = 'V1'
REVISION = '20200317'
REVISION = '20200805'
# Manage your product listings for Google Manufacturer Center
AUTH_MANUFACTURERCENTER = 'https://www.googleapis.com/auth/manufacturercenter'

View File

@ -22,55 +22,55 @@ module Google
module Apis
module ManufacturersV1
# Attributes of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116.
# Attributes of the product. For more information, see https://support.google.
# com/manufacturers/answer/6124116.
class Attributes
include Google::Apis::Core::Hashable
# The additional images of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#addlimage.
# The additional images of the product. For more information, see https://
# support.google.com/manufacturers/answer/6124116#addlimage.
# Corresponds to the JSON property `additionalImageLink`
# @return [Array<Google::Apis::ManufacturersV1::Image>]
attr_accessor :additional_image_link
# The target age group of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#agegroup.
# The target age group of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#agegroup.
# Corresponds to the JSON property `ageGroup`
# @return [String]
attr_accessor :age_group
# The brand name of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#brand.
# The brand name of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#brand.
# Corresponds to the JSON property `brand`
# @return [String]
attr_accessor :brand
# The capacity of a product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#capacity.
# The capacity of a product. For more information, see https://support.google.
# com/manufacturers/answer/6124116#capacity.
# Corresponds to the JSON property `capacity`
# @return [Google::Apis::ManufacturersV1::Capacity]
attr_accessor :capacity
# The color of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#color.
# The color of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#color.
# Corresponds to the JSON property `color`
# @return [String]
attr_accessor :color
# The number of products in a single package. For more information, see
# https://support.google.com/manufacturers/answer/6124116#count.
# The number of products in a single package. For more information, see https://
# support.google.com/manufacturers/answer/6124116#count.
# Corresponds to the JSON property `count`
# @return [Google::Apis::ManufacturersV1::Count]
attr_accessor :count
# The description of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#description.
# The description of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#description.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The disclosure date of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#disclosure.
# The disclosure date of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#disclosure.
# Corresponds to the JSON property `disclosureDate`
# @return [String]
attr_accessor :disclosure_date
@ -80,32 +80,32 @@ module Google
# @return [Array<String>]
attr_accessor :excluded_destination
# The rich format description of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#featuredesc.
# The rich format description of the product. For more information, see https://
# support.google.com/manufacturers/answer/6124116#featuredesc.
# Corresponds to the JSON property `featureDescription`
# @return [Array<Google::Apis::ManufacturersV1::FeatureDescription>]
attr_accessor :feature_description
# The flavor of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#flavor.
# The flavor of the product. For more information, see https://support.google.
# com/manufacturers/answer/6124116#flavor.
# Corresponds to the JSON property `flavor`
# @return [String]
attr_accessor :flavor
# The format of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#format.
# The format of the product. For more information, see https://support.google.
# com/manufacturers/answer/6124116#format.
# Corresponds to the JSON property `format`
# @return [String]
attr_accessor :format
# The target gender of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#gender.
# The target gender of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#gender.
# Corresponds to the JSON property `gender`
# @return [String]
attr_accessor :gender
# The Global Trade Item Number (GTIN) of the product. For more information,
# see https://support.google.com/manufacturers/answer/6124116#gtin.
# The Global Trade Item Number (GTIN) of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#gtin.
# Corresponds to the JSON property `gtin`
# @return [Array<String>]
attr_accessor :gtin
@ -120,93 +120,92 @@ module Google
# @return [Array<String>]
attr_accessor :included_destination
# The item group id of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#itemgroupid.
# The item group id of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#itemgroupid.
# Corresponds to the JSON property `itemGroupId`
# @return [String]
attr_accessor :item_group_id
# The material of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#material.
# The material of the product. For more information, see https://support.google.
# com/manufacturers/answer/6124116#material.
# Corresponds to the JSON property `material`
# @return [String]
attr_accessor :material
# The Manufacturer Part Number (MPN) of the product. For more information,
# see https://support.google.com/manufacturers/answer/6124116#mpn.
# The Manufacturer Part Number (MPN) of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#mpn.
# Corresponds to the JSON property `mpn`
# @return [String]
attr_accessor :mpn
# The pattern of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#pattern.
# The pattern of the product. For more information, see https://support.google.
# com/manufacturers/answer/6124116#pattern.
# Corresponds to the JSON property `pattern`
# @return [String]
attr_accessor :pattern
# The details of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#productdetail.
# The details of the product. For more information, see https://support.google.
# com/manufacturers/answer/6124116#productdetail.
# Corresponds to the JSON property `productDetail`
# @return [Array<Google::Apis::ManufacturersV1::ProductDetail>]
attr_accessor :product_detail
# The name of the group of products related to the product. For more
# information, see
# https://support.google.com/manufacturers/answer/6124116#productline.
# The name of the group of products related to the product. For more information,
# see https://support.google.com/manufacturers/answer/6124116#productline.
# Corresponds to the JSON property `productLine`
# @return [String]
attr_accessor :product_line
# The canonical name of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#productname.
# The canonical name of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#productname.
# Corresponds to the JSON property `productName`
# @return [String]
attr_accessor :product_name
# The URL of the detail page of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#productpage.
# The URL of the detail page of the product. For more information, see https://
# support.google.com/manufacturers/answer/6124116#productpage.
# Corresponds to the JSON property `productPageUrl`
# @return [String]
attr_accessor :product_page_url
# The type or category of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#producttype.
# The type or category of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#producttype.
# Corresponds to the JSON property `productType`
# @return [Array<String>]
attr_accessor :product_type
# The release date of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#release.
# The release date of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#release.
# Corresponds to the JSON property `releaseDate`
# @return [String]
attr_accessor :release_date
# Rich product content. For more information, see
# https://support.google.com/manufacturers/answer/9389865
# Rich product content. For more information, see https://support.google.com/
# manufacturers/answer/9389865
# Corresponds to the JSON property `richProductContent`
# @return [Array<String>]
attr_accessor :rich_product_content
# The scent of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#scent.
# The scent of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#scent.
# Corresponds to the JSON property `scent`
# @return [String]
attr_accessor :scent
# The size of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#size.
# The size of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#size.
# Corresponds to the JSON property `size`
# @return [String]
attr_accessor :size
# The size system of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#sizesystem.
# The size system of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#sizesystem.
# Corresponds to the JSON property `sizeSystem`
# @return [String]
attr_accessor :size_system
# The size type of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#sizetype.
# The size type of the product. For more information, see https://support.google.
# com/manufacturers/answer/6124116#sizetype.
# Corresponds to the JSON property `sizeType`
# @return [String]
attr_accessor :size_type
@ -216,26 +215,25 @@ module Google
# @return [Google::Apis::ManufacturersV1::Price]
attr_accessor :suggested_retail_price
# The target client id. Should only be used in the accounts of the data
# partners.
# The target client id. Should only be used in the accounts of the data partners.
# Corresponds to the JSON property `targetClientId`
# @return [String]
attr_accessor :target_client_id
# The theme of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#theme.
# The theme of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#theme.
# Corresponds to the JSON property `theme`
# @return [String]
attr_accessor :theme
# The title of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#title.
# The title of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#title.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# The videos of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#video.
# The videos of the product. For more information, see https://support.google.
# com/manufacturers/answer/6124116#video.
# Corresponds to the JSON property `videoLink`
# @return [Array<String>]
attr_accessor :video_link
@ -285,8 +283,8 @@ module Google
end
end
# The capacity of a product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#capacity.
# The capacity of a product. For more information, see https://support.google.
# com/manufacturers/answer/6124116#capacity.
class Capacity
include Google::Apis::Core::Hashable
@ -311,8 +309,8 @@ module Google
end
end
# The number of products in a single package. For more information, see
# https://support.google.com/manufacturers/answer/6124116#count.
# The number of products in a single package. For more information, see https://
# support.google.com/manufacturers/answer/6124116#count.
class Count
include Google::Apis::Core::Hashable
@ -362,13 +360,11 @@ module Google
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
@ -381,8 +377,8 @@ module Google
end
end
# A feature description of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#featuredesc.
# A feature description of the product. For more information, see https://
# support.google.com/manufacturers/answer/6124116#featuredesc.
class FeatureDescription
include Google::Apis::Core::Hashable
@ -424,14 +420,12 @@ module Google
# @return [String]
attr_accessor :image_url
# The status of the image.
# @OutputOnly
# The status of the image. @OutputOnly
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# The type of the image, i.e., crawled or uploaded.
# @OutputOnly
# The type of the image, i.e., crawled or uploaded. @OutputOnly
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -452,9 +446,8 @@ module Google
class Issue
include Google::Apis::Core::Hashable
# If present, the attribute that triggered the issue. For more information
# about attributes, see
# https://support.google.com/manufacturers/answer/6124116.
# If present, the attribute that triggered the issue. For more information about
# attributes, see https://support.google.com/manufacturers/answer/6124116.
# Corresponds to the JSON property `attribute`
# @return [String]
attr_accessor :attribute
@ -489,8 +482,8 @@ module Google
# @return [String]
attr_accessor :title
# The server-generated type of the issue, for example,
# INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc.
# The server-generated type of the issue, for example,
# INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -566,14 +559,14 @@ module Google
class Product
include Google::Apis::Core::Hashable
# Attributes of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116.
# Attributes of the product. For more information, see https://support.google.
# com/manufacturers/answer/6124116.
# Corresponds to the JSON property `attributes`
# @return [Google::Apis::ManufacturersV1::Attributes]
attr_accessor :attributes
# The content language of the product as a two-letter ISO 639-1 language code
# (for example, en).
# The content language of the product as a two-letter ISO 639-1 language code (
# for example, en).
# Corresponds to the JSON property `contentLanguage`
# @return [String]
attr_accessor :content_language
@ -588,32 +581,29 @@ module Google
# @return [Array<Google::Apis::ManufacturersV1::Issue>]
attr_accessor :issues
# Name in the format ``target_country`:`content_language`:`product_id``.
# `target_country` - The target country of the product as a CLDR territory
# code (for example, US).
# `content_language` - The content language of the product as a two-letter
# ISO 639-1 language code (for example, en).
# `product_id` - The ID of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#
# id.
# Name in the format ``target_country`:`content_language`:`product_id``. `
# target_country` - The target country of the product as a CLDR territory code (
# for example, US). `content_language` - The content language of the product as
# a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID
# of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#id.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Parent ID in the format `accounts/`account_id``.
# `account_id` - The ID of the Manufacturer Center account.
# Parent ID in the format `accounts/`account_id``. `account_id` - The ID of the
# Manufacturer Center account.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# The ID of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#id.
# The ID of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#id.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The target country of the product as a CLDR territory code (for example,
# US).
# The target country of the product as a CLDR territory code (for example, US).
# Corresponds to the JSON property `targetCountry`
# @return [String]
attr_accessor :target_country
@ -635,8 +625,8 @@ module Google
end
end
# A product detail of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#productdetail.
# A product detail of the product. For more information, see https://support.
# google.com/manufacturers/answer/6124116#productdetail.
class ProductDetail
include Google::Apis::Core::Hashable

View File

@ -49,17 +49,15 @@ module Google
# Deletes the product from a Manufacturer Center account.
# @param [String] parent
# Parent ID in the format `accounts/`account_id``.
# `account_id` - The ID of the Manufacturer Center account.
# Parent ID in the format `accounts/`account_id``. `account_id` - The ID of the
# Manufacturer Center account.
# @param [String] name
# Name in the format ``target_country`:`content_language`:`product_id``.
# `target_country` - The target country of the product as a CLDR territory
# code (for example, US).
# `content_language` - The content language of the product as a two-letter
# ISO 639-1 language code (for example, en).
# `product_id` - The ID of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#
# id.
# Name in the format ``target_country`:`content_language`:`product_id``. `
# target_country` - The target country of the product as a CLDR territory code (
# for example, US). `content_language` - The content language of the product as
# a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID
# of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -88,27 +86,23 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the product from a Manufacturer Center account, including product
# issues.
# Gets the product from a Manufacturer Center account, including product issues.
# A recently updated product takes around 15 minutes to process. Changes are
# only visible after it has been processed. While some issues may be
# available once the product has been processed, other issues may take days
# to appear.
# only visible after it has been processed. While some issues may be available
# once the product has been processed, other issues may take days to appear.
# @param [String] parent
# Parent ID in the format `accounts/`account_id``.
# `account_id` - The ID of the Manufacturer Center account.
# Parent ID in the format `accounts/`account_id``. `account_id` - The ID of the
# Manufacturer Center account.
# @param [String] name
# Name in the format ``target_country`:`content_language`:`product_id``.
# `target_country` - The target country of the product as a CLDR territory
# code (for example, US).
# `content_language` - The content language of the product as a two-letter
# ISO 639-1 language code (for example, en).
# `product_id` - The ID of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#
# id.
# Name in the format ``target_country`:`content_language`:`product_id``. `
# target_country` - The target country of the product as a CLDR territory code (
# for example, US). `content_language` - The content language of the product as
# a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID
# of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#id.
# @param [Array<String>, String] include
# The information to be included in the response. Only sections listed here
# will be returned.
# The information to be included in the response. Only sections listed here will
# be returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -140,14 +134,13 @@ module Google
# Lists all the products in a Manufacturer Center account.
# @param [String] parent
# Parent ID in the format `accounts/`account_id``.
# `account_id` - The ID of the Manufacturer Center account.
# Parent ID in the format `accounts/`account_id``. `account_id` - The ID of the
# Manufacturer Center account.
# @param [Array<String>, String] include
# The information to be included in the response. Only sections listed here
# will be returned.
# The information to be included in the response. Only sections listed here will
# be returned.
# @param [Fixnum] page_size
# Maximum number of product statuses to return in the response, used for
# paging.
# Maximum number of product statuses to return in the response, used for paging.
# @param [String] page_token
# The token returned by the previous request.
# @param [String] fields
@ -181,30 +174,26 @@ module Google
end
# Inserts or updates the attributes of the product in a Manufacturer Center
# account.
# Creates a product with the provided attributes. If the product already
# exists, then all attributes are replaced with the new ones. The checks at
# upload time are minimal. All required attributes need to be present for a
# product to be valid. Issues may show up later after the API has accepted a
# new upload for a product and it is possible to overwrite an existing valid
# product with an invalid product. To detect this, you should retrieve the
# product and check it for issues once the new version is available.
# Uploaded attributes first need to be processed before they can be
# retrieved. Until then, new products will be unavailable, and retrieval
# of previously uploaded products will return the original state of the
# product.
# account. Creates a product with the provided attributes. If the product
# already exists, then all attributes are replaced with the new ones. The checks
# at upload time are minimal. All required attributes need to be present for a
# product to be valid. Issues may show up later after the API has accepted a new
# upload for a product and it is possible to overwrite an existing valid product
# with an invalid product. To detect this, you should retrieve the product and
# check it for issues once the new version is available. Uploaded attributes
# first need to be processed before they can be retrieved. Until then, new
# products will be unavailable, and retrieval of previously uploaded products
# will return the original state of the product.
# @param [String] parent
# Parent ID in the format `accounts/`account_id``.
# `account_id` - The ID of the Manufacturer Center account.
# Parent ID in the format `accounts/`account_id``. `account_id` - The ID of the
# Manufacturer Center account.
# @param [String] name
# Name in the format ``target_country`:`content_language`:`product_id``.
# `target_country` - The target country of the product as a CLDR territory
# code (for example, US).
# `content_language` - The content language of the product as a two-letter
# ISO 639-1 language code (for example, en).
# `product_id` - The ID of the product. For more information, see
# https://support.google.com/manufacturers/answer/6124116#
# id.
# Name in the format ``target_country`:`content_language`:`product_id``. `
# target_country` - The target country of the product as a CLDR territory code (
# for example, US). `content_language` - The content language of the product as
# a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID
# of the product. For more information, see https://support.google.com/
# manufacturers/answer/6124116#id.
# @param [Google::Apis::ManufacturersV1::Attributes] attributes_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/maps/contact-sales/
module PlayablelocationsV3
VERSION = 'V3'
REVISION = '20200622'
REVISION = '20200808'
end
end
end

View File

@ -26,13 +26,12 @@ module Google
class GoogleMapsPlayablelocationsV3Impression
include Google::Apis::Core::Hashable
# An arbitrary, developer-defined type identifier for each type of game
# object used in your game.
# Since players interact with differ types of game objects in different ways,
# this field allows you to segregate impression data by type for analysis.
# You should assign a unique `game_object_type` ID to represent a distinct
# type of game object in your game.
# For example, 1=monster location, 2=powerup location.
# An arbitrary, developer-defined type identifier for each type of game object
# used in your game. Since players interact with differ types of game objects in
# different ways, this field allows you to segregate impression data by type for
# analysis. You should assign a unique `game_object_type` ID to represent a
# distinct type of game object in your game. For example, 1=monster location, 2=
# powerup location.
# Corresponds to the JSON property `gameObjectType`
# @return [Fixnum]
attr_accessor :game_object_type
@ -69,19 +68,16 @@ module Google
attr_accessor :client_info
# Required. Impression event details. The maximum number of impression reports
# that you
# can log at once is 50.
# that you can log at once is 50.
# Corresponds to the JSON property `impressions`
# @return [Array<Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3Impression>]
attr_accessor :impressions
# Required. A string that uniquely identifies the log impressions request. This
# allows
# you to detect duplicate requests. We recommend that you use UUIDs for this
# value. The value must not exceed 50 characters.
# You should reuse the `request_id` only when retrying a request in case of
# failure. In this case, the request must be identical to the one that
# failed.
# allows you to detect duplicate requests. We recommend that you use UUIDs for
# this value. The value must not exceed 50 characters. You should reuse the `
# request_id` only when retrying a request in case of failure. In this case, the
# request must be identical to the one that failed.
# Corresponds to the JSON property `requestId`
# @return [String]
attr_accessor :request_id
@ -98,8 +94,8 @@ module Google
end
end
# A response for the LogImpressions method.
# This method returns no data upon success.
# A response for the LogImpressions method. This method returns no data upon
# success.
class GoogleMapsPlayablelocationsV3LogImpressionsResponse
include Google::Apis::Core::Hashable
@ -122,19 +118,16 @@ module Google
attr_accessor :client_info
# Required. Player reports. The maximum number of player reports that you can
# log at
# once is 50.
# log at once is 50.
# Corresponds to the JSON property `playerReports`
# @return [Array<Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3PlayerReport>]
attr_accessor :player_reports
# Required. A string that uniquely identifies the log player reports request.
# This
# allows you to detect duplicate requests. We recommend that you use UUIDs
# for this value. The value must not exceed 50 characters.
# You should reuse the `request_id` only when retrying a request in the case
# of a failure. In that case, the request must be identical to the one that
# failed.
# This allows you to detect duplicate requests. We recommend that you use UUIDs
# for this value. The value must not exceed 50 characters. You should reuse the `
# request_id` only when retrying a request in the case of a failure. In that
# case, the request must be identical to the one that failed.
# Corresponds to the JSON property `requestId`
# @return [String]
attr_accessor :request_id
@ -151,9 +144,8 @@ module Google
end
end
# A response for the LogPlayerReports
# method.
# This method returns no data upon success.
# A response for the LogPlayerReports method. This method returns no data upon
# success.
class GoogleMapsPlayablelocationsV3LogPlayerReportsResponse
include Google::Apis::Core::Hashable
@ -172,9 +164,9 @@ module Google
include Google::Apis::Core::Hashable
# Language code (in BCP-47 format) indicating the language of the freeform
# description provided in `reason_details`. Examples are "en", "en-US" or
# "ja-Latn". For more information, see
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
# description provided in `reason_details`. Examples are "en", "en-US" or "ja-
# Latn". For more information, see http://www.unicode.org/reports/tr35/#
# Unicode_locale_identifier.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -213,15 +205,12 @@ module Google
include Google::Apis::Core::Hashable
# Required. The S2 cell ID of the area you want. This must be between cell level
# 11 and
# 14 (inclusive).
# S2 cells are 64-bit integers that identify areas on the Earth. They are
# hierarchical, and can therefore be used for spatial indexing.
# The S2 geometry library is available in a number of languages:
# * [C++](https://github.com/google/s2geometry)
# * [Java](https://github.com/google/s2-geometry-library-java)
# * [Go](https://github.com/golang/geo)
# * [Python](https://github.com/google/s2geometry/tree/master/src/python)
# 11 and 14 (inclusive). S2 cells are 64-bit integers that identify areas on the
# Earth. They are hierarchical, and can therefore be used for spatial indexing.
# The S2 geometry library is available in a number of languages: * [C++](https://
# github.com/google/s2geometry) * [Java](https://github.com/google/s2-geometry-
# library-java) * [Go](https://github.com/golang/geo) * [Python](https://github.
# com/google/s2geometry/tree/master/src/python)
# Corresponds to the JSON property `s2CellId`
# @return [Fixnum]
attr_accessor :s2_cell_id
@ -236,19 +225,15 @@ module Google
end
end
# Encapsulates a filter criterion for searching for a set of playable
# locations.
# Encapsulates a filter criterion for searching for a set of playable locations.
class GoogleMapsPlayablelocationsV3SampleCriterion
include Google::Apis::Core::Hashable
# Specifies which `PlayableLocation` fields are returned.
# `name` (which is used for logging impressions), `center_point` and
# `place_id` (or `plus_code`) are always returned.
# The following fields are omitted unless you specify them here:
# * snapped_point
# * types
# Note: The more fields you include, the more expensive in terms of data and
# associated latency your query will be.
# Specifies which `PlayableLocation` fields are returned. `name` (which is used
# for logging impressions), `center_point` and `place_id` (or `plus_code`) are
# always returned. The following fields are omitted unless you specify them here:
# * snapped_point * types Note: The more fields you include, the more expensive
# in terms of data and associated latency your query will be.
# Corresponds to the JSON property `fieldsToReturn`
# @return [String]
attr_accessor :fields_to_return
@ -259,13 +244,11 @@ module Google
attr_accessor :filter
# Required. An arbitrary, developer-defined identifier of the type of game
# object that
# the playable location is used for. This field allows you to specify
# criteria per game object type when searching for playable locations.
# You should assign a unique `game_object_type` ID across all
# `request_criteria` to represent a distinct type of game object. For
# example, 1=monster location, 2=powerup location.
# The response contains a map<game_object_type, Response>.
# object that the playable location is used for. This field allows you to
# specify criteria per game object type when searching for playable locations.
# You should assign a unique `game_object_type` ID across all `request_criteria`
# to represent a distinct type of game object. For example, 1=monster location,
# 2=powerup location. The response contains a map.
# Corresponds to the JSON property `gameObjectType`
# @return [Fixnum]
attr_accessor :game_object_type
@ -286,15 +269,15 @@ module Google
class GoogleMapsPlayablelocationsV3SampleFilter
include Google::Apis::Core::Hashable
# Restricts the set of playable locations to just the
# [types](/maps/documentation/gaming/tt/types) that you want.
# Restricts the set of playable locations to just the [types](/maps/
# documentation/gaming/tt/types) that you want.
# Corresponds to the JSON property `includedTypes`
# @return [Array<String>]
attr_accessor :included_types
# Specifies the maximum number of playable locations to return. This value
# must not be greater than 1000. The default value is 100.
# Only the top-ranking playable locations are returned.
# Specifies the maximum number of playable locations to return. This value must
# not be greater than 1000. The default value is 100. Only the top-ranking
# playable locations are returned.
# Corresponds to the JSON property `maxLocationCount`
# @return [Fixnum]
attr_accessor :max_location_count
@ -316,16 +299,14 @@ module Google
end
end
# A geographical point suitable for placing game objects in location-based
# games.
# A geographical point suitable for placing game objects in location-based games.
class GoogleMapsPlayablelocationsV3SamplePlayableLocation
include Google::Apis::Core::Hashable
# An object representing a latitude/longitude pair. This is expressed as a pair
# of doubles representing degrees latitude and degrees longitude. Unless
# specified otherwise, this must conform to the
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
# standard</a>. Values must be within normalized ranges.
# specified otherwise, this must conform to the WGS84 standard. Values must be
# within normalized ranges.
# Corresponds to the JSON property `centerPoint`
# @return [Google::Apis::PlayablelocationsV3::GoogleTypeLatLng]
attr_accessor :center_point
@ -347,17 +328,15 @@ module Google
# An object representing a latitude/longitude pair. This is expressed as a pair
# of doubles representing degrees latitude and degrees longitude. Unless
# specified otherwise, this must conform to the
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
# standard</a>. Values must be within normalized ranges.
# specified otherwise, this must conform to the WGS84 standard. Values must be
# within normalized ranges.
# Corresponds to the JSON property `snappedPoint`
# @return [Google::Apis::PlayablelocationsV3::GoogleTypeLatLng]
attr_accessor :snapped_point
# A collection of [Playable Location
# Types](/maps/documentation/gaming/tt/types) for this playable location. The
# first type in the collection is the primary type.
# Type information might not be available for all playable locations.
# A collection of [Playable Location Types](/maps/documentation/gaming/tt/types)
# for this playable location. The first type in the collection is the primary
# type. Type information might not be available for all playable locations.
# Corresponds to the JSON property `types`
# @return [Array<String>]
attr_accessor :types
@ -396,24 +375,19 @@ module Google
end
end
# Life of a query:
# - When a game starts in a new location, your game server issues a
# SamplePlayableLocations
# request. The request specifies the S2 cell, and contains one or more
# "criteria" for filtering:
# - Criterion 0: i locations for long-lived bases, or level 0 monsters, or...
# - Criterion 1: j locations for short-lived bases, or level 1 monsters, ...
# - Criterion 2: k locations for random objects.
# - etc (up to 5 criterion may be specified).
# `PlayableLocationList` will then contain mutually
# exclusive lists of `PlayableLocation` objects that satisfy each of
# the criteria. Think of it as a collection of real-world locations that you
# can then associate with your game state.
# Note: These points are impermanent in nature. E.g, parks can close, and
# places can be removed.
# The response specifies how long you can expect the playable locations to
# last. Once they expire, you should query the `samplePlayableLocations` API
# again to get a fresh view of the real world.
# Life of a query: - When a game starts in a new location, your game server
# issues a SamplePlayableLocations request. The request specifies the S2 cell,
# and contains one or more "criteria" for filtering: - Criterion 0: i locations
# for long-lived bases, or level 0 monsters, or... - Criterion 1: j locations
# for short-lived bases, or level 1 monsters, ... - Criterion 2: k locations for
# random objects. - etc (up to 5 criterion may be specified). `
# PlayableLocationList` will then contain mutually exclusive lists of `
# PlayableLocation` objects that satisfy each of the criteria. Think of it as a
# collection of real-world locations that you can then associate with your game
# state. Note: These points are impermanent in nature. E.g, parks can close, and
# places can be removed. The response specifies how long you can expect the
# playable locations to last. Once they expire, you should query the `
# samplePlayableLocations` API again to get a fresh view of the real world.
class GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest
include Google::Apis::Core::Hashable
@ -422,8 +396,8 @@ module Google
# @return [Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleAreaFilter]
attr_accessor :area_filter
# Required. Specifies one or more (up to 5) criteria for filtering the
# returned playable locations.
# Required. Specifies one or more (up to 5) criteria for filtering the returned
# playable locations.
# Corresponds to the JSON property `criteria`
# @return [Array<Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleCriterion>]
attr_accessor :criteria
@ -439,26 +413,22 @@ module Google
end
end
# Response for the
# SamplePlayableLocations
# method.
# Response for the SamplePlayableLocations method.
class GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse
include Google::Apis::Core::Hashable
# Each PlayableLocation object corresponds to a game_object_type specified
# in the request.
# Each PlayableLocation object corresponds to a game_object_type specified in
# the request.
# Corresponds to the JSON property `locationsPerGameObjectType`
# @return [Hash<String,Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocationList>]
attr_accessor :locations_per_game_object_type
# Required. Specifies the "time-to-live" for the set of playable locations. You
# can use
# this value to determine how long to cache the set of playable locations.
# After this length of time, your back-end game server should issue a new
# SamplePlayableLocations
# request to get a fresh set of playable locations (because for example, they
# might have been removed, a park might have closed for the day, a
# business might have closed permanently).
# can use this value to determine how long to cache the set of playable
# locations. After this length of time, your back-end game server should issue a
# new SamplePlayableLocations request to get a fresh set of playable locations (
# because for example, they might have been removed, a park might have closed
# for the day, a business might have closed permanently).
# Corresponds to the JSON property `ttl`
# @return [String]
attr_accessor :ttl
@ -479,42 +449,28 @@ module Google
include Google::Apis::Core::Hashable
# Required. The minimum spacing between any two playable locations, measured in
# meters.
# The minimum value is 30.
# The maximum value is 1000.
# Inputs will be rounded up to the next 10 meter interval.
# The default value is 200m.
# Set this field to remove tight clusters of playable locations.
# Note:
# The spacing is a greedy algorithm. It optimizes for selecting the highest
# ranking locations first, not to maximize the number of locations selected.
# Consider the following scenario:
# * Rank: A: 2, B: 1, C: 3.
# * Distance: A--200m--B--200m--C
# If spacing=250, it will pick the highest ranked location [B], not [A, C].
# Note:
# meters. The minimum value is 30. The maximum value is 1000. Inputs will be
# rounded up to the next 10 meter interval. The default value is 200m. Set this
# field to remove tight clusters of playable locations. Note: The spacing is a
# greedy algorithm. It optimizes for selecting the highest ranking locations
# first, not to maximize the number of locations selected. Consider the
# following scenario: * Rank: A: 2, B: 1, C: 3. * Distance: A--200m--B--200m--C
# If spacing=250, it will pick the highest ranked location [B], not [A, C]. Note:
# Spacing works within the game object type itself, as well as the previous
# ones.
# Suppose three game object types, each with the following spacing:
# * X: 400m, Y: undefined, Z: 200m.
# 1. Add locations for X, within 400m of each other.
# 2. Add locations for Y, without any spacing.
# 3. Finally, add locations for Z within 200m of each other as well X and Y.
# The distance diagram between those locations end up as:
# * From->To.
# * X->X: 400m
# * Y->X, Y->Y: unspecified.
# * Z->X, Z->Y, Z->Z: 200m.
# ones. Suppose three game object types, each with the following spacing: * X:
# 400m, Y: undefined, Z: 200m. 1. Add locations for X, within 400m of each other.
# 2. Add locations for Y, without any spacing. 3. Finally, add locations for Z
# within 200m of each other as well X and Y. The distance diagram between those
# locations end up as: * From->To. * X->X: 400m * Y->X, Y->Y: unspecified. * Z->
# X, Z->Y, Z->Z: 200m.
# Corresponds to the JSON property `minSpacingMeters`
# @return [Float]
attr_accessor :min_spacing_meters
# Specifies whether the minimum spacing constraint applies to the
# center-point or to the snapped point of playable locations. The default
# value is `CENTER_POINT`.
# If a snapped point is not available for a playable location, its
# center-point is used instead.
# Set this to the point type used in your game.
# Specifies whether the minimum spacing constraint applies to the center-point
# or to the snapped point of playable locations. The default value is `
# CENTER_POINT`. If a snapped point is not available for a playable location,
# its center-point is used instead. Set this to the point type used in your game.
# Corresponds to the JSON property `pointType`
# @return [String]
attr_accessor :point_type
@ -534,46 +490,44 @@ module Google
class GoogleMapsUnityClientInfo
include Google::Apis::Core::Hashable
# API client name and version. For example, the SDK calling the API. The
# exact format is up to the client.
# API client name and version. For example, the SDK calling the API. The exact
# format is up to the client.
# Corresponds to the JSON property `apiClient`
# @return [String]
attr_accessor :api_client
# Application ID, such as the package name on Android and the bundle
# identifier on iOS platforms.
# Application ID, such as the package name on Android and the bundle identifier
# on iOS platforms.
# Corresponds to the JSON property `applicationId`
# @return [String]
attr_accessor :application_id
# Application version number, such as "1.2.3". The exact format is
# application-dependent.
# Application version number, such as "1.2.3". The exact format is application-
# dependent.
# Corresponds to the JSON property `applicationVersion`
# @return [String]
attr_accessor :application_version
# Device model as reported by the device. The exact format is
# platform-dependent.
# Device model as reported by the device. The exact format is platform-dependent.
# Corresponds to the JSON property `deviceModel`
# @return [String]
attr_accessor :device_model
# Language code (in BCP-47 format) indicating the UI language of the client.
# Examples are "en", "en-US" or "ja-Latn". For more information, see
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
# Examples are "en", "en-US" or "ja-Latn". For more information, see http://www.
# unicode.org/reports/tr35/#Unicode_locale_identifier.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Operating system name and version as reported by the OS. For example,
# "Mac OS X 10.10.4". The exact format is platform-dependent.
# Operating system name and version as reported by the OS. For example, "Mac OS
# X 10.10.4". The exact format is platform-dependent.
# Corresponds to the JSON property `operatingSystem`
# @return [String]
attr_accessor :operating_system
# Build number/version of the operating system. e.g., the contents of
# android.os.Build.ID in Android, or the contents of sysctl "kern.osversion"
# in iOS.
# Build number/version of the operating system. e.g., the contents of android.os.
# Build.ID in Android, or the contents of sysctl "kern.osversion" in iOS.
# Corresponds to the JSON property `operatingSystemBuild`
# @return [String]
attr_accessor :operating_system_build
@ -602,9 +556,8 @@ module Google
# An object representing a latitude/longitude pair. This is expressed as a pair
# of doubles representing degrees latitude and degrees longitude. Unless
# specified otherwise, this must conform to the
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
# standard</a>. Values must be within normalized ranges.
# specified otherwise, this must conform to the WGS84 standard. Values must be
# within normalized ranges.
class GoogleTypeLatLng
include Google::Apis::Core::Hashable

View File

@ -48,9 +48,9 @@ module Google
end
# Logs new events when playable locations are displayed, and when they are
# interacted with.
# Impressions are not partially saved; either all impressions are saved and
# this request succeeds, or no impressions are saved, and this request fails.
# interacted with. Impressions are not partially saved; either all impressions
# are saved and this request succeeds, or no impressions are saved, and this
# request fails.
# @param [Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3LogImpressionsRequest] google_maps_playablelocations_v3_log_impressions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -80,9 +80,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Logs bad playable location reports submitted by players.
# Reports are not partially saved; either all reports are saved and this
# request succeeds, or no reports are saved, and this request fails.
# Logs bad playable location reports submitted by players. Reports are not
# partially saved; either all reports are saved and this request succeeds, or no
# reports are saved, and this request fails.
# @param [Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3LogPlayerReportsRequest] google_maps_playablelocations_v3_log_player_reports_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -112,10 +112,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a set of playable locations that lie within a specified area,
# that satisfy optional filter criteria.
# Note: Identical `SamplePlayableLocations` requests can return different
# results as the state of the world changes over time.
# Returns a set of playable locations that lie within a specified area, that
# satisfy optional filter criteria. Note: Identical `SamplePlayableLocations`
# requests can return different results as the state of the world changes over
# time.
# @param [Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest] google_maps_playablelocations_v3_sample_playable_locations_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1
VERSION = 'V1'
REVISION = '20200731'
REVISION = '20200806'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -731,6 +731,11 @@ module Google
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The severity of the finding.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Source specific properties. These properties are managed by the source that
# writes the finding. The key names in the source_properties map must be between
# 1 and 255 characters, and must start with a letter and contain alphanumeric
@ -758,6 +763,7 @@ module Google
@parent = args[:parent] if args.key?(:parent)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@severity = args[:severity] if args.key?(:severity)
@source_properties = args[:source_properties] if args.key?(:source_properties)
@state = args[:state] if args.key?(:state)
end

View File

@ -493,6 +493,7 @@ module Google
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :severity, as: 'severity'
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta1
VERSION = 'V1beta1'
REVISION = '20200731'
REVISION = '20200806'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -867,6 +867,11 @@ module Google
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The severity of the finding.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Source specific properties. These properties are managed by the source that
# writes the finding. The key names in the source_properties map must be between
# 1 and 255 characters, and must start with a letter and contain alphanumeric
@ -894,6 +899,7 @@ module Google
@parent = args[:parent] if args.key?(:parent)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@severity = args[:severity] if args.key?(:severity)
@source_properties = args[:source_properties] if args.key?(:source_properties)
@state = args[:state] if args.key?(:state)
end

View File

@ -504,6 +504,7 @@ module Google
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :severity, as: 'severity'
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1alpha1
VERSION = 'V1p1alpha1'
REVISION = '20200731'
REVISION = '20200806'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -397,6 +397,11 @@ module Google
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The severity of the finding.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Source specific properties. These properties are managed by the source that
# writes the finding. The key names in the source_properties map must be between
# 1 and 255 characters, and must start with a letter and contain alphanumeric
@ -424,6 +429,7 @@ module Google
@parent = args[:parent] if args.key?(:parent)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@severity = args[:severity] if args.key?(:severity)
@source_properties = args[:source_properties] if args.key?(:source_properties)
@state = args[:state] if args.key?(:state)
end

View File

@ -225,6 +225,7 @@ module Google
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :severity, as: 'severity'
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200731'
REVISION = '20200806'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -662,6 +662,11 @@ module Google
# @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The severity of the finding.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Source specific properties. These properties are managed by the source that
# writes the finding. The key names in the source_properties map must be between
# 1 and 255 characters, and must start with a letter and contain alphanumeric
@ -689,6 +694,7 @@ module Google
@parent = args[:parent] if args.key?(:parent)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@severity = args[:severity] if args.key?(:severity)
@source_properties = args[:source_properties] if args.key?(:source_properties)
@state = args[:state] if args.key?(:state)
end

View File

@ -459,6 +459,7 @@ module Google
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :severity, as: 'severity'
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/slides/
module SlidesV1
VERSION = 'V1'
REVISION = '20200611'
REVISION = '20200803'
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

File diff suppressed because it is too large Load Diff

View File

@ -47,23 +47,19 @@ module Google
@batch_path = 'batch'
end
# Applies one or more updates to the presentation.
# Each request is validated before
# being applied. If any request is not valid, then the entire request will
# fail and nothing will be applied.
# Some requests have replies to
# give you some information about how they are applied. Other requests do
# not need to return information; these each return an empty reply.
# The order of replies matches that of the requests.
# For example, suppose you call batchUpdate with four updates, and only the
# third one returns information. The response would have two empty replies:
# the reply to the third request, and another empty reply, in that order.
# Because other users may be editing the presentation, the presentation
# might not exactly reflect your changes: your changes may
# be altered with respect to collaborator changes. If there are no
# collaborators, the presentation should reflect your changes. In any case,
# the updates in your request are guaranteed to be applied together
# atomically.
# Applies one or more updates to the presentation. Each request is validated
# before being applied. If any request is not valid, then the entire request
# will fail and nothing will be applied. Some requests have replies to give you
# some information about how they are applied. Other requests do not need to
# return information; these each return an empty reply. The order of replies
# matches that of the requests. For example, suppose you call batchUpdate with
# four updates, and only the third one returns information. The response would
# have two empty replies: the reply to the third request, and another empty
# reply, in that order. Because other users may be editing the presentation, the
# presentation might not exactly reflect your changes: your changes may be
# altered with respect to collaborator changes. If there are no collaborators,
# the presentation should reflect your changes. In any case, the updates in your
# request are guaranteed to be applied together atomically.
# @param [String] presentation_id
# The presentation to apply the updates to.
# @param [Google::Apis::SlidesV1::BatchUpdatePresentationRequest] batch_update_presentation_request_object
@ -96,11 +92,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a blank presentation using the title given in the request. If a
# `presentationId` is provided, it is used as the ID of the new presentation.
# Otherwise, a new ID is generated. Other fields in the request, including
# any provided content, are ignored.
# Returns the created presentation.
# Creates a blank presentation using the title given in the request. If a `
# presentationId` is provided, it is used as the ID of the new presentation.
# Otherwise, a new ID is generated. Other fields in the request, including any
# provided content, are ignored. Returns the created presentation.
# @param [Google::Apis::SlidesV1::Presentation] presentation_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -194,20 +189,18 @@ module Google
end
# Generates a thumbnail of the latest version of the specified page in the
# presentation and returns a URL to the thumbnail image.
# This request counts as an [expensive read request](/slides/limits) for
# quota purposes.
# presentation and returns a URL to the thumbnail image. This request counts as
# an [expensive read request](/slides/limits) for quota purposes.
# @param [String] presentation_id
# The ID of the presentation to retrieve.
# @param [String] page_object_id
# The object ID of the page whose thumbnail to retrieve.
# @param [String] thumbnail_properties_mime_type
# The optional mime type of the thumbnail image.
# If you don't specify the mime type, the mime type defaults to PNG.
# The optional mime type of the thumbnail image. If you don't specify the mime
# type, the mime type defaults to PNG.
# @param [String] thumbnail_properties_thumbnail_size
# The optional thumbnail image size.
# If you don't specify the size, the server chooses a default size of the
# image.
# The optional thumbnail image size. If you don't specify the size, the server
# chooses a default size of the image.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/streetview/publish/
module StreetviewpublishV1
VERSION = 'V1'
REVISION = '20200224'
REVISION = '20200809'
# Publish and manage your 360 photos on Google Street View
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'

View File

@ -26,9 +26,8 @@ module Google
class BatchDeletePhotosRequest
include Google::Apis::Core::Hashable
# Required. IDs of the Photos. HTTP
# GET requests require the following syntax for the URL query parameter:
# `photoIds=<id1>&photoIds=<id2>&...`.
# Required. IDs of the Photos. HTTP GET requests require the following syntax
# for the URL query parameter: `photoIds=&photoIds=&...`.
# Corresponds to the JSON property `photoIds`
# @return [Array<String>]
attr_accessor :photo_ids
@ -43,13 +42,11 @@ module Google
end
end
# Response to batch delete of one or more
# Photos.
# Response to batch delete of one or more Photos.
class BatchDeletePhotosResponse
include Google::Apis::Core::Hashable
# The status for the operation to delete a single
# Photo in the batch request.
# The status for the operation to delete a single Photo in the batch request.
# Corresponds to the JSON property `status`
# @return [Array<Google::Apis::StreetviewpublishV1::Status>]
attr_accessor :status
@ -68,10 +65,8 @@ module Google
class BatchGetPhotosResponse
include Google::Apis::Core::Hashable
# List of results for each individual
# Photo requested, in the same order as
# the requests in
# BatchGetPhotos.
# List of results for each individual Photo requested, in the same order as the
# requests in BatchGetPhotos.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::StreetviewpublishV1::PhotoResponse>]
attr_accessor :results
@ -86,13 +81,12 @@ module Google
end
end
# Request to update the metadata of photos.
# Updating the pixels of photos is not supported.
# Request to update the metadata of photos. Updating the pixels of photos is not
# supported.
class BatchUpdatePhotosRequest
include Google::Apis::Core::Hashable
# Required. List of
# UpdatePhotoRequests.
# Required. List of UpdatePhotoRequests.
# Corresponds to the JSON property `updatePhotoRequests`
# @return [Array<Google::Apis::StreetviewpublishV1::UpdatePhotoRequest>]
attr_accessor :update_photo_requests
@ -107,14 +101,12 @@ module Google
end
end
# Response to batch update of metadata of one or more
# Photos.
# Response to batch update of metadata of one or more Photos.
class BatchUpdatePhotosResponse
include Google::Apis::Core::Hashable
# List of results for each individual
# Photo updated, in the same order as
# the request.
# List of results for each individual Photo updated, in the same order as the
# request.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::StreetviewpublishV1::PhotoResponse>]
attr_accessor :results
@ -148,13 +140,11 @@ module Google
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
@ -169,9 +159,8 @@ module Google
# An object representing a latitude/longitude pair. This is expressed as a pair
# of doubles representing degrees latitude and degrees longitude. Unless
# specified otherwise, this must conform to the
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
# standard</a>. Values must be within normalized ranges.
# specified otherwise, this must conform to the WGS84 standard. Values must be
# within normalized ranges.
class LatLng
include Google::Apis::Core::Hashable
@ -200,16 +189,16 @@ module Google
class Level
include Google::Apis::Core::Hashable
# Required. A name assigned to this Level, restricted to 3 characters.
# Consider how the elevator buttons would be labeled for this level if there
# was an elevator.
# Required. A name assigned to this Level, restricted to 3 characters. Consider
# how the elevator buttons would be labeled for this level if there was an
# elevator.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Floor number, used for ordering. 0 indicates the ground level, 1 indicates
# the first level above ground level, -1 indicates the first level under
# ground level. Non-integer values are OK.
# Floor number, used for ordering. 0 indicates the ground level, 1 indicates the
# first level above ground level, -1 indicates the first level under ground
# level. Non-integer values are OK.
# Corresponds to the JSON property `number`
# @return [Float]
attr_accessor :number
@ -235,9 +224,8 @@ module Google
# @return [String]
attr_accessor :next_page_token
# List of photos. The
# pageSize field
# in the request determines the number of items returned.
# List of photos. The pageSize field in the request determines the number of
# items returned.
# Corresponds to the JSON property `photos`
# @return [Array<Google::Apis::StreetviewpublishV1::Photo>]
attr_accessor :photos
@ -258,47 +246,45 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::StreetviewpublishV1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# 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 be a resource name ending with `operations/`unique_id``.
# originally returns it. If you use the default HTTP mapping, the `name` should
# be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@ -321,24 +307,20 @@ module Google
class Photo
include Google::Apis::Core::Hashable
# Absolute time when the photo was captured.
# When the photo has no exif timestamp, this is used to set a timestamp in
# the photo metadata.
# Absolute time when the photo was captured. When the photo has no exif
# timestamp, this is used to set a timestamp in the photo metadata.
# Corresponds to the JSON property `captureTime`
# @return [String]
attr_accessor :capture_time
# Connections to other photos. A connection represents the link from this
# photo to another photo.
# Connections to other photos. A connection represents the link from this photo
# to another photo.
# Corresponds to the JSON property `connections`
# @return [Array<Google::Apis::StreetviewpublishV1::Connection>]
attr_accessor :connections
# Output only. The download URL for the photo bytes. This field is set only
# when
# GetPhotoRequest.view
# is set to
# PhotoView.INCLUDE_DOWNLOAD_URL.
# Output only. The download URL for the photo bytes. This field is set only when
# GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
# Corresponds to the JSON property `downloadUrl`
# @return [String]
attr_accessor :download_url
@ -429,12 +411,8 @@ module Google
end
end
# Response payload for a single
# Photo
# in batch operations including
# BatchGetPhotos
# and
# BatchUpdatePhotos.
# Response payload for a single Photo in batch operations including
# BatchGetPhotos and BatchUpdatePhotos.
class PhotoResponse
include Google::Apis::Core::Hashable
@ -443,12 +421,12 @@ module Google
# @return [Google::Apis::StreetviewpublishV1::Photo]
attr_accessor :photo
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `status`
# @return [Google::Apis::StreetviewpublishV1::Status]
attr_accessor :status
@ -468,8 +446,8 @@ module Google
class Place
include Google::Apis::Core::Hashable
# Output-only. The language_code that the name is localized with. This should
# be the language_code specified in the request, but may be a fallback.
# Output-only. The language_code that the name is localized with. This should be
# the language_code specified in the request, but may be a fallback.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -479,8 +457,8 @@ module Google
# @return [String]
attr_accessor :name
# Place identifier, as described in
# https://developers.google.com/places/place-id.
# Place identifier, as described in https://developers.google.com/places/place-
# id.
# Corresponds to the JSON property `placeId`
# @return [String]
attr_accessor :place_id
@ -501,35 +479,31 @@ module Google
class Pose
include Google::Apis::Core::Hashable
# The estimated horizontal accuracy of this pose in meters with 68%
# confidence (one standard deviation). For example, on Android, this value is
# available from this method:
# https://developer.android.com/reference/android/location/Location#getAccuracy()
# .
# Other platforms have different methods of obtaining similar accuracy
# estimations.
# The estimated horizontal accuracy of this pose in meters with 68% confidence (
# one standard deviation). For example, on Android, this value is available from
# this method: https://developer.android.com/reference/android/location/Location#
# getAccuracy(). Other platforms have different methods of obtaining similar
# accuracy estimations.
# Corresponds to the JSON property `accuracyMeters`
# @return [Float]
attr_accessor :accuracy_meters
# Altitude of the pose in meters above WGS84 ellipsoid.
# NaN indicates an unmeasured quantity.
# Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an
# unmeasured quantity.
# Corresponds to the JSON property `altitude`
# @return [Float]
attr_accessor :altitude
# Compass heading, measured at the center of the photo in degrees clockwise
# from North. Value must be >=0 and <360.
# NaN indicates an unmeasured quantity.
# Compass heading, measured at the center of the photo in degrees clockwise from
# North. Value must be >=0 and <360. NaN indicates an unmeasured quantity.
# Corresponds to the JSON property `heading`
# @return [Float]
attr_accessor :heading
# An object representing a latitude/longitude pair. This is expressed as a pair
# of doubles representing degrees latitude and degrees longitude. Unless
# specified otherwise, this must conform to the
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
# standard</a>. Values must be within normalized ranges.
# specified otherwise, this must conform to the WGS84 standard. Values must be
# within normalized ranges.
# Corresponds to the JSON property `latLngPair`
# @return [Google::Apis::StreetviewpublishV1::LatLng]
attr_accessor :lat_lng_pair
@ -539,17 +513,15 @@ module Google
# @return [Google::Apis::StreetviewpublishV1::Level]
attr_accessor :level
# Pitch, measured at the center of the photo in degrees. Value must be >=-90
# and <= 90. A value of -90 means looking directly down, and a value of 90
# means looking directly up.
# NaN indicates an unmeasured quantity.
# Pitch, measured at the center of the photo in degrees. Value must be >=-90 and
# <= 90. A value of -90 means looking directly down, and a value of 90 means
# looking directly up. NaN indicates an unmeasured quantity.
# Corresponds to the JSON property `pitch`
# @return [Float]
attr_accessor :pitch
# Roll, measured in degrees. Value must be >= 0 and <360. A value of 0
# means level with the horizon.
# NaN indicates an unmeasured quantity.
# Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 means
# level with the horizon. NaN indicates an unmeasured quantity.
# Corresponds to the JSON property `roll`
# @return [Float]
attr_accessor :roll
@ -570,12 +542,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@ -584,15 +556,15 @@ module Google
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -609,9 +581,8 @@ module Google
end
end
# Request to update the metadata of a
# Photo. Updating the pixels of a photo
# is not supported.
# Request to update the metadata of a Photo. Updating the pixels of a photo is
# not supported.
class UpdatePhotoRequest
include Google::Apis::Core::Hashable
@ -620,28 +591,16 @@ module Google
# @return [Google::Apis::StreetviewpublishV1::Photo]
attr_accessor :photo
# Required. Mask that identifies fields on the photo metadata to update.
# If not present, the old Photo
# metadata is entirely replaced with the
# new Photo metadata in this request.
# The update fails if invalid fields are specified. Multiple fields can be
# specified in a comma-delimited list.
# The following fields are valid:
# * `pose.heading`
# * `pose.latLngPair`
# * `pose.pitch`
# * `pose.roll`
# * `pose.level`
# * `pose.altitude`
# * `connections`
# * `places`
# <aside class="note"><b>Note:</b> When
# updateMask
# contains repeated fields, the entire set of repeated values get replaced
# with the new contents. For example, if
# updateMask
# contains `connections` and `UpdatePhotoRequest.photo.connections` is empty,
# all connections are removed.</aside>
# Required. Mask that identifies fields on the photo metadata to update. If not
# present, the old Photo metadata is entirely replaced with the new Photo
# metadata in this request. The update fails if invalid fields are specified.
# Multiple fields can be specified in a comma-delimited list. The following
# fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.
# roll` * `pose.level` * `pose.altitude` * `connections` * `places` *Note:* When
# updateMask contains repeated fields, the entire set of repeated values get
# replaced with the new contents. For example, if updateMask contains `
# connections` and `UpdatePhotoRequest.photo.connections` is empty, all
# connections are removed.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
@ -661,9 +620,8 @@ module Google
class UploadRef
include Google::Apis::Core::Hashable
# Required. An upload reference should be unique for each user. It follows
# the form:
# "https://streetviewpublish.googleapis.com/media/user/`account_id`/photo/`
# Required. An upload reference should be unique for each user. It follows the
# form: "https://streetviewpublish.googleapis.com/media/user/`account_id`/photo/`
# upload_reference`"
# Corresponds to the JSON property `uploadUrl`
# @return [String]

View File

@ -49,21 +49,16 @@ module Google
@batch_path = 'batch'
end
# After the client finishes uploading the photo with the returned
# UploadRef,
# CreatePhoto
# publishes the uploaded Photo to
# Street View on Google Maps.
# After the client finishes uploading the photo with the returned UploadRef,
# CreatePhoto publishes the uploaded Photo to Street View on Google Maps.
# Currently, the only way to set heading, pitch, and roll in CreatePhoto is
# through the [Photo Sphere XMP
# metadata](https://developers.google.com/streetview/spherical-metadata) in
# the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`,
# `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose.
# This method returns the following error codes:
# * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if
# the uploaded photo is not a 360 photo.
# * google.rpc.Code.NOT_FOUND if the upload reference does not exist.
# * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the
# through the [Photo Sphere XMP metadata](https://developers.google.com/
# streetview/spherical-metadata) in the photo bytes. CreatePhoto ignores the `
# pose.heading`, `pose.pitch`, `pose.roll`, `pose.altitude`, and `pose.level`
# fields in Pose. This method returns the following error codes: * google.rpc.
# Code.INVALID_ARGUMENT if the request is malformed or if the uploaded photo is
# not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference does not
# exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the
# storage limit.
# @param [Google::Apis::StreetviewpublishV1::Photo] photo_object
# @param [String] fields
@ -94,11 +89,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a Photo and its metadata.
# This method returns the following error codes:
# * google.rpc.Code.PERMISSION_DENIED if the requesting user did not
# create the requested photo.
# * google.rpc.Code.NOT_FOUND if the photo ID does not exist.
# Deletes a Photo and its metadata. This method returns the following error
# codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not
# create the requested photo. * google.rpc.Code.NOT_FOUND if the photo ID does
# not exist.
# @param [String] photo_id
# Required. ID of the Photo.
# @param [String] fields
@ -128,27 +122,21 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the metadata of the specified
# Photo.
# This method returns the following error codes:
# * google.rpc.Code.PERMISSION_DENIED if the requesting user did not
# create the requested Photo.
# * google.rpc.Code.NOT_FOUND if the requested
# Photo does not exist.
# * google.rpc.Code.UNAVAILABLE if the requested
# Photo is still being indexed.
# Gets the metadata of the specified Photo. This method returns the following
# error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did
# not create the requested Photo. * google.rpc.Code.NOT_FOUND if the requested
# Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is
# still being indexed.
# @param [String] photo_id
# Required. ID of the Photo.
# @param [String] language_code
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
# information, see
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
# If language_code is unspecified, the user's language preference for Google
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If
# language_code is unspecified, the user's language preference for Google
# services is used.
# @param [String] view
# Required. Specifies if a download URL for the photo bytes should be returned
# in the
# Photo response.
# in the Photo response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -178,23 +166,17 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates an upload session to start uploading photo bytes. The method uses
# the upload URL of the returned
# UploadRef to upload the bytes for
# the Photo.
# In addition to the photo requirements shown in
# https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604,
# the photo must meet the following requirements:
# * Photo Sphere XMP metadata must be included in the photo metadata. See
# https://developers.google.com/streetview/spherical-metadata for the
# required fields.
# * The pixel size of the photo must meet the size requirements listed in
# https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and
# the photo must be a full 360 horizontally.
# After the upload completes, the method uses
# UploadRef with
# CreatePhoto
# to create the Photo object entry.
# Creates an upload session to start uploading photo bytes. The method uses the
# upload URL of the returned UploadRef to upload the bytes for the Photo. In
# addition to the photo requirements shown in https://support.google.com/maps/
# answer/7012050?hl=en&ref_topic=6275604, the photo must meet the following
# requirements: * Photo Sphere XMP metadata must be included in the photo
# metadata. See https://developers.google.com/streetview/spherical-metadata for
# the required fields. * The pixel size of the photo must meet the size
# requirements listed in https://support.google.com/maps/answer/7012050?hl=en&
# ref_topic=6275604, and the photo must be a full 360 horizontally. After the
# upload completes, the method uses UploadRef with CreatePhoto to create the
# Photo object entry.
# @param [Google::Apis::StreetviewpublishV1::Empty] empty_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -224,46 +206,29 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the metadata of a Photo, such
# as pose, place association, connections, etc. Changing the pixels of a
# photo is not supported.
# Only the fields specified in the
# updateMask
# field are used. If `updateMask` is not present, the update applies to all
# fields.
# This method returns the following error codes:
# * google.rpc.Code.PERMISSION_DENIED if the requesting user did not
# create the requested photo.
# * google.rpc.Code.INVALID_ARGUMENT if the request is malformed.
# * google.rpc.Code.NOT_FOUND if the requested photo does not exist.
# * google.rpc.Code.UNAVAILABLE if the requested
# Photo is still being indexed.
# Updates the metadata of a Photo, such as pose, place association, connections,
# etc. Changing the pixels of a photo is not supported. Only the fields
# specified in the updateMask field are used. If `updateMask` is not present,
# the update applies to all fields. This method returns the following error
# codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not
# create the requested photo. * google.rpc.Code.INVALID_ARGUMENT if the request
# is malformed. * google.rpc.Code.NOT_FOUND if the requested photo does not
# exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being
# indexed.
# @param [String] id
# Required. A unique identifier for a photo.
# @param [Google::Apis::StreetviewpublishV1::Photo] photo_object
# @param [String] update_mask
# Required. Mask that identifies fields on the photo metadata to update.
# If not present, the old Photo
# metadata is entirely replaced with the
# new Photo metadata in this request.
# The update fails if invalid fields are specified. Multiple fields can be
# specified in a comma-delimited list.
# The following fields are valid:
# * `pose.heading`
# * `pose.latLngPair`
# * `pose.pitch`
# * `pose.roll`
# * `pose.level`
# * `pose.altitude`
# * `connections`
# * `places`
# <aside class="note"><b>Note:</b> When
# updateMask
# contains repeated fields, the entire set of repeated values get replaced
# with the new contents. For example, if
# updateMask
# contains `connections` and `UpdatePhotoRequest.photo.connections` is empty,
# all connections are removed.</aside>
# Required. Mask that identifies fields on the photo metadata to update. If not
# present, the old Photo metadata is entirely replaced with the new Photo
# metadata in this request. The update fails if invalid fields are specified.
# Multiple fields can be specified in a comma-delimited list. The following
# fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.
# roll` * `pose.level` * `pose.altitude` * `connections` * `places` *Note:* When
# updateMask contains repeated fields, the entire set of repeated values get
# replaced with the new contents. For example, if updateMask contains `
# connections` and `UpdatePhotoRequest.photo.connections` is empty, all
# connections are removed.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -294,21 +259,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a list of Photos and their
# metadata.
# Note that if
# BatchDeletePhotos
# fails, either critical fields are missing or there is an authentication
# error. Even if
# BatchDeletePhotos
# succeeds, individual photos in the batch may have failures.
# These failures are specified in each
# PhotoResponse.status
# in
# BatchDeletePhotosResponse.results.
# See
# DeletePhoto
# for specific failures that can occur per photo.
# Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos
# fails, either critical fields are missing or there is an authentication error.
# Even if BatchDeletePhotos succeeds, individual photos in the batch may have
# failures. These failures are specified in each PhotoResponse.status in
# BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that
# can occur per photo.
# @param [Google::Apis::StreetviewpublishV1::BatchDeletePhotosRequest] batch_delete_photos_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -338,35 +294,23 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the metadata of the specified
# Photo batch.
# Note that if
# BatchGetPhotos
# fails, either critical fields are missing or there is an authentication
# error. Even if
# BatchGetPhotos
# succeeds, individual photos in the batch may have failures.
# These failures are specified in each
# PhotoResponse.status
# in
# BatchGetPhotosResponse.results.
# See
# GetPhoto
# for specific failures that can occur per photo.
# Gets the metadata of the specified Photo batch. Note that if BatchGetPhotos
# fails, either critical fields are missing or there is an authentication error.
# Even if BatchGetPhotos succeeds, individual photos in the batch may have
# failures. These failures are specified in each PhotoResponse.status in
# BatchGetPhotosResponse.results. See GetPhoto for specific failures that can
# occur per photo.
# @param [String] language_code
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
# information, see
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
# If language_code is unspecified, the user's language preference for Google
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If
# language_code is unspecified, the user's language preference for Google
# services is used.
# @param [Array<String>, String] photo_ids
# Required. IDs of the Photos. For HTTP
# GET requests, the URL query parameter should be
# `photoIds=<id1>&photoIds=<id2>&...`.
# Required. IDs of the Photos. For HTTP GET requests, the URL query parameter
# should be `photoIds=&photoIds=&...`.
# @param [String] view
# Required. Specifies if a download URL for the photo bytes should be returned
# in the
# Photo response.
# in the Photo response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -396,35 +340,17 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the metadata of Photos, such
# as pose, place association, connections, etc. Changing the pixels of photos
# is not supported.
# Note that if
# BatchUpdatePhotos
# fails, either critical fields are missing or there is an authentication
# error. Even if
# BatchUpdatePhotos
# succeeds, individual photos in the batch may have failures.
# These failures are specified in each
# PhotoResponse.status
# in
# BatchUpdatePhotosResponse.results.
# See
# UpdatePhoto
# for specific failures that can occur per photo.
# Only the fields specified in
# updateMask
# field are used. If `updateMask` is not present, the update applies to all
# fields.
# The number of
# UpdatePhotoRequest
# messages in a
# BatchUpdatePhotosRequest
# must not exceed 20.
# <aside class="note"><b>Note:</b> To update
# Pose.altitude,
# Pose.latLngPair has to be
# filled as well. Otherwise, the request will fail.</aside>
# Updates the metadata of Photos, such as pose, place association, connections,
# etc. Changing the pixels of photos is not supported. Note that if
# BatchUpdatePhotos fails, either critical fields are missing or there is an
# authentication error. Even if BatchUpdatePhotos succeeds, individual photos in
# the batch may have failures. These failures are specified in each
# PhotoResponse.status in BatchUpdatePhotosResponse.results. See UpdatePhoto for
# specific failures that can occur per photo. Only the fields specified in
# updateMask field are used. If `updateMask` is not present, the update applies
# to all fields. The number of UpdatePhotoRequest messages in a
# BatchUpdatePhotosRequest must not exceed 20. *Note:* To update Pose.altitude,
# Pose.latLngPair has to be filled as well. Otherwise, the request will fail.
# @param [Google::Apis::StreetviewpublishV1::BatchUpdatePhotosRequest] batch_update_photos_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -454,36 +380,27 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists all the Photos that belong to
# the user.
# <aside class="note"><b>Note:</b> Recently created photos that are still
# being indexed are not returned in the response.</aside>
# Lists all the Photos that belong to the user. *Note:* Recently created photos
# that are still being indexed are not returned in the response.
# @param [String] filter
# Required. The filter expression. For example: `placeId=
# ChIJj61dQgK6j4AR4GeTYWZsKWw`.
# The only filter supported at the moment is `placeId`.
# ChIJj61dQgK6j4AR4GeTYWZsKWw`. The only filter supported at the moment is `
# placeId`.
# @param [String] language_code
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
# information, see
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
# If language_code is unspecified, the user's language preference for Google
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If
# language_code is unspecified, the user's language preference for Google
# services is used.
# @param [Fixnum] page_size
# The maximum number of photos to return.
# `pageSize` must be non-negative. If `pageSize` is zero or is not provided,
# the default page size of 100 is used.
# The number of photos returned in the response may be less than `pageSize`
# if the number of photos that belong to the user is less than `pageSize`.
# The maximum number of photos to return. `pageSize` must be non-negative. If `
# pageSize` is zero or is not provided, the default page size of 100 is used.
# The number of photos returned in the response may be less than `pageSize` if
# the number of photos that belong to the user is less than `pageSize`.
# @param [String] page_token
# The
# nextPageToken
# value returned from a previous
# ListPhotos
# request, if any.
# The nextPageToken value returned from a previous ListPhotos request, if any.
# @param [String] view
# Required. Specifies if a download URL for the photos bytes should be returned
# in the
# Photos response.
# in the Photos response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see
module TasksV1
VERSION = 'V1'
REVISION = '20200516'
REVISION = '20200809'
# Create, edit, organize, and delete all your tasks
AUTH_TASKS = 'https://www.googleapis.com/auth/tasks'

View File

@ -26,8 +26,8 @@ module Google
class Task
include Google::Apis::Core::Hashable
# Completion date of the task (as a RFC 3339 timestamp). This field is
# omitted if the task has not been completed.
# Completion date of the task (as a RFC 3339 timestamp). This field is omitted
# if the task has not been completed.
# Corresponds to the JSON property `completed`
# @return [String]
attr_accessor :completed
@ -39,9 +39,9 @@ module Google
alias_method :deleted?, :deleted
# Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
# records date information; the time portion of the timestamp is discarded
# when setting the due date. It isn't possible to read or write the time that
# a task is due via the API.
# records date information; the time portion of the timestamp is discarded when
# setting the due date. It isn't possible to read or write the time that a task
# is due via the API.
# Corresponds to the JSON property `due`
# @return [String]
attr_accessor :due
@ -51,9 +51,9 @@ module Google
# @return [String]
attr_accessor :etag
# Flag indicating whether the task is hidden. This is the case if the task
# had been marked completed when the task list was last cleared. The default
# is False. This field is read-only.
# Flag indicating whether the task is hidden. This is the case if the task had
# been marked completed when the task list was last cleared. The default is
# False. This field is read-only.
# Corresponds to the JSON property `hidden`
# @return [Boolean]
attr_accessor :hidden
@ -79,19 +79,19 @@ module Google
# @return [String]
attr_accessor :notes
# Parent task identifier. This field is omitted if it is a top-level task.
# This field is read-only. Use the "move" method to move the task under a
# different parent or to the top level.
# Parent task identifier. This field is omitted if it is a top-level task. This
# field is read-only. Use the "move" method to move the task under a different
# parent or to the top level.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# String indicating the position of the task among its sibling tasks under
# the same parent task or at the top level. If this string is greater than
# another task's corresponding position string according to lexicographical
# ordering, the task is positioned after the other task under the same parent
# task (or at the top level). This field is read-only. Use the "move" method
# to move the task to another position.
# String indicating the position of the task among its sibling tasks under the
# same parent task or at the top level. If this string is greater than another
# task's corresponding position string according to lexicographical ordering,
# the task is positioned after the other task under the same parent task (or at
# the top level). This field is read-only. Use the "move" method to move the
# task to another position.
# Corresponds to the JSON property `position`
# @return [String]
attr_accessor :position
@ -143,8 +143,7 @@ module Google
class Link
include Google::Apis::Core::Hashable
# The description. In HTML speak: Everything between &lt;a&gt; and
# &lt;/a&gt;.
# The description. In HTML speak: Everything between <a> and </a>.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
@ -191,8 +190,8 @@ module Google
# @return [String]
attr_accessor :kind
# URL pointing to this task list. Used to retrieve, update, or delete this
# task list.
# URL pointing to this task list. Used to retrieve, update, or delete this task
# list.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link

View File

@ -137,8 +137,8 @@ module Google
# Returns all the authenticated user's task lists.
# @param [Fixnum] max_results
# Maximum number of task lists returned on one page. Optional. The default is
# 20 (max allowed: 100).
# Maximum number of task lists returned on one page. Optional. The default is 20
# (max allowed: 100).
# @param [String] page_token
# Token specifying the result page to return. Optional.
# @param [String] fields
@ -338,8 +338,8 @@ module Google
# Parent task identifier. If the task is created at the top level, this
# parameter is omitted. Optional.
# @param [String] previous
# Previous sibling task identifier. If the task is created at the first
# position among its siblings, this parameter is omitted. Optional.
# Previous sibling task identifier. If the task is created at the first position
# among its siblings, this parameter is omitted. Optional.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -375,11 +375,11 @@ module Google
# @param [String] tasklist
# Task list identifier.
# @param [String] completed_max
# Upper bound for a task's completion date (as a RFC 3339 timestamp) to
# filter by. Optional. The default is not to filter by completion date.
# Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter
# by. Optional. The default is not to filter by completion date.
# @param [String] completed_min
# Lower bound for a task's completion date (as a RFC 3339 timestamp) to
# filter by. Optional. The default is not to filter by completion date.
# Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter
# by. Optional. The default is not to filter by completion date.
# @param [String] due_max
# Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by.
# Optional. The default is not to filter by due date.
@ -387,23 +387,22 @@ module Google
# Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by.
# Optional. The default is not to filter by due date.
# @param [Fixnum] max_results
# Maximum number of task lists returned on one page. Optional. The default is
# 20 (max allowed: 100).
# Maximum number of task lists returned on one page. Optional. The default is 20
# (max allowed: 100).
# @param [String] page_token
# Token specifying the result page to return. Optional.
# @param [Boolean] show_completed
# Flag indicating whether completed tasks are returned in the result.
# Optional. The default is True.
# Flag indicating whether completed tasks are returned in the result. Optional.
# The default is True.
# @param [Boolean] show_deleted
# Flag indicating whether deleted tasks are returned in the result. Optional.
# The default is False.
# @param [Boolean] show_hidden
# Flag indicating whether hidden tasks are returned in the result. Optional.
# The default is False.
# Flag indicating whether hidden tasks are returned in the result. Optional. The
# default is False.
# @param [String] updated_min
# Lower bound for a task's last modification time (as a RFC 3339 timestamp)
# to filter by. Optional. The default is not to filter by last modification
# time.
# Lower bound for a task's last modification time (as a RFC 3339 timestamp) to
# filter by. Optional. The default is not to filter by last modification time.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/translate/docs/quickstarts
module TranslateV3
VERSION = 'V3'
REVISION = '20200730'
REVISION = '20200807'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,42 +26,38 @@ module Google
class BatchTranslateTextRequest
include Google::Apis::Core::Hashable
# Optional. Glossaries to be applied for translation.
# It's keyed by target language code.
# Optional. Glossaries to be applied for translation. It's keyed by target
# language code.
# Corresponds to the JSON property `glossaries`
# @return [Hash<String,Google::Apis::TranslateV3::TranslateTextGlossaryConfig>]
attr_accessor :glossaries
# Required. Input configurations.
# The total number of files matched should be <= 1000.
# The total content size should be <= 100M Unicode codepoints.
# The files must use UTF-8 encoding.
# Required. Input configurations. The total number of files matched should be <=
# 1000. The total content size should be <= 100M Unicode codepoints. The files
# must use UTF-8 encoding.
# Corresponds to the JSON property `inputConfigs`
# @return [Array<Google::Apis::TranslateV3::InputConfig>]
attr_accessor :input_configs
# Optional. The labels with user-defined metadata for the request.
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints), can only contain lowercase letters, numeric
# characters, underscores and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
# See https://cloud.google.com/translate/docs/advanced/labels for more
# information.
# Optional. The labels with user-defined metadata for the request. Label keys
# and values can be no longer than 63 characters (Unicode codepoints), can only
# contain lowercase letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label keys
# must start with a letter. See https://cloud.google.com/translate/docs/advanced/
# labels for more information.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Optional. The models to use for translation. Map's key is target language
# code. Map's value is model name. Value can be a built-in general model,
# or an AutoML Translation model.
# The value format depends on model type:
# - AutoML Translation models:
# `projects/`project-number-or-id`/locations/`location-id`/models/`model-id``
# - General (built-in) models:
# `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
# `projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# If the map is empty or a specific model is
# not requested for a language pair, then default google model (nmt) is used.
# Optional. The models to use for translation. Map's key is target language code.
# Map's value is model name. Value can be a built-in general model, or an
# AutoML Translation model. The value format depends on model type: - AutoML
# Translation models: `projects/`project-number-or-id`/locations/`location-id`/
# models/`model-id`` - General (built-in) models: `projects/`project-number-or-
# id`/locations/`location-id`/models/general/nmt`, `projects/`project-number-or-
# id`/locations/`location-id`/models/general/base` If the map is empty or a
# specific model is not requested for a language pair, then default google model
# (nmt) is used.
# Corresponds to the JSON property `models`
# @return [Hash<String,String>]
attr_accessor :models
@ -119,31 +115,27 @@ module Google
# @return [String]
attr_accessor :content
# Optional. The labels with user-defined metadata for the request.
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints), can only contain lowercase letters, numeric
# characters, underscores and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
# See https://cloud.google.com/translate/docs/advanced/labels for more
# information.
# Optional. The labels with user-defined metadata for the request. Label keys
# and values can be no longer than 63 characters (Unicode codepoints), can only
# contain lowercase letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label keys
# must start with a letter. See https://cloud.google.com/translate/docs/advanced/
# labels for more information.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Optional. The format of the source text, for example, "text/html",
# "text/plain". If left blank, the MIME type defaults to "text/html".
# Optional. The format of the source text, for example, "text/html", "text/plain"
# . If left blank, the MIME type defaults to "text/html".
# Corresponds to the JSON property `mimeType`
# @return [String]
attr_accessor :mime_type
# Optional. The language detection model to be used.
# Format:
# `projects/`project-number-or-id`/locations/`location-id`/models/language-
# detection/`model-id``
# Only one language detection model is currently supported:
# `projects/`project-number-or-id`/locations/`location-id`/models/language-
# detection/default`.
# If not specified, the default model is used.
# Optional. The language detection model to be used. Format: `projects/`project-
# number-or-id`/locations/`location-id`/models/language-detection/`model-id``
# Only one language detection model is currently supported: `projects/`project-
# number-or-id`/locations/`location-id`/models/language-detection/default`. If
# not specified, the default model is used.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
@ -207,13 +199,11 @@ module Google
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
@ -231,8 +221,7 @@ module Google
include Google::Apis::Core::Hashable
# Required. The bucket used in 'output_uri_prefix' must exist and there must be
# no
# files under 'output_uri_prefix'. 'output_uri_prefix' must end with "/" and
# no files under 'output_uri_prefix'. 'output_uri_prefix' must end with "/" and
# start with "gs://". One 'output_uri_prefix' can only be used by one batch
# translation job at a time. Otherwise an INVALID_ARGUMENT (400) error is
# returned.
@ -298,8 +287,8 @@ module Google
# @return [Google::Apis::TranslateV3::LanguageCodePair]
attr_accessor :language_pair
# Required. The resource name of the glossary. Glossary names have the form
# `projects/`project-number-or-id`/locations/`location-id`/glossaries/`glossary-
# Required. The resource name of the glossary. Glossary names have the form `
# projects/`project-number-or-id`/locations/`location-id`/glossaries/`glossary-
# id``.
# Corresponds to the JSON property `name`
# @return [String]
@ -354,9 +343,8 @@ module Google
# @return [Google::Apis::TranslateV3::GcsSource]
attr_accessor :gcs_source
# Optional. Can be "text/plain" or "text/html".
# For `.tsv`, "text/html" is used if mime_type is missing.
# For `.html`, this field must be "text/html" or empty.
# Optional. Can be "text/plain" or "text/html". For `.tsv`, "text/html" is used
# if mime_type is missing. For `.html`, this field must be "text/html" or empty.
# For `.txt`, this field must be "text/plain" or empty.
# Corresponds to the JSON property `mimeType`
# @return [String]
@ -377,14 +365,14 @@ module Google
class LanguageCodePair
include Google::Apis::Core::Hashable
# Required. The BCP-47 language code of the input text, for example,
# "en-US". Expected to be an exact match for GlossaryTerm.language_code.
# Required. The BCP-47 language code of the input text, for example, "en-US".
# Expected to be an exact match for GlossaryTerm.language_code.
# Corresponds to the JSON property `sourceLanguageCode`
# @return [String]
attr_accessor :source_language_code
# Required. The BCP-47 language code for translation output, for example,
# "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
# Required. The BCP-47 language code for translation output, for example, "zh-CN"
# . Expected to be an exact match for GlossaryTerm.language_code.
# Corresponds to the JSON property `targetLanguageCode`
# @return [String]
attr_accessor :target_language_code
@ -404,9 +392,9 @@ module Google
class LanguageCodesSet
include Google::Apis::Core::Hashable
# The BCP-47 language code(s) for terms defined in the glossary.
# All entries are unique. The list contains at least two entries.
# Expected to be an exact match for GlossaryTerm.language_code.
# The BCP-47 language code(s) for terms defined in the glossary. All entries are
# unique. The list contains at least two entries. Expected to be an exact match
# for GlossaryTerm.language_code.
# Corresponds to the JSON property `languageCodes`
# @return [Array<String>]
attr_accessor :language_codes
@ -430,9 +418,9 @@ module Google
# @return [Array<Google::Apis::TranslateV3::Glossary>]
attr_accessor :glossaries
# A token to retrieve a page of results. Pass this value in the
# [ListGlossariesRequest.page_token] field in the subsequent call to
# `ListGlossaries` method to retrieve the next page of results.
# A token to retrieve a page of results. Pass this value in the [
# ListGlossariesRequest.page_token] field in the subsequent call to `
# ListGlossaries` method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -502,14 +490,14 @@ module Google
class Location
include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name.
# For example, "Tokyo".
# The friendly name for this location, typically a nearby city name. For example,
# "Tokyo".
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Cross-service attributes for the location. For example
# `"cloud.googleapis.com/region": "us-east1"`
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
# region": "us-east1"`
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -525,8 +513,8 @@ module Google
# @return [Hash<String,Object>]
attr_accessor :metadata
# Resource name for the location, which may vary between implementations.
# For example: `"projects/example-project/locations/us-east1"`
# Resource name for the location, which may vary between implementations. For
# example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -550,47 +538,45 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::TranslateV3::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# 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 be a resource name ending with `operations/`unique_id``.
# originally returns it. If you use the default HTTP mapping, the `name` should
# be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@ -628,12 +614,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@ -642,15 +628,15 @@ module Google
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -667,8 +653,8 @@ module Google
end
end
# A single supported language response corresponds to information related
# to one supported language.
# A single supported language response corresponds to information related to one
# supported language.
class SupportedLanguage
include Google::Apis::Core::Hashable
@ -678,10 +664,9 @@ module Google
# @return [String]
attr_accessor :display_name
# Supported language code, generally consisting of its ISO 639-1
# identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
# including language and region identifiers are returned (for example,
# 'zh-TW' and 'zh-CN')
# Supported language code, generally consisting of its ISO 639-1 identifier, for
# example, 'en', 'ja'. In certain cases, BCP-47 codes including language and
# region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -715,8 +700,8 @@ module Google
class SupportedLanguages
include Google::Apis::Core::Hashable
# A list of supported language responses. This list contains an entry
# for each language the Translation API supports.
# A list of supported language responses. This list contains an entry for each
# language the Translation API supports.
# Corresponds to the JSON property `languages`
# @return [Array<Google::Apis::TranslateV3::SupportedLanguage>]
attr_accessor :languages
@ -731,22 +716,20 @@ module Google
end
end
# Configures which glossary should be used for a specific target language,
# and defines options for applying that glossary.
# Configures which glossary should be used for a specific target language, and
# defines options for applying that glossary.
class TranslateTextGlossaryConfig
include Google::Apis::Core::Hashable
# Required. The `glossary` to be applied for this translation.
# The format depends on glossary:
# - User provided custom glossary:
# `projects/`project-number-or-id`/locations/`location-id`/glossaries/`
# glossary-id``
# Required. The `glossary` to be applied for this translation. The format
# depends on glossary: - User provided custom glossary: `projects/`project-
# number-or-id`/locations/`location-id`/glossaries/`glossary-id``
# Corresponds to the JSON property `glossary`
# @return [String]
attr_accessor :glossary
# Optional. Indicates match is case-insensitive.
# Default value is false if missing.
# Optional. Indicates match is case-insensitive. Default value is false if
# missing.
# Corresponds to the JSON property `ignoreCase`
# @return [Boolean]
attr_accessor :ignore_case
@ -767,62 +750,57 @@ module Google
class TranslateTextRequest
include Google::Apis::Core::Hashable
# Required. The content of the input in string format.
# We recommend the total content be less than 30k codepoints.
# Use BatchTranslateText for larger text.
# Required. The content of the input in string format. We recommend the total
# content be less than 30k codepoints. Use BatchTranslateText for larger text.
# Corresponds to the JSON property `contents`
# @return [Array<String>]
attr_accessor :contents
# Configures which glossary should be used for a specific target language,
# and defines options for applying that glossary.
# Configures which glossary should be used for a specific target language, and
# defines options for applying that glossary.
# Corresponds to the JSON property `glossaryConfig`
# @return [Google::Apis::TranslateV3::TranslateTextGlossaryConfig]
attr_accessor :glossary_config
# Optional. The labels with user-defined metadata for the request.
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints), can only contain lowercase letters, numeric
# characters, underscores and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
# See https://cloud.google.com/translate/docs/advanced/labels for more
# information.
# Optional. The labels with user-defined metadata for the request. Label keys
# and values can be no longer than 63 characters (Unicode codepoints), can only
# contain lowercase letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label keys
# must start with a letter. See https://cloud.google.com/translate/docs/advanced/
# labels for more information.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Optional. The format of the source text, for example, "text/html",
# "text/plain". If left blank, the MIME type defaults to "text/html".
# Optional. The format of the source text, for example, "text/html", "text/plain"
# . If left blank, the MIME type defaults to "text/html".
# Corresponds to the JSON property `mimeType`
# @return [String]
attr_accessor :mime_type
# Optional. The `model` type requested for this translation.
# The format depends on model type:
# - AutoML Translation models:
# `projects/`project-number-or-id`/locations/`location-id`/models/`model-id``
# - General (built-in) models:
# `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
# `projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# For global (non-regionalized) requests, use `location-id` `global`.
# For example,
# `projects/`project-number-or-id`/locations/global/models/general/nmt`.
# Optional. The `model` type requested for this translation. The format depends
# on model type: - AutoML Translation models: `projects/`project-number-or-id`/
# locations/`location-id`/models/`model-id`` - General (built-in) models: `
# projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`, `
# projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# For global (non-regionalized) requests, use `location-id` `global`. For
# example, `projects/`project-number-or-id`/locations/global/models/general/nmt`.
# If missing, the system decides which google base model to use.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
# Optional. The BCP-47 language code of the input text if
# known, for example, "en-US" or "sr-Latn". Supported language codes are
# listed in Language Support. If the source language isn't specified, the API
# attempts to identify the source language automatically and returns the
# source language within the response.
# Optional. The BCP-47 language code of the input text if known, for example, "
# en-US" or "sr-Latn". Supported language codes are listed in Language Support.
# If the source language isn't specified, the API attempts to identify the
# source language automatically and returns the source language within the
# response.
# Corresponds to the JSON property `sourceLanguageCode`
# @return [String]
attr_accessor :source_language_code
# Required. The BCP-47 language code to use for translation of the input
# text, set to one of the language codes listed in Language Support.
# Required. The BCP-47 language code to use for translation of the input text,
# set to one of the language codes listed in Language Support.
# Corresponds to the JSON property `targetLanguageCode`
# @return [String]
attr_accessor :target_language_code
@ -847,18 +825,15 @@ module Google
class TranslateTextResponse
include Google::Apis::Core::Hashable
# Text translation responses if a glossary is provided in the request.
# This can be the same as
# `translations` if no terms apply.
# This field has the same length as
# `contents`.
# Text translation responses if a glossary is provided in the request. This can
# be the same as `translations` if no terms apply. This field has the same
# length as `contents`.
# Corresponds to the JSON property `glossaryTranslations`
# @return [Array<Google::Apis::TranslateV3::Translation>]
attr_accessor :glossary_translations
# Text translation responses with no glossary applied.
# This field has the same length as
# `contents`.
# Text translation responses with no glossary applied. This field has the same
# length as `contents`.
# Corresponds to the JSON property `translations`
# @return [Array<Google::Apis::TranslateV3::Translation>]
attr_accessor :translations
@ -879,26 +854,24 @@ module Google
include Google::Apis::Core::Hashable
# The BCP-47 language code of source text in the initial request, detected
# automatically, if no source language was passed within the initial
# request. If the source language was passed, auto-detection of the language
# does not occur and this field is empty.
# automatically, if no source language was passed within the initial request. If
# the source language was passed, auto-detection of the language does not occur
# and this field is empty.
# Corresponds to the JSON property `detectedLanguageCode`
# @return [String]
attr_accessor :detected_language_code
# Configures which glossary should be used for a specific target language,
# and defines options for applying that glossary.
# Configures which glossary should be used for a specific target language, and
# defines options for applying that glossary.
# Corresponds to the JSON property `glossaryConfig`
# @return [Google::Apis::TranslateV3::TranslateTextGlossaryConfig]
attr_accessor :glossary_config
# Only present when `model` is present in the request.
# `model` here is normalized to have project number.
# For example:
# If the `model` requested in TranslationTextRequest is
# `projects/`project-id`/locations/`location-id`/models/general/nmt` then
# `model` here would be normalized to
# `projects/`project-number`/locations/`location-id`/models/general/nmt`.
# Only present when `model` is present in the request. `model` here is
# normalized to have project number. For example: If the `model` requested in
# TranslationTextRequest is `projects/`project-id`/locations/`location-id`/
# models/general/nmt` then `model` here would be normalized to `projects/`
# project-number`/locations/`location-id`/models/general/nmt`.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
@ -925,9 +898,9 @@ module Google
class WaitOperationRequest
include Google::Apis::Core::Hashable
# The maximum duration to wait before timing out. If left blank, the wait
# will be at most the time permitted by the underlying HTTP/RPC protocol.
# If RPC context deadline is also specified, the shorter one will be used.
# The maximum duration to wait before timing out. If left blank, the wait will
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
# context deadline is also specified, the shorter one will be used.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout

View File

@ -49,14 +49,12 @@ module Google
# Detects the language of text within a request.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`/locations/`location-id`` or
# `projects/`project-number-or-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Only models within the same region (has same location-id) can be used.
# Otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`/locations/`location-id`` or `
# projects/`project-number-or-id``. For global calls, use `projects/`project-
# number-or-id`/locations/global` or `projects/`project-number-or-id``. Only
# models within the same region (has same location-id) can be used. Otherwise an
# INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3::DetectLanguageRequest] detect_language_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -89,29 +87,25 @@ module Google
# Returns a list of supported languages for translation.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`` or
# `projects/`project-number-or-id`/locations/`location-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Non-global location is required for AutoML models.
# Only models within the same region (have same location-id) can be used,
# otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`` or `projects/`project-number-or-id`/
# locations/`location-id``. For global calls, use `projects/`project-number-or-
# id`/locations/global` or `projects/`project-number-or-id``. Non-global
# location is required for AutoML models. Only models within the same region (
# have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error
# is returned.
# @param [String] display_language_code
# Optional. The language to use to return localized, human readable names
# of supported languages. If missing, then display names are not returned
# in a response.
# Optional. The language to use to return localized, human readable names of
# supported languages. If missing, then display names are not returned in a
# response.
# @param [String] model
# Optional. Get supported languages of this model.
# The format depends on model type:
# - AutoML Translation models:
# `projects/`project-number-or-id`/locations/`location-id`/models/`model-id``
# - General (built-in) models:
# `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
# `projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# Returns languages supported by the specified model.
# If missing, we get supported languages of Google general base (PBMT) model.
# Optional. Get supported languages of this model. The format depends on model
# type: - AutoML Translation models: `projects/`project-number-or-id`/locations/`
# location-id`/models/`model-id`` - General (built-in) models: `projects/`
# project-number-or-id`/locations/`location-id`/models/general/nmt`, `projects/`
# project-number-or-id`/locations/`location-id`/models/general/base` Returns
# languages supported by the specified model. If missing, we get supported
# languages of Google general base (PBMT) model.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -143,16 +137,13 @@ module Google
# Translates input text and returns translated text.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`` or
# `projects/`project-number-or-id`/locations/`location-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Non-global location is required for requests using AutoML models or
# custom glossaries.
# Models and glossaries must be within the same region (have same
# location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`` or `projects/`project-number-or-id`/
# locations/`location-id``. For global calls, use `projects/`project-number-or-
# id`/locations/global` or `projects/`project-number-or-id``. Non-global
# location is required for requests using AutoML models or custom glossaries.
# Models and glossaries must be within the same region (have same location-id),
# otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3::TranslateTextRequest] translate_text_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -183,19 +174,18 @@ module Google
execute_or_queue_command(command, &block)
end
# Translates a large volume of text in asynchronous batch mode.
# This function provides real-time output as the inputs are being processed.
# If caller cancels a request, the partial results (for an input file, it's
# all or nothing) may still be available on the specified output location.
# This call returns immediately and you can
# use google.longrunning.Operation.name to poll the status of the call.
# Translates a large volume of text in asynchronous batch mode. This function
# provides real-time output as the inputs are being processed. If caller cancels
# a request, the partial results (for an input file, it's all or nothing) may
# still be available on the specified output location. This call returns
# immediately and you can use google.longrunning.Operation.name to poll the
# status of the call.
# @param [String] parent
# Required. Location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`/locations/`location-id``.
# The `global` location is not supported for batch translation.
# Only AutoML Translation models or glossaries within the same region (have
# the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
# error is returned.
# Required. Location to make a call. Must refer to a caller's project. Format: `
# projects/`project-number-or-id`/locations/`location-id``. The `global`
# location is not supported for batch translation. Only AutoML Translation
# models or glossaries within the same region (have the same location-id) can be
# used, otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3::BatchTranslateTextRequest] batch_translate_text_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -228,14 +218,12 @@ module Google
# Detects the language of text within a request.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`/locations/`location-id`` or
# `projects/`project-number-or-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Only models within the same region (has same location-id) can be used.
# Otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`/locations/`location-id`` or `
# projects/`project-number-or-id``. For global calls, use `projects/`project-
# number-or-id`/locations/global` or `projects/`project-number-or-id``. Only
# models within the same region (has same location-id) can be used. Otherwise an
# INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3::DetectLanguageRequest] detect_language_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -298,29 +286,25 @@ module Google
# Returns a list of supported languages for translation.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`` or
# `projects/`project-number-or-id`/locations/`location-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Non-global location is required for AutoML models.
# Only models within the same region (have same location-id) can be used,
# otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`` or `projects/`project-number-or-id`/
# locations/`location-id``. For global calls, use `projects/`project-number-or-
# id`/locations/global` or `projects/`project-number-or-id``. Non-global
# location is required for AutoML models. Only models within the same region (
# have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error
# is returned.
# @param [String] display_language_code
# Optional. The language to use to return localized, human readable names
# of supported languages. If missing, then display names are not returned
# in a response.
# Optional. The language to use to return localized, human readable names of
# supported languages. If missing, then display names are not returned in a
# response.
# @param [String] model
# Optional. Get supported languages of this model.
# The format depends on model type:
# - AutoML Translation models:
# `projects/`project-number-or-id`/locations/`location-id`/models/`model-id``
# - General (built-in) models:
# `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
# `projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# Returns languages supported by the specified model.
# If missing, we get supported languages of Google general base (PBMT) model.
# Optional. Get supported languages of this model. The format depends on model
# type: - AutoML Translation models: `projects/`project-number-or-id`/locations/`
# location-id`/models/`model-id`` - General (built-in) models: `projects/`
# project-number-or-id`/locations/`location-id`/models/general/nmt`, `projects/`
# project-number-or-id`/locations/`location-id`/models/general/base` Returns
# languages supported by the specified model. If missing, we get supported
# languages of Google general base (PBMT) model.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -391,16 +375,13 @@ module Google
# Translates input text and returns translated text.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`` or
# `projects/`project-number-or-id`/locations/`location-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Non-global location is required for requests using AutoML models or
# custom glossaries.
# Models and glossaries must be within the same region (have same
# location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`` or `projects/`project-number-or-id`/
# locations/`location-id``. For global calls, use `projects/`project-number-or-
# id`/locations/global` or `projects/`project-number-or-id``. Non-global
# location is required for requests using AutoML models or custom glossaries.
# Models and glossaries must be within the same region (have same location-id),
# otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3::TranslateTextRequest] translate_text_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -431,8 +412,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a glossary and returns the long-running operation. Returns
# NOT_FOUND, if the project doesn't exist.
# Creates a glossary and returns the long-running operation. Returns NOT_FOUND,
# if the project doesn't exist.
# @param [String] parent
# Required. The project name.
# @param [Google::Apis::TranslateV3::Glossary] glossary_object
@ -465,9 +446,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a glossary, or cancels glossary construction
# if the glossary isn't created yet.
# Returns NOT_FOUND, if the glossary doesn't exist.
# Deletes a glossary, or cancels glossary construction if the glossary isn't
# created yet. Returns NOT_FOUND, if the glossary doesn't exist.
# @param [String] name
# Required. The name of the glossary to delete.
# @param [String] fields
@ -497,8 +477,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
# exist.
# Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.
# @param [String] name
# Required. The name of the glossary to retrieve.
# @param [String] fields
@ -528,35 +507,32 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
# exist.
# Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.
# @param [String] parent
# Required. The name of the project from which to list all of the glossaries.
# @param [String] filter
# Optional. Filter specifying constraints of a list operation.
# Specify the constraint by the format of "key=value", where key must be
# "src" or "tgt", and the value must be a valid language code.
# For multiple restrictions, concatenate them by "AND" (uppercase only),
# such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used
# here, which means using 'en-US' and 'en' can lead to different results,
# which depends on the language code you used when you create the glossary.
# For the unidirectional glossaries, the "src" and "tgt" add restrictions
# on the source and target language code separately.
# For the equivalent term set glossaries, the "src" and/or "tgt" add
# restrictions on the term set.
# For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional
# glossaries which exactly match the source language code as "en-US" and the
# target language code "zh-CN", but all equivalent term set glossaries which
# contain "en-US" and "zh-CN" in their language set will be picked.
# If missing, no filtering is performed.
# Optional. Filter specifying constraints of a list operation. Specify the
# constraint by the format of "key=value", where key must be "src" or "tgt", and
# the value must be a valid language code. For multiple restrictions,
# concatenate them by "AND" (uppercase only), such as: "src=en-US AND tgt=zh-CN".
# Notice that the exact match is used here, which means using 'en-US' and 'en'
# can lead to different results, which depends on the language code you used
# when you create the glossary. For the unidirectional glossaries, the "src" and
# "tgt" add restrictions on the source and target language code separately. For
# the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on
# the term set. For example: "src=en-US AND tgt=zh-CN" will only pick the
# unidirectional glossaries which exactly match the source language code as "en-
# US" and the target language code "zh-CN", but all equivalent term set
# glossaries which contain "en-US" and "zh-CN" in their language set will be
# picked. If missing, no filtering is performed.
# @param [Fixnum] page_size
# Optional. Requested page size. The server may return fewer glossaries than
# requested. If unspecified, the server picks an appropriate default.
# @param [String] page_token
# Optional. A token identifying a page of results the server should return.
# Typically, this is the value of [ListGlossariesResponse.next_page_token]
# returned from the previous call to `ListGlossaries` method.
# The first page is returned if `page_token`is empty or missing.
# returned from the previous call to `ListGlossaries` method. The first page is
# returned if `page_token`is empty or missing.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -587,15 +563,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# On successful cancellation, the operation is not deleted; instead, it becomes
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
@ -629,10 +603,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# Deletes a long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns `google.rpc.Code.
# UNIMPLEMENTED`.
# @param [String] name
# The name of the operation resource to be deleted.
# @param [String] fields
@ -662,9 +636,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -694,15 +667,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
@ -741,15 +713,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Waits for the specified long-running operation until it is done or reaches
# at most a specified timeout, returning the latest state. If the operation
# is already done, the latest state is immediately returned. If the timeout
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
# timeout is used. If the server does not support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# Note that this method is on a best-effort basis. It may return the latest
# state before the specified timeout (including immediately), meaning even an
# immediate response is no guarantee that the operation is done.
# Waits for the specified long-running operation until it is done or reaches at
# most a specified timeout, returning the latest state. If the operation is
# already done, the latest state is immediately returned. If the timeout
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout
# is used. If the server does not support this method, it returns `google.rpc.
# Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may
# return the latest state before the specified timeout (including immediately),
# meaning even an immediate response is no guarantee that the operation is done.
# @param [String] name
# The name of the operation resource to wait on.
# @param [Google::Apis::TranslateV3::WaitOperationRequest] wait_operation_request_object

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/translate/docs/quickstarts
module TranslateV3beta1
VERSION = 'V3beta1'
REVISION = '20200730'
REVISION = '20200807'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,41 +26,38 @@ module Google
class BatchTranslateTextRequest
include Google::Apis::Core::Hashable
# Optional. Glossaries to be applied for translation.
# It's keyed by target language code.
# Optional. Glossaries to be applied for translation. It's keyed by target
# language code.
# Corresponds to the JSON property `glossaries`
# @return [Hash<String,Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig>]
attr_accessor :glossaries
# Required. Input configurations.
# The total number of files matched should be <= 1000.
# The total content size should be <= 100M Unicode codepoints.
# The files must use UTF-8 encoding.
# Required. Input configurations. The total number of files matched should be <=
# 1000. The total content size should be <= 100M Unicode codepoints. The files
# must use UTF-8 encoding.
# Corresponds to the JSON property `inputConfigs`
# @return [Array<Google::Apis::TranslateV3beta1::InputConfig>]
attr_accessor :input_configs
# Optional. The labels with user-defined metadata for the request.
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints), can only contain lowercase letters, numeric
# characters, underscores and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
# See https://cloud.google.com/translate/docs/labels for more information.
# Optional. The labels with user-defined metadata for the request. Label keys
# and values can be no longer than 63 characters (Unicode codepoints), can only
# contain lowercase letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label keys
# must start with a letter. See https://cloud.google.com/translate/docs/labels
# for more information.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Optional. The models to use for translation. Map's key is target language
# code. Map's value is model name. Value can be a built-in general model,
# or an AutoML Translation model.
# The value format depends on model type:
# - AutoML Translation models:
# `projects/`project-number-or-id`/locations/`location-id`/models/`model-id``
# - General (built-in) models:
# `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
# `projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# If the map is empty or a specific model is
# not requested for a language pair, then default google model (nmt) is used.
# Optional. The models to use for translation. Map's key is target language code.
# Map's value is model name. Value can be a built-in general model, or an
# AutoML Translation model. The value format depends on model type: - AutoML
# Translation models: `projects/`project-number-or-id`/locations/`location-id`/
# models/`model-id`` - General (built-in) models: `projects/`project-number-or-
# id`/locations/`location-id`/models/general/nmt`, `projects/`project-number-or-
# id`/locations/`location-id`/models/general/base` If the map is empty or a
# specific model is not requested for a language pair, then default google model
# (nmt) is used.
# Corresponds to the JSON property `models`
# @return [Hash<String,String>]
attr_accessor :models
@ -118,30 +115,27 @@ module Google
# @return [String]
attr_accessor :content
# Optional. The labels with user-defined metadata for the request.
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints), can only contain lowercase letters, numeric
# characters, underscores and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
# See https://cloud.google.com/translate/docs/labels for more information.
# Optional. The labels with user-defined metadata for the request. Label keys
# and values can be no longer than 63 characters (Unicode codepoints), can only
# contain lowercase letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label keys
# must start with a letter. See https://cloud.google.com/translate/docs/labels
# for more information.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Optional. The format of the source text, for example, "text/html",
# "text/plain". If left blank, the MIME type defaults to "text/html".
# Optional. The format of the source text, for example, "text/html", "text/plain"
# . If left blank, the MIME type defaults to "text/html".
# Corresponds to the JSON property `mimeType`
# @return [String]
attr_accessor :mime_type
# Optional. The language detection model to be used.
# Format:
# `projects/`project-number-or-id`/locations/`location-id`/models/language-
# detection/`model-id``
# Only one language detection model is currently supported:
# `projects/`project-number-or-id`/locations/`location-id`/models/language-
# detection/default`.
# If not specified, the default model is used.
# Optional. The language detection model to be used. Format: `projects/`project-
# number-or-id`/locations/`location-id`/models/language-detection/`model-id``
# Only one language detection model is currently supported: `projects/`project-
# number-or-id`/locations/`location-id`/models/language-detection/default`. If
# not specified, the default model is used.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
@ -205,13 +199,11 @@ module Google
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
@ -228,9 +220,9 @@ module Google
class GcsDestination
include Google::Apis::Core::Hashable
# Required. There must be no files under 'output_uri_prefix'.
# 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
# INVALID_ARGUMENT (400) error is returned.
# Required. There must be no files under 'output_uri_prefix'. 'output_uri_prefix'
# must end with "/" and start with "gs://", otherwise an INVALID_ARGUMENT (400)
# error is returned.
# Corresponds to the JSON property `outputUriPrefix`
# @return [String]
attr_accessor :output_uri_prefix
@ -293,8 +285,8 @@ module Google
# @return [Google::Apis::TranslateV3beta1::LanguageCodePair]
attr_accessor :language_pair
# Required. The resource name of the glossary. Glossary names have the form
# `projects/`project-number-or-id`/locations/`location-id`/glossaries/`glossary-
# Required. The resource name of the glossary. Glossary names have the form `
# projects/`project-number-or-id`/locations/`location-id`/glossaries/`glossary-
# id``.
# Corresponds to the JSON property `name`
# @return [String]
@ -349,9 +341,8 @@ module Google
# @return [Google::Apis::TranslateV3beta1::GcsSource]
attr_accessor :gcs_source
# Optional. Can be "text/plain" or "text/html".
# For `.tsv`, "text/html" is used if mime_type is missing.
# For `.html`, this field must be "text/html" or empty.
# Optional. Can be "text/plain" or "text/html". For `.tsv`, "text/html" is used
# if mime_type is missing. For `.html`, this field must be "text/html" or empty.
# For `.txt`, this field must be "text/plain" or empty.
# Corresponds to the JSON property `mimeType`
# @return [String]
@ -372,14 +363,14 @@ module Google
class LanguageCodePair
include Google::Apis::Core::Hashable
# Required. The BCP-47 language code of the input text, for example,
# "en-US". Expected to be an exact match for GlossaryTerm.language_code.
# Required. The BCP-47 language code of the input text, for example, "en-US".
# Expected to be an exact match for GlossaryTerm.language_code.
# Corresponds to the JSON property `sourceLanguageCode`
# @return [String]
attr_accessor :source_language_code
# Required. The BCP-47 language code for translation output, for example,
# "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
# Required. The BCP-47 language code for translation output, for example, "zh-CN"
# . Expected to be an exact match for GlossaryTerm.language_code.
# Corresponds to the JSON property `targetLanguageCode`
# @return [String]
attr_accessor :target_language_code
@ -399,9 +390,9 @@ module Google
class LanguageCodesSet
include Google::Apis::Core::Hashable
# The BCP-47 language code(s) for terms defined in the glossary.
# All entries are unique. The list contains at least two entries.
# Expected to be an exact match for GlossaryTerm.language_code.
# The BCP-47 language code(s) for terms defined in the glossary. All entries are
# unique. The list contains at least two entries. Expected to be an exact match
# for GlossaryTerm.language_code.
# Corresponds to the JSON property `languageCodes`
# @return [Array<String>]
attr_accessor :language_codes
@ -425,9 +416,9 @@ module Google
# @return [Array<Google::Apis::TranslateV3beta1::Glossary>]
attr_accessor :glossaries
# A token to retrieve a page of results. Pass this value in the
# [ListGlossariesRequest.page_token] field in the subsequent call to
# `ListGlossaries` method to retrieve the next page of results.
# A token to retrieve a page of results. Pass this value in the [
# ListGlossariesRequest.page_token] field in the subsequent call to `
# ListGlossaries` method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -497,14 +488,14 @@ module Google
class Location
include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name.
# For example, "Tokyo".
# The friendly name for this location, typically a nearby city name. For example,
# "Tokyo".
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Cross-service attributes for the location. For example
# `"cloud.googleapis.com/region": "us-east1"`
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
# region": "us-east1"`
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -520,8 +511,8 @@ module Google
# @return [Hash<String,Object>]
attr_accessor :metadata
# Resource name for the location, which may vary between implementations.
# For example: `"projects/example-project/locations/us-east1"`
# Resource name for the location, which may vary between implementations. For
# example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -545,47 +536,45 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::TranslateV3beta1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# 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 be a resource name ending with `operations/`unique_id``.
# originally returns it. If you use the default HTTP mapping, the `name` should
# be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@ -623,12 +612,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@ -637,15 +626,15 @@ module Google
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -662,8 +651,8 @@ module Google
end
end
# A single supported language response corresponds to information related
# to one supported language.
# A single supported language response corresponds to information related to one
# supported language.
class SupportedLanguage
include Google::Apis::Core::Hashable
@ -673,10 +662,9 @@ module Google
# @return [String]
attr_accessor :display_name
# Supported language code, generally consisting of its ISO 639-1
# identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
# including language and region identifiers are returned (for example,
# 'zh-TW' and 'zh-CN')
# Supported language code, generally consisting of its ISO 639-1 identifier, for
# example, 'en', 'ja'. In certain cases, BCP-47 codes including language and
# region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -710,8 +698,8 @@ module Google
class SupportedLanguages
include Google::Apis::Core::Hashable
# A list of supported language responses. This list contains an entry
# for each language the Translation API supports.
# A list of supported language responses. This list contains an entry for each
# language the Translation API supports.
# Corresponds to the JSON property `languages`
# @return [Array<Google::Apis::TranslateV3beta1::SupportedLanguage>]
attr_accessor :languages
@ -726,19 +714,19 @@ module Google
end
end
# Configures which glossary should be used for a specific target language,
# and defines options for applying that glossary.
# Configures which glossary should be used for a specific target language, and
# defines options for applying that glossary.
class TranslateTextGlossaryConfig
include Google::Apis::Core::Hashable
# Required. Specifies the glossary used for this translation. Use
# this format: projects/*/locations/*/glossaries/*
# Required. Specifies the glossary used for this translation. Use this format:
# projects/*/locations/*/glossaries/*
# Corresponds to the JSON property `glossary`
# @return [String]
attr_accessor :glossary
# Optional. Indicates match is case-insensitive.
# Default value is false if missing.
# Optional. Indicates match is case-insensitive. Default value is false if
# missing.
# Corresponds to the JSON property `ignoreCase`
# @return [Boolean]
attr_accessor :ignore_case
@ -759,61 +747,57 @@ module Google
class TranslateTextRequest
include Google::Apis::Core::Hashable
# Required. The content of the input in string format.
# We recommend the total content be less than 30k codepoints.
# Use BatchTranslateText for larger text.
# Required. The content of the input in string format. We recommend the total
# content be less than 30k codepoints. Use BatchTranslateText for larger text.
# Corresponds to the JSON property `contents`
# @return [Array<String>]
attr_accessor :contents
# Configures which glossary should be used for a specific target language,
# and defines options for applying that glossary.
# Configures which glossary should be used for a specific target language, and
# defines options for applying that glossary.
# Corresponds to the JSON property `glossaryConfig`
# @return [Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig]
attr_accessor :glossary_config
# Optional. The labels with user-defined metadata for the request.
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints), can only contain lowercase letters, numeric
# characters, underscores and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
# See https://cloud.google.com/translate/docs/labels for more information.
# Optional. The labels with user-defined metadata for the request. Label keys
# and values can be no longer than 63 characters (Unicode codepoints), can only
# contain lowercase letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label keys
# must start with a letter. See https://cloud.google.com/translate/docs/labels
# for more information.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Optional. The format of the source text, for example, "text/html",
# "text/plain". If left blank, the MIME type defaults to "text/html".
# Optional. The format of the source text, for example, "text/html", "text/plain"
# . If left blank, the MIME type defaults to "text/html".
# Corresponds to the JSON property `mimeType`
# @return [String]
attr_accessor :mime_type
# Optional. The `model` type requested for this translation.
# The format depends on model type:
# - AutoML Translation models:
# `projects/`project-number-or-id`/locations/`location-id`/models/`model-id``
# - General (built-in) models:
# `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
# `projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# For global (non-regionalized) requests, use `location-id` `global`.
# For example,
# `projects/`project-number-or-id`/locations/global/models/general/nmt`.
# Optional. The `model` type requested for this translation. The format depends
# on model type: - AutoML Translation models: `projects/`project-number-or-id`/
# locations/`location-id`/models/`model-id`` - General (built-in) models: `
# projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`, `
# projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# For global (non-regionalized) requests, use `location-id` `global`. For
# example, `projects/`project-number-or-id`/locations/global/models/general/nmt`.
# If missing, the system decides which google base model to use.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
# Optional. The BCP-47 language code of the input text if
# known, for example, "en-US" or "sr-Latn". Supported language codes are
# listed in Language Support. If the source language isn't specified, the API
# attempts to identify the source language automatically and returns the
# source language within the response.
# Optional. The BCP-47 language code of the input text if known, for example, "
# en-US" or "sr-Latn". Supported language codes are listed in Language Support.
# If the source language isn't specified, the API attempts to identify the
# source language automatically and returns the source language within the
# response.
# Corresponds to the JSON property `sourceLanguageCode`
# @return [String]
attr_accessor :source_language_code
# Required. The BCP-47 language code to use for translation of the input
# text, set to one of the language codes listed in Language Support.
# Required. The BCP-47 language code to use for translation of the input text,
# set to one of the language codes listed in Language Support.
# Corresponds to the JSON property `targetLanguageCode`
# @return [String]
attr_accessor :target_language_code
@ -838,18 +822,15 @@ module Google
class TranslateTextResponse
include Google::Apis::Core::Hashable
# Text translation responses if a glossary is provided in the request.
# This can be the same as
# `translations` if no terms apply.
# This field has the same length as
# `contents`.
# Text translation responses if a glossary is provided in the request. This can
# be the same as `translations` if no terms apply. This field has the same
# length as `contents`.
# Corresponds to the JSON property `glossaryTranslations`
# @return [Array<Google::Apis::TranslateV3beta1::Translation>]
attr_accessor :glossary_translations
# Text translation responses with no glossary applied.
# This field has the same length as
# `contents`.
# Text translation responses with no glossary applied. This field has the same
# length as `contents`.
# Corresponds to the JSON property `translations`
# @return [Array<Google::Apis::TranslateV3beta1::Translation>]
attr_accessor :translations
@ -870,26 +851,24 @@ module Google
include Google::Apis::Core::Hashable
# The BCP-47 language code of source text in the initial request, detected
# automatically, if no source language was passed within the initial
# request. If the source language was passed, auto-detection of the language
# does not occur and this field is empty.
# automatically, if no source language was passed within the initial request. If
# the source language was passed, auto-detection of the language does not occur
# and this field is empty.
# Corresponds to the JSON property `detectedLanguageCode`
# @return [String]
attr_accessor :detected_language_code
# Configures which glossary should be used for a specific target language,
# and defines options for applying that glossary.
# Configures which glossary should be used for a specific target language, and
# defines options for applying that glossary.
# Corresponds to the JSON property `glossaryConfig`
# @return [Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig]
attr_accessor :glossary_config
# Only present when `model` is present in the request.
# `model` here is normalized to have project number.
# For example:
# If the `model` requested in TranslationTextRequest is
# `projects/`project-id`/locations/`location-id`/models/general/nmt` then
# `model` here would be normalized to
# `projects/`project-number`/locations/`location-id`/models/general/nmt`.
# Only present when `model` is present in the request. `model` here is
# normalized to have project number. For example: If the `model` requested in
# TranslationTextRequest is `projects/`project-id`/locations/`location-id`/
# models/general/nmt` then `model` here would be normalized to `projects/`
# project-number`/locations/`location-id`/models/general/nmt`.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
@ -916,9 +895,9 @@ module Google
class WaitOperationRequest
include Google::Apis::Core::Hashable
# The maximum duration to wait before timing out. If left blank, the wait
# will be at most the time permitted by the underlying HTTP/RPC protocol.
# If RPC context deadline is also specified, the shorter one will be used.
# The maximum duration to wait before timing out. If left blank, the wait will
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
# context deadline is also specified, the shorter one will be used.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout

View File

@ -49,14 +49,12 @@ module Google
# Detects the language of text within a request.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`/locations/`location-id`` or
# `projects/`project-number-or-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Only models within the same region (has same location-id) can be used.
# Otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`/locations/`location-id`` or `
# projects/`project-number-or-id``. For global calls, use `projects/`project-
# number-or-id`/locations/global` or `projects/`project-number-or-id``. Only
# models within the same region (has same location-id) can be used. Otherwise an
# INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3beta1::DetectLanguageRequest] detect_language_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -89,29 +87,25 @@ module Google
# Returns a list of supported languages for translation.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`` or
# `projects/`project-number-or-id`/locations/`location-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Non-global location is required for AutoML models.
# Only models within the same region (have same location-id) can be used,
# otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`` or `projects/`project-number-or-id`/
# locations/`location-id``. For global calls, use `projects/`project-number-or-
# id`/locations/global` or `projects/`project-number-or-id``. Non-global
# location is required for AutoML models. Only models within the same region (
# have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error
# is returned.
# @param [String] display_language_code
# Optional. The language to use to return localized, human readable names
# of supported languages. If missing, then display names are not returned
# in a response.
# Optional. The language to use to return localized, human readable names of
# supported languages. If missing, then display names are not returned in a
# response.
# @param [String] model
# Optional. Get supported languages of this model.
# The format depends on model type:
# - AutoML Translation models:
# `projects/`project-number-or-id`/locations/`location-id`/models/`model-id``
# - General (built-in) models:
# `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
# `projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# Returns languages supported by the specified model.
# If missing, we get supported languages of Google general base (PBMT) model.
# Optional. Get supported languages of this model. The format depends on model
# type: - AutoML Translation models: `projects/`project-number-or-id`/locations/`
# location-id`/models/`model-id`` - General (built-in) models: `projects/`
# project-number-or-id`/locations/`location-id`/models/general/nmt`, `projects/`
# project-number-or-id`/locations/`location-id`/models/general/base` Returns
# languages supported by the specified model. If missing, we get supported
# languages of Google general base (PBMT) model.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -143,16 +137,13 @@ module Google
# Translates input text and returns translated text.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`` or
# `projects/`project-number-or-id`/locations/`location-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Non-global location is required for requests using AutoML models or
# custom glossaries.
# Models and glossaries must be within the same region (have same
# location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`` or `projects/`project-number-or-id`/
# locations/`location-id``. For global calls, use `projects/`project-number-or-
# id`/locations/global` or `projects/`project-number-or-id``. Non-global
# location is required for requests using AutoML models or custom glossaries.
# Models and glossaries must be within the same region (have same location-id),
# otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3beta1::TranslateTextRequest] translate_text_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -183,19 +174,18 @@ module Google
execute_or_queue_command(command, &block)
end
# Translates a large volume of text in asynchronous batch mode.
# This function provides real-time output as the inputs are being processed.
# If caller cancels a request, the partial results (for an input file, it's
# all or nothing) may still be available on the specified output location.
# This call returns immediately and you can
# use google.longrunning.Operation.name to poll the status of the call.
# Translates a large volume of text in asynchronous batch mode. This function
# provides real-time output as the inputs are being processed. If caller cancels
# a request, the partial results (for an input file, it's all or nothing) may
# still be available on the specified output location. This call returns
# immediately and you can use google.longrunning.Operation.name to poll the
# status of the call.
# @param [String] parent
# Required. Location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`/locations/`location-id``.
# The `global` location is not supported for batch translation.
# Only AutoML Translation models or glossaries within the same region (have
# the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
# error is returned.
# Required. Location to make a call. Must refer to a caller's project. Format: `
# projects/`project-number-or-id`/locations/`location-id``. The `global`
# location is not supported for batch translation. Only AutoML Translation
# models or glossaries within the same region (have the same location-id) can be
# used, otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3beta1::BatchTranslateTextRequest] batch_translate_text_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -228,14 +218,12 @@ module Google
# Detects the language of text within a request.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`/locations/`location-id`` or
# `projects/`project-number-or-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Only models within the same region (has same location-id) can be used.
# Otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`/locations/`location-id`` or `
# projects/`project-number-or-id``. For global calls, use `projects/`project-
# number-or-id`/locations/global` or `projects/`project-number-or-id``. Only
# models within the same region (has same location-id) can be used. Otherwise an
# INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3beta1::DetectLanguageRequest] detect_language_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -298,29 +286,25 @@ module Google
# Returns a list of supported languages for translation.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`` or
# `projects/`project-number-or-id`/locations/`location-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Non-global location is required for AutoML models.
# Only models within the same region (have same location-id) can be used,
# otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`` or `projects/`project-number-or-id`/
# locations/`location-id``. For global calls, use `projects/`project-number-or-
# id`/locations/global` or `projects/`project-number-or-id``. Non-global
# location is required for AutoML models. Only models within the same region (
# have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error
# is returned.
# @param [String] display_language_code
# Optional. The language to use to return localized, human readable names
# of supported languages. If missing, then display names are not returned
# in a response.
# Optional. The language to use to return localized, human readable names of
# supported languages. If missing, then display names are not returned in a
# response.
# @param [String] model
# Optional. Get supported languages of this model.
# The format depends on model type:
# - AutoML Translation models:
# `projects/`project-number-or-id`/locations/`location-id`/models/`model-id``
# - General (built-in) models:
# `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
# `projects/`project-number-or-id`/locations/`location-id`/models/general/base`
# Returns languages supported by the specified model.
# If missing, we get supported languages of Google general base (PBMT) model.
# Optional. Get supported languages of this model. The format depends on model
# type: - AutoML Translation models: `projects/`project-number-or-id`/locations/`
# location-id`/models/`model-id`` - General (built-in) models: `projects/`
# project-number-or-id`/locations/`location-id`/models/general/nmt`, `projects/`
# project-number-or-id`/locations/`location-id`/models/general/base` Returns
# languages supported by the specified model. If missing, we get supported
# languages of Google general base (PBMT) model.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -391,16 +375,13 @@ module Google
# Translates input text and returns translated text.
# @param [String] parent
# Required. Project or location to make a call. Must refer to a caller's
# project.
# Format: `projects/`project-number-or-id`` or
# `projects/`project-number-or-id`/locations/`location-id``.
# For global calls, use `projects/`project-number-or-id`/locations/global` or
# `projects/`project-number-or-id``.
# Non-global location is required for requests using AutoML models or
# custom glossaries.
# Models and glossaries must be within the same region (have same
# location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
# Required. Project or location to make a call. Must refer to a caller's project.
# Format: `projects/`project-number-or-id`` or `projects/`project-number-or-id`/
# locations/`location-id``. For global calls, use `projects/`project-number-or-
# id`/locations/global` or `projects/`project-number-or-id``. Non-global
# location is required for requests using AutoML models or custom glossaries.
# Models and glossaries must be within the same region (have same location-id),
# otherwise an INVALID_ARGUMENT (400) error is returned.
# @param [Google::Apis::TranslateV3beta1::TranslateTextRequest] translate_text_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -431,8 +412,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a glossary and returns the long-running operation. Returns
# NOT_FOUND, if the project doesn't exist.
# Creates a glossary and returns the long-running operation. Returns NOT_FOUND,
# if the project doesn't exist.
# @param [String] parent
# Required. The project name.
# @param [Google::Apis::TranslateV3beta1::Glossary] glossary_object
@ -465,9 +446,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a glossary, or cancels glossary construction
# if the glossary isn't created yet.
# Returns NOT_FOUND, if the glossary doesn't exist.
# Deletes a glossary, or cancels glossary construction if the glossary isn't
# created yet. Returns NOT_FOUND, if the glossary doesn't exist.
# @param [String] name
# Required. The name of the glossary to delete.
# @param [String] fields
@ -497,8 +477,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
# exist.
# Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.
# @param [String] name
# Required. The name of the glossary to retrieve.
# @param [String] fields
@ -528,35 +507,32 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
# exist.
# Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.
# @param [String] parent
# Required. The name of the project from which to list all of the glossaries.
# @param [String] filter
# Optional. Filter specifying constraints of a list operation.
# Specify the constraint by the format of "key=value", where key must be
# "src" or "tgt", and the value must be a valid language code.
# For multiple restrictions, concatenate them by "AND" (uppercase only),
# such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used
# here, which means using 'en-US' and 'en' can lead to different results,
# which depends on the language code you used when you create the glossary.
# For the unidirectional glossaries, the "src" and "tgt" add restrictions
# on the source and target language code separately.
# For the equivalent term set glossaries, the "src" and/or "tgt" add
# restrictions on the term set.
# For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional
# glossaries which exactly match the source language code as "en-US" and the
# target language code "zh-CN", but all equivalent term set glossaries which
# contain "en-US" and "zh-CN" in their language set will be picked.
# If missing, no filtering is performed.
# Optional. Filter specifying constraints of a list operation. Specify the
# constraint by the format of "key=value", where key must be "src" or "tgt", and
# the value must be a valid language code. For multiple restrictions,
# concatenate them by "AND" (uppercase only), such as: "src=en-US AND tgt=zh-CN".
# Notice that the exact match is used here, which means using 'en-US' and 'en'
# can lead to different results, which depends on the language code you used
# when you create the glossary. For the unidirectional glossaries, the "src" and
# "tgt" add restrictions on the source and target language code separately. For
# the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on
# the term set. For example: "src=en-US AND tgt=zh-CN" will only pick the
# unidirectional glossaries which exactly match the source language code as "en-
# US" and the target language code "zh-CN", but all equivalent term set
# glossaries which contain "en-US" and "zh-CN" in their language set will be
# picked. If missing, no filtering is performed.
# @param [Fixnum] page_size
# Optional. Requested page size. The server may return fewer glossaries than
# requested. If unspecified, the server picks an appropriate default.
# @param [String] page_token
# Optional. A token identifying a page of results the server should return.
# Typically, this is the value of [ListGlossariesResponse.next_page_token]
# returned from the previous call to `ListGlossaries` method.
# The first page is returned if `page_token`is empty or missing.
# returned from the previous call to `ListGlossaries` method. The first page is
# returned if `page_token`is empty or missing.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -587,15 +563,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# On successful cancellation, the operation is not deleted; instead, it becomes
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
@ -629,10 +603,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# Deletes a long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns `google.rpc.Code.
# UNIMPLEMENTED`.
# @param [String] name
# The name of the operation resource to be deleted.
# @param [String] fields
@ -662,9 +636,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -694,15 +667,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
@ -741,15 +713,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Waits for the specified long-running operation until it is done or reaches
# at most a specified timeout, returning the latest state. If the operation
# is already done, the latest state is immediately returned. If the timeout
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
# timeout is used. If the server does not support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# Note that this method is on a best-effort basis. It may return the latest
# state before the specified timeout (including immediately), meaning even an
# immediate response is no guarantee that the operation is done.
# Waits for the specified long-running operation until it is done or reaches at
# most a specified timeout, returning the latest state. If the operation is
# already done, the latest state is immediately returned. If the timeout
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout
# is used. If the server does not support this method, it returns `google.rpc.
# Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may
# return the latest state before the specified timeout (including immediately),
# meaning even an immediate response is no guarantee that the operation is done.
# @param [String] name
# The name of the operation resource to wait on.
# @param [Google::Apis::TranslateV3beta1::WaitOperationRequest] wait_operation_request_object

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/maps/contact-sales/
module VectortileV1
VERSION = 'V1'
REVISION = '20200622'
REVISION = '20200808'
end
end
end

View File

@ -26,8 +26,8 @@ module Google
class Area
include Google::Apis::Core::Hashable
# True if the polygon is not entirely internal to the feature that it belongs
# to: that is, some of the edges are bordering another feature.
# True if the polygon is not entirely internal to the feature that it belongs to:
# that is, some of the edges are bordering another feature.
# Corresponds to the JSON property `hasExternalEdges`
# @return [Boolean]
attr_accessor :has_external_edges
@ -35,29 +35,27 @@ module Google
# When has_external_edges is true, the polygon has some edges that border
# another feature. This field indicates the internal edges that do not border
# another feature. Each value is an index into the vertices array, and
# denotes the start vertex of the internal edge (the next vertex in the
# boundary loop is the end of the edge). If the selected vertex is the last
# vertex in the boundary loop, then the edge between that vertex and the
# starting vertex of the loop is internal.
# This field may be used for styling. For example, building parapets could be
# placed only on the external edges of a building polygon, or water could be
# lighter colored near the external edges of a body of water.
# If has_external_edges is false, all edges are internal and this field will
# be empty.
# another feature. Each value is an index into the vertices array, and denotes
# the start vertex of the internal edge (the next vertex in the boundary loop is
# the end of the edge). If the selected vertex is the last vertex in the
# boundary loop, then the edge between that vertex and the starting vertex of
# the loop is internal. This field may be used for styling. For example,
# building parapets could be placed only on the external edges of a building
# polygon, or water could be lighter colored near the external edges of a body
# of water. If has_external_edges is false, all edges are internal and this
# field will be empty.
# Corresponds to the JSON property `internalEdges`
# @return [Array<Fixnum>]
attr_accessor :internal_edges
# Identifies the boundary loops of the polygon. Only set for INDEXED_TRIANGLE
# polygons. Each value is an index into the vertices array indicating the
# beginning of a loop. For instance, values of [2, 5] would indicate
# loop_data contained 3 loops with indices 0-1, 2-4, and 5-end.
# This may be used in conjunction with the internal_edges field for styling
# polygon boundaries. Note that an edge may be on a polygon boundary but
# still internal to the feature. For example, a feature split across multiple
# tiles will have an internal polygon boundary edge along the edge of the
# tile.
# beginning of a loop. For instance, values of [2, 5] would indicate loop_data
# contained 3 loops with indices 0-1, 2-4, and 5-end. This may be used in
# conjunction with the internal_edges field for styling polygon boundaries. Note
# that an edge may be on a polygon boundary but still internal to the feature.
# For example, a feature split across multiple tiles will have an internal
# polygon boundary edge along the edge of the tile.
# Corresponds to the JSON property `loopBreaks`
# @return [Array<Fixnum>]
attr_accessor :loop_breaks
@ -75,21 +73,19 @@ module Google
attr_accessor :type
# 2D vertex list used for lines and areas. Each entry represents an offset from
# the previous one in local tile coordinates. The first entry is offset from
# (0, 0).
# For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded
# the previous one in local tile coordinates. The first entry is offset from (0,
# 0). For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded
# in vertex offsets as [(1, 1), (1, 1), (-1, 0)].
# Corresponds to the JSON property `vertexOffsets`
# @return [Google::Apis::VectortileV1::Vertex2DList]
attr_accessor :vertex_offsets
# The z-ordering of this area. Areas with a lower z-order should be rendered
# beneath areas with a higher z-order. This z-ordering does not imply
# anything about the altitude of the line relative to the ground, but it
# can be used to prevent z-fighting during rendering on the client. This
# z-ordering can only be used to compare areas, and cannot be compared with
# the z_order field in the Line message.
# The z-order may be negative or zero.
# beneath areas with a higher z-order. This z-ordering does not imply anything
# about the altitude of the line relative to the ground, but it can be used to
# prevent z-fighting during rendering on the client. This z-ordering can only be
# used to compare areas, and cannot be compared with the z_order field in the
# Line message. The z-order may be negative or zero.
# Corresponds to the JSON property `zOrder`
# @return [Fixnum]
attr_accessor :z_order
@ -112,10 +108,9 @@ module Google
# Represents a height-extruded area: a 3D prism with a constant X-Y plane cross
# section. Used to represent extruded buildings. A single building may consist
# of several extruded areas.
# The min_z and max_z fields are scaled to the size of the tile. An extruded
# area with a max_z value of 4096 has the same height as the width of the tile
# that it is on.
# of several extruded areas. The min_z and max_z fields are scaled to the size
# of the tile. An extruded area with a max_z value of 4096 has the same height
# as the width of the tile that it is on.
class ExtrudedArea
include Google::Apis::Core::Hashable
@ -129,10 +124,9 @@ module Google
# @return [Fixnum]
attr_accessor :max_z
# The z-value in local tile coordinates where the extruded area begins. This
# is non-zero for extruded areas that begin off the ground. For example, a
# building with a skybridge may have an extruded area component with a
# non-zero min_z.
# The z-value in local tile coordinates where the extruded area begins. This is
# non-zero for extruded areas that begin off the ground. For example, a building
# with a skybridge may have an extruded area component with a non-zero min_z.
# Corresponds to the JSON property `minZ`
# @return [Fixnum]
attr_accessor :min_z
@ -159,19 +153,17 @@ module Google
attr_accessor :display_name
# Represents the geometry of a feature, that is, the shape that it has on the
# map. The local tile coordinate system has the origin at the north-west
# (upper-left) corner of the tile, and is scaled to 4096 units across each
# edge. The height (Z) axis has the same scale factor: an extruded area with a
# max_z value of 4096 has the same height as the width of the tile that it is
# on.
# There is no clipping boundary, so it is possible that some coordinates will
# lie outside the tile boundaries.
# map. The local tile coordinate system has the origin at the north-west (upper-
# left) corner of the tile, and is scaled to 4096 units across each edge. The
# height (Z) axis has the same scale factor: an extruded area with a max_z value
# of 4096 has the same height as the width of the tile that it is on. There is
# no clipping boundary, so it is possible that some coordinates will lie outside
# the tile boundaries.
# Corresponds to the JSON property `geometry`
# @return [Google::Apis::VectortileV1::Geometry]
attr_accessor :geometry
# Place ID of this feature, suitable for use in Places API details
# requests.
# Place ID of this feature, suitable for use in Places API details requests.
# Corresponds to the JSON property `placeId`
# @return [String]
attr_accessor :place_id
@ -212,20 +204,18 @@ module Google
include Google::Apis::Core::Hashable
# Global tile coordinates. Global tile coordinates reference a specific tile on
# the map at a specific zoom level.
# The origin of this coordinate system is always at the northwest corner of the
# map, with x values increasing from west to east and y values increasing from
# north to south. Tiles are indexed using x, y coordinates from that origin.
# The zoom level containing the entire world in a tile is 0, and it increases
# as you zoom in. Zoom level n + 1 will contain 4 times as many tiles as zoom
# level n.
# The zoom level controls the level of detail of the data that is returned. In
# particular, this affects the set of feature types returned, their density,
# and geometry simplification. The exact tile contents may change over time,
# but care will be taken to keep supporting the most important use cases. For
# example, zoom level 15 shows roads for orientation and planning in the local
# neighborhood and zoom level 17 shows buildings to give users on foot a sense
# of situational awareness.
# the map at a specific zoom level. The origin of this coordinate system is
# always at the northwest corner of the map, with x values increasing from west
# to east and y values increasing from north to south. Tiles are indexed using x,
# y coordinates from that origin. The zoom level containing the entire world in
# a tile is 0, and it increases as you zoom in. Zoom level n + 1 will contain 4
# times as many tiles as zoom level n. The zoom level controls the level of
# detail of the data that is returned. In particular, this affects the set of
# feature types returned, their density, and geometry simplification. The exact
# tile contents may change over time, but care will be taken to keep supporting
# the most important use cases. For example, zoom level 15 shows roads for
# orientation and planning in the local neighborhood and zoom level 17 shows
# buildings to give users on foot a sense of situational awareness.
# Corresponds to the JSON property `coordinates`
# @return [Google::Apis::VectortileV1::TileCoordinates]
attr_accessor :coordinates
@ -236,9 +226,9 @@ module Google
attr_accessor :features
# Resource name of the tile. The tile resource name is prefixed by its
# collection ID `tiles/` followed by the resource ID, which encodes the
# tile's global x and y coordinates and zoom level as `@<x>,<y>,<zoom>z`. For
# example, `tiles/@1,2,3z`.
# collection ID `tiles/` followed by the resource ID, which encodes the tile's
# global x and y coordinates and zoom level as `@,,z`. For example, `tiles/@1,2,
# 3z`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -253,13 +243,12 @@ module Google
# @return [String]
attr_accessor :status
# An opaque value, usually less than 30 characters, that contains version
# info about this tile and the data that was used to generate it.
# The client should store this value in its tile cache and pass it back to
# the API in the client_tile_version_id field of subsequent tile requests in
# order to enable the API to detect when the new tile would be the same as
# the one the client already has in its cache.
# Also see STATUS_OK_DATA_UNCHANGED.
# An opaque value, usually less than 30 characters, that contains version info
# about this tile and the data that was used to generate it. The client should
# store this value in its tile cache and pass it back to the API in the
# client_tile_version_id field of subsequent tile requests in order to enable
# the API to detect when the new tile would be the same as the one the client
# already has in its cache. Also see STATUS_OK_DATA_UNCHANGED.
# Corresponds to the JSON property `versionId`
# @return [String]
attr_accessor :version_id
@ -280,29 +269,17 @@ module Google
end
# A packed representation of a 2D grid of uniformly spaced points containing
# elevation data. Each point within the grid represents the altitude in
# meters above average sea level at that location within the tile.
# Elevations provided are (generally) relative to the EGM96 geoid, however
# some areas will be relative to NAVD88. EGM96 and NAVD88 are off by no more
# than 2 meters.
# The grid is oriented north-west to south-east, as illustrated:
# rows[0].a[0] rows[0].a[m]
# +-----------------+
# | |
# | N |
# | ^ |
# | | |
# | W <-----> E |
# | | |
# | v |
# | S |
# | |
# +-----------------+
# rows[n].a[0] rows[n].a[m]
# Rather than storing the altitudes directly, we store the diffs between them
# as integers at some requested level of precision to take advantage of
# integer packing. The actual altitude values a[] can be reconstructed using
# the scale and each row's first_altitude and altitude_diff fields.
# elevation data. Each point within the grid represents the altitude in meters
# above average sea level at that location within the tile. Elevations provided
# are (generally) relative to the EGM96 geoid, however some areas will be
# relative to NAVD88. EGM96 and NAVD88 are off by no more than 2 meters. The
# grid is oriented north-west to south-east, as illustrated: rows[0].a[0] rows[0]
# .a[m] +-----------------+ | | | N | | ^ | | | | | W <-----> E | | | | | v | |
# S | | | +-----------------+ rows[n].a[0] rows[n].a[m] Rather than storing the
# altitudes directly, we store the diffs between them as integers at some
# requested level of precision to take advantage of integer packing. The actual
# altitude values a[] can be reconstructed using the scale and each row's
# first_altitude and altitude_diff fields.
class FirstDerivativeElevationGrid
include Google::Apis::Core::Hashable
@ -312,9 +289,9 @@ module Google
# @return [Float]
attr_accessor :altitude_multiplier
# Rows of points containing altitude data making up the elevation grid.
# Each row is the same length. Rows are ordered from north to south. E.g:
# rows[0] is the north-most row, and rows[n] is the south-most row.
# Rows of points containing altitude data making up the elevation grid. Each row
# is the same length. Rows are ordered from north to south. E.g: rows[0] is the
# north-most row, and rows[n] is the south-most row.
# Corresponds to the JSON property `rows`
# @return [Array<Google::Apis::VectortileV1::Row>]
attr_accessor :rows
@ -331,13 +308,12 @@ module Google
end
# Represents the geometry of a feature, that is, the shape that it has on the
# map. The local tile coordinate system has the origin at the north-west
# (upper-left) corner of the tile, and is scaled to 4096 units across each
# edge. The height (Z) axis has the same scale factor: an extruded area with a
# max_z value of 4096 has the same height as the width of the tile that it is
# on.
# There is no clipping boundary, so it is possible that some coordinates will
# lie outside the tile boundaries.
# map. The local tile coordinate system has the origin at the north-west (upper-
# left) corner of the tile, and is scaled to 4096 units across each edge. The
# height (Z) axis has the same scale factor: an extruded area with a max_z value
# of 4096 has the same height as the width of the tile that it is on. There is
# no clipping boundary, so it is possible that some coordinates will lie outside
# the tile boundaries.
class Geometry
include Google::Apis::Core::Hashable
@ -380,22 +356,20 @@ module Google
include Google::Apis::Core::Hashable
# 2D vertex list used for lines and areas. Each entry represents an offset from
# the previous one in local tile coordinates. The first entry is offset from
# (0, 0).
# For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded
# the previous one in local tile coordinates. The first entry is offset from (0,
# 0). For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded
# in vertex offsets as [(1, 1), (1, 1), (-1, 0)].
# Corresponds to the JSON property `vertexOffsets`
# @return [Google::Apis::VectortileV1::Vertex2DList]
attr_accessor :vertex_offsets
# The z-order of the line. Lines with a lower z-order should be rendered
# beneath lines with a higher z-order. This z-ordering does not imply
# anything about the altitude of the area relative to the ground, but it
# can be used to prevent z-fighting during rendering on the client. In
# general, larger and more important road features will have a higher z-order
# line associated with them. This z-ordering can only be used to compare
# lines, and cannot be compared with the z_order field in the Area message.
# The z-order may be negative or zero.
# The z-order of the line. Lines with a lower z-order should be rendered beneath
# lines with a higher z-order. This z-ordering does not imply anything about the
# altitude of the area relative to the ground, but it can be used to prevent z-
# fighting during rendering on the client. In general, larger and more important
# road features will have a higher z-order line associated with them. This z-
# ordering can only be used to compare lines, and cannot be compared with the
# z_order field in the Area message. The z-order may be negative or zero.
# Corresponds to the JSON property `zOrder`
# @return [Fixnum]
attr_accessor :z_order
@ -464,8 +438,8 @@ module Google
class Relation
include Google::Apis::Core::Hashable
# Zero-based index to look up the related feature from the list of features
# in the tile.
# Zero-based index to look up the related feature from the list of features in
# the tile.
# Corresponds to the JSON property `relatedFeatureIndex`
# @return [Fixnum]
attr_accessor :related_feature_index
@ -490,8 +464,8 @@ module Google
class RoadInfo
include Google::Apis::Core::Hashable
# Road has signage discouraging or prohibiting use by the general public.
# E.g., roads with signs that say "Private", or "No trespassing."
# Road has signage discouraging or prohibiting use by the general public. E.g.,
# roads with signs that say "Private", or "No trespassing."
# Corresponds to the JSON property `isPrivate`
# @return [Boolean]
attr_accessor :is_private
@ -507,18 +481,17 @@ module Google
end
end
# A row of altitude points in the elevation grid, ordered from west to
# east.
# A row of altitude points in the elevation grid, ordered from west to east.
class Row
include Google::Apis::Core::Hashable
# The difference between each successive pair of altitudes, from west to
# east. The first, westmost point, is just the altitude rather than a
# diff. The units are specified by the altitude_multiplier parameter
# above; the value in meters is given by altitude_multiplier *
# altitude_diffs[n]. The altitude row (in metres above sea level) can be
# reconstructed with: a[0] = altitude_diffs[0] * altitude_multiplier when
# n > 0, a[n] = a[n-1] + altitude_diffs[n-1] * altitude_multiplier.
# The difference between each successive pair of altitudes, from west to east.
# The first, westmost point, is just the altitude rather than a diff. The units
# are specified by the altitude_multiplier parameter above; the value in meters
# is given by altitude_multiplier * altitude_diffs[n]. The altitude row (in
# metres above sea level) can be reconstructed with: a[0] = altitude_diffs[0] *
# altitude_multiplier when n > 0, a[n] = a[n-1] + altitude_diffs[n-1] *
# altitude_multiplier.
# Corresponds to the JSON property `altitudeDiffs`
# @return [Array<Fixnum>]
attr_accessor :altitude_diffs
@ -534,35 +507,22 @@ module Google
end
# A packed representation of a 2D grid of uniformly spaced points containing
# elevation data. Each point within the grid represents the altitude in
# meters above average sea level at that location within the tile.
# Elevations provided are (generally) relative to the EGM96 geoid, however
# some areas will be relative to NAVD88. EGM96 and NAVD88 are off by no more
# than 2 meters.
# The grid is oriented north-west to south-east, as illustrated:
# rows[0].a[0] rows[0].a[m]
# +-----------------+
# | |
# | N |
# | ^ |
# | | |
# | W <-----> E |
# | | |
# | v |
# | S |
# | |
# +-----------------+
# rows[n].a[0] rows[n].a[m]
# Rather than storing the altitudes directly, we store the diffs of the diffs
# between them as integers at some requested level of precision to take
# advantage of integer packing.
# Note that the data is packed in such a way that is fast to decode in
# Unity and that further optimizes wire size.
# elevation data. Each point within the grid represents the altitude in meters
# above average sea level at that location within the tile. Elevations provided
# are (generally) relative to the EGM96 geoid, however some areas will be
# relative to NAVD88. EGM96 and NAVD88 are off by no more than 2 meters. The
# grid is oriented north-west to south-east, as illustrated: rows[0].a[0] rows[0]
# .a[m] +-----------------+ | | | N | | ^ | | | | | W <-----> E | | | | | v | |
# S | | | +-----------------+ rows[n].a[0] rows[n].a[m] Rather than storing the
# altitudes directly, we store the diffs of the diffs between them as integers
# at some requested level of precision to take advantage of integer packing.
# Note that the data is packed in such a way that is fast to decode in Unity and
# that further optimizes wire size.
class SecondDerivativeElevationGrid
include Google::Apis::Core::Hashable
# A multiplier applied to the elements in the encoded data to extract the
# actual altitudes in meters.
# A multiplier applied to the elements in the encoded data to extract the actual
# altitudes in meters.
# Corresponds to the JSON property `altitudeMultiplier`
# @return [Float]
attr_accessor :altitude_multiplier
@ -573,37 +533,29 @@ module Google
# @return [Fixnum]
attr_accessor :column_count
# A stream of elements each representing a point on the tile running across
# each row from left to right, top to bottom.
# There will be precisely horizontal_resolution * vertical_resolution
# elements in the stream.
# The elements are not the heights, rather the second order derivative of
# the values one would expect in a stream of height data.
# Each element is a varint with the following encoding:
# ------------------------------------------------------------------------|
# | Head Nibble |
# ------------------------------------------------------------------------|
# | Bit 0 | Bit 1 | Bits 2-3 |
# | Terminator| Sign (1=neg) | Least significant 2 bits of absolute error |
# ------------------------------------------------------------------------|
# | Tail Nibble #1 |
# ------------------------------------------------------------------------|
# | Bit 0 | Bit 1-3 |
# | Terminator| Least significant 3 bits of absolute error |
# ------------------------------------------------------------------------|
# | ...
# | Tail Nibble #n |
# ------------------------------------------------------------------------|
# | Bit 0 | Bit 1-3 |
# | Terminator| Least significant 3 bits of absolute error |
# ------------------------------------------------------------------------|
# A stream of elements each representing a point on the tile running across each
# row from left to right, top to bottom. There will be precisely
# horizontal_resolution * vertical_resolution elements in the stream. The
# elements are not the heights, rather the second order derivative of the values
# one would expect in a stream of height data. Each element is a varint with the
# following encoding: -----------------------------------------------------------
# -------------| | Head Nibble | ------------------------------------------------
# ------------------------| | Bit 0 | Bit 1 | Bits 2-3 | | Terminator| Sign (1=
# neg) | Least significant 2 bits of absolute error | ---------------------------
# ---------------------------------------------| | Tail Nibble #1 | -------------
# -----------------------------------------------------------| | Bit 0 | Bit 1-3
# | | Terminator| Least significant 3 bits of absolute error | ------------------
# ------------------------------------------------------| | ... | Tail Nibble #n
# | ------------------------------------------------------------------------| |
# Bit 0 | Bit 1-3 | | Terminator| Least significant 3 bits of absolute error | --
# ----------------------------------------------------------------------|
# Corresponds to the JSON property `encodedData`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :encoded_data
# The number of rows included in the encoded elevation data (i.e. the
# vertical resolution of the grid).
# The number of rows included in the encoded elevation data (i.e. the vertical
# resolution of the grid).
# Corresponds to the JSON property `rowCount`
# @return [Fixnum]
attr_accessor :row_count
@ -646,85 +598,58 @@ module Google
include Google::Apis::Core::Hashable
# Global tile coordinates. Global tile coordinates reference a specific tile on
# the map at a specific zoom level.
# The origin of this coordinate system is always at the northwest corner of the
# map, with x values increasing from west to east and y values increasing from
# north to south. Tiles are indexed using x, y coordinates from that origin.
# The zoom level containing the entire world in a tile is 0, and it increases
# as you zoom in. Zoom level n + 1 will contain 4 times as many tiles as zoom
# level n.
# The zoom level controls the level of detail of the data that is returned. In
# particular, this affects the set of feature types returned, their density,
# and geometry simplification. The exact tile contents may change over time,
# but care will be taken to keep supporting the most important use cases. For
# example, zoom level 15 shows roads for orientation and planning in the local
# neighborhood and zoom level 17 shows buildings to give users on foot a sense
# of situational awareness.
# the map at a specific zoom level. The origin of this coordinate system is
# always at the northwest corner of the map, with x values increasing from west
# to east and y values increasing from north to south. Tiles are indexed using x,
# y coordinates from that origin. The zoom level containing the entire world in
# a tile is 0, and it increases as you zoom in. Zoom level n + 1 will contain 4
# times as many tiles as zoom level n. The zoom level controls the level of
# detail of the data that is returned. In particular, this affects the set of
# feature types returned, their density, and geometry simplification. The exact
# tile contents may change over time, but care will be taken to keep supporting
# the most important use cases. For example, zoom level 15 shows roads for
# orientation and planning in the local neighborhood and zoom level 17 shows
# buildings to give users on foot a sense of situational awareness.
# Corresponds to the JSON property `coordinates`
# @return [Google::Apis::VectortileV1::TileCoordinates]
attr_accessor :coordinates
# A packed representation of a 2D grid of uniformly spaced points containing
# elevation data. Each point within the grid represents the altitude in
# meters above average sea level at that location within the tile.
# Elevations provided are (generally) relative to the EGM96 geoid, however
# some areas will be relative to NAVD88. EGM96 and NAVD88 are off by no more
# than 2 meters.
# The grid is oriented north-west to south-east, as illustrated:
# rows[0].a[0] rows[0].a[m]
# +-----------------+
# | |
# | N |
# | ^ |
# | | |
# | W <-----> E |
# | | |
# | v |
# | S |
# | |
# +-----------------+
# rows[n].a[0] rows[n].a[m]
# Rather than storing the altitudes directly, we store the diffs between them
# as integers at some requested level of precision to take advantage of
# integer packing. The actual altitude values a[] can be reconstructed using
# the scale and each row's first_altitude and altitude_diff fields.
# elevation data. Each point within the grid represents the altitude in meters
# above average sea level at that location within the tile. Elevations provided
# are (generally) relative to the EGM96 geoid, however some areas will be
# relative to NAVD88. EGM96 and NAVD88 are off by no more than 2 meters. The
# grid is oriented north-west to south-east, as illustrated: rows[0].a[0] rows[0]
# .a[m] +-----------------+ | | | N | | ^ | | | | | W <-----> E | | | | | v | |
# S | | | +-----------------+ rows[n].a[0] rows[n].a[m] Rather than storing the
# altitudes directly, we store the diffs between them as integers at some
# requested level of precision to take advantage of integer packing. The actual
# altitude values a[] can be reconstructed using the scale and each row's
# first_altitude and altitude_diff fields.
# Corresponds to the JSON property `firstDerivative`
# @return [Google::Apis::VectortileV1::FirstDerivativeElevationGrid]
attr_accessor :first_derivative
# Resource name of the tile. The tile resource name is prefixed by its
# collection ID `terrain/` followed by the resource ID, which encodes the
# tile's global x and y coordinates and zoom level as `@<x>,<y>,<zoom>z`.
# For example, `terrain/@1,2,3z`.
# collection ID `terrain/` followed by the resource ID, which encodes the tile's
# global x and y coordinates and zoom level as `@,,z`. For example, `terrain/@1,
# 2,3z`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A packed representation of a 2D grid of uniformly spaced points containing
# elevation data. Each point within the grid represents the altitude in
# meters above average sea level at that location within the tile.
# Elevations provided are (generally) relative to the EGM96 geoid, however
# some areas will be relative to NAVD88. EGM96 and NAVD88 are off by no more
# than 2 meters.
# The grid is oriented north-west to south-east, as illustrated:
# rows[0].a[0] rows[0].a[m]
# +-----------------+
# | |
# | N |
# | ^ |
# | | |
# | W <-----> E |
# | | |
# | v |
# | S |
# | |
# +-----------------+
# rows[n].a[0] rows[n].a[m]
# Rather than storing the altitudes directly, we store the diffs of the diffs
# between them as integers at some requested level of precision to take
# advantage of integer packing.
# Note that the data is packed in such a way that is fast to decode in
# Unity and that further optimizes wire size.
# elevation data. Each point within the grid represents the altitude in meters
# above average sea level at that location within the tile. Elevations provided
# are (generally) relative to the EGM96 geoid, however some areas will be
# relative to NAVD88. EGM96 and NAVD88 are off by no more than 2 meters. The
# grid is oriented north-west to south-east, as illustrated: rows[0].a[0] rows[0]
# .a[m] +-----------------+ | | | N | | ^ | | | | | W <-----> E | | | | | v | |
# S | | | +-----------------+ rows[n].a[0] rows[n].a[m] Rather than storing the
# altitudes directly, we store the diffs of the diffs between them as integers
# at some requested level of precision to take advantage of integer packing.
# Note that the data is packed in such a way that is fast to decode in Unity and
# that further optimizes wire size.
# Corresponds to the JSON property `secondDerivative`
# @return [Google::Apis::VectortileV1::SecondDerivativeElevationGrid]
attr_accessor :second_derivative
@ -743,20 +668,18 @@ module Google
end
# Global tile coordinates. Global tile coordinates reference a specific tile on
# the map at a specific zoom level.
# The origin of this coordinate system is always at the northwest corner of the
# map, with x values increasing from west to east and y values increasing from
# north to south. Tiles are indexed using x, y coordinates from that origin.
# The zoom level containing the entire world in a tile is 0, and it increases
# as you zoom in. Zoom level n + 1 will contain 4 times as many tiles as zoom
# level n.
# The zoom level controls the level of detail of the data that is returned. In
# particular, this affects the set of feature types returned, their density,
# and geometry simplification. The exact tile contents may change over time,
# but care will be taken to keep supporting the most important use cases. For
# example, zoom level 15 shows roads for orientation and planning in the local
# neighborhood and zoom level 17 shows buildings to give users on foot a sense
# of situational awareness.
# the map at a specific zoom level. The origin of this coordinate system is
# always at the northwest corner of the map, with x values increasing from west
# to east and y values increasing from north to south. Tiles are indexed using x,
# y coordinates from that origin. The zoom level containing the entire world in
# a tile is 0, and it increases as you zoom in. Zoom level n + 1 will contain 4
# times as many tiles as zoom level n. The zoom level controls the level of
# detail of the data that is returned. In particular, this affects the set of
# feature types returned, their density, and geometry simplification. The exact
# tile contents may change over time, but care will be taken to keep supporting
# the most important use cases. For example, zoom level 15 shows roads for
# orientation and planning in the local neighborhood and zoom level 17 shows
# buildings to give users on foot a sense of situational awareness.
class TileCoordinates
include Google::Apis::Core::Hashable
@ -788,14 +711,10 @@ module Google
end
# Represents a strip of triangles. Each triangle uses the last edge of the
# previous one. The following diagram shows an example of a triangle strip,
# with each vertex labeled with its index in the vertex_index array.
# (1)-----(3)
# / \ / \
# / \ / \
# / \ / \
# (0)-----(2)-----(4)
# Vertices may be in either clockwise or counter-clockwise order.
# previous one. The following diagram shows an example of a triangle strip, with
# each vertex labeled with its index in the vertex_index array. (1)-----(3) / \ /
# \ / \ / \ / \ / \ (0)-----(2)-----(4) Vertices may be in either clockwise or
# counter-clockwise order.
class TriangleStrip
include Google::Apis::Core::Hashable
@ -816,9 +735,8 @@ module Google
end
# 2D vertex list used for lines and areas. Each entry represents an offset from
# the previous one in local tile coordinates. The first entry is offset from
# (0, 0).
# For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded
# the previous one in local tile coordinates. The first entry is offset from (0,
# 0). For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded
# in vertex offsets as [(1, 1), (1, 1), (-1, 0)].
class Vertex2DList
include Google::Apis::Core::Hashable

View File

@ -49,73 +49,69 @@ module Google
# Gets a feature tile by its tile resource name.
# @param [String] name
# Required. Resource name of the tile. The tile resource name is prefixed by
# its collection ID `tiles/` followed by the resource ID, which encodes the
# tile's global x and y coordinates and zoom level as `@<x>,<y>,<zoom>z`.
# For example, `tiles/@1,2,3z`.
# Required. Resource name of the tile. The tile resource name is prefixed by its
# collection ID `tiles/` followed by the resource ID, which encodes the tile's
# global x and y coordinates and zoom level as `@,,z`. For example, `tiles/@1,2,
# 3z`.
# @param [String] client_info_api_client
# API client name and version. For example, the SDK calling the API. The
# exact format is up to the client.
# API client name and version. For example, the SDK calling the API. The exact
# format is up to the client.
# @param [String] client_info_application_id
# Application ID, such as the package name on Android and the bundle
# identifier on iOS platforms.
# Application ID, such as the package name on Android and the bundle identifier
# on iOS platforms.
# @param [String] client_info_application_version
# Application version number, such as "1.2.3". The exact format is
# application-dependent.
# Application version number, such as "1.2.3". The exact format is application-
# dependent.
# @param [String] client_info_device_model
# Device model as reported by the device. The exact format is
# platform-dependent.
# Device model as reported by the device. The exact format is platform-dependent.
# @param [String] client_info_operating_system
# Operating system name and version as reported by the OS. For example,
# "Mac OS X 10.10.4". The exact format is platform-dependent.
# Operating system name and version as reported by the OS. For example, "Mac OS
# X 10.10.4". The exact format is platform-dependent.
# @param [String] client_info_platform
# Platform where the application is running.
# @param [String] client_info_user_id
# A client-generated user ID. The ID should be generated and persisted during
# the first user session or whenever a pre-existing ID is not found. The
# Required. A client-generated user ID. The ID should be generated and persisted
# during the first user session or whenever a pre-existing ID is not found. The
# exact format is up to the client. This must be non-empty in a
# GetFeatureTileRequest (whether via the header or
# GetFeatureTileRequest.client_info).
# GetFeatureTileRequest (whether via the header or GetFeatureTileRequest.
# client_info).
# @param [String] client_tile_version_id
# Optional version id identifying the tile that is already in the client's
# cache. This field should be populated with the most recent version_id value
# returned by the API for the requested tile.
# If the version id is empty the server always returns a newly rendered tile.
# If it is provided the server checks if the tile contents would be identical
# to one that's already on the client, and if so, returns a stripped-down
# response tile with STATUS_OK_DATA_UNCHANGED instead.
# Optional version id identifying the tile that is already in the client's cache.
# This field should be populated with the most recent version_id value returned
# by the API for the requested tile. If the version id is empty the server
# always returns a newly rendered tile. If it is provided the server checks if
# the tile contents would be identical to one that's already on the client, and
# if so, returns a stripped-down response tile with STATUS_OK_DATA_UNCHANGED
# instead.
# @param [Boolean] enable_detailed_highway_types
# Flag indicating whether detailed highway types should be returned. If this
# is set, the CONTROLLED_ACCESS_HIGHWAY type may be returned. If not, then
# these highways will have the generic HIGHWAY type.
# This exists for backwards compatibility reasons.
# Flag indicating whether detailed highway types should be returned. If this is
# set, the CONTROLLED_ACCESS_HIGHWAY type may be returned. If not, then these
# highways will have the generic HIGHWAY type. This exists for backwards
# compatibility reasons.
# @param [Boolean] enable_feature_names
# Flag indicating whether human-readable names should be returned for
# features. If this is set, the display_name field on the feature will be
# filled out.
# Flag indicating whether human-readable names should be returned for features.
# If this is set, the display_name field on the feature will be filled out.
# @param [Boolean] enable_modeled_volumes
# Flag indicating whether 3D building models should be enabled. If this is
# set structures will be returned as 3D modeled volumes rather than 2.5D
# extruded areas where possible.
# Flag indicating whether 3D building models should be enabled. If this is set
# structures will be returned as 3D modeled volumes rather than 2.5D extruded
# areas where possible.
# @param [Boolean] enable_political_features
# Flag indicating whether political features should be returned.
# @param [Boolean] enable_private_roads
# Flag indicating whether the returned tile will contain road features that
# are marked private. Private roads are indicated by the
# Feature.segment_info.road_info.is_private field.
# Flag indicating whether the returned tile will contain road features that are
# marked private. Private roads are indicated by the Feature.segment_info.
# road_info.is_private field.
# @param [Boolean] enable_unclipped_buildings
# Flag indicating whether unclipped buildings should be returned. If this is
# set, building render ops will extend beyond the tile boundary. Buildings
# will only be returned on the tile that contains their centroid.
# Flag indicating whether unclipped buildings should be returned. If this is set,
# building render ops will extend beyond the tile boundary. Buildings will only
# be returned on the tile that contains their centroid.
# @param [String] language_code
# Required. The BCP-47 language code corresponding to the language in which
# the name was requested, such as "en-US" or "sr-Latn".
# For more information, see
# Required. The BCP-47 language code corresponding to the language in which the
# name was requested, such as "en-US" or "sr-Latn". For more information, see
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
# @param [String] region_code
# Required. The Unicode country/region code (CLDR) of the location from which
# the request is coming from, such as "US" and "419".
# For more information, see
# the request is coming from, such as "US" and "419". For more information, see
# http://www.unicode.org/reports/tr35/#unicode_region_subtag.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -162,60 +158,51 @@ module Google
# Gets a terrain tile by its tile resource name.
# @param [String] name
# Required. Resource name of the tile. The tile resource name is prefixed by
# its collection ID `terraintiles/` followed by the resource ID, which
# encodes the tile's global x and y coordinates and zoom level as
# `@<x>,<y>,<zoom>z`. For example, `terraintiles/@1,2,3z`.
# Required. Resource name of the tile. The tile resource name is prefixed by its
# collection ID `terraintiles/` followed by the resource ID, which encodes the
# tile's global x and y coordinates and zoom level as `@,,z`. For example, `
# terraintiles/@1,2,3z`.
# @param [Fixnum] altitude_precision_centimeters
# The precision of terrain altitudes in centimeters.
# Possible values: between 1 (cm level precision) and 1,000,000 (10-kilometer
# level precision).
# The precision of terrain altitudes in centimeters. Possible values: between 1 (
# cm level precision) and 1,000,000 (10-kilometer level precision).
# @param [String] client_info_api_client
# API client name and version. For example, the SDK calling the API. The
# exact format is up to the client.
# API client name and version. For example, the SDK calling the API. The exact
# format is up to the client.
# @param [String] client_info_application_id
# Application ID, such as the package name on Android and the bundle
# identifier on iOS platforms.
# Application ID, such as the package name on Android and the bundle identifier
# on iOS platforms.
# @param [String] client_info_application_version
# Application version number, such as "1.2.3". The exact format is
# application-dependent.
# Application version number, such as "1.2.3". The exact format is application-
# dependent.
# @param [String] client_info_device_model
# Device model as reported by the device. The exact format is
# platform-dependent.
# Device model as reported by the device. The exact format is platform-dependent.
# @param [String] client_info_operating_system
# Operating system name and version as reported by the OS. For example,
# "Mac OS X 10.10.4". The exact format is platform-dependent.
# Operating system name and version as reported by the OS. For example, "Mac OS
# X 10.10.4". The exact format is platform-dependent.
# @param [String] client_info_platform
# Platform where the application is running.
# @param [String] client_info_user_id
# A client-generated user ID. The ID should be generated and persisted during
# the first user session or whenever a pre-existing ID is not found. The
# Required. A client-generated user ID. The ID should be generated and persisted
# during the first user session or whenever a pre-existing ID is not found. The
# exact format is up to the client. This must be non-empty in a
# GetFeatureTileRequest (whether via the header or
# GetFeatureTileRequest.client_info).
# GetFeatureTileRequest (whether via the header or GetFeatureTileRequest.
# client_info).
# @param [Fixnum] max_elevation_resolution_cells
# The maximum allowed resolution for the returned elevation heightmap.
# Possible values: between 1 and 1024 (and not less than
# min_elevation_resolution_cells).
# Over-sized heightmaps will be non-uniformly down-sampled such that each
# edge is no longer than this value. Non-uniformity is chosen to maximise the
# amount of preserved data.
# For example:
# Original resolution: 100px (width) * 30px (height)
# max_elevation_resolution: 30
# New resolution: 30px (width) * 30px (height)
# The maximum allowed resolution for the returned elevation heightmap. Possible
# values: between 1 and 1024 (and not less than min_elevation_resolution_cells).
# Over-sized heightmaps will be non-uniformly down-sampled such that each edge
# is no longer than this value. Non-uniformity is chosen to maximise the amount
# of preserved data. For example: Original resolution: 100px (width) * 30px (
# height) max_elevation_resolution: 30 New resolution: 30px (width) * 30px (
# height)
# @param [Fixnum] min_elevation_resolution_cells
# The minimum allowed resolution for the returned elevation heightmap.
# Possible values: between 0 and 1024 (and not more than
# max_elevation_resolution_cells). Zero is supported for backward
# compatibility.
# Under-sized heightmaps will be non-uniformly up-sampled
# such that each edge is no shorter than this value. Non-uniformity is chosen
# to maximise the amount of preserved data.
# For example:
# Original resolution: 30px (width) * 10px (height)
# min_elevation_resolution: 30
# New resolution: 30px (width) * 30px (height)
# The minimum allowed resolution for the returned elevation heightmap. Possible
# values: between 0 and 1024 (and not more than max_elevation_resolution_cells).
# Zero is supported for backward compatibility. Under-sized heightmaps will be
# non-uniformly up-sampled such that each edge is no shorter than this value.
# Non-uniformity is chosen to maximise the amount of preserved data. For example:
# Original resolution: 30px (width) * 10px (height) min_elevation_resolution:
# 30 New resolution: 30px (width) * 30px (height)
# @param [Array<String>, String] terrain_formats
# Terrain formats that the client understands.
# @param [String] fields

View File

@ -26,7 +26,7 @@ module Google
# @see https://devsite.googleplex.com/youtube/partner/docs/v1/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20200803'
REVISION = '20200807'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'