@Generated(value="by GAPIC") @BetaApi public final class AttachedDiskInitializeParams extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
AttachedDiskInitializeParams.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
static AttachedDiskInitializeParams |
getDefaultInstance() |
String |
getDescription()
An optional description.
|
String |
getDiskName()
Specifies the disk name.
|
String |
getDiskSizeGb()
Specifies the size of the disk in base-2 GB.
|
String |
getDiskType()
Specifies the disk type to use to create the instance.
|
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
Map<String,String> |
getLabelsMap()
Labels to apply to this disk.
|
List<String> |
getResourcePoliciesList()
Resource policies applied to this disk for automatic snapshot creations.
|
String |
getSourceImage()
The source image to create this disk.
|
CustomerEncryptionKey |
getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
String |
getSourceSnapshot()
The source snapshot to create this disk.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
int |
hashCode() |
static AttachedDiskInitializeParams.Builder |
newBuilder() |
static AttachedDiskInitializeParams.Builder |
newBuilder(AttachedDiskInitializeParams prototype) |
AttachedDiskInitializeParams.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 getDescription()
public String getDiskName()
public String getDiskSizeGb()
public String getDiskType()
Other values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL.
public Map<String,String> getLabelsMap()
public List<String> getResourcePoliciesList()
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
If the source image is deleted later, this field will not be set.
public CustomerEncryptionKey getSourceImageEncryptionKey()
Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
public String getSourceSnapshot()
To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup
If the source snapshot is deleted later, this field will not be set.
public CustomerEncryptionKey getSourceSnapshotEncryptionKey()
public static AttachedDiskInitializeParams.Builder newBuilder()
public static AttachedDiskInitializeParams.Builder newBuilder(AttachedDiskInitializeParams prototype)
public AttachedDiskInitializeParams.Builder toBuilder()
public static AttachedDiskInitializeParams getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.