Create or Upload¶
-
kingghidorah.CreateProject(name: str) → dict¶ Creates a project for the logged in user.
Parameters: [name] (String) – The name to give to a new project Returns: JSON dictionary of the project Return type: JSON
-
kingghidorah.CreateWorkflow(name: str, project: str, json_workflow=[]) → dict¶ Create a workflow
Parameters: - [name] (String) – The name you wish to give to the workflow.
- [project] (String) – The project (UUID) you wish to place the workflow in.
- [json_workflow] (String) – A filepath for the exported json workflow from Rodan.
Returns: JSON of the created workflow
Return type: JSON
-
kingghidorah.UploadFile(name: Union[str, list], mime_type: str, project: str, description: str = ‘’) → Union[str, list]¶ Upload a file to Rodan
Parameters: - [name] (String) – A filepath to the file you wish to upload
- [mime_type] (String) – A resource type UUID that identifies the filetype.
- [project] (String) – A project UUID that identifies the project in which to upload a resource to.
- [description] (String (optional)) – A description of the file.
Initiate tasks¶
-
kingghidorah.RunWorkflow(name: str, workflow: str, resource_assignments: dict = {}, description: str = []) → dict¶ Run a specific workflow
Parameters: - [name] (String) – The name to give to the workflow.
- [workflow] (String) – The UUID for a currently uploaded workflow you wish to run.
- [resource_assignment] (List) – A list of tuples(3) assigning specific resource UUIDs to specific job ports. For example: