kubernetes.client.models.v1_container_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_container_status.V1ContainerStatus(*, allocated_resources: Dict[str, Annotated[str, Strict(strict=True)]] | None = None, allocated_resources_status: List[V1ResourceStatus] | None = None, container_id: Annotated[str, Strict(strict=True)] | None = None, image: Annotated[str, Strict(strict=True)], image_id: Annotated[str, Strict(strict=True)], last_state: V1ContainerState | None = None, name: Annotated[str, Strict(strict=True)], ready: Annotated[bool, Strict(strict=True)], resources: V1ResourceRequirements | None = None, restart_count: Annotated[int, Strict(strict=True)], started: Annotated[bool, Strict(strict=True)] | None = None, state: V1ContainerState | None = None, stop_signal: Annotated[str, Strict(strict=True)] | None = None, user: V1ContainerUser | None = None, volume_mounts: List[V1VolumeMountStatus] | None = None)¶
Bases:
BaseModelContainerStatus contains details for the current status of this container.
- 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¶
- allocated_resources_status: List[V1ResourceStatus] | None¶
- attribute_map: ClassVar[Dict[str, str]] = {'allocated_resources': 'allocatedResources', 'allocated_resources_status': 'allocatedResourcesStatus', 'container_id': 'containerID', 'image': 'image', 'image_id': 'imageID', 'last_state': 'lastState', 'name': 'name', 'ready': 'ready', 'resources': 'resources', 'restart_count': 'restartCount', 'started': 'started', 'state': 'state', 'stop_signal': 'stopSignal', 'user': 'user', 'volume_mounts': 'volumeMounts'}¶
- container_id: StrictStr | None¶
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None¶
Create an instance of V1ContainerStatus from a dict
- classmethod from_json(json_str: str) Self | None¶
Create an instance of V1ContainerStatus from a JSON string
- image: StrictStr¶
- image_id: StrictStr¶
- last_state: V1ContainerState | 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].
- name: StrictStr¶
- openapi_types: ClassVar[Dict[str, str]] = {'allocated_resources': 'Dict[str, str]', 'allocated_resources_status': 'List[V1ResourceStatus]', 'container_id': 'str', 'image': 'str', 'image_id': 'str', 'last_state': 'V1ContainerState', 'name': 'str', 'ready': 'bool', 'resources': 'V1ResourceRequirements', 'restart_count': 'int', 'started': 'bool', 'state': 'V1ContainerState', 'stop_signal': 'str', 'user': 'V1ContainerUser', 'volume_mounts': 'List[V1VolumeMountStatus]'}¶
- ready: StrictBool¶
- resources: V1ResourceRequirements | None¶
- restart_count: StrictInt¶
- started: StrictBool | None¶
- state: V1ContainerState | None¶
- stop_signal: StrictStr | 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
- user: V1ContainerUser | None¶
- volume_mounts: List[V1VolumeMountStatus] | None¶