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

There is a newer version: v1-rev20250320-2.0.0
Show newest version






DiskInstantiationConfig (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute.model

Class DiskInstantiationConfig

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class DiskInstantiationConfig
    extends com.google.api.client.json.GenericJson
    A specification of the desired way to instantiate a disk in the instance template when its created from a source instance.

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • 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
      • clone

        public DiskInstantiationConfig clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy