public final class Disk extends GenericJson
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 Notebooks API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Disk() |
| Modifier and Type | Method and Description |
|---|---|
Disk |
clone() |
Boolean |
getAutoDelete()
Indicates 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()
Indicates a unique device name of your choice that is reflected into the /dev/disk/by-
id/google-* tree of a Linux operating system running within the instance.
|
Long |
getDiskSizeGb()
Indicates the size of the disk in base-2 GB.
|
List<GuestOsFeature> |
getGuestOsFeatures()
Indicates a list of features to enable on the guest operating system.
|
Long |
getIndex()
A zero-based index to this disk, where 0 is reserved for the boot disk.
|
String |
getInterface()
Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
String |
getKind()
Type of the resource.
|
List<String> |
getLicenses()
A list of publicly visible licenses.
|
String |
getMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
String |
getSource()
Indicates a valid partial or full URL to an existing Persistent Disk resource.
|
String |
getType()
Indicates the type of the disk, either SCRATCH or PERSISTENT.
|
Disk |
set(String fieldName,
Object value) |
Disk |
setAutoDelete(Boolean autoDelete)
Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the
disk is detached from the instance).
|
Disk |
setBoot(Boolean boot)
Indicates that this is a boot disk.
|
Disk |
setDeviceName(String deviceName)
Indicates a unique device name of your choice that is reflected into the /dev/disk/by-
id/google-* tree of a Linux operating system running within the instance.
|
Disk |
setDiskSizeGb(Long diskSizeGb)
Indicates the size of the disk in base-2 GB.
|
Disk |
setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
Indicates a list of features to enable on the guest operating system.
|
Disk |
setIndex(Long index)
A zero-based index to this disk, where 0 is reserved for the boot disk.
|
Disk |
setInterface(String interface__)
Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
Disk |
setKind(String kind)
Type of the resource.
|
Disk |
setLicenses(List<String> licenses)
A list of publicly visible licenses.
|
Disk |
setMode(String mode)
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
Disk |
setSource(String source)
Indicates a valid partial or full URL to an existing Persistent Disk resource.
|
Disk |
setType(String type)
Indicates the type of the disk, either SCRATCH or PERSISTENT.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getAutoDelete()
null for nonepublic Disk setAutoDelete(Boolean autoDelete)
autoDelete - autoDelete or null for nonepublic Boolean getBoot()
null for nonepublic Disk setBoot(Boolean boot)
boot - boot or null for nonepublic String getDeviceName()
null for nonepublic Disk setDeviceName(String deviceName)
deviceName - deviceName or null for nonepublic Long getDiskSizeGb()
null for nonepublic Disk setDiskSizeGb(Long diskSizeGb)
diskSizeGb - diskSizeGb or null for nonepublic List<GuestOsFeature> getGuestOsFeatures()
null for nonepublic Disk setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
guestOsFeatures - guestOsFeatures or null for nonepublic Long getIndex()
null for nonepublic Disk setIndex(Long index)
index - index or null for nonepublic String getInterface()
null for nonepublic Disk setInterface(String interface__)
interface__ - interface__ or null for nonepublic String getKind()
null for nonepublic Disk setKind(String kind)
kind - kind or null for nonepublic List<String> getLicenses()
null for nonepublic Disk setLicenses(List<String> licenses)
licenses - licenses or null for nonepublic String getMode()
null for nonepublic Disk setMode(String mode)
mode - mode or null for nonepublic String getSource()
null for nonepublic Disk setSource(String source)
source - source or null for nonepublic String getType()
null for nonepublic Disk setType(String type)
type - type or null for nonepublic Disk set(String fieldName, Object value)
set in class GenericJsonpublic Disk clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.