Sha256: f396b0d35eaab13426c6c3128c76a01f411de5f5ad9a1d470854327581f86f66
Contents?: true
Size: 1.37 KB
Versions: 47
Compression:
Stored size: 1.37 KB
Contents
module Fog module Network class AzureRM # Real class for Express Route Circuit Authorization Request class Real def get_express_route_circuit_authorization(resource_group_name, circuit_name, authorization_name) msg = @logger_messages['network']['express_route_circuit_authentication']['message']['get'] .gsub('NAME', authorization_name).gsub('RESOURCE_GROUP', resource_group_name) Fog::Logger.debug msg begin circuit_authorization = @network_client.express_route_circuit_authorizations.get(resource_group_name, circuit_name, authorization_name) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end circuit_authorization end end # Mock class for Express Route Circuit Authorization Request class Mock def get_express_route_circuit_authorization(*) authorization = { 'name' => 'authorization-name', 'properties' => { 'authorizationKey' => 'authorization-key', 'authorizationUseStatus' => 'Available' } } authorization_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitAuthorization.mapper @network_client.deserialize(authorization_mapper, authorization, 'result.body') end end end end end
Version data entries
47 entries across 47 versions & 4 rubygems