Interface AttachedDiskOrBuilder (0.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface AttachedDiskOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
getAutoDelete()
publicabstractbooleangetAutoDelete()Optional. 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The autoDelete. |
getBoot()
publicabstractbooleangetBoot()Optional. 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 = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The boot. |
getDeviceName()
publicabstractStringgetDeviceName()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The deviceName. |
getDeviceNameBytes()
publicabstractByteStringgetDeviceNameBytes()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for deviceName. |
getDiskEncryptionKey()
publicabstractCustomerEncryptionKeygetDiskEncryptionKey()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey |
The diskEncryptionKey. |
getDiskEncryptionKeyOrBuilder()
publicabstractCustomerEncryptionKeyOrBuildergetDiskEncryptionKeyOrBuilder()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKeyOrBuilder |
|
getDiskInterface()
publicabstractAttachedDisk.DiskInterfacegetDiskInterface()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskInterface |
The diskInterface. |
getDiskInterfaceValue()
publicabstractintgetDiskInterfaceValue()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for diskInterface. |
getDiskSizeGb()
publicabstractlonggetDiskSizeGb()Optional. The size of the disk in GB.
optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The diskSizeGb. |
getDiskType()
publicabstractStringgetDiskType()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The diskType. |
getDiskTypeBytes()
publicabstractByteStringgetDiskTypeBytes()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for diskType. |
getDiskTypeDeprecated() (deprecated)
publicabstractAttachedDisk.DiskTypegetDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskType |
The diskTypeDeprecated. |
getDiskTypeDeprecatedValue() (deprecated)
publicabstractintgetDiskTypeDeprecatedValue()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for diskTypeDeprecated. |
getGuestOsFeature(int index)
publicabstractGuestOsFeaturegetGuestOsFeature(intindex)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature |
|
getGuestOsFeatureCount()
publicabstractintgetGuestOsFeatureCount()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getGuestOsFeatureList()
publicabstractList<GuestOsFeature>getGuestOsFeatureList()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<GuestOsFeature> |
|
getGuestOsFeatureOrBuilder(int index)
publicabstractGuestOsFeatureOrBuildergetGuestOsFeatureOrBuilder(intindex)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeatureOrBuilder |
|
getGuestOsFeatureOrBuilderList()
publicabstractList<?extendsGuestOsFeatureOrBuilder>getGuestOsFeatureOrBuilderList()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.backupdr.v1.GuestOsFeatureOrBuilder> |
|
getIndex()
publicabstractlonggetIndex()Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The index. |
getInitializeParams()
publicabstractAttachedDisk.InitializeParamsgetInitializeParams()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParams |
The initializeParams. |
getInitializeParamsOrBuilder()
publicabstractAttachedDisk.InitializeParamsOrBuildergetInitializeParamsOrBuilder()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParamsOrBuilder |
|
getKind()
publicabstractStringgetKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
publicabstractByteStringgetKindBytes()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getLicense(int index)
publicabstractStringgetLicense(intindex)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The license at the given index. |
getLicenseBytes(int index)
publicabstractByteStringgetLicenseBytes(intindex)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the license at the given index. |
getLicenseCount()
publicabstractintgetLicenseCount()Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of license. |
getLicenseList()
publicabstractList<String>getLicenseList()Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the license. |
getMode()
publicabstractAttachedDisk.DiskModegetMode()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskMode |
The mode. |
getModeValue()
publicabstractintgetModeValue()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for mode. |
getSavedState()
publicabstractAttachedDisk.DiskSavedStategetSavedState()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskSavedState |
The savedState. |
getSavedStateValue()
publicabstractintgetSavedStateValue()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for savedState. |
getSource()
publicabstractStringgetSource()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The source. |
getSourceBytes()
publicabstractByteStringgetSourceBytes()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for source. |
getType()
publicabstractAttachedDisk.DiskTypegetType()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskType |
The type. |
getTypeValue()
publicabstractintgetTypeValue()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
hasAutoDelete()
publicabstractbooleanhasAutoDelete()Optional. 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the autoDelete field is set. |
hasBoot()
publicabstractbooleanhasBoot()Optional. 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 = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the boot field is set. |
hasDeviceName()
publicabstractbooleanhasDeviceName()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the deviceName field is set. |
hasDiskEncryptionKey()
publicabstractbooleanhasDiskEncryptionKey()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskEncryptionKey field is set. |
hasDiskInterface()
publicabstractbooleanhasDiskInterface()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskInterface field is set. |
hasDiskSizeGb()
publicabstractbooleanhasDiskSizeGb()Optional. The size of the disk in GB.
optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskSizeGb field is set. |
hasDiskType()
publicabstractbooleanhasDiskType()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskType field is set. |
hasDiskTypeDeprecated() (deprecated)
publicabstractbooleanhasDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskTypeDeprecated field is set. |
hasIndex()
publicabstractbooleanhasIndex()Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the index field is set. |
hasInitializeParams()
publicabstractbooleanhasInitializeParams()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the initializeParams field is set. |
hasKind()
publicabstractbooleanhasKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kind field is set. |
hasMode()
publicabstractbooleanhasMode()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the mode field is set. |
hasSavedState()
publicabstractbooleanhasSavedState()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the savedState field is set. |
hasSource()
publicabstractbooleanhasSource()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the source field is set. |
hasType()
publicabstractbooleanhasType()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the type field is set. |