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.
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_allowed ⇒ Boolean Also known as: device_allowed?
Whether access is granted for this (user, device, volume).
Corresponds to the JSON property deviceAllowed
663 664 665 |
# File 'generated/google/apis/books_v1/classes.rb', line 663 def device_allowed @device_allowed end |
#kind ⇒ String
Resource type.
Corresponds to the JSON property kind
669 670 671 |
# File 'generated/google/apis/books_v1/classes.rb', line 669 def kind @kind end |
#max_concurrent_devices ⇒ Fixnum
The maximum number of concurrent access licenses for this volume.
Corresponds to the JSON property maxConcurrentDevices
674 675 676 |
# File 'generated/google/apis/books_v1/classes.rb', line 674 def max_concurrent_devices @max_concurrent_devices end |
#message ⇒ String
Error/warning message.
Corresponds to the JSON property message
679 680 681 |
# File 'generated/google/apis/books_v1/classes.rb', line 679 def @message end |
#nonce ⇒ String
Client nonce for verification. Download access and client-validation only.
Corresponds to the JSON property nonce
684 685 686 |
# File 'generated/google/apis/books_v1/classes.rb', line 684 def nonce @nonce end |
#reason_code ⇒ String
Error/warning reason code.
Corresponds to the JSON property reasonCode
689 690 691 |
# File 'generated/google/apis/books_v1/classes.rb', line 689 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
694 695 696 |
# File 'generated/google/apis/books_v1/classes.rb', line 694 def restricted @restricted end |
#signature ⇒ String
Response signature.
Corresponds to the JSON property signature
700 701 702 |
# File 'generated/google/apis/books_v1/classes.rb', line 700 def signature @signature end |
#source ⇒ String
Client app identifier for verification. Download access and client-validation
only.
Corresponds to the JSON property source
706 707 708 |
# File 'generated/google/apis/books_v1/classes.rb', line 706 def source @source end |
#time_window_seconds ⇒ Fixnum
Time in seconds for license auto-expiration.
Corresponds to the JSON property timeWindowSeconds
711 712 713 |
# File 'generated/google/apis/books_v1/classes.rb', line 711 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
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 |