Class: SDM::SnapshotAccountGrants
- Inherits:
-
Object
- Object
- SDM::SnapshotAccountGrants
- 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
-
#get(id, deadline: nil) ⇒ Object
Get reads one AccountGrant by ID.
-
#initialize(account_grants) ⇒ SnapshotAccountGrants
constructor
A new instance of SnapshotAccountGrants.
-
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of AccountGrants matching a given set of criteria.
Constructor Details
#initialize(account_grants) ⇒ SnapshotAccountGrants
636 637 638 |
# File 'lib/svc.rb', line 636 def initialize(account_grants) @account_grants = account_grants end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one AccountGrant by ID.
641 642 643 644 645 646 647 648 649 |
# File 'lib/svc.rb', line 641 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.
652 653 654 655 656 657 658 659 660 661 662 |
# File 'lib/svc.rb', line 652 def list( filter, *args, deadline: nil ) return @account_grants.list( filter, *args, deadline: deadline, ) end |