@Generated(value="by GAPIC") @BetaApi public final class Image extends Object implements ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
Image.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ApiMessage |
getApiMessageRequestBody() |
String |
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.
|
static Image |
getDefaultInstance() |
DeprecationStatus |
getDeprecated()
The deprecation status associated with this image.
|
String |
getDescription()
An optional description of this resource.
|
String |
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<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
List<GuestOsFeature> |
getGuestOsFeaturesList()
A list of features to enable on the guest operating system.
|
String |
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> |
getLabelsMap()
Labels to apply to this image.
|
List<String> |
getLicenseCodesList()
Integer license codes indicating which licenses are attached to this image.
|
List<String> |
getLicensesList()
Any applicable license URI.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
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.
|
int |
hashCode() |
static Image.Builder |
newBuilder() |
static Image.Builder |
newBuilder(Image prototype) |
Image.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface ApiMessage
@Nullable public ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface ApiMessage
public String getArchiveSizeBytes()
public String getCreationTimestamp()
public DeprecationStatus getDeprecated()
public String getDescription()
public String getDiskSizeGb()
public String getFamily()
public List<GuestOsFeature> getGuestOsFeaturesList()
public String getId()
public CustomerEncryptionKey getImageEncryptionKey()
After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image).
Customer-supplied encryption keys do not protect access to metadata of the disk.
If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later.
public String getKind()
public String getLabelFingerprint()
To see the latest fingerprint, make a get() request to retrieve an image.
public Map<String,String> getLabelsMap()
public List<String> getLicenseCodesList()
public String getName()
public RawDisk getRawDisk()
public String getSelfLink()
public String getSourceDisk()
public CustomerEncryptionKey getSourceDiskEncryptionKey()
public String getSourceDiskId()
public String getSourceImage()
public CustomerEncryptionKey getSourceImageEncryptionKey()
public String getSourceImageId()
public String getSourceSnapshot()
public CustomerEncryptionKey getSourceSnapshotEncryptionKey()
public String getSourceSnapshotId()
public String getSourceType()
public String getStatus()
public static Image.Builder newBuilder()
public static Image.Builder newBuilder(Image prototype)
public Image.Builder toBuilder()
public static Image getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.