Class: Google::Apis::BooksV1::RequestAccessData
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::RequestAccessData
- 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
-
#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.
2420 2421 2422 |
# File 'generated/google/apis/books_v1/classes.rb', line 2420 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
2408 2409 2410 |
# File 'generated/google/apis/books_v1/classes.rb', line 2408 def concurrent_access @concurrent_access end |
#download_access ⇒ Google::Apis::BooksV1::DownloadAccessRestriction
A download access response.
Corresponds to the JSON property downloadAccess
2413 2414 2415 |
# File 'generated/google/apis/books_v1/classes.rb', line 2413 def download_access @download_access end |
#kind ⇒ String
Resource type.
Corresponds to the JSON property kind
2418 2419 2420 |
# File 'generated/google/apis/books_v1/classes.rb', line 2418 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2425 2426 2427 2428 2429 |
# File 'generated/google/apis/books_v1/classes.rb', line 2425 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 |