Class: SDM::SnapshotResources

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

Overview

SnapshotResources exposes the read only methods of the Resources service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(resources) ⇒ SnapshotResources

Returns a new instance of SnapshotResources.



4975
4976
4977
# File 'lib/svc.rb', line 4975

def initialize(resources)
  @resources = resources
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Resource by ID.



4980
4981
4982
4983
4984
4985
4986
4987
4988
# File 'lib/svc.rb', line 4980

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

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

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



4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
# File 'lib/svc.rb', line 4991

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