class Google::Apis::BooksV1::Volume::AccessInfo

Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).

Attributes

access_view_status[RW]

Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.) Corresponds to the JSON property `accessViewStatus` @return [String]

country[RW]

The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.) Corresponds to the JSON property `country` @return [String]

download_access[RW]

Information about a volume's download license access restrictions. Corresponds to the JSON property `downloadAccess` @return [Google::Apis::BooksV1::DownloadAccessRestriction]

embeddable[RW]

Whether this volume can be embedded in a viewport using the Embedded Viewer API. Corresponds to the JSON property `embeddable` @return [Boolean]

embeddable?[RW]

Whether this volume can be embedded in a viewport using the Embedded Viewer API. Corresponds to the JSON property `embeddable` @return [Boolean]

epub[RW]

Information about epub content. (In LITE projection.) Corresponds to the JSON property `epub` @return [Google::Apis::BooksV1::Volume::AccessInfo::Epub]

explicit_offline_license_management[RW]

Whether this volume requires that the client explicitly request offline download license rather than have it done automatically when loading the content, if the client supports it. Corresponds to the JSON property `explicitOfflineLicenseManagement` @return [Boolean]

explicit_offline_license_management?[RW]

Whether this volume requires that the client explicitly request offline download license rather than have it done automatically when loading the content, if the client supports it. Corresponds to the JSON property `explicitOfflineLicenseManagement` @return [Boolean]

pdf[RW]

Information about pdf content. (In LITE projection.) Corresponds to the JSON property `pdf` @return [Google::Apis::BooksV1::Volume::AccessInfo::Pdf]

public_domain[RW]

Whether or not this book is public domain in the country listed above. Corresponds to the JSON property `publicDomain` @return [Boolean]

public_domain?[RW]

Whether or not this book is public domain in the country listed above. Corresponds to the JSON property `publicDomain` @return [Boolean]

quote_sharing_allowed[RW]

Whether quote sharing is allowed for this volume. Corresponds to the JSON property `quoteSharingAllowed` @return [Boolean]

quote_sharing_allowed?[RW]

Whether quote sharing is allowed for this volume. Corresponds to the JSON property `quoteSharingAllowed` @return [Boolean]

text_to_speech_permission[RW]

Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED. Corresponds to the JSON property `textToSpeechPermission` @return [String]

view_order_url[RW]

For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page. Corresponds to the JSON property `viewOrderUrl` @return [String]

viewability[RW]

The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES. Corresponds to the JSON property `viewability` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/books_v1/classes.rb, line 3174
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/books_v1/classes.rb, line 3179
def update!(**args)
  @access_view_status = args[:access_view_status] if args.key?(:access_view_status)
  @country = args[:country] if args.key?(:country)
  @download_access = args[:download_access] if args.key?(:download_access)
  @drive_imported_content_link = args[:drive_imported_content_link] if args.key?(:drive_imported_content_link)
  @embeddable = args[:embeddable] if args.key?(:embeddable)
  @epub = args[:epub] if args.key?(:epub)
  @explicit_offline_license_management = args[:explicit_offline_license_management] if args.key?(:explicit_offline_license_management)
  @pdf = args[:pdf] if args.key?(:pdf)
  @public_domain = args[:public_domain] if args.key?(:public_domain)
  @quote_sharing_allowed = args[:quote_sharing_allowed] if args.key?(:quote_sharing_allowed)
  @text_to_speech_permission = args[:text_to_speech_permission] if args.key?(:text_to_speech_permission)
  @view_order_url = args[:view_order_url] if args.key?(:view_order_url)
  @viewability = args[:viewability] if args.key?(:viewability)
  @web_reader_link = args[:web_reader_link] if args.key?(:web_reader_link)
end