Class: SDM::SnapshotPeeringGroups

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

Overview

SnapshotPeeringGroups exposes the read only methods of the PeeringGroups service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(peering_groups) ⇒ SnapshotPeeringGroups

Returns a new instance of SnapshotPeeringGroups.



2192
2193
2194
# File 'lib/svc.rb', line 2192

def initialize(peering_groups)
  @peering_groups = peering_groups
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one PeeringGroup by ID. It will load all its dependencies.



2197
2198
2199
2200
2201
2202
2203
2204
2205
# File 'lib/svc.rb', line 2197

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

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

List gets a list of Peering Groups.



2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
# File 'lib/svc.rb', line 2208

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