File tree Expand file tree Collapse file tree 1 file changed +1
-34
lines changed
Expand file tree Collapse file tree 1 file changed +1
-34
lines changed Original file line number Diff line number Diff line change @@ -490,27 +490,6 @@ class DeploymentsGetParam(Base):
490490 app_name : Optional [str ]
491491
492492
493- class DeploymentGetResponse (Base ):
494- """The params/settings returned from the GET endpoint."""
495-
496- # The deployment key
497- key : str
498- # The list of regions to deploy to
499- regions : List [str ]
500- # The app name which is found in the config
501- app_name : str
502- # The VM type
503- vm_type : str
504- # The number of CPUs
505- cpus : int
506- # The memory in MB
507- memory_mb : int
508- # The site URL
509- url : str
510- # The list of environment variable names (values are never shown)
511- envs : List [str ]
512-
513-
514493def list_deployments (
515494 app_name : str | None = None ,
516495) -> list [dict ]:
@@ -538,19 +517,7 @@ def list_deployments(
538517 timeout = HTTP_REQUEST_TIMEOUT ,
539518 )
540519 response .raise_for_status ()
541- return [
542- DeploymentGetResponse (
543- key = deployment ["key" ],
544- regions = deployment ["regions" ],
545- app_name = deployment ["app_name" ],
546- vm_type = deployment ["vm_type" ],
547- cpus = deployment ["cpus" ],
548- memory_mb = deployment ["memory_mb" ],
549- url = deployment ["url" ],
550- envs = deployment ["envs" ],
551- ).dict ()
552- for deployment in response .json ()
553- ]
520+ return response .json ()
554521 except httpx .RequestError as re :
555522 console .error (f"Unable to list deployments due to request error: { re } " )
556523 raise Exception ("request timeout" ) from re
You can’t perform that action at this time.
0 commit comments