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.6.0 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/network/delete_load_balancer.rb
far-gem-0.5.6 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/network/delete_load_balancer.rb
far-gem-0.5.5 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/network/delete_load_balancer.rb
far-gem-0.5.4 lib/fog/azurerm/requests/network/delete_load_balancer.rb
far-gem-0.5.3 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/network/delete_load_balancer.rb
far-gem-0.5.2 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/network/delete_load_balancer.rb
far-gem-0.5.1 lib/fog/azurerm/requests/network/delete_load_balancer.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/network/delete_load_balancer.rb