Sha256: 6a689565e86f546792cc0de132ff26ed1c57ffd17a972812ce78424f6bb4f85c

Contents?: true

Size: 1001 Bytes

Versions: 38

Compression:

Stored size: 1001 Bytes

Contents

module Fog
  module Compute
    class AzureRM
      # EncryptionSettings model for Compute Service
      class EncryptionSettings < Fog::Model
        attribute :key_url
        attribute :secret_url
        attribute :enabled
        attribute :key_source_vault_id
        attribute :disk_source_vault_id

        def self.parse(encryption_settings)
          settings = {}
          settings['enabled'] = encryption_settings.enabled

          if encryption_settings.disk_encryption_key
            settings['secret_url'] = encryption_settings.disk_encryption_key.secret_url
            settings['disk_source_vault_id'] = encryption_settings.disk_encryption_key.source_vault.id
          end
          if encryption_settings.key_encryption_key
            settings['key_url'] = encryption_settings.key_encryption_key.key_url
            settings['key_source_vault_id'] = encryption_settings.key_encryption_key.source_vault.id
          end
          settings
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 4 rubygems

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