Class: Google::Apis::BooksV1::BooksService

Inherits:
Core::BaseService show all
Defined in:
generated/google/apis/books_v1/service.rb

Overview

Books API

Searches for books and manages your Google Books library.

Examples:

require 'google/apis/books_v1'

Books = Google::Apis::BooksV1 # Alias the module
service = Books::BooksService.new

See Also:

Instance Attribute Summary collapse

Attributes inherited from Core::BaseService

#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path

Instance Method Summary collapse

Methods inherited from Core::BaseService

#batch, #batch_upload, #fetch_all, #http

Methods included from Core::Logging

#logger

Constructor Details

#initializeBooksService

Returns a new instance of BooksService



51
52
53
54
# File 'generated/google/apis/books_v1/service.rb', line 51

def initialize
  super('https://www.googleapis.com/', 'books/v1/')
  @batch_path = 'batch/books/v1'
end

Instance Attribute Details

#keyString

Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Returns:

  • (String)

    API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.



38
39
40
# File 'generated/google/apis/books_v1/service.rb', line 38

def key
  @key
end

#quota_userString

Returns 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. Overrides userIp if both are provided.

Returns:

  • (String)

    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. Overrides userIp if both are provided.



44
45
46
# File 'generated/google/apis/books_v1/service.rb', line 44

def quota_user
  @quota_user
end

#user_ipString

Returns IP address of the site where the request originates. Use this if you want to enforce per-user limits.

Returns:

  • (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.



49
50
51
# File 'generated/google/apis/books_v1/service.rb', line 49

def user_ip
  @user_ip
end

Instance Method Details

#accept_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Parameters:

  • android_id (String)

    device android_id

  • device (String)

    device device

  • manufacturer (String)

    device manufacturer

  • model (String)

    device model

  • offer_id (String)
  • product (String)

    device product

  • serial (String)

    device serial

  • volume_id (String)

    Volume id to exercise the offer

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
# File 'generated/google/apis/books_v1/service.rb', line 1845

def accept_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'promooffer/accept', options)
  command.query['androidId'] = android_id unless android_id.nil?
  command.query['device'] = device unless device.nil?
  command.query['manufacturer'] = manufacturer unless manufacturer.nil?
  command.query['model'] = model unless model.nil?
  command.query['offerId'] = offer_id unless offer_id.nil?
  command.query['product'] = product unless product.nil?
  command.query['serial'] = serial unless serial.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#add_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::LoadingResource

Parameters:

  • drive_document_id (String)

    A drive document id. The upload_client_token must not be set.

  • mime_type (String)

    The document MIME type. It can be set only if the drive_document_id is set.

  • name (String)

    The document name. It can be set only if the drive_document_id is set.

  • upload_client_token (String)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



214
215
216
217
218
219
220
221
222
223
224
225
226
# File 'generated/google/apis/books_v1/service.rb', line 214

def add_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'cloudloading/addBook', options)
  command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
  command.response_class = Google::Apis::BooksV1::LoadingResource
  command.query['drive_document_id'] = drive_document_id unless drive_document_id.nil?
  command.query['mime_type'] = mime_type unless mime_type.nil?
  command.query['name'] = name unless name.nil?
  command.query['upload_client_token'] = upload_client_token unless upload_client_token.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

#add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Adds a volume to a bookshelf.

Parameters:

  • shelf (String)

    ID of bookshelf to which to add a volume.

  • volume_id (String)

    ID of volume to add.

  • reason (String)

    The reason for which the book is added to the library.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
# File 'generated/google/apis/books_v1/service.rb', line 1285

def add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/addVolume', options)
  command.params['shelf'] = shelf unless shelf.nil?
  command.query['reason'] = reason unless reason.nil?
  command.query['source'] = source unless source.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Clears all volumes from a bookshelf.

Parameters:

  • shelf (String)

    ID of bookshelf from which to remove a volume.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1323
1324
1325
1326
1327
1328
1329
1330
1331
# File 'generated/google/apis/books_v1/service.rb', line 1323

def clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/clearVolumes', options)
  command.params['shelf'] = shelf unless shelf.nil?
  command.query['source'] = source unless source.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

#delete_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Remove the book and its contents

Parameters:

  • volume_id (String)

    The id of the book to be removed.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



252
253
254
255
256
257
258
259
# File 'generated/google/apis/books_v1/service.rb', line 252

def delete_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'cloudloading/deleteBook', options)
  command.query['volumeId'] = volume_id unless volume_id.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

#delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an annotation.

Parameters:

  • annotation_id (String)

    The ID for the annotation to delete.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1053
1054
1055
1056
1057
1058
1059
1060
1061
# File 'generated/google/apis/books_v1/service.rb', line 1053

def delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'mylibrary/annotations/{annotationId}', options)
  command.params['annotationId'] = annotation_id unless annotation_id.nil?
  command.query['source'] = source unless source.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

#dismiss_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Parameters:

  • android_id (String)

    device android_id

  • device (String)

    device device

  • manufacturer (String)

    device manufacturer

  • model (String)

    device model

  • offer_id (String)

    Offer to dimiss

  • product (String)

    device product

  • serial (String)

    device serial

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'generated/google/apis/books_v1/service.rb', line 1897

