feat: Automated regeneration of books v1 client (#1264)

This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2020-10-23 01:47:05,337 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-books-v1
nothing to commit, working tree clean
2020-10-23 01:47:05,370 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth books v1
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth books v1
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.7
Installing tzinfo 1.2.7
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.46.2 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.0512
Installing mime-types-data 3.2020.0512
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.9.3
Installing rspec-support 3.9.3
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.2
Installing rspec-expectations 3.9.2
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 30 Gemfile dependencies, 77 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

If you are upgrading your Rails application from an older version of Rails:

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

If you are starting a NEW Rails application, you can ignore this notice.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=books.v1 --names-out=/workspace/api_names_out.yaml
Loading books, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/books.v1.json
    conflict  google/apis/books_v1.rb
<e/apis/books_v1.rb? (enter "h" for help) [Ynaqdhm] a
       force  google/apis/books_v1.rb
    conflict  google/apis/books_v1/service.rb
       force  google/apis/books_v1/service.rb
   identical  google/apis/books_v1/classes.rb
   identical  google/apis/books_v1/representations.rb
   identical  /workspace/api_names_out.yaml
2020-10-23 01:47:32,905 synthtool [DEBUG] > Wrote metadata to generated/google/apis/books_v1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/books_v1/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/b5264f4d-f9b1-43ca-9f8e-daf952acfa30/targets

- [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
Yoshi Automation Bot 2020-10-23 02:04:02 -07:00 committed by GitHub
parent b9e37b9e4e
commit d53bec90ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 54 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://code.google.com/apis/books/docs/v1/getting_started.html
module BooksV1
VERSION = 'V1'
REVISION = '20200925'
REVISION = '20201021'
# Manage your books
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'

View File

@ -220,7 +220,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 delete_book(volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def delete_book(volume_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/cloudloading/deleteBook', options)
command.response_representation = Google::Apis::BooksV1::Empty::Representation
command.response_class = Google::Apis::BooksV1::Empty
@ -280,7 +280,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 list_offline_metadata_dictionary(cpksver: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_offline_metadata_dictionary(cpksver, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'books/v1/dictionary/listOfflineMetadata', options)
command.response_representation = Google::Apis::BooksV1::Metadata::Representation
command.response_class = Google::Apis::BooksV1::Metadata
@ -482,10 +482,10 @@ module Google
# The ID for the layer to get the annotations.
# @param [String] annotation_data_id
# The ID of the annotation data to retrieve.
# @param [Boolean] allow_web_definitions
# For the dictionary layer. Whether or not to allow web definitions.
# @param [String] content_version
# The content version for the volume you are trying to retrieve.
# @param [Boolean] allow_web_definitions
# For the dictionary layer. Whether or not to allow web definitions.
# @param [Fixnum] h
# The requested pixel height for any images. If height is provided width must
# also be provided.
@ -516,7 +516,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 get_layer_annotation_data(volume_id, layer_id, annotation_data_id, allow_web_definitions: nil, content_version: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_layer_annotation_data(volume_id, layer_id, annotation_data_id, content_version, allow_web_definitions: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options)
command.response_representation = Google::Apis::BooksV1::DictionaryAnnotationdata::Representation
command.response_class = Google::Apis::BooksV1::DictionaryAnnotationdata
@ -540,11 +540,11 @@ module Google
# The volume to retrieve annotation data for.
# @param [String] layer_id
# The ID for the layer to get the annotation data.
# @param [String] content_version
# The content version for the requested volume.
# @param [Array<String>, String] annotation_data_id
# The list of Annotation Data Ids to retrieve. Pagination is ignored if this is
# set.
# @param [String] content_version
# The content version for the requested volume.
# @param [Fixnum] h
# The requested pixel height for any images. If height is provided width must
# also be provided.
@ -585,7 +585,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 list_layer_annotation_data(volume_id, layer_id, annotation_data_id: nil, content_version: nil, h: nil, locale: nil, max_results: nil, page_token: nil, scale: nil, source: nil, updated_max: nil, updated_min: nil, w: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_layer_annotation_data(volume_id, layer_id, content_version, annotation_data_id: nil, h: nil, locale: nil, max_results: nil, page_token: nil, scale: nil, source: nil, updated_max: nil, updated_min: nil, w: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/layers/{layerId}/data', options)
command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation
command.response_class = Google::Apis::BooksV1::AnnotationsData
@ -702,7 +702,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 list_layer_volume_annotations(volume_id, layer_id, content_version: nil, end_offset: nil, end_position: nil, locale: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, start_offset: nil, start_position: nil, updated_max: nil, updated_min: nil, volume_annotations_version: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_layer_volume_annotations(volume_id, layer_id, content_version, end_offset: nil, end_position: nil, locale: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, start_offset: nil, start_position: nil, updated_max: nil, updated_min: nil, volume_annotations_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/layers/{layerId}', options)
command.response_representation = Google::Apis::BooksV1::Volumeannotations::Representation
command.response_class = Google::Apis::BooksV1::Volumeannotations
@ -759,12 +759,12 @@ module Google
# Release downloaded content access restriction.
# @param [String] cpksver
# The device/version ID from which to release the restriction.
# @param [Array<String>, String] volume_ids
# The volume(s) to release restrictions for.
# @param [String] locale
# ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
# @param [String] source
# String to identify the originator of this request.
# @param [Array<String>, String] volume_ids
# The volume(s) to release restrictions for.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -782,7 +782,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 release_download_access(cpksver: nil, locale: nil, source: nil, volume_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
def release_download_access(cpksver, volume_ids, locale: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/myconfig/releaseDownloadAccess', options)
command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation
command.response_class = Google::Apis::BooksV1::DownloadAccesses
@ -798,16 +798,16 @@ module Google
# Request concurrent and download access restrictions.
# @param [String] cpksver
# The device/version ID from which to request the restrictions.
# @param [String] license_types
# The type of access license to request. If not specified, the default is BOTH.
# @param [String] locale
# ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
# @param [String] nonce
# The client nonce value.
# @param [String] source
# String to identify the originator of this request.
# @param [String] volume_id
# The volume to request concurrent/download restrictions for.
# @param [String] license_types
# The type of access license to request. If not specified, the default is BOTH.
# @param [String] locale
# ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -825,7 +825,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 request_access(cpksver: nil, license_types: nil, locale: nil, nonce: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def request_access(cpksver, nonce, source, volume_id, license_types: nil, locale: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/myconfig/requestAccess', options)
command.response_representation = Google::Apis::BooksV1::RequestAccessData::Representation
command.response_class = Google::Apis::BooksV1::RequestAccessData
@ -843,18 +843,18 @@ module Google
# Request downloaded content access for specified volumes on the My eBooks shelf.
# @param [String] cpksver
# The device/version ID from which to release the restriction.
# @param [String] nonce
# The client nonce value.
# @param [String] source
# String to identify the originator of this request.
# @param [Array<String>, String] features
# List of features supported by the client, i.e., 'RENTALS'
# @param [Boolean] include_non_comics_series
# Set to true to include non-comics series. Defaults to false.
# @param [String] locale
# ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
# @param [String] nonce
# The client nonce value.
# @param [Boolean] show_preorders
# Set to true to show pre-ordered books. Defaults to false.
# @param [String] source
# String to identify the originator of this request.
# @param [Array<String>, String] volume_ids
# The volume(s) to request download restrictions for.
# @param [String] fields
@ -874,7 +874,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 sync_volume_licenses(cpksver: nil, features: nil, include_non_comics_series: nil, locale: nil, nonce: nil, show_preorders: nil, source: nil, volume_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
def sync_volume_licenses(cpksver, nonce, source, features: nil, include_non_comics_series: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/myconfig/syncVolumeLicenses', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes
@ -1081,7 +1081,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 summarize_my_library_annotation(layer_ids: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/mylibrary/annotations/summary', options)
command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation
command.response_class = Google::Apis::BooksV1::AnnotationsSummary
@ -1131,12 +1131,12 @@ module Google
# Adds a volume to a bookshelf.
# @param [String] shelf
# ID of bookshelf to which to add a volume.
# @param [String] volume_id
# ID of volume to add.
# @param [String] reason
# The reason for which the book is added to the library.
# @param [String] source
# String to identify the originator of this request.
# @param [String] volume_id
# ID of volume to add.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1154,7 +1154,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 add_my_library_volume(shelf, reason: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/mylibrary/bookshelves/{shelf}/addVolume', options)
command.response_representation = Google::Apis::BooksV1::Empty::Representation
command.response_class = Google::Apis::BooksV1::Empty
@ -1267,13 +1267,13 @@ module Google
# Moves a volume within a bookshelf.
# @param [String] shelf
# ID of bookshelf with the volume.
# @param [String] source
# String to identify the originator of this request.
# @param [String] volume_id
# ID of volume to move.
# @param [Fixnum] volume_position
# Position on shelf to move the item (0 puts the item before the current first
# item, 1 puts it between the first and the second and so on.)
# @param [String] source
# String to identify the originator of this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1291,7 +1291,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 move_my_library_volume(shelf, source: nil, volume_id: nil, volume_position: nil, fields: nil, quota_user: nil, options: nil, &block)
def move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/mylibrary/bookshelves/{shelf}/moveVolume', options)
command.response_representation = Google::Apis::BooksV1::Empty::Representation
command.response_class = Google::Apis::BooksV1::Empty
@ -1307,12 +1307,12 @@ module Google
# Removes a volume from a bookshelf.
# @param [String] shelf
# ID of bookshelf from which to remove a volume.
# @param [String] volume_id
# ID of volume to remove.
# @param [String] reason
# The reason for which the book is removed from the library.
# @param [String] source
# String to identify the originator of this request.
# @param [String] volume_id
# ID of volume to remove.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1330,7 +1330,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 remove_my_library_volume(shelf, reason: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/mylibrary/bookshelves/{shelf}/removeVolume', options)
command.response_representation = Google::Apis::BooksV1::Empty::Representation
command.response_class = Google::Apis::BooksV1::Empty
@ -1433,18 +1433,18 @@ module Google
# Sets my reading position information for a volume.
# @param [String] volume_id
# ID of volume for which to update the reading position.
# @param [String] position
# Position string for the new volume reading position.
# @param [String] timestamp
# RFC 3339 UTC format timestamp associated with this reading position.
# @param [String] action
# Action that caused this reading position to be set.
# @param [String] content_version
# Volume content version for which this reading position applies.
# @param [String] device_cookie
# Random persistent device cookie optional on set position.
# @param [String] position
# Position string for the new volume reading position.
# @param [String] source
# String to identify the originator of this request.
# @param [String] timestamp
# RFC 3339 UTC format timestamp associated with this reading position.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1462,7 +1462,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 set_my_library_reading_position(volume_id, action: nil, content_version: nil, device_cookie: nil, position: nil, source: nil, timestamp: nil, fields: nil, quota_user: nil, options: nil, &block)
def set_my_library_reading_position(volume_id, position, timestamp, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/mylibrary/readingpositions/{volumeId}/setPosition', options)
command.response_representation = Google::Apis::BooksV1::Empty::Representation
command.response_class = Google::Apis::BooksV1::Empty
@ -1479,11 +1479,11 @@ module Google
end
# Returns notification details for a given notification id.
# @param [String] notification_id
# String to identify the notification.
# @param [String] locale
# ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
# generating notification title and body.
# @param [String] notification_id
# String to identify the notification.
# @param [String] source
# String to identify the originator of this request.
# @param [String] fields
@ -1503,7 +1503,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 get_notification(locale: nil, notification_id: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_notification(notification_id, locale: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'books/v1/notification/get', options)
command.response_representation = Google::Apis::BooksV1::Notification::Representation
command.response_class = Google::Apis::BooksV1::Notification
@ -1789,7 +1789,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 get_series(series_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_series(series_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'books/v1/series/get', options)
command.response_representation = Google::Apis::BooksV1::Series::Representation
command.response_class = Google::Apis::BooksV1::Series
@ -1800,12 +1800,12 @@ module Google
end
# Returns Series membership data given the series id.
# @param [String] series_id
# String that identifies the series
# @param [Fixnum] page_size
# Number of maximum results per page to be included in the response.
# @param [String] page_token
# The value of the nextToken from the previous page.
# @param [String] series_id
# String that identifies the series
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1823,7 +1823,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 get_series_membership(page_size: nil, page_token: nil, series_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_series_membership(series_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'books/v1/series/membership/get', options)
command.response_representation = Google::Apis::BooksV1::SeriesMembership::Representation
command.response_class = Google::Apis::BooksV1::SeriesMembership
@ -1883,6 +1883,8 @@ module Google
end
# Performs a book search.
# @param [String] q
# Full-text search query string.
# @param [String] download
# Restrict to volumes by download availability.
# @param [String] filter
@ -1904,8 +1906,6 @@ module Google
# Restrict to books or magazines.
# @param [String] projection
# Restrict information returned to a set of selected fields.
# @param [String] q
# Full-text search query string.
# @param [Boolean] show_preorders
# Set to true to show books available for preorder. Defaults to false.
# @param [String] source
@ -1929,7 +1929,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 list_volumes(download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_allowed_maturity_rating: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_allowed_maturity_rating: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'books/v1/volumes', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes
@ -2085,15 +2085,15 @@ module Google
end
# Rate a recommended book for the current user.
# @param [String] rating
# Rating to be given to the volume.
# @param [String] volume_id
# ID of the source volume.
# @param [String] locale
# ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
# generating recommendations.
# @param [String] rating
# Rating to be given to the volume.
# @param [String] source
# String to identify the originator of this request.
# @param [String] volume_id
# ID of the source volume.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2111,7 +2111,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 rate_recommended_volume(locale: nil, rating: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def rate_recommended_volume(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'books/v1/volumes/recommended/rate', options)
command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation
command.response_class = Google::Apis::BooksV1::RateRecommendedVolumeResponse

View File

@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "c98c719bbab68d0890524d53f8b629d7858af9c2"
"sha": "782cfabf9d590f91d2fc2ac41d40019093e36876"
}
}
]