Class: SDM::SnapshotRoles
- Inherits:
-
Object
- Object
- SDM::SnapshotRoles
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/svc.rb
Overview
SnapshotRoles exposes the read only methods of the Roles service for historical queries.
Instance Method Summary collapse
-
#get(id, deadline: nil) ⇒ Object
Get reads one Role by ID.
-
#initialize(roles) ⇒ SnapshotRoles
constructor
A new instance of SnapshotRoles.
-
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Roles matching a given set of criteria.
Constructor Details
#initialize(roles) ⇒ SnapshotRoles
Returns a new instance of SnapshotRoles.
5378 5379 5380 |
# File 'lib/svc.rb', line 5378 def initialize(roles) @roles = roles end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one Role by ID.
5383 5384 5385 5386 5387 5388 5389 5390 5391 |
# File 'lib/svc.rb', line 5383 def get( id, deadline: nil ) return @roles.get( id, deadline: deadline, ) end |
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Roles matching a given set of criteria.
5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 |
# File 'lib/svc.rb', line 5394 def list( filter, *args, deadline: nil ) return @roles.list( filter, *args, deadline: deadline, ) end |