1717import re # noqa: F401
1818import json
1919
20- from pydantic import BaseModel , ConfigDict , StrictInt , StrictStr
20+ from pydantic import BaseModel , ConfigDict , Field , StrictInt , StrictStr
2121from typing import Any , ClassVar , Dict , List , Optional
22+ from typing_extensions import Annotated
2223from platform_api_python_client .models .deployment_status import DeploymentStatus
2324from platform_api_python_client .models .deployment_type import DeploymentType
2425from platform_api_python_client .models .service_status import ServiceStatus
@@ -35,7 +36,8 @@ class DeploymentStatusResponse(BaseModel):
3536 service_status : Optional [ServiceStatus ] = None
3637 error_message : Optional [StrictStr ] = None
3738 endpoint_url : Optional [StrictStr ] = None
38- __properties : ClassVar [List [str ]] = ["id" , "type" , "status" , "service_status" , "error_message" , "endpoint_url" ]
39+ pod_status : Optional [List [Annotated [List [Any ], Field (min_length = 2 , max_length = 2 )]]] = None
40+ __properties : ClassVar [List [str ]] = ["id" , "type" , "status" , "service_status" , "error_message" , "endpoint_url" , "pod_status" ]
3941
4042 model_config = ConfigDict (
4143 populate_by_name = True ,
@@ -91,6 +93,11 @@ def to_dict(self) -> Dict[str, Any]:
9193 if self .endpoint_url is None and "endpoint_url" in self .model_fields_set :
9294 _dict ['endpoint_url' ] = None
9395
96+ # set to None if pod_status (nullable) is None
97+ # and model_fields_set contains the field
98+ if self .pod_status is None and "pod_status" in self .model_fields_set :
99+ _dict ['pod_status' ] = None
100+
94101 return _dict
95102
96103 @classmethod
@@ -108,7 +115,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
108115 "status" : obj .get ("status" ),
109116 "service_status" : obj .get ("service_status" ),
110117 "error_message" : obj .get ("error_message" ),
111- "endpoint_url" : obj .get ("endpoint_url" )
118+ "endpoint_url" : obj .get ("endpoint_url" ),
119+ "pod_status" : obj .get ("pod_status" )
112120 })
113121 return _obj
114122
0 commit comments