Modifier and Type | Method and Description |
---|---|
Image.Builder |
addAllGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
A list of features to enable on the guest operating system.
|
Image.Builder |
addAllLicenseCodes(List<String> licenseCodes)
Integer license codes indicating which licenses are attached to this image.
|
Image.Builder |
addAllLicenses(List<String> licenses)
Any applicable license URI.
|
Image.Builder |
addGuestOsFeatures(GuestOsFeature guestOsFeatures)
A list of features to enable on the guest operating system.
|
Image.Builder |
addLicenseCodes(String licenseCodes)
Integer license codes indicating which licenses are attached to this image.
|
Image.Builder |
addLicenses(String licenses)
Any applicable license URI.
|
Image |
build() |
Image.Builder |
clone() |
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.
|
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<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.
|
Image.Builder |
mergeFrom(Image other) |
Image.Builder |
putAllLabels(Map<String,String> labels)
Labels to apply to this image.
|
Image.Builder |
setArchiveSizeBytes(String archiveSizeBytes)
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
Image.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Image.Builder |
setDeprecated(DeprecationStatus deprecated)
The deprecation status associated with this image.
|
Image.Builder |
setDescription(String description)
An optional description of this resource.
|
Image.Builder |
setDiskSizeGb(String diskSizeGb)
Size of the image when restored onto a persistent disk (in GB).
|
Image.Builder |
setFamily(String family)
The name of the image family to which this image belongs.
|
Image.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
Image.Builder |
setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey)
Encrypts the image using a customer-supplied encryption key.
|
Image.Builder |
setKind(String kind)
[Output Only] Type of the resource.
|
Image.Builder |
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.Builder |
setName(String name)
Name of the resource; provided by the client when the resource is created.
|
Image.Builder |
setRawDisk(RawDisk rawDisk)
The parameters of the raw disk image.
|
Image.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
Image.Builder |
setSourceDisk(String sourceDisk)
URL of the source disk used to create this image.
|
Image.Builder |
setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
The customer-supplied encryption key of the source disk.
|
Image.Builder |
setSourceDiskId(String sourceDiskId)
[Output Only] The ID value of the disk used to create this image.
|
Image.Builder |
setSourceImage(String sourceImage)
URL of the source image used to create this image.
|
Image.Builder |
setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
The customer-supplied encryption key of the source image.
|
Image.Builder |
setSourceImageId(String sourceImageId)
[Output Only] The ID value of the image used to create this image.
|
Image.Builder |
setSourceSnapshot(String sourceSnapshot)
URL of the source snapshot used to create this image.
|
Image.Builder |
setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
The customer-supplied encryption key of the source snapshot.
|
Image.Builder |
setSourceSnapshotId(String sourceSnapshotId)
[Output Only] The ID value of the snapshot used to create this image.
|
Image.Builder |
setSourceType(String sourceType)
The type of the image used to create this disk.
|
Image.Builder |
setStatus(String status)
[Output Only] The status of the image.
|
public Image.Builder mergeFrom(Image other)
public String getArchiveSizeBytes()
public Image.Builder setArchiveSizeBytes(String archiveSizeBytes)
public String getCreationTimestamp()
public Image.Builder setCreationTimestamp(String creationTimestamp)
public DeprecationStatus getDeprecated()
public Image.Builder setDeprecated(DeprecationStatus deprecated)
public String getDescription()
public Image.Builder setDescription(String description)
public String getDiskSizeGb()
public Image.Builder setDiskSizeGb(String diskSizeGb)
public String getFamily()
public Image.Builder setFamily(String family)
public List<GuestOsFeature> getGuestOsFeaturesList()
public Image.Builder addAllGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
public Image.Builder addGuestOsFeatures(GuestOsFeature guestOsFeatures)
public String getId()
public Image.Builder setId(String id)
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 Image.Builder setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey)
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 Image.Builder setKind(String kind)
public String getLabelFingerprint()
To see the latest fingerprint, make a get() request to retrieve an image.
public Image.Builder setLabelFingerprint(String labelFingerprint)
To see the latest fingerprint, make a get() request to retrieve an image.
public Map<String,String> getLabelsMap()
public Image.Builder putAllLabels(Map<String,String> labels)
public List<String> getLicenseCodesList()
public Image.Builder addAllLicenseCodes(List<String> licenseCodes)
public Image.Builder addLicenseCodes(String licenseCodes)
public Image.Builder addAllLicenses(List<String> licenses)
public Image.Builder addLicenses(String licenses)
public String getName()
public Image.Builder setName(String name)
public RawDisk getRawDisk()
public Image.Builder setRawDisk(RawDisk rawDisk)
public String getSelfLink()
public Image.Builder setSelfLink(String selfLink)
public String getSourceDisk()
public Image.Builder setSourceDisk(String sourceDisk)
public CustomerEncryptionKey getSourceDiskEncryptionKey()
public Image.Builder setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
public String getSourceDiskId()
public Image.Builder setSourceDiskId(String sourceDiskId)
public String getSourceImage()
public Image.Builder setSourceImage(String sourceImage)
public CustomerEncryptionKey getSourceImageEncryptionKey()
public Image.Builder setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)
public String getSourceImageId()
public Image.Builder setSourceImageId(String sourceImageId)
public String getSourceSnapshot()
public Image.Builder setSourceSnapshot(String sourceSnapshot)
public CustomerEncryptionKey getSourceSnapshotEncryptionKey()
public Image.Builder setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)
public String getSourceSnapshotId()
public Image.Builder setSourceSnapshotId(String sourceSnapshotId)
public String getSourceType()
public Image.Builder setSourceType(String sourceType)
public String getStatus()
public Image.Builder setStatus(String status)
public Image build()
public Image.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.