From 0100db6396a70007006a4ef533a7ad40794a5ab3 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 8 Nov 2018 00:36:32 +0000 Subject: [PATCH] Autogenerated update (2018-11-08) Update: - calendar_v3 - content_v2 - drive_v2 - drive_v3 - gmail_v1 - streetviewpublish_v1 - tasks_v1 - testing_v1 --- api_names_out.yaml | 5 ++++ generated/google/apis/calendar_v3.rb | 4 +-- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 10 +++---- .../google/apis/content_v2/representations.rb | 1 - generated/google/apis/content_v2/service.rb | 6 ++--- generated/google/apis/drive_v2.rb | 6 ++--- generated/google/apis/drive_v3.rb | 6 ++--- generated/google/apis/gmail_v1.rb | 4 +-- generated/google/apis/streetviewpublish_v1.rb | 2 +- .../apis/streetviewpublish_v1/classes.rb | 13 +++++++++ .../streetviewpublish_v1/representations.rb | 2 ++ .../apis/streetviewpublish_v1/service.rb | 27 ++++++++++++++++--- generated/google/apis/tasks_v1.rb | 2 +- generated/google/apis/testing_v1.rb | 2 +- generated/google/apis/testing_v1/classes.rb | 19 ------------- .../google/apis/testing_v1/representations.rb | 2 -- 17 files changed, 64 insertions(+), 49 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index c7eb58548..69ee795da 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -86839,6 +86839,8 @@ "/streetviewpublish:v1/PhotoResponse/photo": photo "/streetviewpublish:v1/PhotoResponse/status": status "/streetviewpublish:v1/Place": place +"/streetviewpublish:v1/Place/languageCode": language_code +"/streetviewpublish:v1/Place/name": name "/streetviewpublish:v1/Place/placeId": place_id "/streetviewpublish:v1/Pose": pose "/streetviewpublish:v1/Pose/accuracyMeters": accuracy_meters @@ -86866,6 +86868,7 @@ "/streetviewpublish:v1/streetviewpublish.photo.delete": delete_photo "/streetviewpublish:v1/streetviewpublish.photo.delete/photoId": photo_id "/streetviewpublish:v1/streetviewpublish.photo.get": get_photo +"/streetviewpublish:v1/streetviewpublish.photo.get/languageCode": language_code "/streetviewpublish:v1/streetviewpublish.photo.get/photoId": photo_id "/streetviewpublish:v1/streetviewpublish.photo.get/view": view "/streetviewpublish:v1/streetviewpublish.photo.startUpload": start_photo_upload @@ -86874,11 +86877,13 @@ "/streetviewpublish:v1/streetviewpublish.photo.update/updateMask": update_mask "/streetviewpublish:v1/streetviewpublish.photos.batchDelete": batch_delete_photos "/streetviewpublish:v1/streetviewpublish.photos.batchGet": batch_photo_get +"/streetviewpublish:v1/streetviewpublish.photos.batchGet/languageCode": language_code "/streetviewpublish:v1/streetviewpublish.photos.batchGet/photoIds": photo_ids "/streetviewpublish:v1/streetviewpublish.photos.batchGet/view": view "/streetviewpublish:v1/streetviewpublish.photos.batchUpdate": batch_update_photos "/streetviewpublish:v1/streetviewpublish.photos.list": list_photos "/streetviewpublish:v1/streetviewpublish.photos.list/filter": filter +"/streetviewpublish:v1/streetviewpublish.photos.list/languageCode": language_code "/streetviewpublish:v1/streetviewpublish.photos.list/pageSize": page_size "/streetviewpublish:v1/streetviewpublish.photos.list/pageToken": page_token "/streetviewpublish:v1/streetviewpublish.photos.list/view": view diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index fa00dde39..4d0324e66 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -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 diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index e7831cd59..cd6dc98e7 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -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' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 0785190cd..d4d1d25d9 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -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 diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 4a3b2c9b5..e82afcf32 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -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 diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index 76cf8e5d0..ab2509976 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -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 diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 6f45f5eca..94e329f9f 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -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 diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index 75c2fe863..acc3710d7 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -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 diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index cd0601b97..0fa04aeb4 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -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 diff --git a/generated/google/apis/streetviewpublish_v1.rb b/generated/google/apis/streetviewpublish_v1.rb index ed268670e..0461b9493 100644 --- a/generated/google/apis/streetviewpublish_v1.rb +++ b/generated/google/apis/streetviewpublish_v1.rb @@ -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' diff --git a/generated/google/apis/streetviewpublish_v1/classes.rb b/generated/google/apis/streetviewpublish_v1/classes.rb index 47e63616f..86c7f5806 100644 --- a/generated/google/apis/streetviewpublish_v1/classes.rb +++ b/generated/google/apis/streetviewpublish_v1/classes.rb @@ -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 diff --git a/generated/google/apis/streetviewpublish_v1/representations.rb b/generated/google/apis/streetviewpublish_v1/representations.rb index 6e043d29b..a1d342ac8 100644 --- a/generated/google/apis/streetviewpublish_v1/representations.rb +++ b/generated/google/apis/streetviewpublish_v1/representations.rb @@ -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 diff --git a/generated/google/apis/streetviewpublish_v1/service.rb b/generated/google/apis/streetviewpublish_v1/service.rb index 4a39983df..1a0065f00 100644 --- a/generated/google/apis/streetviewpublish_v1/service.rb +++ b/generated/google/apis/streetviewpublish_v1/service.rb @@ -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] 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? diff --git a/generated/google/apis/tasks_v1.rb b/generated/google/apis/tasks_v1.rb index 0e3f1127b..6ee3eccf1 100644 --- a/generated/google/apis/tasks_v1.rb +++ b/generated/google/apis/tasks_v1.rb @@ -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 diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index 9418bcc7d..ccc462f26 100644 --- a/generated/google/apis/testing_v1.rb +++ b/generated/google/apis/testing_v1.rb @@ -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' diff --git a/generated/google/apis/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb index a138fa70c..51ea47df8 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -377,14 +377,6 @@ module Google # @return [Array] 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] 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 diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb index e4ba0e1b1..63756e22c 100644 --- a/generated/google/apis/testing_v1/representations.rb +++ b/generated/google/apis/testing_v1/representations.rb @@ -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