Sha256: e1bdaed52132fc5cdb69ef59a9dc4220de2b51b611a1787f222df5d6798aa71c

Contents?: true

Size: 981 Bytes

Versions: 6

Compression:

Stored size: 981 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # Real class for Network Request
      class Real
        def delete_express_route_circuit(resource_group_name, circuit_name)
          msg = "Deleting Express Route Circuit #{circuit_name} from Resource Group #{resource_group_name}."
          Fog::Logger.debug msg
          begin
            @network_client.express_route_circuits.delete(resource_group_name, circuit_name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Express Route Circuit #{circuit_name} Deleted Successfully."
          true
        end
      end

      # Mock class for Network Request
      class Mock
        def delete_express_route_circuit(*)
          Fog::Logger.debug 'Express Route Circuit {circuit_name} from Resource group {resource_group_name} 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/network/delete_express_route_circuit.rb
fog-azure-rm-0.1.0 lib/fog/azurerm/requests/network/delete_express_route_circuit.rb
fog-azure-rm-0.0.9 lib/fog/azurerm/requests/network/delete_express_route_circuit.rb
fog-azure-rm-0.0.8 lib/fog/azurerm/requests/network/delete_express_route_circuit.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/requests/network/delete_express_route_circuit.rb
fog-azure-rm-0.0.5 lib/fog/azurerm/requests/network/delete_express_route_circuit.rb