Class: SDM::SnapshotRoles

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(roles) ⇒ SnapshotRoles

Returns a new instance of SnapshotRoles.



3587
3588
3589
# File 'lib/svc.rb', line 3587

def initialize(roles)
  @roles = roles
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Role by ID.



3592
3593
3594
3595
3596
3597
3598
3599
3600
# File 'lib/svc.rb', line 3592

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.



3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
# File 'lib/svc.rb', line 3603

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