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
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.DiskInstantiationConfig
-
public final class DiskInstantiationConfig
extends 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
DiskInstantiationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DiskInstantiationConfig
clone()
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).
String
getCustomImage()
The custom source image to be used to restore this disk when instantiating this instance
template.
String
getDeviceName()
Specifies the device name of the disk to which the configurations apply to.
String
getInstantiateFrom()
Specifies whether to include the disk and what image to use.
DiskInstantiationConfig
set(String fieldName,
Object value)
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).
DiskInstantiationConfig
setCustomImage(String customImage)
The custom source image to be used to restore this disk when instantiating this instance
template.
DiskInstantiationConfig
setDeviceName(String deviceName)
Specifies the device name of the disk to which the configurations apply to.
DiskInstantiationConfig
setInstantiateFrom(String instantiateFrom)
Specifies whether to include the disk and what image to use.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
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
-
set
public DiskInstantiationConfig set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public DiskInstantiationConfig clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy