Sha256: ef66aa33e47e862dc8ed7f60009a224ab142d14247a8173b2c3cef40012e0d6c

Contents?: true

Size: 824 Bytes

Versions: 46

Compression:

Stored size: 824 Bytes

Contents

module Fog
  module Sql
    class AzureRM
      # Real class for Sql Database Request
      class Real
        def delete_database(resource_group, server_name, name)
          msg = "Deleting SQL Database: #{name}."
          Fog::Logger.debug msg
          begin
            @sql_mgmt_client.databases.delete(resource_group, server_name, name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "SQL Database: #{name} deleted successfully."
          true
        end
      end

      # Mock class for Sql Database Request
      class Mock
        def delete_database(*)
          Fog::Logger.debug 'SQL Database {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.4.1 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/requests/sql/delete_database.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/requests/sql/delete_database.rb