Class: Google::Apis::BooksV1::ConcurrentAccessRestriction
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::ConcurrentAccessRestriction
- 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
-
#device_allowed ⇒ Boolean
(also: #device_allowed?)
Whether access is granted for this (user, device, volume).
-
#kind ⇒ String
Resource type.
-
#max_concurrent_devices ⇒ Fixnum
The maximum number of concurrent access licenses for this volume.
-
#message ⇒ String
Error/warning message.
-
#nonce ⇒ String
Client nonce for verification.
-
#reason_code ⇒ String
Error/warning reason code.
-
#restricted ⇒ Boolean
(also: #restricted?)
Whether this volume has any concurrent access restrictions.
-
#signature ⇒ String
Response signature.
-
#source ⇒ String
Client app identifier for verification.
-
#time_window_seconds ⇒ Fixnum
Time in seconds for license auto-expiration.
-
#volume_id ⇒ String
Identifies the volume for which this entry applies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConcurrentAccessRestriction
constructor
A new instance of ConcurrentAccessRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ConcurrentAccessRestriction
Returns a new instance of ConcurrentAccessRestriction
787 788 789 |
# File 'generated/google/apis/books_v1/classes.rb', line 787 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_allowed ⇒ Boolean Also known as: device_allowed?
Whether access is granted for this (user, device, volume).
Corresponds to the JSON property deviceAllowed
732 733 734 |
# File 'generated/google/apis/books_v1/classes.rb', line 732 def device_allowed @device_allowed end |
#kind ⇒ String
Resource type.
Corresponds to the JSON property kind
738 739 740 |
# File 'generated/google/apis/books_v1/classes.rb', line 738 def kind @kind end |
#max_concurrent_devices ⇒ Fixnum
The maximum number of concurrent access licenses for this volume.
Corresponds to the JSON property maxConcurrentDevices
743 744 745 |
# File 'generated/google/apis/books_v1/classes.rb', line 743 def max_concurrent_devices @max_concurrent_devices end |
#message ⇒ String
Error/warning message.
Corresponds to the JSON property message
748 749 750 |
# File 'generated/google/apis/books_v1/classes.rb', line 748 def @message end |
#nonce ⇒ String
Client nonce for verification. Download access and client-validation only.
Corresponds to the JSON property nonce
753 754 755 |
# File 'generated/google/apis/books_v1/classes.rb', line 753 def nonce @nonce end |
#reason_code ⇒ String
Error/warning reason code.
Corresponds to the JSON property reasonCode
758 759 760 |
# File 'generated/google/apis/books_v1/classes.rb', line 758 def reason_code @reason_code end |
#restricted ⇒ Boolean Also known as: restricted?
Whether this volume has any concurrent access restrictions.
Corresponds to the JSON property restricted
763 764 765 |
# File 'generated/google/apis/books_v1/classes.rb', line 763 def restricted @restricted end |
#signature ⇒ String
Response signature.
Corresponds to the JSON property signature
769 770 771 |
# File 'generated/google/apis/books_v1/classes.rb', line 769 def signature @signature end |
#source ⇒ String
Client app identifier for verification. Download access and client-validation
only.
Corresponds to the JSON property source
775 776 777 |
# File 'generated/google/apis/books_v1/classes.rb', line 775 def source @source end |
#time_window_seconds ⇒ Fixnum
Time in seconds for license auto-expiration.
Corresponds to the JSON property timeWindowSeconds
780 781 782 |
# File 'generated/google/apis/books_v1/classes.rb', line 780 def time_window_seconds @time_window_seconds end |
#volume_id ⇒ String
Identifies the volume for which this entry applies.
Corresponds to the JSON property volumeId
785 786 787 |
# File 'generated/google/apis/books_v1/classes.rb', line 785 def volume_id @volume_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
792 793 794 795 796 797 798 799 800 801 802 803 804 |
# File 'generated/google/apis/books_v1/classes.rb', line 792 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 |