Autogenerated update (2018-11-08)

Update:
- calendar_v3
- content_v2
- drive_v2
- drive_v3
- gmail_v1
- streetviewpublish_v1
- tasks_v1
- testing_v1
This commit is contained in:
Google APIs committed 2018-11-08 00:36:32 +00:00
1 parent db28d23d5f
commit 0100db6396
17 files changed
+64 -49

No files matched your search

+2 -2
View File
@@ -25,9 +25,9 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20181002'
REVISION = '20181023'
# Manage your calendars
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
# View and edit events on all your calendars
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20181029'
REVISION = '20181106'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
+3 -7
View File
@@ -4457,7 +4457,9 @@ module Google
# @return [Google::Apis::ContentV2::Price]
attr_accessor :price
# Product data from the time of the order placement.
# Product data as seen by customer from the time of the order placement. Note
# that certain attributes values (e.g. title or gtin) might be reformatted and
# no longer match values submitted via product feed.
# Corresponds to the JSON property `product`
# @return [Google::Apis::ContentV2::OrderLineItemProduct]
attr_accessor :product
@@ -4657,11 +4659,6 @@ module Google
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# Case-insensitive fee ID.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Name of the fee.
# Corresponds to the JSON property `name`
# @return [String]
@@ -4674,7 +4671,6 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
end
end
@@ -2908,7 +2908,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :id, as: 'id'
property :name, as: 'name'
end
end
+3 -3
View File
@@ -1550,7 +1550,7 @@ 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 requestgmbaccess_liasetting(merchant_id, account_id, gmb_email: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', options)
command.response_representation = Google::Apis::ContentV2::LiasettingsRequestGmbAccessResponse::Representation
command.response_class = Google::Apis::ContentV2::LiasettingsRequestGmbAccessResponse
@@ -1640,7 +1640,7 @@ 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 setinventoryverificationcontact_liasetting(merchant_id, account_id, contact_email: nil, contact_name: nil, country: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def setinventoryverificationcontact_liasetting(merchant_id, account_id, contact_email, contact_name, country, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options)
command.response_representation = Google::Apis::ContentV2::LiasettingsSetInventoryVerificationContactResponse::Representation
command.response_class = Google::Apis::ContentV2::LiasettingsSetInventoryVerificationContactResponse
@@ -1689,7 +1689,7 @@ 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 setposdataprovider_liasetting(merchant_id, account_id, country: nil, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', options)
command.response_representation = Google::Apis::ContentV2::LiasettingsSetPosDataProviderResponse::Representation
command.response_class = Google::Apis::ContentV2::LiasettingsSetPosDataProviderResponse
+3 -3
View File
@@ -26,9 +26,9 @@ module Google
# @see https://developers.google.com/drive/
module DriveV2
VERSION = 'V2'
REVISION = '20181022'
REVISION = '20181025'
# View and manage the files in your Google Drive
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
# View and manage its own configuration data in your Google Drive
@@ -49,7 +49,7 @@ module Google
# View the photos, videos and albums in your Google Photos
AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
# View the files in your Google Drive
# See and download all your Google Drive files
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
# Modify your Google Apps Script scripts' behavior
+3 -3
View File
@@ -26,9 +26,9 @@ module Google
# @see https://developers.google.com/drive/
module DriveV3
VERSION = 'V3'
REVISION = '20180830'
REVISION = '20181025'
# View and manage the files in your Google Drive
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
# View and manage its own configuration data in your Google Drive
@@ -46,7 +46,7 @@ module Google
# View the photos, videos and albums in your Google Photos
AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
# View the files in your Google Drive
# See and download all your Google Drive files
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
# Modify your Google Apps Script scripts' behavior
+2 -2
View File
@@ -25,9 +25,9 @@ module Google
# @see https://developers.google.com/gmail/api/
module GmailV1
VERSION = 'V1'
REVISION = '20180821'
REVISION = '20180904'
# Read, send, delete, and manage your email
# Read, compose, send, and permanently delete all your email from Gmail
AUTH_SCOPE = 'https://mail.google.com/'
# Manage drafts and send emails
@@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/streetview/publish/
module StreetviewpublishV1
VERSION = 'V1'
REVISION = '20180927'
REVISION = '20181106'
# Publish and manage your 360 photos on Google Street View
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'
@@ -521,6 +521,17 @@ 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.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Output-only. The name of the place, localized to the language_code.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Place identifier, as described in
# https://developers.google.com/places/place-id.
# Corresponds to the JSON property `placeId`
@@ -533,6 +544,8 @@ module Google
# Update properties of this object
def update!(**args)
@language_code = args[:language_code] if args.key?(:language_code)
@name = args[:name] if args.key?(:name)
@place_id = args[:place_id] if args.key?(:place_id)
end
end
@@ -267,6 +267,8 @@ module Google
class Place
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :language_code, as: 'languageCode'
property :name, as: 'name'
property :place_id, as: 'placeId'
end
end
@@ -140,6 +140,12 @@ module Google
# 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
# services will be used.
# @param [String] view
# Specifies if a download URL for the photo bytes should be returned in the
# Photo response.
@@ -160,11 +166,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 get_photo(photo_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_photo(photo_id, language_code: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/photo/{photoId}', options)
command.response_representation = Google::Apis::StreetviewpublishV1::Photo::Representation
command.response_class = Google::Apis::StreetviewpublishV1::Photo
command.params['photoId'] = photo_id unless photo_id.nil?
command.query['languageCode'] = language_code unless language_code.nil?
command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -349,6 +356,12 @@ module Google
# 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
# services will be used.
# @param [Array<String>, String] photo_ids
# Required. IDs of the Photos. For HTTP
# GET requests, the URL query parameter should be
@@ -373,10 +386,11 @@ 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 batch_photo_get(photo_ids: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
def batch_photo_get(language_code: nil, photo_ids: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/photos:batchGet', options)
command.response_representation = Google::Apis::StreetviewpublishV1::BatchGetPhotosResponse::Representation
command.response_class = Google::Apis::StreetviewpublishV1::BatchGetPhotosResponse
command.query['languageCode'] = language_code unless language_code.nil?
command.query['photoIds'] = photo_ids unless photo_ids.nil?
command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil?
@@ -444,6 +458,12 @@ module Google
# @param [String] filter
# The filter expression. For example: `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
# services will be 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,
@@ -476,11 +496,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 list_photos(filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_photos(filter: nil, language_code: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/photos', options)
command.response_representation = Google::Apis::StreetviewpublishV1::ListPhotosResponse::Representation
command.response_class = Google::Apis::StreetviewpublishV1::ListPhotosResponse
command.query['filter'] = filter unless filter.nil?
command.query['languageCode'] = language_code unless language_code.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['view'] = view unless view.nil?
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
VERSION = 'V1'
REVISION = '20141121'
# Manage your tasks
# Create, edit, organize, and delete all your tasks
AUTH_TASKS = 'https://www.googleapis.com/auth/tasks'
# View your tasks
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20181025'
REVISION = '20181107'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -377,14 +377,6 @@ module Google
# @return [Array<String>]
attr_accessor :tags
# True if and only if tests with this model DO NOT have video output.
# See also TestSpecification.disable_video_recording
# @OutputOnly
# Corresponds to the JSON property `videoRecordingNotSupported`
# @return [Boolean]
attr_accessor :video_recording_not_supported
alias_method :video_recording_not_supported?, :video_recording_not_supported
def initialize(**args)
update!(**args)
end
@@ -405,7 +397,6 @@ module Google
@supported_abis = args[:supported_abis] if args.key?(:supported_abis)
@supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids)
@tags = args[:tags] if args.key?(:tags)
@video_recording_not_supported = args[:video_recording_not_supported] if args.key?(:video_recording_not_supported)
end
end
@@ -1767,15 +1758,6 @@ module Google
# @return [Array<String>]
attr_accessor :progress_messages
# Indicates that video will not be recorded for this execution either because
# the user chose to disable it or the device does not support it.
# See AndroidModel.video_recording_not_supported
# @OutputOnly
# Corresponds to the JSON property `videoRecordingDisabled`
# @return [Boolean]
attr_accessor :video_recording_disabled
alias_method :video_recording_disabled?, :video_recording_disabled
def initialize(**args)
update!(**args)
end
@@ -1784,7 +1766,6 @@ module Google
def update!(**args)
@error_message = args[:error_message] if args.key?(:error_message)
@progress_messages = args[:progress_messages] if args.key?(:progress_messages)
@video_recording_disabled = args[:video_recording_disabled] if args.key?(:video_recording_disabled)
end
end
@@ -456,7 +456,6 @@ module Google
collection :supported_abis, as: 'supportedAbis'
collection :supported_version_ids, as: 'supportedVersionIds'
collection :tags, as: 'tags'
property :video_recording_not_supported, as: 'videoRecordingNotSupported'
end
end
@@ -858,7 +857,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message, as: 'errorMessage'
collection :progress_messages, as: 'progressMessages'
property :video_recording_disabled, as: 'videoRecordingDisabled'
end
end