def dismiss_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'promooffer/dismiss', options)
  command.query['androidId'] = android_id unless android_id.nil?
  command.query['device'] = device unless device.nil?
  command.query['manufacturer'] = manufacturer unless manufacturer.nil?
  command.query['model'] = model unless model.nil?
  command.query['offerId'] = offer_id unless offer_id.nil?
  command.query['product'] = product unless product.nil?
  command.query['serial'] = serial unless serial.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

#get_bookshelf(user_id, shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Bookshelf

Retrieves metadata for a specific bookshelf for the specified user.

Parameters:

  • user_id (String)

    ID of user for whom to retrieve bookshelves.

  • shelf (String)

    ID of bookshelf to retrieve.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



84
85
86
87
88
89
90
91
92
93
94
95
# File 'generated/google/apis/books_v1/service.rb', line 84

def get_bookshelf(user_id, shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}', options)
  command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
  command.response_class = Google::Apis::BooksV1::Bookshelf
  command.params['userId'] = user_id unless user_id.nil?
  command.params['shelf'] = shelf unless shelf.nil?
  command.query['source'] = source unless source.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

#get_familysharing_family_info(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::FamilyInfo

Gets information regarding the family that the user is part of.

Parameters:

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



355
356
357
358
359
360
361
362
363
364
# File 'generated/google/apis/books_v1/service.rb', line 355

def get_familysharing_family_info(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'familysharing/getFamilyInfo', options)
  command.response_representation = Google::Apis::BooksV1::FamilyInfo::Representation
  command.response_class = Google::Apis::BooksV1::FamilyInfo
  command.query['source'] = source unless source.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

#get_layer(volume_id, summary_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::LayerSummary

Gets the layer summary for a volume.

Parameters:

  • volume_id (String)

    The volume to retrieve layers for.

  • summary_id (String)

    The ID for the layer to get the summary for.

  • content_version (String)

    The content version for the requested volume.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



476
477
478
479
480
481
482
483
484
485
486
487
488
# File 'generated/google/apis/books_v1/service.rb', line 476

def get_layer(volume_id, summary_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/{volumeId}/layersummary/{summaryId}', options)
  command.response_representation = Google::Apis::BooksV1::LayerSummary::Representation
  command.response_class = Google::Apis::BooksV1::LayerSummary
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.params['summaryId'] = summary_id unless summary_id.nil?
  command.query['contentVersion'] = content_version unless content_version.nil?
  command.query['source'] = source unless source.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

#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, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::AnnotationData

Gets the annotation data.

Parameters:

  • volume_id (String)

    The volume to retrieve annotations for.

  • layer_id (String)

    The ID for the layer to get the annotations.

  • annotation_data_id (String)

    The ID of the annotation data to retrieve.

  • content_version (String)

    The content version for the volume you are trying to retrieve.

  • allow_web_definitions (Boolean)

    For the dictionary layer. Whether or not to allow web definitions.

  • h (Fixnum)

    The requested pixel height for any images. If height is provided width must also be provided.

  • locale (String)

    The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.

  • scale (Fixnum)

    The requested scale for the image.

  • source (String)

    String to identify the originator of this request.

  • w (Fixnum)

    The requested pixel width for any images. If width is provided height must also be provided.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
# File 'generated/google/apis/books_v1/service.rb', line 582

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, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options)
  command.response_representation = Google::Apis::BooksV1::AnnotationData::Representation
  command.response_class = Google::Apis::BooksV1::AnnotationData
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.params['layerId'] = layer_id unless layer_id.nil?
  command.params['annotationDataId'] = annotation_data_id unless annotation_data_id.nil?
  command.query['allowWebDefinitions'] = allow_web_definitions unless allow_web_definitions.nil?
  command.query['contentVersion'] = content_version unless content_version.nil?
  command.query['h'] = h unless h.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['scale'] = scale unless scale.nil?
  command.query['source'] = source unless source.nil?
  command.query['w'] = w unless w.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

#get_layer_volume_annotation(volume_id, layer_id, annotation_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::VolumeAnnotation

Gets the volume annotation.

Parameters:

  • volume_id (String)

    The volume to retrieve annotations for.

  • layer_id (String)

    The ID for the layer to get the annotations.

  • annotation_id (String)

    The ID of the volume annotation to retrieve.

  • locale (String)

    The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



712
713
714
715
716
717
718
719
720
721
722
723
724
725
# File 'generated/google/apis/books_v1/service.rb', line 712

def get_layer_volume_annotation(volume_id, layer_id, annotation_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', options)
  command.response_representation = Google::Apis::BooksV1::VolumeAnnotation::Representation
  command.response_class = Google::Apis::BooksV1::VolumeAnnotation
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.params['layerId'] = layer_id unless layer_id.nil?
  command.params['annotationId'] = annotation_id unless annotation_id.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['source'] = source unless source.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

#get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Bookshelf

Retrieves metadata for a specific bookshelf belonging to the authenticated user.

Parameters:

  • shelf (String)

    ID of bookshelf to retrieve.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
# File 'generated/google/apis/books_v1/service.rb', line 1360

def get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'mylibrary/bookshelves/{shelf}', options)
  command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
  command.response_class = Google::Apis::BooksV1::Bookshelf
  command.params['shelf'] = shelf unless shelf.nil?
  command.query['source'] = source unless source.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

#get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::ReadingPosition

