Sha256: 057c04e991b2f83bf7ceb980ac60503484b7c0b773f2c0e6663ea0c700f9accb
Contents?: true
Size: 842 Bytes
Versions: 3
Compression:
Stored size: 842 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
3 entries across 3 versions & 1 rubygems