Class: SDM::SnapshotAccountsGroups

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

Overview

SnapshotAccountsGroups exposes the read only methods of the AccountsGroups service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(accounts_groups) ⇒ SnapshotAccountsGroups

Returns a new instance of SnapshotAccountsGroups.



1341
1342
1343
# File 'lib/svc.rb', line 1341

def initialize(accounts_groups)
  @accounts_groups = accounts_groups
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one AccountGroup by ID.



1346
1347
1348
1349
1350
1351
1352
1353
1354
# File 'lib/svc.rb', line 1346

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

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

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



1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
# File 'lib/svc.rb', line 1357

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