public final class Image
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
| Modifier and Type | Class and Description |
|---|---|
static class |
Image.RawDisk
The parameters of the raw disk image.
|
com.google.api.client.util.GenericData.Flags| 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.
|
java.lang.Long |
getArchiveSizeBytes()
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
DeprecationStatus |
getDeprecated()
The deprecation status associated with this image.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
java.lang.Long |
getDiskSizeGb()
Size of the image when restored onto a persistent disk (in GB).
|
java.lang.String |
getFamily()
The name of the image family to which this image belongs.
|
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.
|
CustomerEncryptionKey |
getImageEncryptionKey()
Encrypts the image using a customer-supplied encryption key.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
java.lang.String |
getLabelFingerprint()
A fingerprint for the labels being applied to this image, which is essentially a hash of the
labels used for optimistic locking.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Labels to apply to this image.
|
java.util.List<java.lang.Long> |
getLicenseCodes()
Integer license codes indicating which licenses are attached to this image.
|
java.util.List<java.lang.String> |
getLicenses()
Any applicable license URI.
|
java.lang.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.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.lang.String |
getSourceDisk()
URL of the source disk used to create this image.
|
CustomerEncryptionKey |
getSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk.
|
java.lang.String |
getSourceDiskId()
[Output Only] The ID value of the disk used to create this image.
|
java.lang.String |
getSourceImage()
URL of the source image used to create this image.
|
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 image.
|
java.lang.String |
getSourceSnapshot()
URL of the source snapshot used to create this image.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
java.lang.String |
getSourceSnapshotId()
[Output Only] The ID value of the snapshot used to create this image.
|
java.lang.String |
getSourceType()
The type of the image used to create this disk.
|
java.lang.String |
getStatus()
[Output Only] The status of the image.
|
java.util.List<java.lang.String> |
getStorageLocations()
Cloud Storage bucket storage location of the image (regional or multi-regional).
|
Image |
set(java.lang.String fieldName,
java.lang.Object value) |
Image |
setArchiveSizeBytes(java.lang.Long archiveSizeBytes)
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
Image |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Image |
setDeprecated(DeprecationStatus deprecated)
The deprecation status associated with this image.
|
Image |
setDescription(java.lang.String description)
An optional description of this resource.
|
Image |
setDiskSizeGb(java.lang.Long diskSizeGb)
Size of the image when restored onto a persistent disk (in GB).
|
Image |
setFamily(java.lang.String family)
The name of the image family to which this image belongs.
|
Image |
setGuestOsFeatures(java.util.List<GuestOsFeature> guestOsFeatures)
A list of features to enable on the guest operating system.
|
Image |
setId(java.math.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(java.lang.String kind)
[Output Only] Type of the resource.
|
Image |
setLabelFingerprint(java.lang.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(java.util.Map<java.lang.String,java.lang.String> labels)
Labels to apply to this image.
|
Image |
setLicenseCodes(java.util.List<java.lang.Long> licenseCodes)
Integer license codes indicating which licenses are attached to this image.
|
Image |
setLicenses(java.util.List<java.lang.String> licenses)
Any applicable license URI.
|
Image |
setName(java.lang.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(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
Image |
setSourceDisk(java.lang.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(java.lang.String sourceDiskId)
[Output Only] The ID value of the disk used to create this image.
|
Image |
setSourceImage(java.lang.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(java.lang.String sourceImageId)
[Output Only] The ID value of the image used to create this image.
|
Image |
setSourceSnapshot(java.lang.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(java.lang.String sourceSnapshotId)
[Output Only] The ID value of the snapshot used to create this image.
|
Image |
setSourceType(java.lang.String sourceType)
The type of the image used to create this disk.
|
Image |
setStatus(java.lang.String status)
[Output Only] The status of the image.
|
Image |
setStorageLocations(java.util.List<java.lang.String> storageLocations)
Cloud Storage bucket storage location of the image (regional or multi-regional).
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Long getArchiveSizeBytes()
null for nonepublic Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes)
archiveSizeBytes - archiveSizeBytes or null for nonepublic java.lang.String getCreationTimestamp()
null for nonepublic Image setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic DeprecationStatus getDeprecated()
null for nonepublic Image setDeprecated(DeprecationStatus deprecated)
deprecated - deprecated or null for nonepublic java.lang.String getDescription()
null for nonepublic Image setDescription(java.lang.String description)
description - description or null for nonepublic java.lang.Long getDiskSizeGb()
null for nonepublic Image setDiskSizeGb(java.lang.Long diskSizeGb)
diskSizeGb - diskSizeGb or null for nonepublic java.lang.String getFamily()
null for nonepublic Image setFamily(java.lang.String family)
family - family or null for nonepublic java.util.List<GuestOsFeature> getGuestOsFeatures()
null for nonepublic Image setGuestOsFeatures(java.util.List<GuestOsFeature> guestOsFeatures)
guestOsFeatures - guestOsFeatures or null for nonepublic java.math.BigInteger getId()
null for nonepublic Image setId(java.math.BigInteger id)
id - id or null for nonepublic CustomerEncryptionKey getImageEncryptionKey()
null for nonepublic Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey)
imageEncryptionKey - imageEncryptionKey or null for nonepublic java.lang.String getKind()
null for nonepublic Image 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 Image setLabelFingerprint(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getLabels()
null for nonepublic Image setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels - labels or null for nonepublic java.util.List<java.lang.Long> getLicenseCodes()
null for nonepublic Image setLicenseCodes(java.util.List<java.lang.Long> licenseCodes)
licenseCodes - licenseCodes or null for nonepublic java.util.List<java.lang.String> getLicenses()
null for nonepublic Image setLicenses(java.util.List<java.lang.String> licenses)
licenses - licenses or null for nonepublic java.lang.String getName()
null for nonepublic Image setName(java.lang.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 java.lang.String getSelfLink()
null for nonepublic Image setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getSourceDisk()
null for nonepublic Image setSourceDisk(java.lang.String sourceDisk)
sourceDisk - sourceDisk or null for nonepublic CustomerEncryptionKey getSourceDiskEncryptionKey()
null for nonepublic Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
sourceDiskEncryptionKey - sourceDiskEncryptionKey or null for nonepublic java.lang.String getSourceDiskId()
null for nonepublic Image setSourceDiskId(java.lang.String sourceDiskId)
sourceDiskId - sourceDiskId or null for nonepublic java.lang.String getSourceImage()
null for nonepublic Image setSourceImage(java.lang.String sourceImage)
sourceImage - sourceImage or null for nonepublic CustomerEncryptionKey getSourceImageEncryptionKey()
null for nonepublic Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
sourceImageEncryptionKey - sourceImageEncryptionKey or null for nonepublic java.lang.String getSourceImageId()
null for nonepublic Image setSourceImageId(java.lang.String sourceImageId)
sourceImageId - sourceImageId or null for nonepublic java.lang.String getSourceSnapshot()
null for nonepublic Image setSourceSnapshot(java.lang.String sourceSnapshot)
sourceSnapshot - sourceSnapshot or null for nonepublic CustomerEncryptionKey getSourceSnapshotEncryptionKey()
null for nonepublic Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
sourceSnapshotEncryptionKey - sourceSnapshotEncryptionKey or null for nonepublic java.lang.String getSourceSnapshotId()
null for nonepublic Image setSourceSnapshotId(java.lang.String sourceSnapshotId)
sourceSnapshotId - sourceSnapshotId or null for nonepublic java.lang.String getSourceType()
null for nonepublic Image setSourceType(java.lang.String sourceType)
sourceType - sourceType or null for nonepublic java.lang.String getStatus()
null for nonepublic Image setStatus(java.lang.String status)
status - status or null for nonepublic java.util.List<java.lang.String> getStorageLocations()
null for nonepublic Image setStorageLocations(java.util.List<java.lang.String> storageLocations)
storageLocations - storageLocations or null for nonepublic Image set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Image clone()
clone in class com.google.api.client.json.GenericJson