Sha256: 443d7a754a506227a06a532f282674b5cc15abbcc720c7fd75911039ef2ef689

Contents?: true

Size: 975 Bytes

Versions: 47

Compression:

Stored size: 975 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # Real class for Network Request
      class Real
        def list_express_route_service_providers
          msg = 'Getting list of Express Route Service Providers.'
          Fog::Logger.debug msg
          begin
            service_providers = @network_client.express_route_service_providers.list
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          service_providers
        end
      end

      # Mock class for Network Request
      class Mock
        def list_express_route_service_providers
          [
            {
              'name' => 'Telenor',
              'peeringLocations' => %w(London Karachi),
              'bandwidthsOffered' => [
                {
                  'offerName' => '100Mbps',
                  'valueInMbps' => 100
                }
              ]
            }
          ]
        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/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
far-gem-0.5.6 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
far-gem-0.5.5 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
far-gem-0.5.4 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
far-gem-0.5.3 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
far-gem-0.5.2 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
far-gem-0.5.1 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/network/list_express_route_service_providers.rb