Retrieves my reading position information for a volume.

Parameters:

  • volume_id (String)

    ID of volume for which to retrieve a reading position.

  • content_version (String)

    Volume content version for which this reading position is requested.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
# File 'generated/google/apis/books_v1/service.rb', line 1576

def get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'mylibrary/readingpositions/{volumeId}', options)
  command.response_representation = Google::Apis::BooksV1::ReadingPosition::Representation
  command.response_class = Google::Apis::BooksV1::ReadingPosition
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.query['contentVersion'] = content_version unless content_version.nil?
  command.query['source'] = source unless source.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

#get_notification(notification_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Notification

Returns notification details for a given notification id.

Parameters:

  • notification_id (String)

    String to identify the notification.

  • locale (String)

    ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating notification title and body.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
# File 'generated/google/apis/books_v1/service.rb', line 1669

def get_notification(notification_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'notification/get', options)
  command.response_representation = Google::Apis::BooksV1::Notification::Representation
  command.response_class = Google::Apis::BooksV1::Notification
  command.query['locale'] = locale unless locale.nil?
  command.query['notification_id'] = notification_id unless notification_id.nil?
  command.query['source'] = source unless source.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

#get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Discoveryclusters

Returns a stream of personalized book clusters

Parameters:

  • locale (String)

    ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.

  • max_allowed_maturity_rating (String)

    The maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
# File 'generated/google/apis/books_v1/service.rb', line 1795

def get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'personalizedstream/get', options)
  command.response_representation = Google::Apis::BooksV1::Discoveryclusters::Representation
  command.response_class = Google::Apis::BooksV1::Discoveryclusters
  command.query['locale'] = locale unless locale.nil?
  command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
  command.query['source'] = source unless source.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

#get_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Offers

Returns a list of promo offers available to the user

Parameters:

  • android_id (String)

    device android_id

  • device (String)

    device device

  • manufacturer (String)

    device manufacturer

  • model (String)

    device model

  • product (String)

    device product

  • serial (String)

    device serial

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
# File 'generated/google/apis/books_v1/service.rb', line 1946

def get_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'promooffer/get', options)
  command.response_representation = Google::Apis::BooksV1::Offers::Representation
  command.response_class = Google::Apis::BooksV1::Offers
  command.query['androidId'] = android_id unless android_id.nil?
  command.query['device'] = device unless device.nil?
  command.query['manufacturer'] = manufacturer unless manufacturer.nil?
  command.query['model'] = model unless model.nil?
  command.query['product'] = product unless product.nil?
  command.query['serial'] = serial unless serial.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

#get_series(series_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Series

Returns Series metadata for the given series ids.

Parameters:

  • series_id (Array<String>, String)

    String that identifies the series

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
# File 'generated/google/apis/books_v1/service.rb', line 1986

def get_series(series_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'series/get', options)
  command.response_representation = Google::Apis::BooksV1::Series::Representation
  command.response_class = Google::Apis::BooksV1::Series
  command.query['series_id'] = series_id unless series_id.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

#get_series_membership(series_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::SeriesMembership

Returns Series membership data given the series id.

Parameters:

  • series_id (String)

    String that identifies the series

  • page_size (Fixnum)

    Number of maximum results per page to be included in the response.

  • page_token (String)

    The value of the nextToken from the previous page.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
# File 'generated/google/apis/books_v1/service.rb', line 2025

def get_series_membership(series_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'series/membership/get', options)
  command.response_representation = Google::Apis::BooksV1::SeriesMembership::Representation
  command.response_class = Google::Apis::BooksV1::SeriesMembership
  command.query['page_size'] = page_size unless page_size.nil?
  command.query['page_token'] = page_token unless page_token.nil?
  command.query['series_id'] = series_id unless series_id.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

#get_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::UserSettings

Gets the current settings for the user.

Parameters:

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



830
831
832
833
834
835
836
837
838
# File 'generated/google/apis/books_v1/service.rb', line 830

def (fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'myconfig/getUserSettings', options)
  command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
  command.response_class = Google::Apis::BooksV1::UserSettings
  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

#get_volume(volume_id, country: nil, include_non_comics_series: nil, partner: nil, projection: nil, source: nil, user_library_consistent_read: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volume

Gets volume information for a single volume.

Parameters:

  • volume_id (String)

    ID of volume to retrieve.

  • country (String)

    ISO-3166-1 code to override the IP-based location.

  • include_non_comics_series (Boolean)

    Set to true to include non-comics series. Defaults to false.

  • partner (String)

    Brand results for partner ID.

  • projection (String)

    Restrict information returned to a set of selected fields.

  • source (String)

    String to identify the originator of this request.

  • user_library_consistent_read (Boolean)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
# File 'generated/google/apis/books_v1/service.rb', line 2073

def get_volume(volume_id, country: nil, include_non_comics_series: nil, partner: nil, projection: nil, source: nil, user_library_consistent_read: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/{volumeId}', options)
  command.response_representation = Google::Apis::BooksV1::Volume::Representation
  command.response_class = Google::Apis::BooksV1::Volume
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.query['country'] = country unless country.nil?
  command.query['includeNonComicsSeries'] = include_non_comics_series unless include_non_comics_series.nil?
  command.query['partner'] = partner unless partner.nil?
  command.query['projection'] = projection unless projection.nil?
  command.query['source'] = source unless source.nil?
  command.query['user_library_consistent_read'] = user_library_consistent_read unless user_library_consistent_read.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

#insert_my_library_annotation(annotation_object = nil, annotation_id: nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Annotation

Inserts a new annotation.

Parameters:

  • annotation_object (Google::Apis::BooksV1::Annotation) (defaults to: nil)
  • annotation_id (String)

    The ID for the annotation to insert.

  • country (String)

    ISO-3166-1 code to override the IP-based location.

  • show_only_summary_in_response (Boolean)

    Requests that only the summary of the specified layer be provided in the response.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
# File 'generated/google/apis/books_v1/service.rb', line 1095

def insert_my_library_annotation(annotation_object = nil, annotation_id: nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'mylibrary/annotations', options)
  command.request_representation = Google::Apis::BooksV1::Annotation::Representation
  command.request_object = annotation_object
  command.response_representation = Google::Apis::BooksV1::Annotation::Representation
  command.response_class = Google::Apis::BooksV1::Annotation
  command.query['annotationId'] = annotation_id unless annotation_id.nil?
  command.query['country'] = country unless country.nil?
  command.query['showOnlySummaryInResponse'] = show_only_summary_in_response unless show_only_summary_in_response.nil?
  command.query['source'] = source unless source.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

#list_associated_volumes(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volumes

Return a list of associated books.

Parameters:

  • volume_id (String)

    ID of the source volume.

  • association (String)

    Association type.

  • locale (String)

    ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.

  • max_allowed_maturity_rating (String)

    The maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
# File 'generated/google/apis/books_v1/service.rb', line 2199

def list_associated_volumes(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/{volumeId}/associated', options)
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
  command.response_class = Google::Apis::BooksV1::Volumes
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.query['association'] = association unless association.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
  command.query['source'] = source unless source.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

#list_bookshelf_volumes(user_id, shelf, max_results: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volumes

Retrieves volumes in a specific bookshelf for the specified user.

Parameters:

  • user_id (String)

    ID of user for whom to retrieve bookshelf volumes.

  • shelf (String)

    ID of bookshelf to retrieve volumes.

  • max_results (Fixnum)

    Maximum number of results to return

  • show_preorders (Boolean)

    Set to true to show pre-ordered books. Defaults to false.

  • source (String)

    String to identify the originator of this request.

  • start_index (Fixnum)

    Index of the first element to return (starts at 0)

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# File 'generated/google/apis/books_v1/service.rb', line 169

def list_bookshelf_volumes(user_id, shelf, max_results: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}/volumes', options)
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
  command.response_class = Google::Apis::BooksV1::Volumes
  command.params['userId'] = user_id unless user_id.nil?
  command.params['shelf'] = shelf unless shelf.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['showPreorders'] = show_preorders unless show_preorders.nil?
  command.query['source'] = source unless source.nil?
  command.query['startIndex'] = start_index unless start_index.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

#list_bookshelves(user_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Bookshelves

Retrieves a list of public bookshelves for the specified user.

Parameters:

  • user_id (String)

    ID of user for whom to retrieve bookshelves.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



123
124
125
126
127
128
129
130
131
132
133
# File 'generated/google/apis/books_v1/service.rb', line 123

def list_bookshelves(user_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'users/{userId}/bookshelves', options)
  command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
  command.response_class = Google::Apis::BooksV1::Bookshelves
  command.params['userId'] = user_id unless user_id.nil?
  command.query['source'] = source unless source.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

#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, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::AnnotationsData

Gets the annotation data for a volume and layer.

Parameters:

  • volume_id (String)

    The volume to retrieve annotation data for.

  • layer_id (String)

    The ID for the layer to get the annotation data.

  • content_version (String)

    The content version for the requested volume.

  • annotation_data_id (Array<String>, String)

    The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.

  • h (Fixnum)

    The requested pixel height for any images. If height is provided width must also be provided.

  • locale (String)

    The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.

  • max_results (Fixnum)

    Maximum number of results to return

  • page_token (String)

    The value of the nextToken from the previous page.

  • scale (Fixnum)

    The requested scale for the image.

  • source (String)

    String to identify the originator of this request.

  • updated_max (String)

    RFC 3339 timestamp to restrict to items updated prior to this timestamp ( exclusive).

  • updated_min (String)

    RFC 3339 timestamp to restrict to items updated since this timestamp ( inclusive).

  • w (Fixnum)

    The requested pixel width for any images. If width is provided height must also be provided.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
# File 'generated/google/apis/books_v1/service.rb', line 656

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, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data', options)
  command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation
  command.response_class = Google::Apis::BooksV1::AnnotationsData
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.params['layerId'] = layer_id unless layer_id.nil?
  command.query['annotationDataId'] = annotation_data_id unless annotation_data_id.nil?
  command.query['contentVersion'] = content_version unless content_version.nil?
  command.query['h'] = h unless h.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['scale'] = scale unless scale.nil?
  command.query['source'] = source unless source.nil?
  command.query['updatedMax'] = updated_max unless updated_max.nil?
  command.query['updatedMin'] = updated_min unless updated_min.nil?
  command.query['w'] = w unless w.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

#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, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volumeannotations

Gets the volume annotations for a volume and layer.

Parameters:

  • volume_id (String)

    The volume to retrieve annotations for.

  • layer_id (String)

    The ID for the layer to get the annotations.

  • content_version (String)

    The content version for the requested volume.

  • end_offset (String)

    The end offset to end retrieving data from.

  • end_position (String)

    The end position to end retrieving data from.

  • locale (String)

    The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.

  • max_results (Fixnum)

    Maximum number of results to return

  • page_token (String)

    The value of the nextToken from the previous page.

  • show_deleted (Boolean)

    Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.

  • source (String)

    String to identify the originator of this request.

  • start_offset (String)

    The start offset to start retrieving data from.

  • start_position (String)

    The start position to start retrieving data from.

  • updated_max (String)

    RFC 3339 timestamp to restrict to items updated prior to this timestamp ( exclusive).

  • updated_min (String)

    RFC 3339 timestamp to restrict to items updated since this timestamp ( inclusive).

  • volume_annotations_version (String)

    The version of the volume annotations that you are requesting.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
# File 'generated/google/apis/books_v1/service.rb', line 783

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, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}', options)
  command.response_representation = Google::Apis::BooksV1::Volumeannotations::Representation
  command.response_class = Google::Apis::BooksV1::Volumeannotations
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.params['layerId'] = layer_id unless layer_id.nil?
  command.query['contentVersion'] = content_version unless content_version.nil?
  command.query['endOffset'] = end_offset unless end_offset.nil?
  command.query['endPosition'] = end_position unless end_position.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['showDeleted'] = show_deleted unless show_deleted.nil?
  command.query['source'] = source unless source.nil?
  command.query['startOffset'] = start_offset unless start_offset.nil?
  command.query['startPosition'] = start_position unless start_position.nil?
  command.query['updatedMax'] = updated_max unless updated_max.nil?
  command.query['updatedMin'] = updated_min unless updated_min.nil?
  command.query['volumeAnnotationsVersion'] = volume_annotations_version unless volume_annotations_version.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

#list_layers(volume_id, content_version: nil, max_results: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::LayerSummaries

List the layer summaries for a volume.

Parameters:

  • volume_id (String)

    The volume to retrieve layers for.

  • content_version (String)

    The content version for the requested volume.

  • max_results (Fixnum)

    Maximum number of results to return

  • page_token (String)

    The value of the nextToken from the previous page.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



522
523
524
525
526
527
528
529
530
531
532
533
534
535
# File 'generated/google/apis/books_v1/service.rb', line 522

def list_layers(volume_id, content_version: nil, max_results: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/{volumeId}/layersummary', options)
  command.response_representation = Google::Apis::BooksV1::LayerSummaries::Representation
  command.response_class = Google::Apis::BooksV1::LayerSummaries
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.query['contentVersion'] = content_version unless content_version.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['source'] = source unless source.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

#list_my_books(acquire_method: nil, country: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volumes

Return a list of books in My Library.

Parameters:

  • acquire_method (Array<String>, String)

    How the book was acquired

  • country (String)

    ISO-3166-1 code to override the IP-based location.

  • locale (String)

    ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for generating recommendations.

  • max_results (Fixnum)

    Maximum number of results to return.

  • processing_state (Array<String>, String)

    The processing state of the user uploaded volumes to be returned. Applicable only if the UPLOADED is specified in the acquireMethod.

  • source (String)

    String to identify the originator of this request.

  • start_index (Fixnum)

    Index of the first result to return (starts at 0)

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
# File 'generated/google/apis/books_v1/service.rb', line 2252

def list_my_books(acquire_method: nil, country: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/mybooks', options)
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
  command.response_class = Google::Apis::BooksV1::Volumes
  command.query['acquireMethod'] = acquire_method unless acquire_method.nil?
  command.query['country'] = country unless country.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['processingState'] = processing_state unless processing_state.nil?
  command.query['source'] = source unless source.nil?
  command.query['startIndex'] = start_index unless start_index.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

#list_my_library_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Annotations

Retrieves a list of annotations, possibly filtered.

Parameters:

  • content_version (String)

    The content version for the requested volume.

  • layer_id (String)

    The layer ID to limit annotation by.

  • layer_ids (Array<String>, String)

    The layer ID(s) to limit annotation by.

  • max_results (Fixnum)

    Maximum number of results to return

  • page_token (String)

    The value of the nextToken from the previous page.

  • show_deleted (Boolean)

    Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.

  • source (String)

    String to identify the originator of this request.

  • updated_max (String)

    RFC 3339 timestamp to restrict to items updated prior to this timestamp ( exclusive).

  • updated_min (String)

    RFC 3339 timestamp to restrict to items updated since this timestamp ( inclusive).

  • volume_id (String)

    The volume to restrict annotations to.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
# File 'generated/google/apis/books_v1/service.rb', line 1156

def list_my_library_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'mylibrary/annotations', options)
  command.response_representation = Google::Apis::BooksV1::Annotations::Representation
  command.response_class = Google::Apis::BooksV1::Annotations
  command.query['contentVersion'] = content_version unless content_version.nil?
  command.query['layerId'] = layer_id unless layer_id.nil?
  command.query['layerIds'] = layer_ids unless layer_ids.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['showDeleted'] = show_deleted unless show_deleted.nil?
  command.query['source'] = source unless source.nil?
  command.query['updatedMax'] = updated_max unless updated_max.nil?
  command.query['updatedMin'] = updated_min unless updated_min.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Bookshelves

Retrieves a list of bookshelves belonging to the authenticated user.

Parameters:

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
# File 'generated/google/apis/books_v1/service.rb', line 1396

def list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'mylibrary/bookshelves', options)
  command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
  command.response_class = Google::Apis::BooksV1::Bookshelves
  command.query['source'] = source unless source.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

#list_my_library_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volumes

Gets volume information for volumes on a bookshelf.

Parameters:

  • shelf (String)

    The bookshelf ID or name retrieve volumes for.

  • country (String)

    ISO-3166-1 code to override the IP-based location.

  • max_results (Fixnum)

    Maximum number of results to return

  • projection (String)

    Restrict information returned to a set of selected fields.

  • q (String)

    Full-text search query string in this bookshelf.

  • show_preorders (Boolean)

    Set to true to show pre-ordered books. Defaults to false.

  • source (String)

    String to identify the originator of this request.

  • start_index (Fixnum)

    Index of the first element to return (starts at 0)

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
# File 'generated/google/apis/books_v1/service.rb', line 1530

def list_my_library_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'mylibrary/bookshelves/{shelf}/volumes', options)
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
  command.response_class = Google::Apis::BooksV1::Volumes
  command.params['shelf'] = shelf unless shelf.nil?
  command.query['country'] = country unless country.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['projection'] = projection unless projection.nil?
  command.query['q'] = q unless q.nil?
  command.query['showPreorders'] = show_preorders unless show_preorders.nil?
  command.query['source'] = source unless source.nil?
  command.query['startIndex'] = start_index unless start_index.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

