Sha256: 9ff704deb01a9511ba3c07fa8b2d9ea9f84a732d8b0549a23bf7aac4505a0c70

Contents?: true

Size: 1.12 KB

Versions: 47

Compression:

Stored size: 1.12 KB

Contents

module Fog
  module Network
    class AzureRM
      # ExpressRouteCircuitPeering collection class for Network Service
      class ExpressRouteCircuitPeerings < Fog::Collection
        model Fog::Network::AzureRM::ExpressRouteCircuitPeering
        attribute :resource_group
        attribute :circuit_name

        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

        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
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
far-gem-0.5.6 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
far-gem-0.5.5 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
far-gem-0.5.4 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
far-gem-0.5.3 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
far-gem-0.5.2 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
far-gem-0.5.1 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/models/network/express_route_circuit_peerings.rb