Sha256: 15e4a5155559fb0029c6e2bb9567eb70b0dccee417818e73d18b2cf473080ac3

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

module Fog
  module TrafficManager
    class AzureRM
      # Real class for TrafficManager Request
      class Real
        def delete_traffic_manager_endpoint(resource_group, name, traffic_manager_profile_name, type)
          msg = "Deleting Traffic Manager Endpoint: #{name}."
          Fog::Logger.debug msg
          begin
            @traffic_mgmt_client.endpoints.delete(resource_group, traffic_manager_profile_name, type, name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Traffic Manager Endpoint: #{name} deleted successfully."
          true
        end
      end

      # Mock class for TrafficManager Request
      class Mock
        def delete_traffic_manager_endpoint(resource_group, name, _traffic_manager_profile_name, _type)
          Fog::Logger.debug "Traffic Manager End Point #{name} from Resource group #{resource_group} deleted successfully."
          true
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.1 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb
fog-azure-rm-0.1.0 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb
fog-azure-rm-0.0.9 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb
fog-azure-rm-0.0.8 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb
fog-azure-rm-0.0.5 lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb