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

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
far-gem-0.5.6 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
far-gem-0.5.5 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
far-gem-0.5.4 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
far-gem-0.5.3 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
far-gem-0.5.2 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
far-gem-0.5.1 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb