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.



2772
2773
2774
# File 'lib/svc.rb', line 2772

def initialize(groups)
  @groups = groups
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Group by ID.



2777
2778
2779
2780
2781
2782
2783
2784
2785
# File 'lib/svc.rb', line 2777

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.



2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
# File 'lib/svc.rb', line 2788

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