class Google::Apis::BooksV1::ConcurrentAccessRestriction

Attributes

device_allowed[RW]

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

device_allowed?[RW]

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

kind[RW]

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

max_concurrent_devices[RW]

The maximum number of concurrent access licenses for this volume. Corresponds to the JSON property `maxConcurrentDevices` @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. Corresponds to the JSON property `reasonCode` @return [String]

restricted[RW]

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

restricted?[RW]

Whether this volume has any concurrent 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]

time_window_seconds[RW]

Time in seconds for license auto-expiration. Corresponds to the JSON property `timeWindowSeconds` @return [Fixnum]

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 786
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 791
def update!(**args)
  @device_allowed = args[:device_allowed] if args.key?(:device_allowed)
  @kind = args[:kind] if args.key?(:kind)
  @max_concurrent_devices = args[:max_concurrent_devices] if args.key?(:max_concurrent_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)
  @time_window_seconds = args[:time_window_seconds] if args.key?(:time_window_seconds)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
end