@Generated(value="by GAPIC") @BetaApi public final class Disk extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
Disk.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
static Disk |
getDefaultInstance() |
String |
getDescription()
An optional description of this resource.
|
CustomerEncryptionKey |
getDiskEncryptionKey()
Encrypts the disk using a customer-supplied encryption key.
|
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.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getLabelFingerprint()
A fingerprint for the labels being applied to this disk, which is essentially a hash of the
labels set used for optimistic locking.
|
Map<String,String> |
getLabelsMap()
Labels to apply to this disk.
|
String |
getLastAttachTimestamp()
[Output Only] Last attach timestamp in RFC3339 text format.
|
String |
getLastDetachTimestamp()
[Output Only] Last detach timestamp in RFC3339 text format.
|
List<String> |
getLicenseCodesList()
Integer license codes indicating which licenses are attached to this disk.
|
List<String> |
getLicensesList()
A list of publicly visible licenses.
|
String |
getName()
Name of the resource.
|
String |
getOptions()
Internal use only.
|
String |
getPhysicalBlockSizeBytes()
Physical block size of the persistent disk, in bytes.
|
String |
getRegion()
[Output Only] URL of the region where the disk resides.
|
List<String> |
getReplicaZonesList()
URLs of the zones where the disk should be replicated to.
|
List<String> |
getResourcePoliciesList()
Resource policies applied to this disk for automatic snapshot creations.
|
String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
String |
getSizeGb()
Size of the persistent disk, specified in GB.
|
String |
getSourceImage()
The source image used to create this disk.
|
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 disk.
|
String |
getSourceSnapshot()
The source snapshot used to create this disk.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
String |
getSourceSnapshotId()
[Output Only] The unique ID of the snapshot used to create this disk.
|
String |
getStatus()
[Output Only] The status of disk creation.
|
String |
getType()
URL of the disk type resource describing which disk type to use to create the disk.
|
List<String> |
getUsersList()
[Output Only] Links to the users of the disk (attached instances) in form:
projects/project/zones/zone/instances/instance
|
String |
getZone()
[Output Only] URL of the zone where the disk resides.
|
int |
hashCode() |
static Disk.Builder |
newBuilder() |
static Disk.Builder |
newBuilder(Disk prototype) |
Disk.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 String getCreationTimestamp()
public String getDescription()
public CustomerEncryptionKey getDiskEncryptionKey()
After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot, to create a disk image, to create a machine image, or to attach the disk to a virtual machine).
Customer-supplied encryption keys do not protect access to metadata of the disk.
If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
public List<GuestOsFeature> getGuestOsFeaturesList()
public String getId()
public String getKind()
public String getLabelFingerprint()
To see the latest fingerprint, make a get() request to retrieve a disk.
public Map<String,String> getLabelsMap()
public String getLastAttachTimestamp()
public String getLastDetachTimestamp()
public List<String> getLicenseCodesList()
public List<String> getLicensesList()
public String getName()
public String getOptions()
public String getPhysicalBlockSizeBytes()
public String getRegion()
public List<String> getReplicaZonesList()
public List<String> getResourcePoliciesList()
public String getSelfLink()
public String getSizeGb()
If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot. Acceptable values are 1 to 65536, inclusive.
public String getSourceImage()
To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9
Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD
To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image
You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family
public CustomerEncryptionKey getSourceImageEncryptionKey()
public String getSourceImageId()
public String getSourceSnapshot()
public CustomerEncryptionKey getSourceSnapshotEncryptionKey()
public String getSourceSnapshotId()
public String getStatus()
public String getType()
public List<String> getUsersList()
public String getZone()
public static Disk.Builder newBuilder()
public static Disk.Builder newBuilder(Disk prototype)
public Disk.Builder toBuilder()
public static Disk getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.