public class Image extends ImageInfo
Image object with the most recent information use
reload(com.google.cloud.compute.deprecated.Compute.ImageOption...). Image adds a layer of service-related functionality over ImageInfo.| Modifier and Type | Class and Description |
|---|---|
static class |
Image.Builder
A builder for
Image objects. |
ImageInfo.Status| Modifier and Type | Method and Description |
|---|---|
Operation |
delete(Compute.OperationOption... options)
Deletes this image.
|
Operation |
deprecate(DeprecationStatus<ImageId> deprecationStatus,
Compute.OperationOption... options)
Deprecates this image.
|
boolean |
equals(Object obj) |
boolean |
exists()
Checks if this image exists.
|
Compute |
getCompute()
Returns the image's
Compute object used to issue requests. |
int |
hashCode() |
Image |
reload(Compute.ImageOption... options)
Fetches current image' latest information.
|
Image.Builder |
toBuilder()
Returns a builder for the current image.
|
getConfiguration, getCreationTimestamp, getDeprecationStatus, getDescription, getDiskSizeGb, getGeneratedId, getImageId, getLicenses, getStatus, newBuilder, of, toStringpublic boolean exists()
true if this image exists, false otherwiseComputeException - upon failurepublic Image reload(Compute.ImageOption... options)
null if the image does not exist.options - image optionsImage object with latest information or null if not foundComputeException - upon failurepublic Operation delete(Compute.OperationOption... options)
null if the
image was not foundComputeException - upon failure or if this image is a publicly-available imagepublic Operation deprecate(DeprecationStatus<ImageId> deprecationStatus, Compute.OperationOption... options)
null if
the image was not foundComputeException - upon failure or if this image is a publicly-available imagepublic Compute getCompute()
Compute object used to issue requests.public Image.Builder toBuilder()
ImageInfoCopyright © 2019 Google LLC. All rights reserved.