#list_offline_metadata_dictionary(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Metadata

Returns a list of offline dictionary metadata available

Parameters:

  • cpksver (String)

    The device/version ID from which to request the data.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



320
321
322
323
324
325
326
327
328
329
# File 'generated/google/apis/books_v1/service.rb', line 320

def (cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'dictionary/listOfflineMetadata', options)
  command.response_representation = Google::Apis::BooksV1::Metadata::Representation
  command.response_class = Google::Apis::BooksV1::Metadata
  command.query['cpksver'] = cpksver unless cpksver.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

#list_onboarding_categories(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Category

List categories for onboarding experience.

Parameters:

  • locale (String)

    ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
# File 'generated/google/apis/books_v1/service.rb', line 1706

def list_onboarding_categories(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'onboarding/listCategories', options)
  command.response_representation = Google::Apis::BooksV1::Category::Representation
  command.response_class = Google::Apis::BooksV1::Category
  command.query['locale'] = locale unless locale.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

#list_onboarding_category_volumes(category_id: nil, locale: nil, max_allowed_maturity_rating: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volume2

List available volumes under categories for onboarding experience.

Parameters:

  • category_id (Array<String>, String)

    List of category ids requested.

  • locale (String)

    ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset.

  • max_allowed_maturity_rating (String)

    The maximum allowed maturity rating of returned volumes. Books with a higher maturity rating are filtered out.

  • page_size (Fixnum)

    Number of maximum results per page to be included in the response.

  • page_token (String)

    The value of the nextToken from the previous page.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
