Class: Google::Apis::BooksV1::RequestAccess

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RequestAccess

Returns a new instance of RequestAccess.



2357
2358
2359
# File 'generated/google/apis/books_v1/classes.rb', line 2357

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

Instance Attribute Details

#concurrent_accessGoogle::Apis::BooksV1::ConcurrentAccessRestriction

A concurrent access response. Corresponds to the JSON property concurrentAccess



2345
2346
2347
# File 'generated/google/apis/books_v1/classes.rb', line 2345

def concurrent_access
  @concurrent_access
end

#download_accessGoogle::Apis::BooksV1::DownloadAccessRestriction

A download access response. Corresponds to the JSON property downloadAccess



2350
2351
2352
# File 'generated/google/apis/books_v1/classes.rb', line 2350

def download_access
  @download_access
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


2355
2356
2357
# File 'generated/google/apis/books_v1/classes.rb', line 2355

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2362
2363
2364
2365
2366
# File 'generated/google/apis/books_v1/classes.rb', line 2362

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