- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public interface AttachedDiskOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getArchitecture()
public abstract String getArchitecture()
[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;
Type | Description |
String | The architecture. |
getArchitectureBytes()
public abstract ByteString getArchitectureBytes()
[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;
Type | Description |
ByteString | The bytes for architecture. |
getAutoDelete()
public abstract boolean getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;
Type | Description |
boolean | The autoDelete. |
getBoot()
public abstract boolean getBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;
Type | Description |
boolean | The boot. |
getDeviceName()
public abstract String getDeviceName()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;
Type | Description |
String | The deviceName. |
getDeviceNameBytes()
public abstract ByteString getDeviceNameBytes()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;
Type | Description |
ByteString | The bytes for deviceName. |
getDiskEncryptionKey()
public abstract CustomerEncryptionKey getDiskEncryptionKey()
Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, 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. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
Type | Description |
CustomerEncryptionKey | The diskEncryptionKey. |
getDiskEncryptionKeyOrBuilder()
public abstract CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()
Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, 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. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
Type | Description |
CustomerEncryptionKeyOrBuilder |
getDiskSizeGb()
public abstract long getDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;
Type | Description |
long | The diskSizeGb. |
getGuestOsFeatures(int index)
public abstract GuestOsFeature getGuestOsFeatures(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
Name | Description |
index | int |
Type | Description |
GuestOsFeature |
getGuestOsFeaturesCount()
public abstract int getGuestOsFeaturesCount()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
Type | Description |
int |
getGuestOsFeaturesList()
public abstract List<GuestOsFeature> getGuestOsFeaturesList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
Type | Description |
List<GuestOsFeature> |
getGuestOsFeaturesOrBuilder(int index)
public abstract GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
Name | Description |
index | int |
Type | Description |
GuestOsFeatureOrBuilder |
getGuestOsFeaturesOrBuilderList()
public abstract List<? extends GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
Type | Description |
List<? extends com.google.cloud.compute.v1.GuestOsFeatureOrBuilder> |
getIndex()
public abstract int getIndex()
[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
optional int32 index = 100346066;
Type | Description |
int | The index. |
getInitializeParams()
public abstract AttachedDiskInitializeParams getInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.AttachedDiskInitializeParams initialize_params = 17697045;
Type | Description |
AttachedDiskInitializeParams | The initializeParams. |
getInitializeParamsOrBuilder()
public abstract AttachedDiskInitializeParamsOrBuilder getInitializeParamsOrBuilder()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.AttachedDiskInitializeParams initialize_params = 17697045;
Type | Description |
AttachedDiskInitializeParamsOrBuilder |
getInterface()
public abstract String getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
Type | Description |
String | The interface. |
getInterfaceBytes()
public abstract ByteString getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
Type | Description |
ByteString | The bytes for interface. |
getKind()
public abstract String getKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
Type | Description |
String | The kind. |
getKindBytes()
public abstract ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
Type | Description |
ByteString | The bytes for kind. |
getLicenses(int index)
public abstract String getLicenses(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The licenses at the given index. |
getLicensesBytes(int index)
public abstract ByteString getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the licenses at the given index. |
getLicensesCount()
public abstract int getLicensesCount()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
Type | Description |
int | The count of licenses. |
getLicensesList()
public abstract List<String> getLicensesList()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
Type | Description |
List<String> | A list containing the licenses. |
getMode()
public abstract String getMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Type | Description |
String | The mode. |
getModeBytes()
public abstract ByteString getModeBytes()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Type | Description |
ByteString | The bytes for mode. |
getShieldedInstanceInitialState()
public abstract InitialStateConfig getShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
Type | Description |
InitialStateConfig | The shieldedInstanceInitialState. |
getShieldedInstanceInitialStateOrBuilder()
public abstract InitialStateConfigOrBuilder getShieldedInstanceInitialStateOrBuilder()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
Type | Description |
InitialStateConfigOrBuilder |
getSource()
public abstract String getSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
optional string source = 177235995;
Type | Description |
String | The source. |
getSourceBytes()
public abstract ByteString getSourceBytes()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
optional string source = 177235995;
Type | Description |
ByteString | The bytes for source. |
getType()
public abstract String getType()
Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
Type | Description |
String | The type. |
getTypeBytes()
public abstract ByteString getTypeBytes()
Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
Type | Description |
ByteString | The bytes for type. |
hasArchitecture()
public abstract boolean hasArchitecture()
[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;
Type | Description |
boolean | Whether the architecture field is set. |
hasAutoDelete()
public abstract boolean hasAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;
Type | Description |
boolean | Whether the autoDelete field is set. |
hasBoot()
public abstract boolean hasBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;
Type | Description |
boolean | Whether the boot field is set. |
hasDeviceName()
public abstract boolean hasDeviceName()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;
Type | Description |
boolean | Whether the deviceName field is set. |
hasDiskEncryptionKey()
public abstract boolean hasDiskEncryptionKey()
Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, 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. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
Type | Description |
boolean | Whether the diskEncryptionKey field is set. |
hasDiskSizeGb()
public abstract boolean hasDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;
Type | Description |
boolean | Whether the diskSizeGb field is set. |
hasIndex()
public abstract boolean hasIndex()
[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
optional int32 index = 100346066;
Type | Description |
boolean | Whether the index field is set. |
hasInitializeParams()
public abstract boolean hasInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.AttachedDiskInitializeParams initialize_params = 17697045;
Type | Description |
boolean | Whether the initializeParams field is set. |
hasInterface()
public abstract boolean hasInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
Type | Description |
boolean | Whether the interface field is set. |
hasKind()
public abstract boolean hasKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
Type | Description |
boolean | Whether the kind field is set. |
hasMode()
public abstract boolean hasMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
Type | Description |
boolean | Whether the mode field is set. |
hasShieldedInstanceInitialState()
public abstract boolean hasShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
Type | Description |
boolean | Whether the shieldedInstanceInitialState field is set. |
hasSource()
public abstract boolean hasSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
optional string source = 177235995;
Type | Description |
boolean | Whether the source field is set. |
hasType()
public abstract boolean hasType()
Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
Type | Description |
boolean | Whether the type field is set. |