Sha256: fe16cebb38d8d14980d5f220e965efcbf246efc8b2059039efa2d9db6c723fb9

Contents?: true

Size: 858 Bytes

Versions: 53

Compression:

Stored size: 858 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # Real class for Network Request
      class Real
        def delete_load_balancer(resource_group, name)
          msg = "Deleting Load_Balancer #{name} from Resource Group #{resource_group}"
          Fog::Logger.debug msg
          begin
            @network_client.load_balancers.delete(resource_group, name)
          rescue  MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Load_Balancer #{name} Deleted Successfully."
          true
        end
      end

      # Mock class for Network Request
      class Mock
        def delete_load_balancer(_resource_group, _name)
          Fog::Logger.debug "Load_Balancer #{name} Deleted Successfully."
          true
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 4 rubygems

Version Path
fog-azure-rm-0.2.5 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.2.4 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.2.3 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.2.2 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.2.1 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.2.0 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.1.2 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.1.1 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.1.0 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.0.9 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.0.8 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.0.5 lib/fog/azurerm/requests/network/delete_load_balancer.rb