Class: Azure::ARM::Compute::Models::Disk

Inherits:
MsRestAzure::Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_compute/models/disk.rb

Overview

Disk resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#account_typeStorageAccountTypes

Possible values include: ‘Standard_LRS’, ‘Premium_LRS’

Returns:



17
18
19
# File 'lib/generated/azure_mgmt_compute/models/disk.rb', line 17

def 
  @account_type
end

#creation_dataCreationData

information cannot be changed after the disk has been created.

Returns:



28
29
30
# File 'lib/generated/azure_mgmt_compute/models/disk.rb', line 28

def creation_data
  @creation_data
end

#disk_size_gbInteger

mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.

Returns:

  • (Integer)

    If creationData.createOption is Empty, this field is



35
36
37
# File 'lib/generated/azure_mgmt_compute/models/disk.rb', line 35

def disk_size_gb
  @disk_size_gb
end

#encryption_settingsEncryptionSettings

Returns Encryption settings for disk or snapshot.

Returns:



38
39
40
# File 'lib/generated/azure_mgmt_compute/models/disk.rb', line 38

def encryption_settings
  @encryption_settings
end

#os_typeOperatingSystemTypes

values include: ‘Windows’, ‘Linux’

Returns:



24
25
26
# File 'lib/generated/azure_mgmt_compute/models/disk.rb', line 24

def os_type
  @os_type
end

#owner_idString

attached.

Returns:

  • (String)

    A relative URI containing the VM id that has the disk



42
43
44
# File 'lib/generated/azure_mgmt_compute/models/disk.rb', line 42

def owner_id
  @owner_id
end

#provisioning_stateString

Returns The disk provisioning state.

Returns:

  • (String)

    The disk provisioning state.



45
46
47
# File 'lib/generated/azure_mgmt_compute/models/disk.rb', line 45

def provisioning_state
  @provisioning_state
end

#time_createdDateTime

Returns The time when the disk was created.

Returns:

  • (DateTime)

    The time when the disk was created.



20
21
22
# File 'lib/generated/azure_mgmt_compute/models/disk.rb', line 20

def time_created
  @time_created
end

Class Method Details

.mapperObject

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



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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/generated/azure_mgmt_compute/models/disk.rb', line 52

def self.mapper()
  {
    required: false,
    serialized_name: 'Disk',
    type: {
      name: 'Composite',
      class_name: 'Disk',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        account_type: {
          required: false,
          serialized_name: 'properties.accountType',
          type: {
            name: 'Enum',
            module: 'StorageAccountTypes'
          }
        },
        time_created: {
          required: false,
          read_only: true,
          serialized_name: 'properties.timeCreated',
          type: {
            name: 'DateTime'
          }
        },
        os_type: {
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'Enum',
            module: 'OperatingSystemTypes'
          }
        },
        creation_data: {
          required: true,
          serialized_name: 'properties.creationData',
          type: {
            name: 'Composite',
            class_name: 'CreationData'
          }
        },
        disk_size_gb: {
          required: false,
          serialized_name: 'properties.diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        encryption_settings: {
          required: false,
          serialized_name: 'properties.encryptionSettings',
          type: {
            name: 'Composite',
            class_name: 'EncryptionSettings'
          }
        },
        owner_id: {
          required: false,
          read_only: true,
          serialized_name: 'properties.ownerId',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end