Class: Azure::Compute::Mgmt::V2019_12_01::Models::ImageDisk

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

Overview

Describes a image disk.

Direct Known Subclasses

ImageDataDisk, ImageOSDisk

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#blob_uriString

Returns The Virtual Hard Disk.

Returns:

  • (String)

    The Virtual Hard Disk.



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

def blob_uri
  @blob_uri
end

#cachingCachingTypes

Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

Returns:



29
30
31
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/image_disk.rb', line 29

def caching
  @caching
end

#disk_encryption_setDiskEncryptionSetParameters

disk encryption set resource id for the managed image disk.

Returns:



44
45
46
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/image_disk.rb', line 44

def disk_encryption_set
  @disk_encryption_set
end

#disk_size_gbInteger

This element can be used to overwrite the name of the disk in a virtual machine image.
This value cannot be larger than 1023 GB

Returns:

  • (Integer)

    Specifies the size of empty data disks in gigabytes.



34
35
36
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/image_disk.rb', line 34

def disk_size_gb
  @disk_size_gb
end

#managed_diskSubResource

Returns The managedDisk.

Returns:



19
20
21
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/image_disk.rb', line 19

def managed_disk
  @managed_disk
end

#snapshotSubResource

Returns The snapshot.

Returns:



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

def snapshot
  @snapshot
end

#storage_account_typeStorageAccountTypes

the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'

Returns:



40
41
42
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/image_disk.rb', line 40

def 
  @storage_account_type
end

Class Method Details

.mapperObject

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



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/image_disk.rb', line 51

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ImageDisk',
    type: {
      name: 'Composite',
      class_name: 'ImageDisk',
      model_properties: {
        snapshot: {
          client_side_validation: true,
          required: false,
          serialized_name: 'snapshot',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        managed_disk: {
          client_side_validation: true,
          required: false,
          serialized_name: 'managedDisk',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        blob_uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'blobUri',
          type: {
            name: 'String'
          }
        },
        caching: {
          client_side_validation: true,
          required: false,
          serialized_name: 'caching',
          type: {
            name: 'Enum',
            module: 'CachingTypes'
          }
        },
        disk_size_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        storage_account_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'storageAccountType',
          type: {
            name: 'String'
          }
        },
        disk_encryption_set: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diskEncryptionSet',
          type: {
            name: 'Composite',
            class_name: 'DiskEncryptionSetParameters'
          }
        }
      }
    }
  }
end