Class: SDM::SnapshotAccountGrants

Inherits:
Object
  • Object
show all
Extended by:
Gem::Deprecate
Defined in:
lib/svc.rb

Overview

SnapshotAccountGrants exposes the read only methods of the AccountGrants service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(account_grants) ⇒ SnapshotAccountGrants

Returns a new instance of SnapshotAccountGrants.



420
421
422
# File 'lib/svc.rb', line 420

def initialize()
  @account_grants = 
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one AccountGrant by ID.



425
426
427
428
429
430
431
432
433
# File 'lib/svc.rb', line 425

def get(
  id,
  deadline: nil
)
  return @account_grants.get(
           id,
           deadline: deadline,
         )
end

#list(filter, *args, deadline: nil) ⇒ Object

List gets a list of AccountGrants matching a given set of criteria.



436
437
438
439
440
441
442
443
444
445
446
# File 'lib/svc.rb', line 436

def list(
  filter,
  *args,
  deadline: nil
)
  return @account_grants.list(
           filter,
                        *args,
                        deadline: deadline,
         )
end