Sha256: 6220da80b96e06aa178d50aef67273233e7cf98562b0cb5aa5e157132231dc02

Contents?: true

Size: 1015 Bytes

Versions: 1

Compression:

Stored size: 1015 Bytes

Contents

module ApiStub
  module Requests
    module Network
      # Mock class for Express Route Service Provider Requests
      class ExpressRouteServiceProvider
        def self.list_express_route_service_providers_response(network_client)
          service_provider = '{
            "value": [
              {
                "name": "<providername>",
                "peeringLocations": [
                  "location1",
                  "location2"
                ],
                "bandwidthsOffered": [
                  {
                    "offerName": "100Mbps",
                    "valueInMbps": 100
                  }
                ]
              }
            ]
          }'
          express_route_servcie_provider_mapper = Azure::ARM::Network::Models::ExpressRouteServiceProviderListResult.mapper
          network_client.deserialize(express_route_servcie_provider_mapper, Fog::JSON.decode(service_provider), 'result.body').value
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.1 test/api_stub/requests/network/express_route_service_provider.rb