kubernetes_asyncio.client.models.v1_resource_requirements module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_resource_requirements.V1ResourceRequirements(claims=None, limits=None, requests=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'claims': 'claims', 'limits': 'limits', 'requests': 'requests'}
- property claims
Gets the claims of this V1ResourceRequirements. # noqa: E501
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This field depends on the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. # noqa: E501
- Returns:
The claims of this V1ResourceRequirements. # noqa: E501
- Return type:
list[CoreV1ResourceClaim]
- property limits
Gets the limits of this V1ResourceRequirements. # noqa: E501
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ # noqa: E501
- Returns:
The limits of this V1ResourceRequirements. # noqa: E501
- Return type:
dict(str, str)
- openapi_types = {'claims': 'list[CoreV1ResourceClaim]', 'limits': 'dict(str, str)', 'requests': 'dict(str, str)'}
- property requests
Gets the requests of this V1ResourceRequirements. # noqa: E501
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ # noqa: E501
- Returns:
The requests of this V1ResourceRequirements. # noqa: E501
- Return type:
dict(str, str)
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model