Class SavedAttachedDisk (1.16.1)

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

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

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

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 MutableSequence[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 MutableSequence[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.

Values: UNDEFINED_INTERFACE (0): A value indicating that the enum field is not set. NVME (2408800): No description available. SCSI (2539686): No description available.

Mode

Mode(value)

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

Values: UNDEFINED_MODE (0): A value indicating that the enum field is not set. READ_ONLY (91950261): Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time. READ_WRITE (173607894): [Default] Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode.

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.

Values: UNDEFINED_STORAGE_BYTES_STATUS (0): A value indicating that the enum field is not set. UPDATING (494614342): No description available. UP_TO_DATE (101306702): No description available.

Type

Type(value)

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

Values: UNDEFINED_TYPE (0): A value indicating that the enum field is not set. PERSISTENT (460683927): No description available. SCRATCH (496778970): No description available.