class Google::Apis::BooksV1::DownloadAccessRestriction
Attributes
If restricted, whether access is granted for this (user, device, volume). Corresponds to the JSON property `deviceAllowed` @return [Boolean]
If restricted, whether access is granted for this (user, device, volume). Corresponds to the JSON property `deviceAllowed` @return [Boolean]
If restricted, the number of content download licenses already acquired ( including the requesting client, if licensed). Corresponds to the JSON property `downloadsAcquired` @return [Fixnum]
If deviceAllowed, whether access was just acquired with this request. Corresponds to the JSON property `justAcquired` @return [Boolean]
If deviceAllowed, whether access was just acquired with this request. Corresponds to the JSON property `justAcquired` @return [Boolean]
Resource type. Corresponds to the JSON property `kind` @return [String]
If restricted, the maximum number of content download licenses for this volume. Corresponds to the JSON property `maxDownloadDevices` @return [Fixnum]
Error/warning message. Corresponds to the JSON property `message` @return [String]
Client nonce for verification. Download access and client-validation only. Corresponds to the JSON property `nonce` @return [String]
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]
Whether this volume has any download access restrictions. Corresponds to the JSON property `restricted` @return [Boolean]
Whether this volume has any download access restrictions. Corresponds to the JSON property `restricted` @return [Boolean]
Response signature. Corresponds to the JSON property `signature` @return [String]
Client app identifier for verification. Download access and client-validation only. Corresponds to the JSON property `source` @return [String]
Identifies the volume for which this entry applies. Corresponds to the JSON property `volumeId` @return [String]
Public Class Methods
# File lib/google/apis/books_v1/classes.rb, line 1509 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/books_v1/classes.rb, line 1514 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