Class: Google::Apis::BooksV1::RequestAccessData

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

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_accessGoogle::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_accessGoogle::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

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


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