public final class Image 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
| Modifier and Type | Class and Description |
|---|---|
static class |
Image.RawDisk
The parameters of the raw disk image.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Image() |
| Modifier and Type | Method and Description |
|---|---|
Image |
clone() |
byte[] |
decodeLabelFingerprint()
A fingerprint for the labels being applied to this image, which is essentially a hash of the
labels used for optimistic locking.
|
Image |
encodeLabelFingerprint(byte[] labelFingerprint)
A fingerprint for the labels being applied to this image, which is essentially a hash of the
labels used for optimistic locking.
|
Long |
getArchiveSizeBytes()
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
DeprecationStatus |
getDeprecated()
The deprecation status associated with this image.
|
String |
getDescription()
An optional description of this resource.
|
Long |
getDiskSizeGb()
Size of the image when restored onto a persistent disk (in GB).
|
String |
getFamily()
The name of the image family to which this image belongs.
|
List<GuestOsFeature> |
getGuestOsFeatures()
A list of features to enable on the guest operating system.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
CustomerEncryptionKey |
getImageEncryptionKey()
Encrypts the image using a customer-supplied encryption key.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getLabelFingerprint()
A fingerprint for the labels being applied to this image, which is essentially a hash of the
labels used for optimistic locking.
|
Map<String,String> |
getLabels()
Labels to apply to this image.
|
List<Long> |
getLicenseCodes()
Integer license codes indicating which licenses are attached to this image.
|
List<String> |
getLicenses()
Any applicable license URI.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
Image.RawDisk |
getRawDisk()
The parameters of the raw disk image.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getSourceDisk()
URL of the source disk used to create this image.
|
CustomerEncryptionKey |
getSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk.
|
String |
getSourceDiskId()
[Output Only] The ID value of the disk used to create this image.
|
String |
getSourceImage()
URL of the source image used to create this image.
|
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 image.
|
String |
getSourceSnapshot()
URL of the source snapshot used to create this image.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
String |
getSourceSnapshotId()
[Output Only] The ID value of the snapshot used to create this image.
|
String |
getSourceType()
The type of the image used to create this disk.
|
String |
getStatus()
[Output Only] The status of the image.
|
Image |
set(String fieldName,
Object value) |
Image |
setArchiveSizeBytes(Long archiveSizeBytes)
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
Image |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Image |
setDeprecated(DeprecationStatus deprecated)
The deprecation status associated with this image.
|
Image |
setDescription(String description)
An optional description of this resource.
|
Image |
setDiskSizeGb(Long diskSizeGb)
Size of the image when restored onto a persistent disk (in GB).
|
Image |
setFamily(String family)
The name of the image family to which this image belongs.
|
Image |
setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
A list of features to enable on the guest operating system.
|
Image |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
Image |
setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey)
Encrypts the image using a customer-supplied encryption key.
|
Image |
setKind(String kind)
[Output Only] Type of the resource.
|
Image |
setLabelFingerprint(String labelFingerprint)
A fingerprint for the labels being applied to this image, which is essentially a hash of the
labels used for optimistic locking.
|
Image |
setLabels(Map<String,String> labels)
Labels to apply to this image.
|
Image |
setLicenseCodes(List<Long> licenseCodes)
Integer license codes indicating which licenses are attached to this image.
|
Image |
setLicenses(List<String> licenses)
Any applicable license URI.
|
Image |
setName(String name)
Name of the resource; provided by the client when the resource is created.
|
Image |
setRawDisk(Image.RawDisk rawDisk)
The parameters of the raw disk image.
|
Image |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
Image |
setSourceDisk(String sourceDisk)
URL of the source disk used to create this image.
|
Image |
setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
The customer-supplied encryption key of the source disk.
|
Image |
setSourceDiskId(String sourceDiskId)
[Output Only] The ID value of the disk used to create this image.
|
Image |
setSourceImage(String sourceImage)
URL of the source image used to create this image.
|
Image |
setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
The customer-supplied encryption key of the source image.
|
Image |
setSourceImageId(String sourceImageId)
[Output Only] The ID value of the image used to create this image.
|
Image |
setSourceSnapshot(String sourceSnapshot)
URL of the source snapshot used to create this image.
|
Image |
setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
The customer-supplied encryption key of the source snapshot.
|
Image |
setSourceSnapshotId(String sourceSnapshotId)
[Output Only] The ID value of the snapshot used to create this image.
|
Image |
setSourceType(String sourceType)
The type of the image used to create this disk.
|
Image |
setStatus(String status)
[Output Only] The status of the image.
|
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 Long getArchiveSizeBytes()
null for nonepublic Image setArchiveSizeBytes(Long archiveSizeBytes)
archiveSizeBytes - archiveSizeBytes or null for nonepublic String getCreationTimestamp()
null for nonepublic Image setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic DeprecationStatus getDeprecated()
null for nonepublic Image setDeprecated(DeprecationStatus deprecated)
deprecated - deprecated or null for nonepublic String getDescription()
null for nonepublic Image setDescription(String description)
description - description or null for nonepublic Long getDiskSizeGb()
null for nonepublic Image setDiskSizeGb(Long diskSizeGb)
diskSizeGb - diskSizeGb or null for nonepublic String getFamily()
null for nonepublic Image setFamily(String family)
family - family or null for nonepublic List<GuestOsFeature> getGuestOsFeatures()
null for nonepublic Image setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
guestOsFeatures - guestOsFeatures or null for nonepublic BigInteger getId()
null for nonepublic Image setId(BigInteger id)
id - id or null for nonepublic CustomerEncryptionKey getImageEncryptionKey()
null for nonepublic Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey)
imageEncryptionKey - imageEncryptionKey or null for nonepublic String getKind()
null for nonepublic Image setKind(String kind)
kind - kind or null for nonepublic String getLabelFingerprint()
null for nonedecodeLabelFingerprint()public byte[] decodeLabelFingerprint()
null for nonegetLabelFingerprint()public Image setLabelFingerprint(String labelFingerprint)
labelFingerprint - labelFingerprint or null for none#encodeLabelFingerprint()public Image encodeLabelFingerprint(byte[] labelFingerprint)
The value is encoded Base64 or {@code null} for none.
public Map<String,String> getLabels()
null for nonepublic Image setLabels(Map<String,String> labels)
labels - labels or null for nonepublic List<Long> getLicenseCodes()
null for nonepublic Image setLicenseCodes(List<Long> licenseCodes)
licenseCodes - licenseCodes or null for nonepublic List<String> getLicenses()
null for nonepublic Image setLicenses(List<String> licenses)
licenses - licenses or null for nonepublic String getName()
null for nonepublic Image setName(String name)
name - name or null for nonepublic Image.RawDisk getRawDisk()
null for nonepublic Image setRawDisk(Image.RawDisk rawDisk)
rawDisk - rawDisk or null for nonepublic String getSelfLink()
null for nonepublic Image setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getSourceDisk()
null for nonepublic Image setSourceDisk(String sourceDisk)
sourceDisk - sourceDisk or null for nonepublic CustomerEncryptionKey getSourceDiskEncryptionKey()
null for nonepublic Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
sourceDiskEncryptionKey - sourceDiskEncryptionKey or null for nonepublic String getSourceDiskId()
null for nonepublic Image setSourceDiskId(String sourceDiskId)
sourceDiskId - sourceDiskId or null for nonepublic String getSourceImage()
null for nonepublic Image setSourceImage(String sourceImage)
sourceImage - sourceImage or null for nonepublic CustomerEncryptionKey getSourceImageEncryptionKey()
null for nonepublic Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
sourceImageEncryptionKey - sourceImageEncryptionKey or null for nonepublic String getSourceImageId()
null for nonepublic Image setSourceImageId(String sourceImageId)
sourceImageId - sourceImageId or null for nonepublic String getSourceSnapshot()
null for nonepublic Image setSourceSnapshot(String sourceSnapshot)
sourceSnapshot - sourceSnapshot or null for nonepublic CustomerEncryptionKey getSourceSnapshotEncryptionKey()
null for nonepublic Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
sourceSnapshotEncryptionKey - sourceSnapshotEncryptionKey or null for nonepublic String getSourceSnapshotId()
null for nonepublic Image setSourceSnapshotId(String sourceSnapshotId)
sourceSnapshotId - sourceSnapshotId or null for nonepublic String getSourceType()
null for nonepublic Image setSourceType(String sourceType)
sourceType - sourceType or null for nonepublic String getStatus()
null for nonepublic Image setStatus(String status)
status - status or null for nonepublic Image set(String fieldName, Object value)
set in class GenericJsonpublic Image clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.