Class: Azure::Compute::Mgmt::V2020_12_01::Models::ImageOSDisk

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

Overview

Describes an Operating System disk.

Instance Attribute Summary collapse

Attributes inherited from ImageDisk

#blob_uri, #caching, #disk_encryption_set, #disk_size_gb, #managed_disk, #snapshot, #storage_account_type

Class Method Summary collapse

Instance Attribute Details

#os_stateOperatingSystemStateTypes

include: 'Generalized', 'Specialized'

Returns:



23
24
25
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 23

def os_state
  @os_state
end

#os_typeOperatingSystemTypes

type of the OS that is included in the disk if creating a VM from a custom image.
Possible values are:
*Windows*
*Linux*. Possible values include: 'Windows', 'Linux'

Returns:



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

def os_type
  @os_type
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ImageOSDisk',
    type: {
      name: 'Composite',
      class_name: 'ImageOSDisk',
      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'
          }
        },
        os_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'osType',
          type: {
            name: 'Enum',
            module: 'OperatingSystemTypes'
          }
        },
        os_state: {
          client_side_validation: true,
          required: true,
          serialized_name: 'osState',
          type: {
            name: 'Enum',
            module: 'OperatingSystemStateTypes'
          }
        }
      }
    }
  }
end