Class ResourceRequirements (0.1.0)

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

ResourceRequirements describes the compute resource requirements.

Attributes

NameDescription
limits Sequence[google.cloud.run_v2.types.ResourceRequirements.LimitsEntry]
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
cpu_idle bool
Determines whether CPU should be throttled or not outside of requests.

Classes

LimitsEntry

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

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.