Class ResourceCommitment (1.18.0)

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

Commitment for a particular resource (a Commitment is composed of one or more of these).

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

Attributes

NameDescription
accelerator_type str
Name of the accelerator type resource. Applicable only when the type is ACCELERATOR. This field is a member of oneof_ _accelerator_type.
amount int
The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU. This field is a member of oneof_ _amount.
type_ str
Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. Check the Type enum for the list of possible values. This field is a member of oneof_ _type.

Classes

Type

Type(value)

Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.

Values: UNDEFINED_TYPE (0): A value indicating that the enum field is not set. ACCELERATOR (429815371): No description available. LOCAL_SSD (508934896): No description available. MEMORY (123056385): No description available. UNSPECIFIED (526786327): No description available. VCPU (2628978): No description available.