Sha256: 254d982b2d8e0c68f992e8b75b369c63f5c40bbcd63e66d537855f1a0052e780

Contents?: true

Size: 823 Bytes

Versions: 46

Compression:

Stored size: 823 Bytes

Contents

module Fog
  module KeyVault
    class AzureRM
      # Real class for KeyVault Request
      class Real
        def delete_vault(resource_group, vault_name)
          msg = "Deleting Vault: #{vault_name}."
          Fog::Logger.debug msg
          begin
            @key_vault_client.vaults.delete(resource_group, vault_name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Vault: #{vault_name} deleted successfully."
          true
        end
      end

      # Mock class for KeyVault Request
      class Mock
        def delete_vault(resource_group, vault_name)
          Fog::Logger.debug "Vault #{vault_name} from Resource group #{resource_group} deleted successfully."
          true
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/key_vault/delete_vault.rb
far-gem-0.5.6 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/key_vault/delete_vault.rb
far-gem-0.5.5 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/key_vault/delete_vault.rb
far-gem-0.5.4 lib/fog/azurerm/requests/key_vault/delete_vault.rb
far-gem-0.5.3 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/key_vault/delete_vault.rb
far-gem-0.5.2 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/key_vault/delete_vault.rb
far-gem-0.5.1 lib/fog/azurerm/requests/key_vault/delete_vault.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/key_vault/delete_vault.rb