Sha256: b4f970cd06e3be923aea877d196d543664a0f1e3dea384f8184953feb3182ffd
Contents?: true
Size: 1.17 KB
Versions: 47
Compression:
Stored size: 1.17 KB
Contents
module ApiStub module Requests module Network # Mock class for Express Route Circuit Authorization Requests 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" } }' circuit_auth_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitAuthorization.mapper network_client.deserialize(circuit_auth_mapper, Fog::JSON.decode(authorization), 'result.body') end def self.auth_hash { resource_group: 'rg-name', name: 'auth-unique-name', circuit_name: 'circuit-name', authorization_use_status: 'Available', authorization_name: 'authorization-name' } end end end end end
Version data entries
47 entries across 47 versions & 4 rubygems