Class: Azure::Compute::Mgmt::V2019_12_01::Models::EncryptionImages

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

Overview

Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#data_disk_imagesArray<DataDiskImageEncryption>

specifications for data disk images.

Returns:



21
22
23
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/encryption_images.rb', line 21

def data_disk_images
  @data_disk_images
end

#os_disk_imageOSDiskImageEncryption



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

def os_disk_image
  @os_disk_image
end

Class Method Details

.mapperObject

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



28
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
58
59
60
61
62
63
64
65
66
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/encryption_images.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EncryptionImages',
    type: {
      name: 'Composite',
      class_name: 'EncryptionImages',
      model_properties: {
        os_disk_image: {
          client_side_validation: true,
          required: false,
          serialized_name: 'osDiskImage',
          type: {
            name: 'Composite',
            class_name: 'OSDiskImageEncryption'
          }
        },
        data_disk_images: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dataDiskImages',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DataDiskImageEncryptionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'DataDiskImageEncryption'
                }
            }
          }
        }
      }
    }
  }
end