Sha256: 29610c48b4c3c626a4404501d591ea80bde16bcaef9864dad93994b99a4fe1bd

Contents?: true

Size: 1.1 KB

Versions: 46

Compression:

Stored size: 1.1 KB

Contents

module Fog
  module Network
    class AzureRM
      # ExpressRouteCircuit collection class for Network Service
      class ExpressRouteCircuits < Fog::Collection
        model Fog::Network::AzureRM::ExpressRouteCircuit
        attribute :resource_group

        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

        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

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

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
fog-azure-rm-0.4.1 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/models/network/express_route_circuits.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/models/network/express_route_circuits.rb