@@ -19,18 +19,6 @@ def _create_spec(
1919 app_key : str = "" ,
2020 app_version : int = - 1 ,
2121) -> RequestSpec :
22- """Creates a request specification for creating a new action task.
23-
24- Args:
25- title: The title of the action task
26- data: Optional dictionary containing input data for the action
27- action_schema: Optional schema defining the action's inputs, outputs, and outcomes
28- app_key: The unique identifier of the application
29- app_version: The version of the application
30-
31- Returns:
32- RequestSpec: A specification for creating an action task
33- """
3422 field_list = []
3523 outcome_list = []
3624 if action_schema :
@@ -113,14 +101,6 @@ def _create_spec(
113101
114102
115103def _retrieve_action_spec (action_key : str ) -> RequestSpec :
116- """Creates a request specification for retrieving an action by its key.
117-
118- Args:
119- action_key: The unique identifier of the action to retrieve
120-
121- Returns:
122- RequestSpec: A specification for retrieving an action
123- """
124104 return RequestSpec (
125105 method = "GET" ,
126106 endpoint = Endpoint ("/orchestrator_/tasks/GenericTasks/GetTaskDataByKey" ),
@@ -129,15 +109,6 @@ def _retrieve_action_spec(action_key: str) -> RequestSpec:
129109
130110
131111def _assign_task_spec (task_key : str , assignee : str ) -> RequestSpec :
132- """Creates a request specification for assigning a task to a user.
133-
134- Args:
135- task_key: The unique identifier of the task
136- assignee: The username or email of the user to assign the task to
137-
138- Returns:
139- RequestSpec: A specification for assigning a task
140- """
141112 return RequestSpec (
142113 method = "POST" ,
143114 endpoint = Endpoint (
@@ -150,17 +121,6 @@ def _assign_task_spec(task_key: str, assignee: str) -> RequestSpec:
150121
151122
152123def _retrieve_app_key_spec (app_name : str ) -> RequestSpec :
153- """Creates a request specification for retrieving an application's key by its name.
154-
155- Args:
156- app_name: The name of the application to retrieve
157-
158- Returns:
159- RequestSpec: A specification for retrieving an application key
160-
161- Raises:
162- Exception: If the tenant ID environment variable is not set
163- """
164124 tenant_id = os .getenv (ENV_TENANT_ID , None )
165125 if not tenant_id :
166126 raise Exception (f"{ ENV_TENANT_ID } env var is not set" )
@@ -357,17 +317,6 @@ async def __get_app_key_and_schema_async(
357317 def __get_app_key_and_schema (
358318 self , app_name : str
359319 ) -> Tuple [str , Optional [ActionSchema ]]:
360- """Retrieves an application's key and schema synchronously.
361-
362- Args:
363- app_name: The name of the application to retrieve
364-
365- Returns:
366- Tuple[str, Optional[ActionSchema]]: A tuple containing the application key and schema
367-
368- Raises:
369- Exception: If app_name is not provided
370- """
371320 if not app_name :
372321 raise Exception ("appName or appKey is required" )
373322
@@ -392,9 +341,4 @@ def __get_app_key_and_schema(
392341
393342 @property
394343 def custom_headers (self ) -> Dict [str , str ]:
395- """Gets the custom headers required for folder context.
396-
397- Returns:
398- Dict[str, str]: A dictionary of custom headers
399- """
400344 return self .folder_headers
0 commit comments