kubernetes.client.models.v1_pod_status module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
- class kubernetes.client.models.v1_pod_status.V1PodStatus(*, allocated_resources: Dict[str, Annotated[str, Strict(strict=True)]] | None = None, conditions: List[V1PodCondition] | None = None, container_statuses: List[V1ContainerStatus] | None = None, ephemeral_container_statuses: List[V1ContainerStatus] | None = None, extended_resource_claim_status: V1PodExtendedResourceClaimStatus | None = None, host_ip: Annotated[str, Strict(strict=True)] | None = None, host_ips: List[V1HostIP] | None = None, init_container_statuses: List[V1ContainerStatus] | None = None, message: Annotated[str, Strict(strict=True)] | None = None, node_allocatable_resource_claim_statuses: List[V1NodeAllocatableResourceClaimStatus] | None = None, nominated_node_name: Annotated[str, Strict(strict=True)] | None = None, observed_generation: Annotated[int, Strict(strict=True)] | None = None, phase: Annotated[str, Strict(strict=True)] | None = None, pod_ip: Annotated[str, Strict(strict=True)] | None = None, pod_ips: List[V1PodIP] | None = None, qos_class: Annotated[str, Strict(strict=True)] | None = None, reason: Annotated[str, Strict(strict=True)] | None = None, resize: Annotated[str, Strict(strict=True)] | None = None, resource_claim_statuses: List[V1PodResourceClaimStatus] | None = None, resources: V1ResourceRequirements | None = None, start_time: datetime | None = None)¶
Bases:
BaseModelPodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.
- Attributes:
- openapi_types (dict): The key is attribute name
and the value is attribute type.
- attribute_map (dict): The key is attribute name
and the value is json key in definition.
- allocated_resources: Dict[str, StrictStr] | None¶
- attribute_map: ClassVar[Dict[str, str]] = {'allocated_resources': 'allocatedResources', 'conditions': 'conditions', 'container_statuses': 'containerStatuses', 'ephemeral_container_statuses': 'ephemeralContainerStatuses', 'extended_resource_claim_status': 'extendedResourceClaimStatus', 'host_ip': 'hostIP', 'host_ips': 'hostIPs', 'init_container_statuses': 'initContainerStatuses', 'message': 'message', 'node_allocatable_resource_claim_statuses': 'nodeAllocatableResourceClaimStatuses', 'nominated_node_name': 'nominatedNodeName', 'observed_generation': 'observedGeneration', 'phase': 'phase', 'pod_ip': 'podIP', 'pod_ips': 'podIPs', 'qos_class': 'qosClass', 'reason': 'reason', 'resize': 'resize', 'resource_claim_statuses': 'resourceClaimStatuses', 'resources': 'resources', 'start_time': 'startTime'}¶
- conditions: List[V1PodCondition] | None¶
- container_statuses: List[V1ContainerStatus] | None¶
- ephemeral_container_statuses: List[V1ContainerStatus] | None¶
- extended_resource_claim_status: V1PodExtendedResourceClaimStatus | None¶
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None¶
Create an instance of V1PodStatus from a dict
- classmethod from_json(json_str: str) Self | None¶
Create an instance of V1PodStatus from a JSON string
- host_ip: StrictStr | None¶
- init_container_statuses: List[V1ContainerStatus] | None¶
- message: StrictStr | None¶
- model_config = {'extra': 'forbid', 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- node_allocatable_resource_claim_statuses: List[V1NodeAllocatableResourceClaimStatus] | None¶
- nominated_node_name: StrictStr | None¶
- observed_generation: StrictInt | None¶
- openapi_types: ClassVar[Dict[str, str]] = {'allocated_resources': 'Dict[str, str]', 'conditions': 'List[V1PodCondition]', 'container_statuses': 'List[V1ContainerStatus]', 'ephemeral_container_statuses': 'List[V1ContainerStatus]', 'extended_resource_claim_status': 'V1PodExtendedResourceClaimStatus', 'host_ip': 'str', 'host_ips': 'List[V1HostIP]', 'init_container_statuses': 'List[V1ContainerStatus]', 'message': 'str', 'node_allocatable_resource_claim_statuses': 'List[V1NodeAllocatableResourceClaimStatus]', 'nominated_node_name': 'str', 'observed_generation': 'int', 'phase': 'str', 'pod_ip': 'str', 'pod_ips': 'List[V1PodIP]', 'qos_class': 'str', 'reason': 'str', 'resize': 'str', 'resource_claim_statuses': 'List[V1PodResourceClaimStatus]', 'resources': 'V1ResourceRequirements', 'start_time': 'datetime'}¶
- phase: StrictStr | None¶
- pod_ip: StrictStr | None¶
- qos_class: StrictStr | None¶
- reason: StrictStr | None¶
- resize: StrictStr | None¶
- resource_claim_statuses: List[V1PodResourceClaimStatus] | None¶
- resources: V1ResourceRequirements | None¶
- start_time: datetime | None¶
- to_dict(serialize: bool = False) Dict[str, Any]¶
Return all declared model fields using public or wire names.
- to_json() str¶
Returns the JSON representation of the model using alias
- to_str() str¶
Returns the string representation of the model