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 Compute Engine 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() |
byte[] |
decodeLabelFingerprint()
A fingerprint for the labels being applied to this disk, which is essentially a hash of the
labels set used for optimistic locking.
|
Disk |
encodeLabelFingerprint(byte[] labelFingerprint)
A fingerprint for the labels being applied to this disk, which is essentially a hash of the
labels set used for optimistic locking.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
CustomerEncryptionKey |
getDiskEncryptionKey()
Encrypts the disk using a customer-supplied encryption key.
|
List<GuestOsFeature> |
getGuestOsFeatures()
A list of features to enable on the guest operating system.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getLabelFingerprint()
A fingerprint for the labels being applied to this disk, which is essentially a hash of the
labels set used for optimistic locking.
|
Map<String,String> |
getLabels()
Labels to apply to this disk.
|
String |
getLastAttachTimestamp()
[Output Only] Last attach timestamp in RFC3339 text format.
|
String |
getLastDetachTimestamp()
[Output Only] Last detach timestamp in RFC3339 text format.
|
List<Long> |
getLicenseCodes()
Integer license codes indicating which licenses are attached to this disk.
|
List<String> |
getLicenses()
A list of publicly visible licenses.
|
String |
getName()
Name of the resource.
|
String |
getOptions()
Internal use only.
|
Long |
getPhysicalBlockSizeBytes()
Physical block size of the persistent disk, in bytes.
|
String |
getRegion()
[Output Only] URL of the region where the disk resides.
|
List<String> |
getReplicaZones()
URLs of the zones where the disk should be replicated to.
|
List<String> |
getResourcePolicies()
Resource policies applied to this disk for automatic snapshot creations.
|
String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
Long |
getSizeGb()
Size of the persistent disk, specified in GB.
|
String |
getSourceImage()
The source image used to create this disk.
|
CustomerEncryptionKey |
getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
String |
getSourceImageId()
[Output Only] The ID value of the image used to create this disk.
|
String |
getSourceSnapshot()
The source snapshot used to create this disk.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
String |
getSourceSnapshotId()
[Output Only] The unique ID of the snapshot used to create this disk.
|
String |
getStatus()
[Output Only] The status of disk creation.
|
String |
getType()
URL of the disk type resource describing which disk type to use to create the disk.
|
List<String> |
getUsers()
[Output Only] Links to the users of the disk (attached instances) in form:
projects/project/zones/zone/instances/instance
|
String |
getZone()
[Output Only] URL of the zone where the disk resides.
|
Disk |
set(String fieldName,
Object value) |
Disk |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Disk |
setDescription(String description)
An optional description of this resource.
|
Disk |
setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
Encrypts the disk using a customer-supplied encryption key.
|
Disk |
setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
A list of features to enable on the guest operating system.
|
Disk |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
Disk |
setKind(String kind)
[Output Only] Type of the resource.
|
Disk |
setLabelFingerprint(String labelFingerprint)
A fingerprint for the labels being applied to this disk, which is essentially a hash of the
labels set used for optimistic locking.
|
Disk |
setLabels(Map<String,String> labels)
Labels to apply to this disk.
|
Disk |
setLastAttachTimestamp(String lastAttachTimestamp)
[Output Only] Last attach timestamp in RFC3339 text format.
|
Disk |
setLastDetachTimestamp(String lastDetachTimestamp)
[Output Only] Last detach timestamp in RFC3339 text format.
|
Disk |
setLicenseCodes(List<Long> licenseCodes)
Integer license codes indicating which licenses are attached to this disk.
|
Disk |
setLicenses(List<String> licenses)
A list of publicly visible licenses.
|
Disk |
setName(String name)
Name of the resource.
|
Disk |
setOptions(String options)
Internal use only.
|
Disk |
setPhysicalBlockSizeBytes(Long physicalBlockSizeBytes)
Physical block size of the persistent disk, in bytes.
|
Disk |
setRegion(String region)
[Output Only] URL of the region where the disk resides.
|
Disk |
setReplicaZones(List<String> replicaZones)
URLs of the zones where the disk should be replicated to.
|
Disk |
setResourcePolicies(List<String> resourcePolicies)
Resource policies applied to this disk for automatic snapshot creations.
|
Disk |
setSelfLink(String selfLink)
[Output Only] Server-defined fully-qualified URL for this resource.
|
Disk |
setSizeGb(Long sizeGb)
Size of the persistent disk, specified in GB.
|
Disk |
setSourceImage(String sourceImage)
The source image used to create this disk.
|
Disk |
setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
The customer-supplied encryption key of the source image.
|
Disk |
setSourceImageId(String sourceImageId)
[Output Only] The ID value of the image used to create this disk.
|
Disk |
setSourceSnapshot(String sourceSnapshot)
The source snapshot used to create this disk.
|
Disk |
setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
The customer-supplied encryption key of the source snapshot.
|
Disk |
setSourceSnapshotId(String sourceSnapshotId)
[Output Only] The unique ID of the snapshot used to create this disk.
|
Disk |
setStatus(String status)
[Output Only] The status of disk creation.
|
Disk |
setType(String type)
URL of the disk type resource describing which disk type to use to create the disk.
|
Disk |
setUsers(List<String> users)
[Output Only] Links to the users of the disk (attached instances) in form:
projects/project/zones/zone/instances/instance
|
Disk |
setZone(String zone)
[Output Only] URL of the zone where the disk resides.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCreationTimestamp()
null for nonepublic Disk setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic Disk setDescription(String description)
description - description or null for nonepublic CustomerEncryptionKey getDiskEncryptionKey()
null for nonepublic Disk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
diskEncryptionKey - diskEncryptionKey or null for nonepublic List<GuestOsFeature> getGuestOsFeatures()
null for nonepublic Disk setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
guestOsFeatures - guestOsFeatures or null for nonepublic BigInteger getId()
null for nonepublic Disk setId(BigInteger id)
id - id or null for nonepublic String getKind()
null for nonepublic Disk setKind(String kind)
kind - kind or null for nonepublic String getLabelFingerprint()
null for nonedecodeLabelFingerprint()public byte[] decodeLabelFingerprint()
null for nonegetLabelFingerprint()public Disk setLabelFingerprint(String labelFingerprint)
labelFingerprint - labelFingerprint or null for none#encodeLabelFingerprint()public Disk encodeLabelFingerprint(byte[] labelFingerprint)
The value is encoded Base64 or {@code null} for none.
public Map<String,String> getLabels()
null for nonepublic Disk setLabels(Map<String,String> labels)
labels - labels or null for nonepublic String getLastAttachTimestamp()
null for nonepublic Disk setLastAttachTimestamp(String lastAttachTimestamp)
lastAttachTimestamp - lastAttachTimestamp or null for nonepublic String getLastDetachTimestamp()
null for nonepublic Disk setLastDetachTimestamp(String lastDetachTimestamp)
lastDetachTimestamp - lastDetachTimestamp or null for nonepublic List<Long> getLicenseCodes()
null for nonepublic Disk setLicenseCodes(List<Long> licenseCodes)
licenseCodes - licenseCodes or null for nonepublic List<String> getLicenses()
null for nonepublic Disk setLicenses(List<String> licenses)
licenses - licenses or null for nonepublic String getName()
null for nonepublic Disk setName(String name)
name - name or null for nonepublic String getOptions()
null for nonepublic Disk setOptions(String options)
options - options or null for nonepublic Long getPhysicalBlockSizeBytes()
null for nonepublic Disk setPhysicalBlockSizeBytes(Long physicalBlockSizeBytes)
physicalBlockSizeBytes - physicalBlockSizeBytes or null for nonepublic String getRegion()
null for nonepublic Disk setRegion(String region)
region - region or null for nonepublic List<String> getReplicaZones()
null for nonepublic Disk setReplicaZones(List<String> replicaZones)
replicaZones - replicaZones or null for nonepublic List<String> getResourcePolicies()
null for nonepublic Disk setResourcePolicies(List<String> resourcePolicies)
resourcePolicies - resourcePolicies or null for nonepublic String getSelfLink()
null for nonepublic Disk setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic Long getSizeGb()
null for nonepublic Disk setSizeGb(Long sizeGb)
sizeGb - sizeGb or null for nonepublic String getSourceImage()
null for nonepublic Disk setSourceImage(String sourceImage)
sourceImage - sourceImage or null for nonepublic CustomerEncryptionKey getSourceImageEncryptionKey()
null for nonepublic Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
sourceImageEncryptionKey - sourceImageEncryptionKey or null for nonepublic String getSourceImageId()
null for nonepublic Disk setSourceImageId(String sourceImageId)
sourceImageId - sourceImageId or null for nonepublic String getSourceSnapshot()
null for nonepublic Disk setSourceSnapshot(String sourceSnapshot)
sourceSnapshot - sourceSnapshot or null for nonepublic CustomerEncryptionKey getSourceSnapshotEncryptionKey()
null for nonepublic Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
sourceSnapshotEncryptionKey - sourceSnapshotEncryptionKey or null for nonepublic String getSourceSnapshotId()
null for nonepublic Disk setSourceSnapshotId(String sourceSnapshotId)
sourceSnapshotId - sourceSnapshotId or null for nonepublic String getStatus()
null for nonepublic Disk setStatus(String status)
status - status or null for nonepublic String getType()
null for nonepublic Disk setType(String type)
type - type or null for nonepublic List<String> getUsers()
null for nonepublic Disk setUsers(List<String> users)
users - users or null for nonepublic String getZone()
null for nonepublic Disk setZone(String zone)
zone - zone or null for nonepublic Disk set(String fieldName, Object value)
set in class GenericJsonpublic Disk clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.