Class: Fog::Network::AzureRM::ExpressRouteCircuitPeerings

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/azurerm/models/network/express_route_circuit_peerings.rb

Overview

ExpressRouteCircuitPeering collection class for Network Service

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
13
14
15
16
17
# File 'lib/fog/azurerm/models/network/express_route_circuit_peerings.rb', line 10

def all
  requires :resource_group, :circuit_name
  circuit_peerings = []
  service.list_express_route_circuit_peerings(resource_group, circuit_name).each do |circuit_peering|
    circuit_peerings << Fog::Network::AzureRM::ExpressRouteCircuitPeering.parse(circuit_peering)
  end
  load(circuit_peerings)
end

#get(resource_group_name, peering_name, circuit_name) ⇒ Object



19
20
21
22
23
# File 'lib/fog/azurerm/models/network/express_route_circuit_peerings.rb', line 19

def get(resource_group_name, peering_name, circuit_name)
  circuit_peering = service.get_express_route_circuit_peering(resource_group_name, peering_name, circuit_name)
  express_route_circuit_peering = Fog::Network::AzureRM::ExpressRouteCircuitPeering.new(service: service)
  express_route_circuit_peering.merge_attributes(Fog::Network::AzureRM::ExpressRouteCircuitPeering.parse(circuit_peering))
end