# File 'generated/google/apis/books_v1/service.rb', line 1750

def list_onboarding_category_volumes(category_id: nil, locale: nil, max_allowed_maturity_rating: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'onboarding/listCategoryVolumes', options)
  command.response_representation = Google::Apis::BooksV1::Volume2::Representation
  command.response_class = Google::Apis::BooksV1::Volume2
  command.query['categoryId'] = category_id unless category_id.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.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

Return a list of recommended books for the current user.

Parameters:

  • locale (String)

    ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.

  • max_allowed_maturity_rating (String)

    The maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
# File 'generated/google/apis/books_v1/service.rb', line 2299

def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/recommended', options)
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
  command.response_class = Google::Apis::BooksV1::Volumes
  command.query['locale'] = locale unless locale.nil?
  command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
  command.query['source'] = source unless source.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

#list_user_uploaded_volumes(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volumes

Return a list of books uploaded by the current user.

Parameters:

  • locale (String)

    ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.

  • max_results (Fixnum)

    Maximum number of results to return.

  • processing_state (Array<String>, String)

    The processing state of the user uploaded volumes to be returned.

  • source (String)

    String to identify the originator of this request.

  • start_index (Fixnum)

    Index of the first result to return (starts at 0)

  • volume_id (Array<String>, String)

    The ids of the volumes to be returned. If not specified all that match the processingState are returned.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
# File 'generated/google/apis/books_v1/service.rb', line 2393

