Class: Google::Apis::BooksV1::RequestAccessData
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::RequestAccessData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/books_v1/classes.rb,
lib/google/apis/books_v1/representations.rb,
lib/google/apis/books_v1/representations.rb
Instance Attribute Summary collapse
-
#concurrent_access ⇒ Google::Apis::BooksV1::ConcurrentAccessRestriction
A concurrent access response.
-
#download_access ⇒ Google::Apis::BooksV1::DownloadAccessRestriction
A download access response.
-
#kind ⇒ String
Resource type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RequestAccessData
constructor
A new instance of RequestAccessData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RequestAccessData
Returns a new instance of RequestAccessData.
2419 2420 2421 |
# File 'lib/google/apis/books_v1/classes.rb', line 2419 def initialize(**args) update!(**args) end |
Instance Attribute Details
#concurrent_access ⇒ Google::Apis::BooksV1::ConcurrentAccessRestriction
A concurrent access response.
Corresponds to the JSON property concurrentAccess
2407 2408 2409 |
# File 'lib/google/apis/books_v1/classes.rb', line 2407 def concurrent_access @concurrent_access end |
#download_access ⇒ Google::Apis::BooksV1::DownloadAccessRestriction
A download access response.
Corresponds to the JSON property downloadAccess
2412 2413 2414 |
# File 'lib/google/apis/books_v1/classes.rb', line 2412 def download_access @download_access end |
#kind ⇒ String
Resource type.
Corresponds to the JSON property kind
2417 2418 2419 |
# File 'lib/google/apis/books_v1/classes.rb', line 2417 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2424 2425 2426 2427 2428 |
# File 'lib/google/apis/books_v1/classes.rb', line 2424 def update!(**args) @concurrent_access = args[:concurrent_access] if args.key?(:concurrent_access) @download_access = args[:download_access] if args.key?(:download_access) @kind = args[:kind] if args.key?(:kind) end |