Class: Azure::Compute::Mgmt::V2019_07_01::Models::Encryption

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-07-01/generated/azure_mgmt_compute/models/encryption.rb

Overview

Encryption at rest settings for disk or snapshot

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#disk_encryption_set_idString

enabling encryption at rest.

Returns:

  • (String)

    ResourceId of the disk encryption set to use for



17
18
19
# File 'lib/2019-07-01/generated/azure_mgmt_compute/models/encryption.rb', line 17

def disk_encryption_set_id
  @disk_encryption_set_id
end

#typeEncryptionType

the disk. Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey'

Returns:



22
23
24
# File 'lib/2019-07-01/generated/azure_mgmt_compute/models/encryption.rb', line 22

def type
  @type
end

Class Method Details

.mapperObject

Mapper for Encryption class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/2019-07-01/generated/azure_mgmt_compute/models/encryption.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Encryption',
    type: {
      name: 'Composite',
      class_name: 'Encryption',
      model_properties: {
        disk_encryption_set_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diskEncryptionSetId',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end