Sha256: d138e1a74a2faa9af95dbdb0a421e26b4f8819a323f75772d5364f4a323145ec

Contents?: true

Size: 967 Bytes

Versions: 4

Compression:

Stored size: 967 Bytes

Contents

module ApiStub
  module Models
    module Network
      # Mock class for Express Route Circuit Authorization Model
      class ExpressRouteCircuitAuthorization
        def self.create_express_route_circuit_authorization_response(network_client)
          authorization = '{
            "name": "MicrosoftAuthorization",
            "id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}",
            "properties": {
              "authorizationKey": "authorization-key",
              "authorizationUseStatus": "Available"
            }
          }'

          express_route_circuit_authorization_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitAuthorization.mapper
          network_client.deserialize(express_route_circuit_authorization_mapper, JSON.load(authorization), 'result.body')
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.0 test/api_stub/models/network/express_route_circuit_authorization.rb
fog-azure-rm-0.0.9 test/api_stub/models/network/express_route_circuit_authorization.rb
fog-azure-rm-0.0.8 test/api_stub/models/network/express_route_circuit_authorization.rb
fog-azure-rm-0.0.6 test/api_stub/models/network/express_route_circuit_authorization.rb