Sha256: acdf35ce977004df63472377db5df7e459cde9d0ea40da218e6bd6b62faa8841

Contents?: true

Size: 1.84 KB

Versions: 47

Compression:

Stored size: 1.84 KB

Contents

module Fog
  module Network
    class AzureRM
      # Real class for Express Route Circuit Request
      class Real
        def get_express_route_circuit(resource_group_name, circuit_name)
          msg = "Getting Express Route Circuit#{circuit_name} from Resource Group #{resource_group_name}."
          Fog::Logger.debug msg
          begin
            @network_client.express_route_circuits.get(resource_group_name, circuit_name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
        end
      end

      # Mock class for Express Route Circuit Request
      class Mock
        def get_express_route_circuit(*)
          {
            'name' => 'circuit_name',
            'id' => '/subscriptions/########-####-####-####-############/resourceGroup/resource_group_name/providers/Microsoft.Network/expressRouteCircuits/circuit_name',
            'etag' => 'W/\"00000000-0000-0000-0000-000000000000\"',
            'location' => 'eastus',
            'tags' => {
              'key1' => 'value1',
              'key2' => 'value2'
            },
            'sku' => {
              'name' => 'Standard_MeteredData',
              'tier' => 'Standard',
              'family' => 'MeteredData'
            },
            'properties' => {
              'provisioningState' => 'Succeeded',
              'circuitProvisioningState' => 'Enabled',
              'serviceProviderProvisioningState' => 'Provisioned',
              'serviceProviderProperties' => {
                'serviceProviderName' => 'Telenor',
                'peeringLocation' => 'London',
                'bandwidthInMbps' => 100
              }
            },
            'serviceKey' => '<unique service key for circuit>',
            'serviceProviderNotes' => '<notes set only by ServiceProvider>'
          }
        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/get_express_route_circuit.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
far-gem-0.5.6 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
far-gem-0.5.5 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
far-gem-0.5.4 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
far-gem-0.5.3 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
far-gem-0.5.2 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
far-gem-0.5.1 lib/fog/azurerm/requests/network/get_express_route_circuit.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/network/get_express_route_circuit.rb