Class Disk (0.1.1)

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

A new persistent disk.

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

NameDescription
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".
size_gb int
Disk size in GB. This field is ignored if ``data_source`` is ``disk`` or ``image``.

Inheritance

builtins.object > proto.message.Message > Disk