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.



1556
1557
1558
# File 'lib/svc.rb', line 1556

def initialize(nodes)
  @nodes = nodes
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Node by ID.



1561
1562
1563
1564
1565
1566
1567
1568
1569
# File 'lib/svc.rb', line 1561

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.



1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
# File 'lib/svc.rb', line 1572

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