class Google::Apis::BooksV1::DownloadAccessRestriction

Attributes

device_allowed[RW]

If restricted, whether access is granted for this (user, device, volume). Corresponds to the JSON property `deviceAllowed` @return [Boolean]

device_allowed?[RW]

If restricted, whether access is granted for this (user, device, volume). Corresponds to the JSON property `deviceAllowed` @return [Boolean]

downloads_acquired[RW]

If restricted, the number of content download licenses already acquired ( including the requesting client, if licensed). Corresponds to the JSON property `downloadsAcquired` @return [Fixnum]

just_acquired[RW]

If deviceAllowed, whether access was just acquired with this request. Corresponds to the JSON property `justAcquired` @return [Boolean]

just_acquired?[RW]

If deviceAllowed, whether access was just acquired with this request. Corresponds to the JSON property `justAcquired` @return [Boolean]

kind[RW]

Resource type. Corresponds to the JSON property `kind` @return [String]

max_download_devices[RW]

If restricted, the maximum number of content download licenses for this volume. Corresponds to the JSON property `maxDownloadDevices` @return [Fixnum]

message[RW]

Error/warning message. Corresponds to the JSON property `message` @return [String]

nonce[RW]

Client nonce for verification. Download access and client-validation only. Corresponds to the JSON property `nonce` @return [String]

reason_code[RW]

Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS Corresponds to the JSON property `reasonCode` @return [String]

restricted[RW]

Whether this volume has any download access restrictions. Corresponds to the JSON property `restricted` @return [Boolean]

restricted?[RW]

Whether this volume has any download access restrictions. Corresponds to the JSON property `restricted` @return [Boolean]

signature[RW]

Response signature. Corresponds to the JSON property `signature` @return [String]

source[RW]

Client app identifier for verification. Download access and client-validation only. Corresponds to the JSON property `source` @return [String]

volume_id[RW]

Identifies the volume for which this entry applies. Corresponds to the JSON property `volumeId` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/books_v1/classes.rb, line 1512
def update!(**args)
  @device_allowed = args[:device_allowed] if args.key?(:device_allowed)
  @downloads_acquired = args[:downloads_acquired] if args.key?(:downloads_acquired)
  @just_acquired = args[:just_acquired] if args.key?(:just_acquired)
  @kind = args[:kind] if args.key?(:kind)
  @max_download_devices = args[:max_download_devices] if args.key?(:max_download_devices)
  @message = args[:message] if args.key?(:message)
  @nonce = args[:nonce] if args.key?(:nonce)
  @reason_code = args[:reason_code] if args.key?(:reason_code)
  @restricted = args[:restricted] if args.key?(:restricted)
  @signature = args[:signature] if args.key?(:signature)
  @source = args[:source] if args.key?(:source)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
end