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.



605
606
607
# File 'lib/svc.rb', line 605

def initialize()
  @account_grants = 
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one AccountGrant by ID.



610
611
612
613
614
615
616
617
618
# File 'lib/svc.rb', line 610

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.



621
622
623
624
625
626
627
628
629
630
631
# File 'lib/svc.rb', line 621

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