Sha256: cfd8014ff93ea4e46dbb860bcce1632334bbf1f8f129ae2a002069e83dd3e8c5

Contents?: true

Size: 937 Bytes

Versions: 18

Compression:

Stored size: 937 Bytes

Contents

module Fog
  module Storage
    class AzureRM
      # This class is giving implementation of all/get for Recovery Vaults
      class RecoveryVaults < Fog::Collection
        model Fog::Storage::AzureRM::RecoveryVault
        attribute :resource_group
        attribute :name

        def all
          requires :resource_group
          recovery_vaults = []
          service.list_recovery_vaults(resource_group).each do |recovery_vault|
            recovery_vaults << Fog::Storage::AzureRM::RecoveryVault.parse(recovery_vault)
          end
          load(recovery_vaults)
        end

        def get(resource_group, name)
          recovery_vault = service.get_recovery_vault(resource_group, name)
          recovery_vault_fog = Fog::Storage::AzureRM::RecoveryVault.new(service: service)
          recovery_vault_fog.merge_attributes(Fog::Storage::AzureRM::RecoveryVault.parse(recovery_vault))
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.2.5 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.2.4 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.2.3 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.2.2 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.2.1 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.2.0 lib/fog/azurerm/models/storage/recovery_vaults.rb
fog-azure-rm-0.1.2 lib/fog/azurerm/models/storage/recovery_vaults.rb