public abstract class ImageConfiguration extends Object implements Serializable
DiskImageConfiguration
to
create an image from an existing Google Compute Engine disk. Use StorageImageConfiguration
to create an image from a file stored in Google Cloud Storage.Modifier and Type | Class and Description |
---|---|
static class |
ImageConfiguration.Builder<T extends ImageConfiguration,B extends ImageConfiguration.Builder<T,B>>
Base builder for image configurations.
|
static class |
ImageConfiguration.SourceType
Image source type.
|
static class |
ImageConfiguration.Type
Type of a Google Compute Engine image.
|
Modifier and Type | Method and Description |
---|---|
Long |
getArchiveSizeBytes()
Returns the size of the image archive stored in Google Cloud Storage (in bytes).
|
ImageConfiguration.SourceType |
getSourceType()
Returns the source type of the disk.
|
ImageConfiguration.Type |
getType()
Returns the image's type.
|
abstract ImageConfiguration.Builder |
toBuilder()
Returns a builder for the object.
|
String |
toString() |
public ImageConfiguration.Type getType()
ImageConfiguration.Type.DISK
if this image was created from
an existing disk. This method returns ImageConfiguration.Type.STORAGE
if this image was created from a
file in Google Cloud Storage.public ImageConfiguration.SourceType getSourceType()
ImageConfiguration.SourceType.RAW
.public Long getArchiveSizeBytes()
public abstract ImageConfiguration.Builder toBuilder()
Copyright © 2019 Google LLC. All rights reserved.