public final class Disk
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags
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.
|
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
CustomerEncryptionKey |
getDiskEncryptionKey()
Encrypts the disk using a customer-supplied encryption key.
|
java.util.List<GuestOsFeature> |
getGuestOsFeatures()
A list of features to enable on the guest operating system.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
java.lang.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.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Labels to apply to this disk.
|
java.lang.String |
getLastAttachTimestamp()
[Output Only] Last attach timestamp in RFC3339 text format.
|
java.lang.String |
getLastDetachTimestamp()
[Output Only] Last detach timestamp in RFC3339 text format.
|
java.util.List<java.lang.Long> |
getLicenseCodes()
Integer license codes indicating which licenses are attached to this disk.
|
java.util.List<java.lang.String> |
getLicenses()
A list of publicly visible licenses.
|
java.lang.String |
getName()
Name of the resource.
|
java.lang.String |
getOptions()
Internal use only.
|
java.lang.Long |
getPhysicalBlockSizeBytes()
Physical block size of the persistent disk, in bytes.
|
java.lang.String |
getRegion()
[Output Only] URL of the region where the disk resides.
|
java.util.List<java.lang.String> |
getReplicaZones()
URLs of the zones where the disk should be replicated to.
|
java.util.List<java.lang.String> |
getResourcePolicies()
Resource policies applied to this disk for automatic snapshot creations.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
java.lang.Long |
getSizeGb()
Size of the persistent disk, specified in GB.
|
java.lang.String |
getSourceImage()
The source image used to create this disk.
|
CustomerEncryptionKey |
getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
java.lang.String |
getSourceImageId()
[Output Only] The ID value of the image used to create this disk.
|
java.lang.String |
getSourceSnapshot()
The source snapshot used to create this disk.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
java.lang.String |
getSourceSnapshotId()
[Output Only] The unique ID of the snapshot used to create this disk.
|
java.lang.String |
getStatus()
[Output Only] The status of disk creation.
|
java.lang.String |
getType()
URL of the disk type resource describing which disk type to use to create the disk.
|
java.util.List<java.lang.String> |
getUsers()
[Output Only] Links to the users of the disk (attached instances) in form:
projects/project/zones/zone/instances/instance
|
java.lang.String |
getZone()
[Output Only] URL of the zone where the disk resides.
|
Disk |
set(java.lang.String fieldName,
java.lang.Object value) |
Disk |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Disk |
setDescription(java.lang.String description)
An optional description of this resource.
|
Disk |
setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
Encrypts the disk using a customer-supplied encryption key.
|
Disk |
setGuestOsFeatures(java.util.List<GuestOsFeature> guestOsFeatures)
A list of features to enable on the guest operating system.
|
Disk |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
Disk |
setKind(java.lang.String kind)
[Output Only] Type of the resource.
|
Disk |
setLabelFingerprint(java.lang.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(java.util.Map<java.lang.String,java.lang.String> labels)
Labels to apply to this disk.
|
Disk |
setLastAttachTimestamp(java.lang.String lastAttachTimestamp)
[Output Only] Last attach timestamp in RFC3339 text format.
|
Disk |
setLastDetachTimestamp(java.lang.String lastDetachTimestamp)
[Output Only] Last detach timestamp in RFC3339 text format.
|
Disk |
setLicenseCodes(java.util.List<java.lang.Long> licenseCodes)
Integer license codes indicating which licenses are attached to this disk.
|
Disk |
setLicenses(java.util.List<java.lang.String> licenses)
A list of publicly visible licenses.
|
Disk |
setName(java.lang.String name)
Name of the resource.
|
Disk |
setOptions(java.lang.String options)
Internal use only.
|
Disk |
setPhysicalBlockSizeBytes(java.lang.Long physicalBlockSizeBytes)
Physical block size of the persistent disk, in bytes.
|
Disk |
setRegion(java.lang.String region)
[Output Only] URL of the region where the disk resides.
|
Disk |
setReplicaZones(java.util.List<java.lang.String> replicaZones)
URLs of the zones where the disk should be replicated to.
|
Disk |
setResourcePolicies(java.util.List<java.lang.String> resourcePolicies)
Resource policies applied to this disk for automatic snapshot creations.
|
Disk |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined fully-qualified URL for this resource.
|
Disk |
setSizeGb(java.lang.Long sizeGb)
Size of the persistent disk, specified in GB.
|
Disk |
setSourceImage(java.lang.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(java.lang.String sourceImageId)
[Output Only] The ID value of the image used to create this disk.
|
Disk |
setSourceSnapshot(java.lang.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(java.lang.String sourceSnapshotId)
[Output Only] The unique ID of the snapshot used to create this disk.
|
Disk |
setStatus(java.lang.String status)
[Output Only] The status of disk creation.
|
Disk |
setType(java.lang.String type)
URL of the disk type resource describing which disk type to use to create the disk.
|
Disk |
setUsers(java.util.List<java.lang.String> users)
[Output Only] Links to the users of the disk (attached instances) in form:
projects/project/zones/zone/instances/instance
|
Disk |
setZone(java.lang.String zone)
[Output Only] URL of the zone where the disk resides.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getCreationTimestamp()
null
for nonepublic Disk setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic java.lang.String getDescription()
null
for nonepublic Disk setDescription(java.lang.String description)
description
- description or null
for nonepublic CustomerEncryptionKey getDiskEncryptionKey()
null
for nonepublic Disk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
diskEncryptionKey
- diskEncryptionKey or null
for nonepublic java.util.List<GuestOsFeature> getGuestOsFeatures()
null
for nonepublic Disk setGuestOsFeatures(java.util.List<GuestOsFeature> guestOsFeatures)
guestOsFeatures
- guestOsFeatures or null
for nonepublic java.math.BigInteger getId()
null
for nonepublic Disk setId(java.math.BigInteger id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic Disk setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getLabelFingerprint()
null
for nonedecodeLabelFingerprint()
public byte[] decodeLabelFingerprint()
null
for nonegetLabelFingerprint()
public Disk setLabelFingerprint(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getLabels()
null
for nonepublic Disk setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- labels or null
for nonepublic java.lang.String getLastAttachTimestamp()
null
for nonepublic Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp)
lastAttachTimestamp
- lastAttachTimestamp or null
for nonepublic java.lang.String getLastDetachTimestamp()
null
for nonepublic Disk setLastDetachTimestamp(java.lang.String lastDetachTimestamp)
lastDetachTimestamp
- lastDetachTimestamp or null
for nonepublic java.util.List<java.lang.Long> getLicenseCodes()
null
for nonepublic Disk setLicenseCodes(java.util.List<java.lang.Long> licenseCodes)
licenseCodes
- licenseCodes or null
for nonepublic java.util.List<java.lang.String> getLicenses()
null
for nonepublic Disk setLicenses(java.util.List<java.lang.String> licenses)
licenses
- licenses or null
for nonepublic java.lang.String getName()
null
for nonepublic Disk setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getOptions()
null
for nonepublic Disk setOptions(java.lang.String options)
options
- options or null
for nonepublic java.lang.Long getPhysicalBlockSizeBytes()
null
for nonepublic Disk setPhysicalBlockSizeBytes(java.lang.Long physicalBlockSizeBytes)
physicalBlockSizeBytes
- physicalBlockSizeBytes or null
for nonepublic java.lang.String getRegion()
null
for nonepublic Disk setRegion(java.lang.String region)
region
- region or null
for nonepublic java.util.List<java.lang.String> getReplicaZones()
null
for nonepublic Disk setReplicaZones(java.util.List<java.lang.String> replicaZones)
replicaZones
- replicaZones or null
for nonepublic java.util.List<java.lang.String> getResourcePolicies()
null
for nonepublic Disk setResourcePolicies(java.util.List<java.lang.String> resourcePolicies)
resourcePolicies
- resourcePolicies or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic Disk setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic java.lang.Long getSizeGb()
null
for nonepublic Disk setSizeGb(java.lang.Long sizeGb)
sizeGb
- sizeGb or null
for nonepublic java.lang.String getSourceImage()
null
for nonepublic Disk setSourceImage(java.lang.String sourceImage)
sourceImage
- sourceImage or null
for nonepublic CustomerEncryptionKey getSourceImageEncryptionKey()
null
for nonepublic Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
sourceImageEncryptionKey
- sourceImageEncryptionKey or null
for nonepublic java.lang.String getSourceImageId()
null
for nonepublic Disk setSourceImageId(java.lang.String sourceImageId)
sourceImageId
- sourceImageId or null
for nonepublic java.lang.String getSourceSnapshot()
null
for nonepublic Disk setSourceSnapshot(java.lang.String sourceSnapshot)
sourceSnapshot
- sourceSnapshot or null
for nonepublic CustomerEncryptionKey getSourceSnapshotEncryptionKey()
null
for nonepublic Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
sourceSnapshotEncryptionKey
- sourceSnapshotEncryptionKey or null
for nonepublic java.lang.String getSourceSnapshotId()
null
for nonepublic Disk setSourceSnapshotId(java.lang.String sourceSnapshotId)
sourceSnapshotId
- sourceSnapshotId or null
for nonepublic java.lang.String getStatus()
null
for nonepublic Disk setStatus(java.lang.String status)
status
- status or null
for nonepublic java.lang.String getType()
null
for nonepublic Disk setType(java.lang.String type)
type
- type or null
for nonepublic java.util.List<java.lang.String> getUsers()
null
for nonepublic Disk setUsers(java.util.List<java.lang.String> users)
users
- users or null
for nonepublic java.lang.String getZone()
null
for nonepublic Disk setZone(java.lang.String zone)
zone
- zone or null
for nonepublic Disk set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Disk clone()
clone
in class com.google.api.client.json.GenericJson