Class: Azure::Compute::Mgmt::V2020_09_30::Models::DiskUpdate

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb

Overview

Disk update resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bursting_enabledBoolean

performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.

Returns:

  • (Boolean)

    Set to true to enable bursting beyond the provisioned



78
79
80
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 78

def bursting_enabled
  @bursting_enabled
end

#disk_access_idString

endpoints on disks.

Returns:

  • (String)

    ARM id of the DiskAccess resource for using private



67
68
69
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 67

def disk_access_id
  @disk_access_id
end

#disk_iopsread_onlyInteger

all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.

Returns:

  • (Integer)

    The total number of IOPS that will be allowed across



44
45
46
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 44

def disk_iopsread_only
  @disk_iopsread_only
end

#disk_iopsread_writeInteger

settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.

Returns:

  • (Integer)

    The number of IOPS allowed for this disk; only



34
35
36
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 34

def disk_iopsread_write
  @disk_iopsread_write
end

#disk_mbps_read_onlyInteger

across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.

Returns:

  • (Integer)

    The total throughput (MBps) that will be allowed



50
51
52
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 50

def disk_mbps_read_only
  @disk_mbps_read_only
end

#disk_mbps_read_writeInteger

for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.

Returns:

  • (Integer)

    The bandwidth allowed for this disk; only settable



39
40
41
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 39

def disk_mbps_read_write
  @disk_mbps_read_write
end

#disk_size_gbInteger

mandatory and it indicates the size of the disk 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



24
25
26
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 24

def disk_size_gb
  @disk_size_gb
end

#encryptionEncryption

rest with customer managed keys or platform managed keys.

Returns:

  • (Encryption)

    Encryption property can be used to encrypt data at



59
60
61
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 59

def encryption
  @encryption
end

#encryption_settings_collectionEncryptionSettingsCollection

used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.

Returns:



29
30
31
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 29

def encryption_settings_collection
  @encryption_settings_collection
end

#max_sharesInteger

at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.

Returns:

  • (Integer)

    The maximum number of VMs that can attach to the disk



55
56
57
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 55

def max_shares
  @max_shares
end

#network_access_policyNetworkAccessPolicy

'AllowPrivate', 'DenyAll'

Returns:



63
64
65
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 63

def network_access_policy
  @network_access_policy
end

#os_typeOperatingSystemTypes

values include: 'Windows', 'Linux'

Returns:



17
18
19
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 17

def os_type
  @os_type
end

#purchase_planPurchasePlan

disk

Returns:

  • (PurchasePlan)

    Purchase plan information to be added on the OS



82
83
84
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 82

def purchase_plan
  @purchase_plan
end

#skuDiskSku

Returns:



88
89
90
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 88

def sku
  @sku
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • (Hash{String => String})

    Resource tags



85
86
87
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 85

def tags
  @tags
end

#tierString

described here: azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.

Returns:

  • (String)

    Performance tier of the disk (e.g, P4, S10) as



73
74
75
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 73

def tier
  @tier
end

Class Method Details

.mapperObject

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



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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
# File 'lib/2020-09-30/generated/azure_mgmt_compute/models/disk_update.rb', line 95

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DiskUpdate',
    type: {
      name: 'Composite',
      class_name: 'DiskUpdate',
      model_properties: {
        os_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'Enum',
            module: 'OperatingSystemTypes'
          }
        },
        disk_size_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        encryption_settings_collection: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.encryptionSettingsCollection',
          type: {
            name: 'Composite',
            class_name: 'EncryptionSettingsCollection'
          }
        },
        disk_iopsread_write: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskIOPSReadWrite',
          type: {
            name: 'Number'
          }
        },
        disk_mbps_read_write: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskMBpsReadWrite',
          type: {
            name: 'Number'
          }
        },
        disk_iopsread_only: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskIOPSReadOnly',
          type: {
            name: 'Number'
          }
        },
        disk_mbps_read_only: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskMBpsReadOnly',
          type: {
            name: 'Number'
          }
        },
        max_shares: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.maxShares',
          type: {
            name: 'Number'
          }
        },
        encryption: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.encryption',
          type: {
            name: 'Composite',
            class_name: 'Encryption'
          }
        },
        network_access_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.networkAccessPolicy',
          type: {
            name: 'String'
          }
        },
        disk_access_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskAccessId',
          type: {
            name: 'String'
          }
        },
        tier: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.tier',
          type: {
            name: 'String'
          }
        },
        bursting_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.burstingEnabled',
          type: {
            name: 'Boolean'
          }
        },
        purchase_plan: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.purchasePlan',
          type: {
            name: 'Composite',
            class_name: 'PurchasePlan'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'DiskSku'
          }
        }
      }
    }
  }
end