Disk(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A new persistent disk or a local ssd. A VM can only have one local SSD setting but multiple local SSD partitions. https://cloud.google.com/compute/docs/disks#pdspecs. https://cloud.google.com/compute/docs/disks#localssds.
This message has oneof
_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes
Name | Description |
image |
str
Name of a public or custom image used as the data source. This field is a member of `oneof`_ ``data_source``. |
snapshot |
str
Name of a snapshot used as the data source. This field is a member of `oneof`_ ``data_source``. |
type_ |
str
Disk type as shown in ``gcloud compute disk-types list`` For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd". |
size_gb |
int
Disk size in GB. This field is ignored if ``data_source`` is ``disk`` or ``image``. If ``type`` is ``local-ssd``, size_gb should be a multiple of 375GB, otherwise, the final size will be the next greater multiple of 375 GB. |
disk_interface |
str
Local SSDs are available through both "SCSI" and "NVMe" interfaces. If not indicated, "NVMe" will be the default one for local ssds. We only support "SCSI" for persistent disks now. |