def list_user_uploaded_volumes(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes/useruploaded', options)
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
  command.response_class = Google::Apis::BooksV1::Volumes
  command.query['locale'] = locale unless locale.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['processingState'] = processing_state unless processing_state.nil?
  command.query['source'] = source unless source.nil?
  command.query['startIndex'] = start_index unless start_index.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#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, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volumes

Performs a book search.

Parameters:

  • q (String)

    Full-text search query string.

  • download (String)

    Restrict to volumes by download availability.

  • filter (String)

    Filter search results.

  • lang_restrict (String)

    Restrict results to books with this language code.

  • library_restrict (String)

    Restrict search to this user's library.

  • max_allowed_maturity_rating (String)

    The maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out.

  • max_results (Fixnum)

    Maximum number of results to return.

  • order_by (String)

    Sort search results.

  • partner (String)

    Restrict and brand results for partner ID.

  • print_type (String)

    Restrict to books or magazines.

  • projection (String)

    Restrict information returned to a set of selected fields.

  • show_preorders (Boolean)

    Set to true to show books available for preorder. Defaults to false.

  • source (String)

    String to identify the originator of this request.

  • start_index (Fixnum)

    Index of the first result to return (starts at 0)

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
# File 'generated/google/apis/books_v1/service.rb', line 2141

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, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'volumes', options)
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
  command.response_class = Google::Apis::BooksV1::Volumes
  command.query['download'] = download unless download.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['langRestrict'] = lang_restrict unless lang_restrict.nil?
  command.query['libraryRestrict'] = library_restrict unless library_restrict.nil?
  command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['partner'] = partner unless partner.nil?
  command.query['printType'] = print_type unless print_type.nil?
  command.query['projection'] = projection unless projection.nil?
  command.query['q'] = q unless q.nil?
  command.query['showPreorders'] = show_preorders unless show_preorders.nil?
  command.query['source'] = source unless source.nil?
  command.query['startIndex'] = start_index unless start_index.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

#move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Moves a volume within a bookshelf.

Parameters:

  • shelf (String)

    ID of bookshelf with the volume.

  • volume_id (String)

    ID of volume to move.

  • volume_position (Fixnum)

    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.)

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
# File 'generated/google/apis/books_v1/service.rb', line 1438

def move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/moveVolume', options)
  command.params['shelf'] = shelf unless shelf.nil?
  command.query['source'] = source unless source.nil?
  command.query['volumeId'] = volume_id unless volume_id.nil?
  command.query['volumePosition'] = volume_position unless volume_position.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

Rate a recommended book for the current user.

Parameters:

  • rating (String)

    Rating to be given to the volume.

  • volume_id (String)

    ID of the source volume.

  • locale (String)

    ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
# File 'generated/google/apis/books_v1/service.rb', line 2343

def rate_recommended_volume(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'volumes/recommended/rate', options)
  command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation
  command.response_class = Google::Apis::BooksV1::RateRecommendedVolumeResponse
  command.query['locale'] = locale unless locale.nil?
  command.query['rating'] = rating unless rating.nil?
  command.query['source'] = source unless source.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#release_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::DownloadAccesses

Release downloaded content access restriction.

Parameters:

  • volume_ids (Array<String>, String)

    The volume(s) to release restrictions for.

  • cpksver (String)

    The device/version ID from which to release the restriction.

  • locale (String)

    ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



870
871
872
873
874
875
876
877
878
879
880
881
882
# File 'generated/google/apis/books_v1/service.rb', line 870

def release_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'myconfig/releaseDownloadAccess', options)
  command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation
  command.response_class = Google::Apis::BooksV1::DownloadAccesses
  command.query['cpksver'] = cpksver unless cpksver.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['source'] = source unless source.nil?
  command.query['volumeIds'] = volume_ids unless volume_ids.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

#remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Removes a volume from a bookshelf.

Parameters:

  • shelf (String)

    ID of bookshelf from which to remove a volume.

  • volume_id (String)

    ID of volume to remove.

  • reason (String)

    The reason for which the book is removed from the library.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
# File 'generated/google/apis/books_v1/service.rb', line 1480

def remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/removeVolume', options)
  command.params['shelf'] = shelf unless shelf.nil?
  command.query['reason'] = reason unless reason.nil?
  command.query['source'] = source unless source.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#request_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::RequestAccess

Request concurrent and download access restrictions.

Parameters:

  • source (String)

    String to identify the originator of this request.

  • volume_id (String)

    The volume to request concurrent/download restrictions for.

  • nonce (String)

    The client nonce value.

  • cpksver (String)

    The device/version ID from which to request the restrictions.

  • license_types (String)

    The type of access license to request. If not specified, the default is BOTH.

  • locale (String)

    ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
# File 'generated/google/apis/books_v1/service.rb', line 918

def request_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'myconfig/requestAccess', options)
  command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation
  command.response_class = Google::Apis::BooksV1::RequestAccess
  command.query['cpksver'] = cpksver unless cpksver.nil?
  command.query['licenseTypes'] = license_types unless license_types.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['nonce'] = nonce unless nonce.nil?
  command.query['source'] = source unless source.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#set_my_library_reading_position(volume_id, timestamp, position, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Sets my reading position information for a volume.

Parameters:

  • volume_id (String)

    ID of volume for which to update the reading position.

  • timestamp (String)

    RFC 3339 UTC format timestamp associated with this reading position.

  • position (String)

    Position string for the new volume reading position.

  • action (String)

    Action that caused this reading position to be set.

  • content_version (String)

    Volume content version for which this reading position applies.

  • device_cookie (String)

    Random persistent device cookie optional on set position.

  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
# File 'generated/google/apis/books_v1/service.rb', line 1625

