Sha256: ee9594e6aebac20e9fb990a469e302a6a8225cefb2b3859d22a3c900b7ed5d5a
Contents?: true
Size: 816 Bytes
Versions: 47
Compression:
Stored size: 816 Bytes
Contents
module Fog module TrafficManager class AzureRM # Real class for TrafficManager Request class Real def delete_traffic_manager_profile(resource_group, name) msg = "Deleting Traffic Manager Profile: #{name}." Fog::Logger.debug msg begin @traffic_mgmt_client.profiles.delete(resource_group, name) true rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end end end # Mock class for TrafficManager Request class Mock def delete_traffic_manager_profile(resource_group, name) Fog::Logger.debug "Traffic Manager Profile #{name} from Resource group #{resource_group} deleted successfully." true end end end end end
Version data entries
47 entries across 47 versions & 4 rubygems