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