Class: SDM::SnapshotGroups

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

Overview

SnapshotGroups exposes the read only methods of the Groups service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(groups) ⇒ SnapshotGroups

Returns a new instance of SnapshotGroups.



2986
2987
2988
# File 'lib/svc.rb', line 2986

def initialize(groups)
  @groups = groups
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Group by ID.



2991
2992
2993
2994
2995
2996
2997
2998
2999
# File 'lib/svc.rb', line 2991

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

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

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



3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
# File 'lib/svc.rb', line 3002

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