Class OSDiskArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.azurenative.compute.inputs.OSDiskArgs
-
public final class OSDiskArgs extends com.pulumi.resources.ResourceArgs
Specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OSDiskArgs.Builder
-
Field Summary
Fields Modifier and Type Field Description static OSDiskArgs
Empty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OSDiskArgs.Builder
builder()
static OSDiskArgs.Builder
builder(OSDiskArgs defaults)
java.util.Optional<com.pulumi.core.Output<CachingTypes>>
caching()
com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,DiskCreateOptionTypes>>
createOption()
java.util.Optional<com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,DiskDeleteOptionTypes>>>
deleteOption()
java.util.Optional<com.pulumi.core.Output<DiffDiskSettingsArgs>>
diffDiskSettings()
java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>
diskSizeGB()
java.util.Optional<com.pulumi.core.Output<DiskEncryptionSettingsArgs>>
encryptionSettings()
java.util.Optional<com.pulumi.core.Output<VirtualHardDiskArgs>>
image()
java.util.Optional<com.pulumi.core.Output<ManagedDiskParametersArgs>>
managedDisk()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
name()
java.util.Optional<com.pulumi.core.Output<OperatingSystemTypes>>
osType()
java.util.Optional<com.pulumi.core.Output<VirtualHardDiskArgs>>
vhd()
java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>
writeAcceleratorEnabled()
-
-
-
Field Detail
-
Empty
public static final OSDiskArgs Empty
-
-
Method Detail
-
caching
public java.util.Optional<com.pulumi.core.Output<CachingTypes>> caching()
- Returns:
- Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None** for Standard storage. **ReadOnly** for Premium storage.
-
createOption
public com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,DiskCreateOptionTypes>> createOption()
- Returns:
- Specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** – This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** – This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described.
-
deleteOption
public java.util.Optional<com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,DiskDeleteOptionTypes>>> deleteOption()
- Returns:
- Specifies whether OS Disk should be deleted or detached upon VM deletion. <br><br> Possible values: <br><br> **Delete** If this value is used, the OS disk is deleted when VM is deleted.<br><br> **Detach** If this value is used, the os disk is retained after VM is deleted. <br><br> The default value is set to **detach**. For an ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for ephemeral OS Disk.
-
diffDiskSettings
public java.util.Optional<com.pulumi.core.Output<DiffDiskSettingsArgs>> diffDiskSettings()
- Returns:
- Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.
-
diskSizeGB
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> diskSizeGB()
- Returns:
- Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB
-
encryptionSettings
public java.util.Optional<com.pulumi.core.Output<DiskEncryptionSettingsArgs>> encryptionSettings()
- Returns:
- Specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15
-
image
public java.util.Optional<com.pulumi.core.Output<VirtualHardDiskArgs>> image()
- Returns:
- The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
-
managedDisk
public java.util.Optional<com.pulumi.core.Output<ManagedDiskParametersArgs>> managedDisk()
- Returns:
- The managed disk parameters.
-
name
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
- Returns:
- The disk name.
-
osType
public java.util.Optional<com.pulumi.core.Output<OperatingSystemTypes>> osType()
- Returns:
- This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**
-
vhd
public java.util.Optional<com.pulumi.core.Output<VirtualHardDiskArgs>> vhd()
- Returns:
- The virtual hard disk.
-
writeAcceleratorEnabled
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> writeAcceleratorEnabled()
- Returns:
- Specifies whether writeAccelerator should be enabled or disabled on the disk.
-
builder
public static OSDiskArgs.Builder builder()
-
builder
public static OSDiskArgs.Builder builder(OSDiskArgs defaults)
-
-