Class: SDM::SnapshotNodes

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

Overview

SnapshotNodes exposes the read only methods of the Nodes service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(nodes) ⇒ SnapshotNodes

Returns a new instance of SnapshotNodes.



2834
2835
2836
# File 'lib/svc.rb', line 2834

def initialize(nodes)
  @nodes = nodes
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Node by ID.



2839
2840
2841
2842
2843
2844
2845
2846
2847
# File 'lib/svc.rb', line 2839

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

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

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



2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
# File 'lib/svc.rb', line 2850

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