Sha256: 0716626ae70604728c7b26dcb6681b4f29890670f30996b23d4447525c82cd9b

Contents?: true

Size: 1.15 KB

Versions: 47

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module Network
    class AzureRM
      # Express Route Service Provider model class for Network Service
      class ExpressRouteServiceProvider < Fog::Model
        identity :name
        attribute :id
        attribute :peering_locations
        attribute :bandwidths_offered

        def self.parse(service_provider)
          express_route_service_provider = {}
          express_route_service_provider['id'] = service_provider.id
          express_route_service_provider['name'] = service_provider.name

          express_route_service_provider['peering_locations'] = []
          service_provider.peering_locations.each do |peering_location|
            express_route_service_provider['peering_locations'] << peering_location
          end unless service_provider.peering_locations.nil?
          express_route_service_provider['bandwidths_offered'] = []
          service_provider.bandwidths_offered.each do |bandwidth_offered|
            express_route_service_provider['bandwidths_offered'] << bandwidth_offered
          end unless service_provider.bandwidths_offered.nil?
          express_route_service_provider
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

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