Class SavedAttachedDisk (1.6.1)

SavedAttachedDisk(mapping=None, *, ignore_unknown_fields=False, **kwargs)

DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.

Attributes

NameDescription
auto_delete bool
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). This field is a member of oneof_ _auto_delete.
boot bool
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. This field is a member of oneof_ _boot.
device_name str
Specifies the name of the disk attached to the source instance. This field is a member of oneof_ _device_name.
disk_encryption_key google.cloud.compute_v1.types.CustomerEncryptionKey
The encryption key for the disk. This field is a member of oneof_ _disk_encryption_key.
disk_size_gb int
The size of the disk in base-2 GB. This field is a member of oneof_ _disk_size_gb.
disk_type str
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd This field is a member of oneof_ _disk_type.
guest_os_features Sequence[google.cloud.compute_v1.types.GuestOsFeature]
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.
index int
Specifies zero-based index of the disk that is attached to the source instance. This field is a member of oneof_ _index.
interface str
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values. This field is a member of oneof_ _interface.
kind str
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks. This field is a member of oneof_ _kind.
licenses Sequence[str]
[Output Only] Any valid publicly visible licenses.
mode str
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values. This field is a member of oneof_ _mode.
source str
Specifies a URL of the disk attached to the source instance. This field is a member of oneof_ _source.
storage_bytes int
[Output Only] A size of the storage used by the disk's snapshot by this machine image. This field is a member of oneof_ _storage_bytes.
storage_bytes_status str
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values. This field is a member of oneof_ _storage_bytes_status.
type_ str
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values. This field is a member of oneof_ _type.

Classes

Interface

Interface(value)

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.

Mode

Mode(value)

The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.

StorageBytesStatus

StorageBytesStatus(value)

[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.

Type

Type(value)

Specifies the type of the attached disk, either SCRATCH or PERSISTENT.