@@ -52,8 +52,9 @@ class GetInferenceV3DeploymentResponse(BaseModel):
52
52
env_vars : Optional [Dict [str , StrictStr ]] = None
53
53
command : Optional [List [StrictStr ]] = None
54
54
command_args : Optional [List [StrictStr ]] = None
55
+ original_command : Optional [StrictStr ] = None
55
56
image_pull_secret_credentials : Optional [ImagePullSecretCredentials ] = None
56
- __properties : ClassVar [List [str ]] = ["creator_email" , "cluster_id" , "id" , "name" , "endpoint_url" , "image_url" , "type" , "status" , "created_at" , "hardware_instance_id" , "revision_number" , "container_port" , "min_replicas" , "max_replicas" , "initial_replicas" , "concurrency" , "healthcheck" , "endpoint_certificate_authority" , "endpoint_bearer_token" , "env_vars" , "command" , "command_args" , "image_pull_secret_credentials" ]
57
+ __properties : ClassVar [List [str ]] = ["creator_email" , "cluster_id" , "id" , "name" , "endpoint_url" , "image_url" , "type" , "status" , "created_at" , "hardware_instance_id" , "revision_number" , "container_port" , "min_replicas" , "max_replicas" , "initial_replicas" , "concurrency" , "healthcheck" , "endpoint_certificate_authority" , "endpoint_bearer_token" , "env_vars" , "command" , "command_args" , "original_command" , " image_pull_secret_credentials" ]
57
58
58
59
model_config = ConfigDict (
59
60
populate_by_name = True ,
@@ -142,6 +143,11 @@ def to_dict(self) -> Dict[str, Any]:
142
143
if self .command_args is None and "command_args" in self .model_fields_set :
143
144
_dict ['command_args' ] = None
144
145
146
+ # set to None if original_command (nullable) is None
147
+ # and model_fields_set contains the field
148
+ if self .original_command is None and "original_command" in self .model_fields_set :
149
+ _dict ['original_command' ] = None
150
+
145
151
# set to None if image_pull_secret_credentials (nullable) is None
146
152
# and model_fields_set contains the field
147
153
if self .image_pull_secret_credentials is None and "image_pull_secret_credentials" in self .model_fields_set :
@@ -181,6 +187,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
181
187
"env_vars" : obj .get ("env_vars" ),
182
188
"command" : obj .get ("command" ),
183
189
"command_args" : obj .get ("command_args" ),
190
+ "original_command" : obj .get ("original_command" ),
184
191
"image_pull_secret_credentials" : ImagePullSecretCredentials .from_dict (obj ["image_pull_secret_credentials" ]) if obj .get ("image_pull_secret_credentials" ) is not None else None
185
192
})
186
193
return _obj
0 commit comments