Class DiskUpdate
java.lang.Object
com.microsoft.azure.management.compute.DiskUpdate
Disk update resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet set to true to enable bursting beyond the provisioned performance target of the disk.Get aRM id of the DiskAccess resource for using private endpoints on disks.Get the total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly.Get the number of IOPS allowed for this disk; only settable for UltraSSD disks.Get the total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly.Get the bandwidth allowed for this disk; only settable for UltraSSD disks.Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create.Get encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.Get encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.Get the maximum number of VMs that can attach to the disk at the same time.Get possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.osType()
Get the Operating System type.Get purchase plan information to be added on the OS disk.sku()
Get the sku value.tags()
Get resource tags.tier()
Get performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/.withBurstingEnabled
(Boolean burstingEnabled) Set set to true to enable bursting beyond the provisioned performance target of the disk.withDiskAccessId
(String diskAccessId) Set aRM id of the DiskAccess resource for using private endpoints on disks.withDiskIOPSReadOnly
(Long diskIOPSReadOnly) Set the total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly.withDiskIOPSReadWrite
(Long diskIOPSReadWrite) Set the number of IOPS allowed for this disk; only settable for UltraSSD disks.withDiskMBpsReadOnly
(Long diskMBpsReadOnly) Set the total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly.withDiskMBpsReadWrite
(Long diskMBpsReadWrite) Set the bandwidth allowed for this disk; only settable for UltraSSD disks.withDiskSizeGB
(Integer diskSizeGB) Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create.withEncryption
(Encryption encryption) Set encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.withEncryptionSettingsCollection
(EncryptionSettingsCollection encryptionSettingsCollection) Set encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.withMaxShares
(Integer maxShares) Set the maximum number of VMs that can attach to the disk at the same time.withNetworkAccessPolicy
(NetworkAccessPolicy networkAccessPolicy) Set possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.withOsType
(OperatingSystemTypes osType) Set the Operating System type.withPurchasePlan
(PurchasePlan purchasePlan) Set purchase plan information to be added on the OS disk.Set the sku value.Set resource tags.Set performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/.
-
Constructor Details
-
DiskUpdate
public DiskUpdate()
-
-
Method Details
-
osType
Get the Operating System type. Possible values include: 'Windows', 'Linux'.- Returns:
- the osType value
-
withOsType
Set the Operating System type. Possible values include: 'Windows', 'Linux'.- Parameters:
osType
- the osType value to set- Returns:
- the DiskUpdate object itself.
-
diskSizeGB
Get if creationData.createOption is Empty, this field is 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:
- the diskSizeGB value
-
withDiskSizeGB
Set if creationData.createOption is Empty, this field is 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.- Parameters:
diskSizeGB
- the diskSizeGB value to set- Returns:
- the DiskUpdate object itself.
-
encryptionSettingsCollection
Get encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.- Returns:
- the encryptionSettingsCollection value
-
withEncryptionSettingsCollection
public DiskUpdate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection) Set encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.- Parameters:
encryptionSettingsCollection
- the encryptionSettingsCollection value to set- Returns:
- the DiskUpdate object itself.
-
diskIOPSReadWrite
Get the number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.- Returns:
- the diskIOPSReadWrite value
-
withDiskIOPSReadWrite
Set the number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.- Parameters:
diskIOPSReadWrite
- the diskIOPSReadWrite value to set- Returns:
- the DiskUpdate object itself.
-
diskMBpsReadWrite
Get the bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.- Returns:
- the diskMBpsReadWrite value
-
withDiskMBpsReadWrite
Set the bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.- Parameters:
diskMBpsReadWrite
- the diskMBpsReadWrite value to set- Returns:
- the DiskUpdate object itself.
-
diskIOPSReadOnly
Get the total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.- Returns:
- the diskIOPSReadOnly value
-
withDiskIOPSReadOnly
Set the total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.- Parameters:
diskIOPSReadOnly
- the diskIOPSReadOnly value to set- Returns:
- the DiskUpdate object itself.
-
diskMBpsReadOnly
Get the total throughput (MBps) that will be allowed 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:
- the diskMBpsReadOnly value
-
withDiskMBpsReadOnly
Set the total throughput (MBps) that will be allowed 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.- Parameters:
diskMBpsReadOnly
- the diskMBpsReadOnly value to set- Returns:
- the DiskUpdate object itself.
-
encryption
Get encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.- Returns:
- the encryption value
-
withEncryption
Set encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.- Parameters:
encryption
- the encryption value to set- Returns:
- the DiskUpdate object itself.
-
networkAccessPolicy
Get possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.- Returns:
- the networkAccessPolicy value
-
withNetworkAccessPolicy
Set possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.- Parameters:
networkAccessPolicy
- the networkAccessPolicy value to set- Returns:
- the DiskUpdate object itself.
-
diskAccessId
Get aRM id of the DiskAccess resource for using private endpoints on disks.- Returns:
- the diskAccessId value
-
withDiskAccessId
Set aRM id of the DiskAccess resource for using private endpoints on disks.- Parameters:
diskAccessId
- the diskAccessId value to set- Returns:
- the DiskUpdate object itself.
-
tier
Get performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.- Returns:
- the tier value
-
withTier
Set performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.- Parameters:
tier
- the tier value to set- Returns:
- the DiskUpdate object itself.
-
burstingEnabled
Get set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.- Returns:
- the burstingEnabled value
-
withBurstingEnabled
Set set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.- Parameters:
burstingEnabled
- the burstingEnabled value to set- Returns:
- the DiskUpdate object itself.
-
purchasePlan
Get purchase plan information to be added on the OS disk.- Returns:
- the purchasePlan value
-
withPurchasePlan
Set purchase plan information to be added on the OS disk.- Parameters:
purchasePlan
- the purchasePlan value to set- Returns:
- the DiskUpdate object itself.
-
tags
Get resource tags.- Returns:
- the tags value
-
withTags
Set resource tags.- Parameters:
tags
- the tags value to set- Returns:
- the DiskUpdate object itself.
-
sku
Get the sku value.- Returns:
- the sku value
-
withSku
Set the sku value.- Parameters:
sku
- the sku value to set- Returns:
- the DiskUpdate object itself.
-