Class: Fog::Network::AzureRM::ExpressRouteCircuits

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

Overview

ExpressRouteCircuit collection class for Network Service

Instance Method Summary collapse

Instance Method Details

#allObject



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

def all
  requires :resource_group
  express_route_circuits = []
  service.list_express_route_circuits(resource_group).each do |circuit|
    express_route_circuits << Fog::Network::AzureRM::ExpressRouteCircuit.parse(circuit)
  end
  load(express_route_circuits)
end

#check_express_route_circuit_exists(resource_group_name, name) ⇒ Object



24
25
26
# File 'lib/fog/azurerm/models/network/express_route_circuits.rb', line 24

def check_express_route_circuit_exists(resource_group_name, name)
  service.check_express_route_circuit_exists(resource_group_name, name)
end

#get(resource_group_name, name) ⇒ Object



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

def get(resource_group_name, name)
  circuit = service.get_express_route_circuit(resource_group_name, name)
  express_route_circuit = Fog::Network::AzureRM::ExpressRouteCircuit.new(service: service)
  express_route_circuit.merge_attributes(Fog::Network::AzureRM::ExpressRouteCircuit.parse(circuit))
end