11# THIS FILE IS AUTO-GENERATED, DO NOT EDIT DIRECTLY
22# SEE dev/api_generate_client.py
3-
43import datetime
54from typing import Any , Dict , List , Literal , Optional , Tuple , Union
65
6+ import httpx
7+
78from .dataset import Dataset
89from .models .api_request import AppSession , SHA256Password
910from .models .api_response import (
1011 BrowseFileResponse ,
11- DeleteProjectPreview ,
12- DeleteWorkspacePreview ,
1312 GetFinalResultsResponse ,
1413 Hello ,
1514 WorkspaceAncestorUidsResponse ,
@@ -27,21 +26,22 @@ from .models.job_register import JobRegister
2726from .models .job_spec import Category , InputSpec , OutputResult , OutputSpec
2827from .models .license import LicenseInstance , UpdateTag
2928from .models .notification import Notification
29+ from .models .preview import DeleteProjectPreview , DeleteWorkspacePreview
3030from .models .project import GenerateIntermediateResultsSettings , Project , ProjectSymlink
3131from .models .scheduler_lane import SchedulerLane
32- from .models .scheduler_target import Cluster , Node , SchedulerTarget
32+ from .models .scheduler_target import SchedulerTarget , SchedulerTarget_Cluster_ , SchedulerTarget_Node_
3333from .models .services import LoggingService
3434from .models .session import (
3535 DataManagementStats ,
3636 ExposureGroup ,
3737 ExposureGroupUpdate ,
3838 LiveComputeResources ,
3939 Session ,
40+ SessionStatus ,
4041 TemplateSelectionThreshold ,
4142)
4243from .models .session_config_profile import SessionConfigProfile , SessionConfigProfileBody
4344from .models .session_params import LiveAbinitParams , LiveClass2DParams , LivePreprocessingParams , LiveRefineParams
44- from .models .session_spec import SessionStatus
4545from .models .tag import Tag
4646from .models .user import User
4747from .models .workspace import Workspace
@@ -53,7 +53,7 @@ Auth token or email/password.
5353"""
5454
5555class APINamespace :
56- def __init__ (self , http_client : Any = None ) -> None : ...
56+ def __init__ (self , http_client : httpx . Client ) -> None : ...
5757
5858class ConfigNamespace (APINamespace ):
5959 """
@@ -70,13 +70,6 @@ class ConfigNamespace(APINamespace):
7070 Gets this CryoSPARC instance's unique UID.
7171 """
7272 ...
73- def generate_new_instance_uid (self , * , force_takeover_projects : bool = False ) -> str :
74- """
75- Generates a new uid for the CryoSPARC instance
76- If force_takeover_projects is True, overwrites existing lockfiles,
77- otherwise if force_takeover_projects is False, only creates lockfile in projects that don't already have one
78- """
79- ...
8073 def set_default_job_priority (self , value : int ) -> Any :
8174 """
8275 Job priority
@@ -159,6 +152,13 @@ class InstanceNamespace(APINamespace):
159152 """
160153 ...
161154 def audit_dump (self ) -> str | None : ...
155+ def generate_new_uid (self , * , force_takeover_projects : bool = False ) -> str :
156+ """
157+ Generates a new uid for the CryoSPARC instance
158+ If force_takeover_projects is True, overwrites existing lockfiles,
159+ otherwise, creates lockfiles in projects that don't already have one.
160+ """
161+ ...
162162
163163class CacheNamespace (APINamespace ):
164164 """
@@ -338,25 +338,25 @@ class ResourcesNamespace(APINamespace):
338338 Finds a list of targets that are registered with the master scheduler.
339339 """
340340 ...
341- def find_nodes (self , * , lane : Optional [str ] = ...) -> List [SchedulerTarget [ Node ] ]:
341+ def find_nodes (self , * , lane : Optional [str ] = ...) -> List [SchedulerTarget_Node_ ]:
342342 """
343343 Finds a list of targets with type "node" that are registered with the master scheduler.
344344 These correspond to discrete worker hostname accessible over SSH.
345345 """
346346 ...
347- def add_node (self , body : SchedulerTarget [ Node ] ) -> SchedulerTarget [ Node ] :
347+ def add_node (self , body : SchedulerTarget_Node_ ) -> SchedulerTarget_Node_ :
348348 """
349349 Adds a node or updates an existing node. Updates existing node if they share
350350 share the same name.
351351 """
352352 ...
353- def find_clusters (self , * , lane : Optional [str ] = ...) -> List [SchedulerTarget [ Cluster ] ]:
353+ def find_clusters (self , * , lane : Optional [str ] = ...) -> List [SchedulerTarget_Cluster_ ]:
354354 """
355355 Finds a list of targets with type "cluster" that are registered with the master scheduler.
356356 These are multi-node clusters managed by workflow managers like SLURM or PBS and are accessible via submission script.
357357 """
358358 ...
359- def add_cluster (self , body : SchedulerTarget [ Cluster ] ) -> SchedulerTarget [ Cluster ] :
359+ def add_cluster (self , body : SchedulerTarget_Cluster_ ) -> SchedulerTarget_Cluster_ :
360360 """
361361 Adds a cluster or updates an existing cluster. Updates existing cluster if
362362 they share share the same name.
@@ -372,7 +372,7 @@ class ResourcesNamespace(APINamespace):
372372 Finds a target with a given name.
373373 """
374374 ...
375- def find_node (self , name : str , / ) -> SchedulerTarget [ Node ] :
375+ def find_node (self , name : str , / ) -> SchedulerTarget_Node_ :
376376 """
377377 Finds a node with a given name.
378378 """
@@ -382,7 +382,7 @@ class ResourcesNamespace(APINamespace):
382382 Removes a target worker node from the master scheduler
383383 """
384384 ...
385- def find_cluster (self , name : str , / ) -> SchedulerTarget [ Cluster ] :
385+ def find_cluster (self , name : str , / ) -> SchedulerTarget_Cluster_ :
386386 """
387387 Finds a cluster with a given name.
388388 """
@@ -411,7 +411,7 @@ class ResourcesNamespace(APINamespace):
411411 (i.e., all variables not in the internal list of known variable names).
412412 """
413413 ...
414- def update_node_lane (self , name : str , / , lane : str ) -> SchedulerTarget [ Node ] :
414+ def update_node_lane (self , name : str , / , lane : str ) -> SchedulerTarget_Node_ :
415415 """
416416 Changes the lane on the given target (assumed to exist). Target type must
417417 match lane type.
@@ -429,7 +429,7 @@ class ResourcesNamespace(APINamespace):
429429 command
430430 """
431431 ...
432- def update_cluster_custom_vars (self , name : str , / , value : Dict [str , str ]) -> SchedulerTarget [ Cluster ] :
432+ def update_cluster_custom_vars (self , name : str , / , value : Dict [str , str ]) -> SchedulerTarget_Cluster_ :
433433 """
434434 Changes the custom cluster variables on the given target (assumed to exist)
435435 """
@@ -2016,7 +2016,7 @@ class ProjectsNamespace(APINamespace):
20162016 Claims ownership of all projects in instance. Call when upgrading from an older CryoSPARC version that did not support project locks.
20172017 """
20182018 ...
2019- def archive (self , project_uid : str , / ) -> Project :
2019+ def archive (self , project_uid : str , / ) -> Any :
20202020 """
20212021 Archives a project. This means that the project can no longer be modified
20222022 and jobs cannot be created or run. Once archived, the project directory may
0 commit comments