Class: Google::Apis::BooksV1::ConcurrentAccessRestriction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/books_v1/classes.rb,
generated/google/apis/books_v1/representations.rb,
generated/google/apis/books_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConcurrentAccessRestriction

Returns a new instance of ConcurrentAccessRestriction.



718
719
720
# File 'generated/google/apis/books_v1/classes.rb', line 718

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#device_allowedBoolean Also known as: device_allowed?

Whether access is granted for this (user, device, volume). Corresponds to the JSON property deviceAllowed

Returns:

  • (Boolean)


663
664
665
# File 'generated/google/apis/books_v1/classes.rb', line 663

def device_allowed
  @device_allowed
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


669
670
671
# File 'generated/google/apis/books_v1/classes.rb', line 669

def kind
  @kind
end

#max_concurrent_devicesFixnum

The maximum number of concurrent access licenses for this volume. Corresponds to the JSON property maxConcurrentDevices

Returns:

  • (Fixnum)


674
675
676
# File 'generated/google/apis/books_v1/classes.rb', line 674

def max_concurrent_devices
  @max_concurrent_devices
end

#messageString

Error/warning message. Corresponds to the JSON property message

Returns:

  • (String)


679
680
681
# File 'generated/google/apis/books_v1/classes.rb', line 679

def message
  @message
end

#nonceString

Client nonce for verification. Download access and client-validation only. Corresponds to the JSON property nonce

Returns:

  • (String)


684
685
686
# File 'generated/google/apis/books_v1/classes.rb', line 684

def nonce
  @nonce
end

#reason_codeString

Error/warning reason code. Corresponds to the JSON property reasonCode

Returns:

  • (String)


689
690
691
# File 'generated/google/apis/books_v1/classes.rb', line 689

def reason_code
  @reason_code
end

#restrictedBoolean Also known as: restricted?

Whether this volume has any concurrent access restrictions. Corresponds to the JSON property restricted

Returns:

  • (Boolean)


694
695
696
# File 'generated/google/apis/books_v1/classes.rb', line 694

def restricted
  @restricted
end

#signatureString

Response signature. Corresponds to the JSON property signature

Returns:

  • (String)


700
701
702
# File 'generated/google/apis/books_v1/classes.rb', line 700

def signature
  @signature
end

#sourceString

Client app identifier for verification. Download access and client-validation only. Corresponds to the JSON property source

Returns:

  • (String)


706
707
708
# File 'generated/google/apis/books_v1/classes.rb', line 706

def source
  @source
end

#time_window_secondsFixnum

Time in seconds for license auto-expiration. Corresponds to the JSON property timeWindowSeconds

Returns:

  • (Fixnum)


711
712
713
# File 'generated/google/apis/books_v1/classes.rb', line 711

def time_window_seconds
  @time_window_seconds
end

#volume_idString

Identifies the volume for which this entry applies. Corresponds to the JSON property volumeId

Returns:

  • (String)


716
717
718
# File 'generated/google/apis/books_v1/classes.rb', line 716

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



723
724
725
726
727
728
729
730
731
732
733
734
735
# File 'generated/google/apis/books_v1/classes.rb', line 723

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