Sha256: 222d061624e4a867244c1afd4576480695cf3d2e59d3ace51fbfda3e51995d23

Contents?: true

Size: 914 Bytes

Versions: 47

Compression:

Stored size: 914 Bytes

Contents

module Fog
  module Compute
    class AzureRM
      # This class provides the actual implementation for service calls.
      class Real
        def delete_availability_set(resource_group, name)
          msg = "Deleting Availability Set: #{name}."
          Fog::Logger.debug msg
          begin
            @compute_mgmt_client.availability_sets.delete(resource_group, name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Availability Set #{name} deleted successfully."
          true
        end
      end
      # This class provides the mock implementation for unit tests.
      class Mock
        def delete_availability_set(resource_group, name)
          Fog::Logger.debug "Availability Set #{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.4.1 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/requests/compute/delete_availability_set.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/requests/compute/delete_availability_set.rb