All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.model.DiskInstantiationConfig.html Maven / Gradle / Ivy







DiskInstantiationConfig (Compute Engine API beta-rev20220312-1.32.1)












com.google.api.services.compute.model

Class DiskInstantiationConfig

    • Constructor Detail

      • DiskInstantiationConfig

        public DiskInstantiationConfig()
    • Method Detail

      • getAutoDelete

        public Boolean getAutoDelete()
        Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
        Returns:
        value or null for none
      • setAutoDelete

        public DiskInstantiationConfig setAutoDelete(Boolean autoDelete)
        Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
        Parameters:
        autoDelete - autoDelete or null for none
      • getCustomImage

        public String getCustomImage()
        The custom source image to be used to restore this disk when instantiating this instance template.
        Returns:
        value or null for none
      • setCustomImage

        public DiskInstantiationConfig setCustomImage(String customImage)
        The custom source image to be used to restore this disk when instantiating this instance template.
        Parameters:
        customImage - customImage or null for none
      • getDeviceName

        public String getDeviceName()
        Specifies the device name of the disk to which the configurations apply to.
        Returns:
        value or null for none
      • setDeviceName

        public DiskInstantiationConfig setDeviceName(String deviceName)
        Specifies the device name of the disk to which the configurations apply to.
        Parameters:
        deviceName - deviceName or null for none
      • getInstantiateFrom

        public String getInstantiateFrom()
        Specifies whether to include the disk and what image to use. Possible values are: - source- image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach- read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks.
        Returns:
        value or null for none
      • setInstantiateFrom

        public DiskInstantiationConfig setInstantiateFrom(String instantiateFrom)
        Specifies whether to include the disk and what image to use. Possible values are: - source- image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach- read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks.
        Parameters:
        instantiateFrom - instantiateFrom or null for none

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy