Class GetRegionInstanceTemplateDisk


  • public final class GetRegionInstanceTemplateDisk
    extends java.lang.Object
    • Method Detail

      • autoDelete

        public java.lang.Boolean autoDelete()
        Returns:
        Whether or not the disk should be auto-deleted. This defaults to true.
      • boot

        public java.lang.Boolean boot()
        Returns:
        Indicates that this is a boot disk.
      • deviceName

        public java.lang.String deviceName()
        Returns:
        A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
      • diskName

        public java.lang.String diskName()
        Returns:
        Name of the disk. When not provided, this defaults to the name of the instance.
      • diskSizeGb

        public java.lang.Integer diskSizeGb()
        Returns:
        The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
      • diskType

        public java.lang.String diskType()
        Returns:
        The GCE disk type. Such as `"pd-ssd"`, `"local-ssd"`, `"pd-balanced"` or `"pd-standard"`.
      • interface_

        public java.lang.String interface_()
        Returns:
        Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
      • labels

        public java.util.Map<java.lang.String,​java.lang.String> labels()
        Returns:
        (Optional) A set of ket/value label pairs to assign to disk created from this template
      • mode

        public java.lang.String mode()
        Returns:
        The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
      • provisionedIops

        public java.lang.Integer provisionedIops()
      • resourcePolicies

        public java.util.List<java.lang.String> resourcePolicies()
        Returns:
        (Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
      • source

        public java.lang.String source()
        Returns:
        The name (**not self_link**) of the disk (such as those managed by `gcp.compute.Disk`) to attach. > **Note:** Either `source` or `source_image` is **required** in a disk block unless the disk type is `local-ssd`. Check the API [docs](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates/insert) for details.
      • sourceImage

        public java.lang.String sourceImage()
        Returns:
        The image from which to initialize this disk. This can be one of: the image's `self_link`, `projects/{project}/global/images/{image}`, `projects/{project}/global/images/family/{family}`, `global/images/{image}`, `global/images/family/{family}`, `family/{family}`, `{project}/{family}`, `{project}/{image}`, `{family}`, or `{image}`. > **Note:** Either `source` or `source_image` is **required** in a disk block unless the disk type is `local-ssd`. Check the API [docs](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates/insert) for details.
      • sourceSnapshot

        public java.lang.String sourceSnapshot()
      • type

        public java.lang.String type()
        Returns:
        The accelerator type resource to expose to this instance. E.g. `nvidia-tesla-k80`.