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.



4728
4729
4730
# File 'lib/svc.rb', line 4728

def initialize(resources)
  @resources = resources
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Resource by ID.



4733
4734
4735
4736
4737
4738
4739
4740
4741
# File 'lib/svc.rb', line 4733

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.



4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
# File 'lib/svc.rb', line 4744

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