@Generated(value="by GAPIC") @BetaApi public final class Snapshot extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
Snapshot.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
Boolean |
getAutoCreated()
[Output Only] Set to true if snapshots are automatically by applying resource policy on the
target disk.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
static Snapshot |
getDefaultInstance() |
String |
getDescription()
An optional description of this resource.
|
String |
getDiskSizeGb()
[Output Only] Size of the snapshot, specified in GB.
|
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
String |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getLabelFingerprint()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the
labels set used for optimistic locking.
|
Map<String,String> |
getLabelsMap()
Labels to apply to this snapshot.
|
List<String> |
getLicenseCodesList()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
|
List<String> |
getLicensesList()
[Output Only] A list of public visible licenses that apply to this snapshot.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
CustomerEncryptionKey |
getSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key.
|
String |
getSourceDisk()
[Output Only] The source disk used to create this snapshot.
|
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 snapshot.
|
String |
getStatus()
[Output Only] The status of the snapshot.
|
String |
getStorageBytes()
[Output Only] A size of the storage used by the snapshot.
|
String |
getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation.
|
List<String> |
getStorageLocationsList()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
|
int |
hashCode() |
static Snapshot.Builder |
newBuilder() |
static Snapshot.Builder |
newBuilder(Snapshot prototype) |
Snapshot.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public com.google.api.gax.httpjson.ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface com.google.api.gax.httpjson.ApiMessage
public Boolean getAutoCreated()
public String getCreationTimestamp()
public String getDescription()
public String getDiskSizeGb()
public String getId()
public String getKind()
public String getLabelFingerprint()
To see the latest fingerprint, make a get() request to retrieve a snapshot.
public Map<String,String> getLabelsMap()
public List<String> getLicenseCodesList()
public List<String> getLicensesList()
public String getName()
public String getSelfLink()
public CustomerEncryptionKey getSnapshotEncryptionKey()
After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request.
Customer-supplied encryption keys do not protect access to metadata of the snapshot.
If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
public String getSourceDisk()
public CustomerEncryptionKey getSourceDiskEncryptionKey()
public String getSourceDiskId()
public String getStatus()
public String getStorageBytes()
public String getStorageBytesStatus()
public List<String> getStorageLocationsList()
public static Snapshot.Builder newBuilder()
public static Snapshot.Builder newBuilder(Snapshot prototype)
public Snapshot.Builder toBuilder()
public static Snapshot getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.