
target.apidocs.com.google.api.services.compute.model.SavedAttachedDisk.html Maven / Gradle / Ivy
SavedAttachedDisk (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute.model
Class SavedAttachedDisk
- 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.SavedAttachedDisk
-
public final class SavedAttachedDisk
extends GenericJson
An instance-attached disk resource.
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
SavedAttachedDisk()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
SavedAttachedDisk
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).
Boolean
getBoot()
Indicates that this is a boot disk.
String
getDeviceName()
Specifies the name of the disk attached to the source instance.
CustomerEncryptionKey
getDiskEncryptionKey()
The encryption key for the disk.
Long
getDiskSizeGb()
The size of the disk in base-2 GB.
String
getDiskType()
[Output Only] URL of the disk type resource.
List<GuestOsFeature>
getGuestOsFeatures()
A list of features to enable on the guest operating system.
Integer
getIndex()
Specifies zero-based index of the disk that is attached to the source instance.
String
getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
String
getKind()
[Output Only] Type of the resource.
List<String>
getLicenses()
[Output Only] Any valid publicly visible licenses.
String
getMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.
String
getSource()
Specifies a URL of the disk attached to the source instance.
Long
getStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
String
getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation.
String
getType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
SavedAttachedDisk
set(String fieldName,
Object value)
SavedAttachedDisk
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).
SavedAttachedDisk
setBoot(Boolean boot)
Indicates that this is a boot disk.
SavedAttachedDisk
setDeviceName(String deviceName)
Specifies the name of the disk attached to the source instance.
SavedAttachedDisk
setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
The encryption key for the disk.
SavedAttachedDisk
setDiskSizeGb(Long diskSizeGb)
The size of the disk in base-2 GB.
SavedAttachedDisk
setDiskType(String diskType)
[Output Only] URL of the disk type resource.
SavedAttachedDisk
setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
A list of features to enable on the guest operating system.
SavedAttachedDisk
setIndex(Integer index)
Specifies zero-based index of the disk that is attached to the source instance.
SavedAttachedDisk
setInterface(String interface__)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
SavedAttachedDisk
setKind(String kind)
[Output Only] Type of the resource.
SavedAttachedDisk
setLicenses(List<String> licenses)
[Output Only] Any valid publicly visible licenses.
SavedAttachedDisk
setMode(String mode)
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.
SavedAttachedDisk
setSource(String source)
Specifies a URL of the disk attached to the source instance.
SavedAttachedDisk
setStorageBytes(Long storageBytes)
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
SavedAttachedDisk
setStorageBytesStatus(String storageBytesStatus)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation.
SavedAttachedDisk
setType(String type)
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
-
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 SavedAttachedDisk 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
-
getBoot
public Boolean getBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the
disk for its root filesystem.
- Returns:
- value or
null
for none
-
setBoot
public SavedAttachedDisk setBoot(Boolean boot)
Indicates that this is a boot disk. The virtual machine will use the first partition of the
disk for its root filesystem.
- Parameters:
boot
- boot or null
for none
-
getDeviceName
public String getDeviceName()
Specifies the name of the disk attached to the source instance.
- Returns:
- value or
null
for none
-
setDeviceName
public SavedAttachedDisk setDeviceName(String deviceName)
Specifies the name of the disk attached to the source instance.
- Parameters:
deviceName
- deviceName or null
for none
-
getDiskEncryptionKey
public CustomerEncryptionKey getDiskEncryptionKey()
The encryption key for the disk.
- Returns:
- value or
null
for none
-
setDiskEncryptionKey
public SavedAttachedDisk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
The encryption key for the disk.
- Parameters:
diskEncryptionKey
- diskEncryptionKey or null
for none
-
getDiskSizeGb
public Long getDiskSizeGb()
The size of the disk in base-2 GB.
- Returns:
- value or
null
for none
-
setDiskSizeGb
public SavedAttachedDisk setDiskSizeGb(Long diskSizeGb)
The size of the disk in base-2 GB.
- Parameters:
diskSizeGb
- diskSizeGb or null
for none
-
getDiskType
public String getDiskType()
[Output Only] URL of the disk type resource. For example: projects/project/zones/zone/diskTypes
/pd-standard or pd-ssd
- Returns:
- value or
null
for none
-
setDiskType
public SavedAttachedDisk setDiskType(String diskType)
[Output Only] URL of the disk type resource. For example: projects/project/zones/zone/diskTypes
/pd-standard or pd-ssd
- Parameters:
diskType
- diskType or null
for none
-
getGuestOsFeatures
public List<GuestOsFeature> getGuestOsFeatures()
A list of features to enable on the guest operating system. Applicable only for bootable
images. Read Enabling guest operating system features to see a list of available options.
- Returns:
- value or
null
for none
-
setGuestOsFeatures
public SavedAttachedDisk setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
A list of features to enable on the guest operating system. Applicable only for bootable
images. Read Enabling guest operating system features to see a list of available options.
- Parameters:
guestOsFeatures
- guestOsFeatures or null
for none
-
getIndex
public Integer getIndex()
Specifies zero-based index of the disk that is attached to the source instance.
- Returns:
- value or
null
for none
-
setIndex
public SavedAttachedDisk setIndex(Integer index)
Specifies zero-based index of the disk that is attached to the source instance.
- Parameters:
index
- index or null
for none
-
getInterface
public String getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
- Returns:
- value or
null
for none
-
setInterface
public SavedAttachedDisk setInterface(String interface__)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
- Parameters:
interface__
- interface__ or null
for none
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
- Returns:
- value or
null
for none
-
setKind
public SavedAttachedDisk setKind(String kind)
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
- Parameters:
kind
- kind or null
for none
-
getLicenses
public List<String> getLicenses()
[Output Only] Any valid publicly visible licenses.
- Returns:
- value or
null
for none
-
setLicenses
public SavedAttachedDisk setLicenses(List<String> licenses)
[Output Only] Any valid publicly visible licenses.
- Parameters:
licenses
- licenses or null
for none
-
getMode
public String getMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.
- Returns:
- value or
null
for none
-
setMode
public SavedAttachedDisk setMode(String mode)
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.
- Parameters:
mode
- mode or null
for none
-
getSource
public String getSource()
Specifies a URL of the disk attached to the source instance.
- Returns:
- value or
null
for none
-
setSource
public SavedAttachedDisk setSource(String source)
Specifies a URL of the disk attached to the source instance.
- Parameters:
source
- source or null
for none
-
getStorageBytes
public Long getStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
- Returns:
- value or
null
for none
-
setStorageBytes
public SavedAttachedDisk setStorageBytes(Long storageBytes)
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
- Parameters:
storageBytes
- storageBytes or null
for none
-
getStorageBytesStatus
public String getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation. This status can either be UPDATING, meaning the size
of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-
date.
- Returns:
- value or
null
for none
-
setStorageBytesStatus
public SavedAttachedDisk setStorageBytesStatus(String storageBytesStatus)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation. This status can either be UPDATING, meaning the size
of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-
date.
- Parameters:
storageBytesStatus
- storageBytesStatus or null
for none
-
getType
public String getType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
- Returns:
- value or
null
for none
-
setType
public SavedAttachedDisk setType(String type)
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
- Parameters:
type
- type or null
for none
-
set
public SavedAttachedDisk set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public SavedAttachedDisk clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy