Sha256: d678527aac8b76ee265b8649fd0be44d0680d51c8fc60ab85b645f368a7b6ff8

Contents?: true

Size: 976 Bytes

Versions: 47

Compression:

Stored size: 976 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # Real class for Network Request
      class Real
        def delete_subnet(resource_group, name, virtual_network_name)
          msg = "Deleting Subnet: #{name}"
          Fog::Logger.debug msg
          begin
            @network_client.subnets.delete(resource_group, virtual_network_name, name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Subnet #{name} of Virtual Network #{virtual_network_name} from Resource group #{resource_group} deleted successfully."
          true
        end
      end

      # Mock class for Network Request
      class Mock
        def delete_subnet(resource_group, name, virtual_network_name)
          Fog::Logger.debug "Subnet #{name} of Virtual Network #{virtual_network_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/network/delete_subnet.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/network/delete_subnet.rb
far-gem-0.5.6 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/network/delete_subnet.rb
far-gem-0.5.5 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/network/delete_subnet.rb
far-gem-0.5.4 lib/fog/azurerm/requests/network/delete_subnet.rb
far-gem-0.5.3 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/network/delete_subnet.rb
far-gem-0.5.2 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/network/delete_subnet.rb
far-gem-0.5.1 lib/fog/azurerm/requests/network/delete_subnet.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/network/delete_subnet.rb