kubernetes_asyncio.client.models.v1_resource_status 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_status.V1ResourceStatus(name=None, resources=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'name': 'name', 'resources': 'resources'}
property name

Gets the name of this V1ResourceStatus. # noqa: E501

Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be “claim:<claim_name>/<request>”. When this status is reported about a container, the “claim_name” and “request” must match one of the claims of this container. # noqa: E501

Returns:

The name of this V1ResourceStatus. # noqa: E501

Return type:

str

openapi_types = {'name': 'str', 'resources': 'list[V1ResourceHealth]'}
property resources

Gets the resources of this V1ResourceStatus. # noqa: E501

List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. # noqa: E501

Returns:

The resources of this V1ResourceStatus. # noqa: E501

Return type:

list[V1ResourceHealth]

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model