def set_my_library_reading_position(volume_id, timestamp, position, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'mylibrary/readingpositions/{volumeId}/setPosition', options)
  command.params['volumeId'] = volume_id unless volume_id.nil?
  command.query['action'] = action unless action.nil?
  command.query['contentVersion'] = content_version unless content_version.nil?
  command.query['deviceCookie'] = device_cookie unless device_cookie.nil?
  command.query['position'] = position unless position.nil?
  command.query['source'] = source unless source.nil?
  command.query['timestamp'] = timestamp unless timestamp.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

#share_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Initiates sharing of the content with the user's family. Empty response indicates success.

Parameters:

  • doc_id (String)

    The docid to share.

  • source (String)

    String to identify the originator of this request.

  • volume_id (String)

    The volume to share.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



395
396
397
398
399
400
401
402
403
404
# File 'generated/google/apis/books_v1/service.rb', line 395

def share_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'familysharing/share', options)
  command.query['docId'] = doc_id unless doc_id.nil?
  command.query['source'] = source unless source.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::AnnotationsSummary

Gets the summary of specified layers.

Parameters:

  • layer_ids (Array<String>, String)

    Array of layer IDs to get the summary for.

  • volume_id (String)

    Volume id to get the summary for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
# File 'generated/google/apis/books_v1/service.rb', line 1202

def summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'mylibrary/annotations/summary', options)
  command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation
  command.response_class = Google::Apis::BooksV1::AnnotationsSummary
  command.query['layerIds'] = layer_ids unless layer_ids.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#sync_volume_licenses(source, nonce, cpksver, features: nil, include_non_comics_series: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Volumes

Request downloaded content access for specified volumes on the My eBooks shelf.

Parameters:

  • source (String)

    String to identify the originator of this request.

  • nonce (String)

    The client nonce value.

  • cpksver (String)

    The device/version ID from which to release the restriction.

  • features (Array<String>, String)

    List of features supported by the client, i.e., 'RENTALS'

  • include_non_comics_series (Boolean)

    Set to true to include non-comics series. Defaults to false.

  • locale (String)

    ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.

  • show_preorders (Boolean)

    Set to true to show pre-ordered books. Defaults to false.

  • volume_ids (Array<String>, String)

    The volume(s) to request download restrictions for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
# File 'generated/google/apis/books_v1/service.rb', line 972

def sync_volume_licenses(source, nonce, cpksver, features: nil, include_non_comics_series: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'myconfig/syncVolumeLicenses', options)
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
  command.response_class = Google::Apis::BooksV1::Volumes
  command.query['cpksver'] = cpksver unless cpksver.nil?
  command.query['features'] = features unless features.nil?
  command.query['includeNonComicsSeries'] = include_non_comics_series unless include_non_comics_series.nil?
  command.query['locale'] = locale unless locale.nil?
  command.query['nonce'] = nonce unless nonce.nil?
  command.query['showPreorders'] = show_preorders unless show_preorders.nil?
  command.query['source'] = source unless source.nil?
  command.query['volumeIds'] = volume_ids unless volume_ids.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

#unshare_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Initiates revoking content that has already been shared with the user's family. Empty response indicates success.

Parameters:

  • doc_id (String)

    The docid to unshare.

  • source (String)

    String to identify the originator of this request.

  • volume_id (String)

    The volume to unshare.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



435
436
437
438
439
440
441
442
443
444
# File 'generated/google/apis/books_v1/service.rb', line 435

def unshare_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'familysharing/unshare', options)
  command.query['docId'] = doc_id unless doc_id.nil?
  command.query['source'] = source unless source.nil?
  command.query['volumeId'] = volume_id unless volume_id.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

#update_book(loading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::LoadingResource

Parameters:

  • loading_resource_object (Google::Apis::BooksV1::LoadingResource) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



284
285
286
287
288
289
290
291
292
293
294
# File 'generated/google/apis/books_v1/service.rb', line 284

def update_book(loading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'cloudloading/updateBook', options)
  command.request_representation = Google::Apis::BooksV1::LoadingResource::Representation
  command.request_object = loading_resource_object
  command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
  command.response_class = Google::Apis::BooksV1::LoadingResource
  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

#update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::Annotation

Updates an existing annotation.

Parameters:

  • annotation_id (String)

    The ID for the annotation to update.

  • annotation_object (Google::Apis::BooksV1::Annotation) (defaults to: nil)
  • source (String)

    String to identify the originator of this request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
# File 'generated/google/apis/books_v1/service.rb', line 1241

def update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'mylibrary/annotations/{annotationId}', options)
  command.request_representation = Google::Apis::BooksV1::Annotation::Representation
  command.request_object = annotation_object
  command.response_representation = Google::Apis::BooksV1::Annotation::Representation
  command.response_class = Google::Apis::BooksV1::Annotation
  command.params['annotationId'] = annotation_id unless annotation_id.nil?
  command.query['source'] = source unless source.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

#update_user_settings(user_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BooksV1::UserSettings

Sets the settings for the user. If a sub-object is specified, it will overwrite the existing sub-object stored in the server. Unspecified sub- objects will retain the existing value.

Parameters:

  • user_settings_object (Google::Apis::BooksV1::UserSettings) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
# File 'generated/google/apis/books_v1/service.rb', line 1015

def ( = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'myconfig/updateUserSettings', options)
  command.request_representation = Google::Apis::BooksV1::UserSettings::Representation
  command.request_object = 
  command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
  command.response_class = Google::Apis::BooksV1::UserSettings
  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