Sha256: 14a6cc2e2266b7cc5036705a8b5de9a54d80ce15b4e4694d7982bee17ce18d7a
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 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, JSON.load(authorization), 'result.body') end def self.auth_hash { resource_group: 'rg-name', name: 'auth-unique-name', circuit_name: 'circuit-name', authorization_status: 'Available', authorization_name: 'authorization-name' } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.8 | test/api_stub/requests/network/express_route_circuit_authorization.rb |
fog-azure-rm-0.0.6 | test/api_stub/requests/network/express_route_circuit_authorization.rb |