eval-studio-client 1.0.3a1__py3-none-any.whl → 1.1.0a6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (592) hide show
  1. eval_studio_client/api/__init__.py +83 -1
  2. eval_studio_client/api/api/__init__.py +8 -0
  3. eval_studio_client/api/api/adversarial_inputs_service_api.py +321 -0
  4. eval_studio_client/api/api/dashboard_service_api.py +18 -1
  5. eval_studio_client/api/api/document_service_api.py +1 -1
  6. eval_studio_client/api/api/evaluation_service_api.py +1 -1
  7. eval_studio_client/api/api/evaluator_service_api.py +1 -1
  8. eval_studio_client/api/api/human_calibration_service_api.py +304 -0
  9. eval_studio_client/api/api/info_service_api.py +1 -1
  10. eval_studio_client/api/api/leaderboard_report_service_api.py +292 -0
  11. eval_studio_client/api/api/leaderboard_service_api.py +17 -17
  12. eval_studio_client/api/api/model_service_api.py +17 -17
  13. eval_studio_client/api/api/operation_progress_service_api.py +1 -1
  14. eval_studio_client/api/api/operation_service_api.py +272 -17
  15. eval_studio_client/api/api/perturbation_service_api.py +1 -1
  16. eval_studio_client/api/api/perturbator_service_api.py +285 -18
  17. eval_studio_client/api/api/prompt_generation_service_api.py +1 -1
  18. eval_studio_client/api/api/prompt_library_service_api.py +669 -0
  19. eval_studio_client/api/api/test_case_relationship_service_api.py +292 -0
  20. eval_studio_client/api/api/test_case_service_api.py +17 -17
  21. eval_studio_client/api/api/test_class_service_api.py +17 -17
  22. eval_studio_client/api/api/test_lab_service_api.py +1 -1
  23. eval_studio_client/api/api/test_service_api.py +1272 -102
  24. eval_studio_client/api/api/who_am_i_service_api.py +1 -1
  25. eval_studio_client/api/api/workflow_edge_service_api.py +835 -0
  26. eval_studio_client/api/api/workflow_node_service_api.py +2431 -0
  27. eval_studio_client/api/api/workflow_service_api.py +2403 -0
  28. eval_studio_client/api/api_client.py +1 -1
  29. eval_studio_client/api/configuration.py +1 -1
  30. eval_studio_client/api/docs/AdversarialInputsServiceApi.md +78 -0
  31. eval_studio_client/api/docs/AdversarialInputsServiceTestAdversarialInputsRobustnessRequest.md +45 -0
  32. eval_studio_client/api/docs/DashboardServiceApi.md +4 -2
  33. eval_studio_client/api/docs/HumanCalibrationServiceApi.md +77 -0
  34. eval_studio_client/api/docs/LeaderboardReportServiceApi.md +75 -0
  35. eval_studio_client/api/docs/LeaderboardServiceApi.md +5 -5
  36. eval_studio_client/api/docs/ModelServiceApi.md +5 -5
  37. eval_studio_client/api/docs/OperationServiceApi.md +72 -5
  38. eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +1 -0
  39. eval_studio_client/api/docs/PerturbatorServiceApi.md +38 -8
  40. eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +4 -2
  41. eval_studio_client/api/docs/PromptLibraryServiceApi.md +155 -0
  42. eval_studio_client/api/docs/ProtobufNullValue.md +12 -0
  43. eval_studio_client/api/docs/RequiredTheDashboardToUpdate.md +1 -0
  44. eval_studio_client/api/docs/RequiredTheTestCaseToUpdate.md +3 -0
  45. eval_studio_client/api/docs/RequiredTheTestToUpdate.md +1 -0
  46. eval_studio_client/api/docs/RequiredTheUpdatedWorkflow.md +47 -0
  47. eval_studio_client/api/docs/RequiredTheUpdatedWorkflowNode.md +44 -0
  48. eval_studio_client/api/docs/TestCaseRelationshipServiceApi.md +75 -0
  49. eval_studio_client/api/docs/TestCaseServiceApi.md +5 -5
  50. eval_studio_client/api/docs/TestClassServiceApi.md +5 -5
  51. eval_studio_client/api/docs/TestServiceApi.md +293 -9
  52. eval_studio_client/api/docs/TestServiceCloneTestRequest.md +30 -0
  53. eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +3 -1
  54. eval_studio_client/api/docs/TestServiceImportTestCasesFromLibraryRequest.md +32 -0
  55. eval_studio_client/api/docs/TestServiceListTestCaseLibraryItemsRequest.md +35 -0
  56. eval_studio_client/api/docs/TestServicePerturbTestInPlaceRequest.md +30 -0
  57. eval_studio_client/api/docs/TestServicePerturbTestRequest.md +1 -0
  58. eval_studio_client/api/docs/V1AbortOperationResponse.md +29 -0
  59. eval_studio_client/api/docs/V1BatchDeleteWorkflowsRequest.md +29 -0
  60. eval_studio_client/api/docs/V1BatchDeleteWorkflowsResponse.md +29 -0
  61. eval_studio_client/api/docs/V1BatchGetWorkflowEdgesResponse.md +29 -0
  62. eval_studio_client/api/docs/V1BatchGetWorkflowNodesResponse.md +29 -0
  63. eval_studio_client/api/docs/V1CloneTestResponse.md +29 -0
  64. eval_studio_client/api/docs/V1CloneWorkflowResponse.md +29 -0
  65. eval_studio_client/api/docs/V1Context.md +37 -0
  66. eval_studio_client/api/docs/V1CreateEvaluationRequest.md +1 -0
  67. eval_studio_client/api/docs/V1CreateWorkflowEdgeResponse.md +29 -0
  68. eval_studio_client/api/docs/V1CreateWorkflowNodeResponse.md +29 -0
  69. eval_studio_client/api/docs/V1CreateWorkflowResponse.md +29 -0
  70. eval_studio_client/api/docs/V1Dashboard.md +1 -0
  71. eval_studio_client/api/docs/V1DashboardType.md +12 -0
  72. eval_studio_client/api/docs/V1DeleteWorkflowEdgeResponse.md +29 -0
  73. eval_studio_client/api/docs/V1DeleteWorkflowNodeResponse.md +29 -0
  74. eval_studio_client/api/docs/V1DeleteWorkflowResponse.md +29 -0
  75. eval_studio_client/api/docs/V1DependencyList.md +30 -0
  76. eval_studio_client/api/docs/V1EstimateThresholdRequest.md +33 -0
  77. eval_studio_client/api/docs/V1Evaluator.md +2 -0
  78. eval_studio_client/api/docs/V1GetGuardrailsConfigurationResponse.md +29 -0
  79. eval_studio_client/api/docs/V1GetLeaderboardReportResponse.md +29 -0
  80. eval_studio_client/api/docs/V1GetWorkflowNodePrerequisitesResponse.md +30 -0
  81. eval_studio_client/api/docs/V1GetWorkflowNodeResponse.md +29 -0
  82. eval_studio_client/api/docs/V1GetWorkflowResponse.md +29 -0
  83. eval_studio_client/api/docs/V1ImportEvaluationRequest.md +1 -0
  84. eval_studio_client/api/docs/V1ImportTestCasesFromLibraryResponse.md +29 -0
  85. eval_studio_client/api/docs/V1ImportTestCasesRequest.md +33 -0
  86. eval_studio_client/api/docs/V1Info.md +3 -0
  87. eval_studio_client/api/docs/V1InitWorkflowNodeResponse.md +29 -0
  88. eval_studio_client/api/docs/V1LabeledTestCase.md +31 -0
  89. eval_studio_client/api/docs/V1LeaderboardReport.md +32 -0
  90. eval_studio_client/api/docs/V1LeaderboardReportActualOutputData.md +31 -0
  91. eval_studio_client/api/docs/V1LeaderboardReportActualOutputMeta.md +31 -0
  92. eval_studio_client/api/docs/V1LeaderboardReportEvaluator.md +42 -0
  93. eval_studio_client/api/docs/V1LeaderboardReportEvaluatorParameter.md +38 -0
  94. eval_studio_client/api/docs/V1LeaderboardReportExplanation.md +34 -0
  95. eval_studio_client/api/docs/V1LeaderboardReportMetricsMetaEntry.md +41 -0
  96. eval_studio_client/api/docs/V1LeaderboardReportModel.md +37 -0
  97. eval_studio_client/api/docs/V1LeaderboardReportResult.md +45 -0
  98. eval_studio_client/api/docs/V1LeaderboardReportResultRelationship.md +32 -0
  99. eval_studio_client/api/docs/V1ListPromptLibraryItemsResponse.md +29 -0
  100. eval_studio_client/api/docs/V1ListTestCaseLibraryItemsResponse.md +29 -0
  101. eval_studio_client/api/docs/V1ListTestCaseRelationshipsResponse.md +29 -0
  102. eval_studio_client/api/docs/V1ListWorkflowDependenciesResponse.md +30 -0
  103. eval_studio_client/api/docs/V1ListWorkflowsResponse.md +29 -0
  104. eval_studio_client/api/docs/V1MetricScore.md +31 -0
  105. eval_studio_client/api/docs/V1MetricScores.md +29 -0
  106. eval_studio_client/api/docs/V1PerturbTestInPlaceResponse.md +29 -0
  107. eval_studio_client/api/docs/V1ProcessWorkflowNodeResponse.md +29 -0
  108. eval_studio_client/api/docs/V1PromptLibraryItem.md +42 -0
  109. eval_studio_client/api/docs/V1RepeatedContext.md +29 -0
  110. eval_studio_client/api/docs/V1RepeatedString.md +29 -0
  111. eval_studio_client/api/docs/V1ResetWorkflowNodeResponse.md +29 -0
  112. eval_studio_client/api/docs/V1Test.md +1 -0
  113. eval_studio_client/api/docs/V1TestCase.md +3 -0
  114. eval_studio_client/api/docs/V1TestSuiteEvaluates.md +11 -0
  115. eval_studio_client/api/docs/V1TestType.md +12 -0
  116. eval_studio_client/api/docs/V1UpdateWorkflowNodeResponse.md +29 -0
  117. eval_studio_client/api/docs/V1UpdateWorkflowResponse.md +29 -0
  118. eval_studio_client/api/docs/V1Workflow.md +49 -0
  119. eval_studio_client/api/docs/V1WorkflowDependency.md +30 -0
  120. eval_studio_client/api/docs/V1WorkflowEdge.md +40 -0
  121. eval_studio_client/api/docs/V1WorkflowEdgeType.md +12 -0
  122. eval_studio_client/api/docs/V1WorkflowNode.md +46 -0
  123. eval_studio_client/api/docs/V1WorkflowNodeArtifact.md +41 -0
  124. eval_studio_client/api/docs/V1WorkflowNodeArtifacts.md +29 -0
  125. eval_studio_client/api/docs/V1WorkflowNodeAttributes.md +30 -0
  126. eval_studio_client/api/docs/V1WorkflowNodeStatus.md +12 -0
  127. eval_studio_client/api/docs/V1WorkflowNodeType.md +12 -0
  128. eval_studio_client/api/docs/V1WorkflowNodeView.md +12 -0
  129. eval_studio_client/api/docs/V1WorkflowType.md +12 -0
  130. eval_studio_client/api/docs/WorkflowEdgeServiceApi.md +215 -0
  131. eval_studio_client/api/docs/WorkflowNodeServiceApi.md +632 -0
  132. eval_studio_client/api/docs/WorkflowServiceApi.md +623 -0
  133. eval_studio_client/api/docs/WorkflowServiceCloneWorkflowRequest.md +33 -0
  134. eval_studio_client/api/exceptions.py +1 -1
  135. eval_studio_client/api/models/__init__.py +75 -1
  136. eval_studio_client/api/models/adversarial_inputs_service_test_adversarial_inputs_robustness_request.py +143 -0
  137. eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +9 -3
  138. eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +18 -6
  139. eval_studio_client/api/models/protobuf_any.py +1 -1
  140. eval_studio_client/api/models/protobuf_null_value.py +36 -0
  141. eval_studio_client/api/models/required_the_dashboard_to_update.py +6 -3
  142. eval_studio_client/api/models/required_the_document_to_update.py +1 -1
  143. eval_studio_client/api/models/required_the_leaderboard_to_update.py +1 -1
  144. eval_studio_client/api/models/required_the_model_to_update.py +1 -1
  145. eval_studio_client/api/models/required_the_operation_to_finalize.py +1 -1
  146. eval_studio_client/api/models/required_the_operation_to_update.py +1 -1
  147. eval_studio_client/api/models/required_the_test_case_to_update.py +14 -3
  148. eval_studio_client/api/models/required_the_test_to_update.py +6 -3
  149. eval_studio_client/api/models/required_the_updated_workflow.py +160 -0
  150. eval_studio_client/api/models/required_the_updated_workflow_node.py +152 -0
  151. eval_studio_client/api/models/rpc_status.py +1 -1
  152. eval_studio_client/api/models/test_case_service_batch_delete_test_cases_request.py +1 -1
  153. eval_studio_client/api/models/test_service_clone_test_request.py +89 -0
  154. eval_studio_client/api/models/test_service_generate_test_cases_request.py +16 -4
  155. eval_studio_client/api/models/test_service_import_test_cases_from_library_request.py +93 -0
  156. eval_studio_client/api/models/test_service_list_test_case_library_items_request.py +99 -0
  157. eval_studio_client/api/models/test_service_perturb_test_in_place_request.py +97 -0
  158. eval_studio_client/api/models/test_service_perturb_test_request.py +5 -3
  159. eval_studio_client/api/models/v1_abort_operation_response.py +91 -0
  160. eval_studio_client/api/models/v1_batch_create_leaderboards_request.py +1 -1
  161. eval_studio_client/api/models/v1_batch_create_leaderboards_response.py +1 -1
  162. eval_studio_client/api/models/v1_batch_delete_dashboards_request.py +1 -1
  163. eval_studio_client/api/models/v1_batch_delete_dashboards_response.py +1 -1
  164. eval_studio_client/api/models/v1_batch_delete_documents_request.py +1 -1
  165. eval_studio_client/api/models/v1_batch_delete_documents_response.py +1 -1
  166. eval_studio_client/api/models/v1_batch_delete_evaluators_request.py +1 -1
  167. eval_studio_client/api/models/v1_batch_delete_evaluators_response.py +1 -1
  168. eval_studio_client/api/models/v1_batch_delete_leaderboards_request.py +1 -1
  169. eval_studio_client/api/models/v1_batch_delete_leaderboards_response.py +1 -1
  170. eval_studio_client/api/models/v1_batch_delete_models_request.py +1 -1
  171. eval_studio_client/api/models/v1_batch_delete_models_response.py +1 -1
  172. eval_studio_client/api/models/v1_batch_delete_test_cases_response.py +1 -1
  173. eval_studio_client/api/models/v1_batch_delete_tests_request.py +1 -1
  174. eval_studio_client/api/models/v1_batch_delete_tests_response.py +1 -1
  175. eval_studio_client/api/models/v1_batch_delete_workflows_request.py +87 -0
  176. eval_studio_client/api/models/v1_batch_delete_workflows_response.py +95 -0
  177. eval_studio_client/api/models/v1_batch_get_dashboards_response.py +1 -1
  178. eval_studio_client/api/models/v1_batch_get_documents_response.py +1 -1
  179. eval_studio_client/api/models/v1_batch_get_leaderboards_response.py +1 -1
  180. eval_studio_client/api/models/v1_batch_get_models_response.py +1 -1
  181. eval_studio_client/api/models/v1_batch_get_operations_response.py +1 -1
  182. eval_studio_client/api/models/v1_batch_get_tests_response.py +1 -1
  183. eval_studio_client/api/models/v1_batch_get_workflow_edges_response.py +95 -0
  184. eval_studio_client/api/models/v1_batch_get_workflow_nodes_response.py +95 -0
  185. eval_studio_client/api/models/v1_batch_import_leaderboard_request.py +1 -1
  186. eval_studio_client/api/models/v1_batch_import_leaderboard_response.py +1 -1
  187. eval_studio_client/api/models/v1_batch_import_tests_request.py +1 -1
  188. eval_studio_client/api/models/v1_batch_import_tests_response.py +1 -1
  189. eval_studio_client/api/models/v1_check_base_models_response.py +1 -1
  190. eval_studio_client/api/models/v1_clone_test_response.py +91 -0
  191. eval_studio_client/api/models/v1_clone_workflow_response.py +91 -0
  192. eval_studio_client/api/models/v1_collection_info.py +1 -1
  193. eval_studio_client/api/models/v1_context.py +103 -0
  194. eval_studio_client/api/models/v1_create_dashboard_response.py +1 -1
  195. eval_studio_client/api/models/v1_create_document_response.py +1 -1
  196. eval_studio_client/api/models/v1_create_evaluation_request.py +8 -3
  197. eval_studio_client/api/models/v1_create_evaluator_response.py +1 -1
  198. eval_studio_client/api/models/v1_create_leaderboard_request.py +1 -1
  199. eval_studio_client/api/models/v1_create_leaderboard_response.py +1 -1
  200. eval_studio_client/api/models/v1_create_leaderboard_without_cache_response.py +1 -1
  201. eval_studio_client/api/models/v1_create_model_response.py +1 -1
  202. eval_studio_client/api/models/v1_create_perturbation_response.py +1 -1
  203. eval_studio_client/api/models/v1_create_test_case_response.py +1 -1
  204. eval_studio_client/api/models/v1_create_test_lab_response.py +1 -1
  205. eval_studio_client/api/models/v1_create_test_response.py +1 -1
  206. eval_studio_client/api/models/v1_create_workflow_edge_response.py +91 -0
  207. eval_studio_client/api/models/v1_create_workflow_node_response.py +91 -0
  208. eval_studio_client/api/models/v1_create_workflow_response.py +91 -0
  209. eval_studio_client/api/models/v1_dashboard.py +6 -3
  210. eval_studio_client/api/models/v1_dashboard_status.py +1 -1
  211. eval_studio_client/api/models/v1_dashboard_type.py +38 -0
  212. eval_studio_client/api/models/v1_delete_dashboard_response.py +1 -1
  213. eval_studio_client/api/models/v1_delete_document_response.py +1 -1
  214. eval_studio_client/api/models/v1_delete_evaluator_response.py +1 -1
  215. eval_studio_client/api/models/v1_delete_leaderboard_response.py +1 -1
  216. eval_studio_client/api/models/v1_delete_model_response.py +1 -1
  217. eval_studio_client/api/models/v1_delete_test_case_response.py +1 -1
  218. eval_studio_client/api/models/v1_delete_test_response.py +1 -1
  219. eval_studio_client/api/models/v1_delete_workflow_edge_response.py +91 -0
  220. eval_studio_client/api/models/v1_delete_workflow_node_response.py +91 -0
  221. eval_studio_client/api/models/v1_delete_workflow_response.py +91 -0
  222. eval_studio_client/api/models/v1_dependency_list.py +97 -0
  223. eval_studio_client/api/models/v1_document.py +1 -1
  224. eval_studio_client/api/models/v1_estimate_threshold_request.py +103 -0
  225. eval_studio_client/api/models/v1_evaluation_test.py +1 -1
  226. eval_studio_client/api/models/v1_evaluator.py +12 -4
  227. eval_studio_client/api/models/v1_evaluator_param_type.py +1 -1
  228. eval_studio_client/api/models/v1_evaluator_parameter.py +1 -1
  229. eval_studio_client/api/models/v1_evaluator_view.py +1 -1
  230. eval_studio_client/api/models/v1_finalize_operation_response.py +1 -1
  231. eval_studio_client/api/models/v1_find_all_test_cases_by_id_response.py +1 -1
  232. eval_studio_client/api/models/v1_find_test_lab_response.py +1 -1
  233. eval_studio_client/api/models/v1_generate_test_cases_response.py +1 -1
  234. eval_studio_client/api/models/v1_get_dashboard_response.py +1 -1
  235. eval_studio_client/api/models/v1_get_document_response.py +1 -1
  236. eval_studio_client/api/models/v1_get_evaluator_response.py +1 -1
  237. eval_studio_client/api/models/v1_get_guardrails_configuration_response.py +87 -0
  238. eval_studio_client/api/models/v1_get_info_response.py +1 -1
  239. eval_studio_client/api/models/v1_get_leaderboard_report_response.py +91 -0
  240. eval_studio_client/api/models/v1_get_leaderboard_response.py +1 -1
  241. eval_studio_client/api/models/v1_get_model_response.py +1 -1
  242. eval_studio_client/api/models/v1_get_operation_progress_by_parent_response.py +1 -1
  243. eval_studio_client/api/models/v1_get_operation_response.py +1 -1
  244. eval_studio_client/api/models/v1_get_perturbator_response.py +1 -1
  245. eval_studio_client/api/models/v1_get_test_case_response.py +1 -1
  246. eval_studio_client/api/models/v1_get_test_class_response.py +1 -1
  247. eval_studio_client/api/models/v1_get_test_response.py +1 -1
  248. eval_studio_client/api/models/v1_get_workflow_node_prerequisites_response.py +89 -0
  249. eval_studio_client/api/models/v1_get_workflow_node_response.py +91 -0
  250. eval_studio_client/api/models/v1_get_workflow_response.py +91 -0
  251. eval_studio_client/api/models/v1_import_evaluation_request.py +8 -3
  252. eval_studio_client/api/models/v1_import_leaderboard_request.py +1 -1
  253. eval_studio_client/api/models/v1_import_leaderboard_response.py +1 -1
  254. eval_studio_client/api/models/v1_import_test_cases_from_library_response.py +91 -0
  255. eval_studio_client/api/models/v1_import_test_cases_request.py +95 -0
  256. eval_studio_client/api/models/v1_info.py +10 -4
  257. eval_studio_client/api/models/v1_init_workflow_node_response.py +91 -0
  258. eval_studio_client/api/models/v1_insight.py +1 -1
  259. eval_studio_client/api/models/v1_labeled_test_case.py +91 -0
  260. eval_studio_client/api/models/v1_leaderboard.py +1 -1
  261. eval_studio_client/api/models/v1_leaderboard_report.py +115 -0
  262. eval_studio_client/api/models/v1_leaderboard_report_actual_output_data.py +93 -0
  263. eval_studio_client/api/models/v1_leaderboard_report_actual_output_meta.py +101 -0
  264. eval_studio_client/api/models/v1_leaderboard_report_evaluator.py +155 -0
  265. eval_studio_client/api/models/v1_leaderboard_report_evaluator_parameter.py +109 -0
  266. eval_studio_client/api/models/v1_leaderboard_report_explanation.py +103 -0
  267. eval_studio_client/api/models/v1_leaderboard_report_metrics_meta_entry.py +129 -0
  268. eval_studio_client/api/models/v1_leaderboard_report_model.py +113 -0
  269. eval_studio_client/api/models/v1_leaderboard_report_result.py +175 -0
  270. eval_studio_client/api/models/v1_leaderboard_report_result_relationship.py +97 -0
  271. eval_studio_client/api/models/v1_leaderboard_status.py +1 -1
  272. eval_studio_client/api/models/v1_leaderboard_type.py +1 -1
  273. eval_studio_client/api/models/v1_leaderboard_view.py +1 -1
  274. eval_studio_client/api/models/v1_list_base_models_response.py +1 -1
  275. eval_studio_client/api/models/v1_list_dashboards_response.py +1 -1
  276. eval_studio_client/api/models/v1_list_documents_response.py +1 -1
  277. eval_studio_client/api/models/v1_list_evaluators_response.py +1 -1
  278. eval_studio_client/api/models/v1_list_leaderboards_response.py +1 -1
  279. eval_studio_client/api/models/v1_list_llm_models_response.py +1 -1
  280. eval_studio_client/api/models/v1_list_model_collections_response.py +1 -1
  281. eval_studio_client/api/models/v1_list_models_response.py +1 -1
  282. eval_studio_client/api/models/v1_list_most_recent_dashboards_response.py +1 -1
  283. eval_studio_client/api/models/v1_list_most_recent_leaderboards_response.py +1 -1
  284. eval_studio_client/api/models/v1_list_most_recent_models_response.py +1 -1
  285. eval_studio_client/api/models/v1_list_most_recent_tests_response.py +1 -1
  286. eval_studio_client/api/models/v1_list_operations_response.py +1 -1
  287. eval_studio_client/api/models/v1_list_perturbators_response.py +1 -1
  288. eval_studio_client/api/models/v1_list_prompt_library_items_response.py +95 -0
  289. eval_studio_client/api/models/v1_list_rag_collections_response.py +1 -1
  290. eval_studio_client/api/models/v1_list_test_case_library_items_response.py +95 -0
  291. eval_studio_client/api/models/v1_list_test_case_relationships_response.py +95 -0
  292. eval_studio_client/api/models/v1_list_test_cases_response.py +1 -1
  293. eval_studio_client/api/models/v1_list_test_classes_response.py +1 -1
  294. eval_studio_client/api/models/v1_list_tests_response.py +1 -1
  295. eval_studio_client/api/models/v1_list_workflow_dependencies_response.py +105 -0
  296. eval_studio_client/api/models/v1_list_workflows_response.py +95 -0
  297. eval_studio_client/api/models/v1_metric_score.py +89 -0
  298. eval_studio_client/api/models/v1_metric_scores.py +95 -0
  299. eval_studio_client/api/models/v1_model.py +1 -1
  300. eval_studio_client/api/models/v1_model_type.py +1 -1
  301. eval_studio_client/api/models/v1_operation.py +1 -1
  302. eval_studio_client/api/models/v1_operation_progress.py +1 -1
  303. eval_studio_client/api/models/v1_perturb_test_in_place_response.py +91 -0
  304. eval_studio_client/api/models/v1_perturb_test_response.py +1 -1
  305. eval_studio_client/api/models/v1_perturbator.py +1 -1
  306. eval_studio_client/api/models/v1_perturbator_configuration.py +1 -1
  307. eval_studio_client/api/models/v1_perturbator_intensity.py +1 -1
  308. eval_studio_client/api/models/v1_problem_and_action.py +1 -1
  309. eval_studio_client/api/models/v1_process_workflow_node_response.py +91 -0
  310. eval_studio_client/api/models/v1_prompt_library_item.py +129 -0
  311. eval_studio_client/api/models/v1_repeated_context.py +95 -0
  312. eval_studio_client/api/models/v1_repeated_string.py +87 -0
  313. eval_studio_client/api/models/v1_reset_workflow_node_response.py +91 -0
  314. eval_studio_client/api/models/v1_test.py +6 -3
  315. eval_studio_client/api/models/v1_test_case.py +14 -3
  316. eval_studio_client/api/models/v1_test_case_relationship.py +1 -1
  317. eval_studio_client/api/models/v1_test_cases_generator.py +1 -1
  318. eval_studio_client/api/models/v1_test_class.py +1 -1
  319. eval_studio_client/api/models/v1_test_class_type.py +1 -1
  320. eval_studio_client/api/models/v1_test_lab.py +1 -1
  321. eval_studio_client/api/models/v1_test_suite_evaluates.py +39 -0
  322. eval_studio_client/api/models/v1_test_type.py +38 -0
  323. eval_studio_client/api/models/v1_update_dashboard_response.py +1 -1
  324. eval_studio_client/api/models/v1_update_document_response.py +1 -1
  325. eval_studio_client/api/models/v1_update_leaderboard_response.py +1 -1
  326. eval_studio_client/api/models/v1_update_model_response.py +1 -1
  327. eval_studio_client/api/models/v1_update_operation_response.py +1 -1
  328. eval_studio_client/api/models/v1_update_test_case_response.py +1 -1
  329. eval_studio_client/api/models/v1_update_test_response.py +1 -1
  330. eval_studio_client/api/models/v1_update_workflow_node_response.py +91 -0
  331. eval_studio_client/api/models/v1_update_workflow_response.py +91 -0
  332. eval_studio_client/api/models/v1_who_am_i_response.py +1 -1
  333. eval_studio_client/api/models/v1_workflow.py +164 -0
  334. eval_studio_client/api/models/v1_workflow_dependency.py +89 -0
  335. eval_studio_client/api/models/v1_workflow_edge.py +123 -0
  336. eval_studio_client/api/models/v1_workflow_edge_type.py +38 -0
  337. eval_studio_client/api/models/v1_workflow_node.py +156 -0
  338. eval_studio_client/api/models/v1_workflow_node_artifact.py +126 -0
  339. eval_studio_client/api/models/v1_workflow_node_artifacts.py +97 -0
  340. eval_studio_client/api/models/v1_workflow_node_attributes.py +87 -0
  341. eval_studio_client/api/models/v1_workflow_node_status.py +40 -0
  342. eval_studio_client/api/models/v1_workflow_node_type.py +44 -0
  343. eval_studio_client/api/models/v1_workflow_node_view.py +38 -0
  344. eval_studio_client/api/models/v1_workflow_type.py +37 -0
  345. eval_studio_client/api/models/workflow_service_clone_workflow_request.py +95 -0
  346. eval_studio_client/api/rest.py +1 -1
  347. eval_studio_client/api/test/test_adversarial_inputs_service_api.py +37 -0
  348. eval_studio_client/api/test/test_adversarial_inputs_service_test_adversarial_inputs_robustness_request.py +128 -0
  349. eval_studio_client/api/test/test_dashboard_service_api.py +1 -1
  350. eval_studio_client/api/test/test_document_service_api.py +1 -1
  351. eval_studio_client/api/test/test_evaluation_service_api.py +1 -1
  352. eval_studio_client/api/test/test_evaluator_service_api.py +1 -1
  353. eval_studio_client/api/test/test_human_calibration_service_api.py +38 -0
  354. eval_studio_client/api/test/test_info_service_api.py +1 -1
  355. eval_studio_client/api/test/test_leaderboard_report_service_api.py +37 -0
  356. eval_studio_client/api/test/test_leaderboard_service_api.py +1 -1
  357. eval_studio_client/api/test/test_model_service_api.py +1 -1
  358. eval_studio_client/api/test/test_operation_progress_service_api.py +1 -1
  359. eval_studio_client/api/test/test_operation_service_api.py +7 -1
  360. eval_studio_client/api/test/test_perturbation_service_api.py +1 -1
  361. eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +25 -3
  362. eval_studio_client/api/test/test_perturbator_service_api.py +1 -1
  363. eval_studio_client/api/test/test_prompt_generation_service_api.py +1 -1
  364. eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +21 -5
  365. eval_studio_client/api/test/test_prompt_library_service_api.py +43 -0
  366. eval_studio_client/api/test/test_protobuf_any.py +1 -1
  367. eval_studio_client/api/test/test_protobuf_null_value.py +33 -0
  368. eval_studio_client/api/test/test_required_the_dashboard_to_update.py +3 -2
  369. eval_studio_client/api/test/test_required_the_document_to_update.py +1 -1
  370. eval_studio_client/api/test/test_required_the_leaderboard_to_update.py +1 -1
  371. eval_studio_client/api/test/test_required_the_model_to_update.py +1 -1
  372. eval_studio_client/api/test/test_required_the_operation_to_finalize.py +1 -1
  373. eval_studio_client/api/test/test_required_the_operation_to_update.py +1 -1
  374. eval_studio_client/api/test/test_required_the_test_case_to_update.py +9 -2
  375. eval_studio_client/api/test/test_required_the_test_to_update.py +3 -2
  376. eval_studio_client/api/test/test_required_the_updated_workflow.py +92 -0
  377. eval_studio_client/api/test/test_required_the_updated_workflow_node.py +81 -0
  378. eval_studio_client/api/test/test_rpc_status.py +1 -1
  379. eval_studio_client/api/test/test_test_case_relationship_service_api.py +37 -0
  380. eval_studio_client/api/test/test_test_case_service_api.py +1 -1
  381. eval_studio_client/api/test/test_test_case_service_batch_delete_test_cases_request.py +1 -1
  382. eval_studio_client/api/test/test_test_class_service_api.py +1 -1
  383. eval_studio_client/api/test/test_test_lab_service_api.py +1 -1
  384. eval_studio_client/api/test/test_test_service_api.py +25 -1
  385. eval_studio_client/api/test/test_test_service_clone_test_request.py +52 -0
  386. eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +17 -2
  387. eval_studio_client/api/test/test_test_service_import_test_cases_from_library_request.py +56 -0
  388. eval_studio_client/api/test/test_test_service_list_test_case_library_items_request.py +63 -0
  389. eval_studio_client/api/test/test_test_service_perturb_test_in_place_request.py +59 -0
  390. eval_studio_client/api/test/test_test_service_perturb_test_request.py +5 -2
  391. eval_studio_client/api/test/test_v1_abort_operation_response.py +71 -0
  392. eval_studio_client/api/test/test_v1_batch_create_leaderboards_request.py +1 -1
  393. eval_studio_client/api/test/test_v1_batch_create_leaderboards_response.py +1 -1
  394. eval_studio_client/api/test/test_v1_batch_delete_dashboards_request.py +1 -1
  395. eval_studio_client/api/test/test_v1_batch_delete_dashboards_response.py +3 -2
  396. eval_studio_client/api/test/test_v1_batch_delete_documents_request.py +1 -1
  397. eval_studio_client/api/test/test_v1_batch_delete_documents_response.py +1 -1
  398. eval_studio_client/api/test/test_v1_batch_delete_evaluators_request.py +1 -1
  399. eval_studio_client/api/test/test_v1_batch_delete_evaluators_response.py +4 -2
  400. eval_studio_client/api/test/test_v1_batch_delete_leaderboards_request.py +1 -1
  401. eval_studio_client/api/test/test_v1_batch_delete_leaderboards_response.py +1 -1
  402. eval_studio_client/api/test/test_v1_batch_delete_models_request.py +1 -1
  403. eval_studio_client/api/test/test_v1_batch_delete_models_response.py +1 -1
  404. eval_studio_client/api/test/test_v1_batch_delete_test_cases_response.py +9 -2
  405. eval_studio_client/api/test/test_v1_batch_delete_tests_request.py +1 -1
  406. eval_studio_client/api/test/test_v1_batch_delete_tests_response.py +3 -2
  407. eval_studio_client/api/test/test_v1_batch_delete_workflows_request.py +53 -0
  408. eval_studio_client/api/test/test_v1_batch_delete_workflows_response.py +95 -0
  409. eval_studio_client/api/test/test_v1_batch_get_dashboards_response.py +3 -2
  410. eval_studio_client/api/test/test_v1_batch_get_documents_response.py +1 -1
  411. eval_studio_client/api/test/test_v1_batch_get_leaderboards_response.py +1 -1
  412. eval_studio_client/api/test/test_v1_batch_get_models_response.py +1 -1
  413. eval_studio_client/api/test/test_v1_batch_get_operations_response.py +1 -1
  414. eval_studio_client/api/test/test_v1_batch_get_tests_response.py +3 -2
  415. eval_studio_client/api/test/test_v1_batch_get_workflow_edges_response.py +64 -0
  416. eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +84 -0
  417. eval_studio_client/api/test/test_v1_batch_import_leaderboard_request.py +1 -1
  418. eval_studio_client/api/test/test_v1_batch_import_leaderboard_response.py +1 -1
  419. eval_studio_client/api/test/test_v1_batch_import_tests_request.py +1 -1
  420. eval_studio_client/api/test/test_v1_batch_import_tests_response.py +3 -2
  421. eval_studio_client/api/test/test_v1_check_base_models_response.py +1 -1
  422. eval_studio_client/api/test/test_v1_clone_test_response.py +68 -0
  423. eval_studio_client/api/test/test_v1_clone_workflow_response.py +93 -0
  424. eval_studio_client/api/test/test_v1_collection_info.py +1 -1
  425. eval_studio_client/api/test/test_v1_context.py +59 -0
  426. eval_studio_client/api/test/test_v1_create_dashboard_response.py +3 -2
  427. eval_studio_client/api/test/test_v1_create_document_response.py +1 -1
  428. eval_studio_client/api/test/test_v1_create_evaluation_request.py +25 -3
  429. eval_studio_client/api/test/test_v1_create_evaluator_response.py +4 -2
  430. eval_studio_client/api/test/test_v1_create_leaderboard_request.py +1 -1
  431. eval_studio_client/api/test/test_v1_create_leaderboard_response.py +1 -1
  432. eval_studio_client/api/test/test_v1_create_leaderboard_without_cache_response.py +1 -1
  433. eval_studio_client/api/test/test_v1_create_model_response.py +1 -1
  434. eval_studio_client/api/test/test_v1_create_perturbation_response.py +1 -1
  435. eval_studio_client/api/test/test_v1_create_test_case_response.py +9 -2
  436. eval_studio_client/api/test/test_v1_create_test_lab_response.py +1 -1
  437. eval_studio_client/api/test/test_v1_create_test_response.py +3 -2
  438. eval_studio_client/api/test/test_v1_create_workflow_edge_response.py +62 -0
  439. eval_studio_client/api/test/test_v1_create_workflow_node_response.py +82 -0
  440. eval_studio_client/api/test/test_v1_create_workflow_response.py +93 -0
  441. eval_studio_client/api/test/test_v1_dashboard.py +3 -2
  442. eval_studio_client/api/test/test_v1_dashboard_status.py +1 -1
  443. eval_studio_client/api/test/test_v1_dashboard_type.py +33 -0
  444. eval_studio_client/api/test/test_v1_delete_dashboard_response.py +3 -2
  445. eval_studio_client/api/test/test_v1_delete_document_response.py +1 -1
  446. eval_studio_client/api/test/test_v1_delete_evaluator_response.py +4 -2
  447. eval_studio_client/api/test/test_v1_delete_leaderboard_response.py +1 -1
  448. eval_studio_client/api/test/test_v1_delete_model_response.py +1 -1
  449. eval_studio_client/api/test/test_v1_delete_test_case_response.py +9 -2
  450. eval_studio_client/api/test/test_v1_delete_test_response.py +3 -2
  451. eval_studio_client/api/test/test_v1_delete_workflow_edge_response.py +62 -0
  452. eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +82 -0
  453. eval_studio_client/api/test/test_v1_delete_workflow_response.py +93 -0
  454. eval_studio_client/api/test/test_v1_dependency_list.py +56 -0
  455. eval_studio_client/api/test/test_v1_document.py +1 -1
  456. eval_studio_client/api/test/test_v1_estimate_threshold_request.py +60 -0
  457. eval_studio_client/api/test/test_v1_evaluation_test.py +9 -2
  458. eval_studio_client/api/test/test_v1_evaluator.py +4 -2
  459. eval_studio_client/api/test/test_v1_evaluator_param_type.py +1 -1
  460. eval_studio_client/api/test/test_v1_evaluator_parameter.py +1 -1
  461. eval_studio_client/api/test/test_v1_evaluator_view.py +1 -1
  462. eval_studio_client/api/test/test_v1_finalize_operation_response.py +1 -1
  463. eval_studio_client/api/test/test_v1_find_all_test_cases_by_id_response.py +9 -2
  464. eval_studio_client/api/test/test_v1_find_test_lab_response.py +1 -1
  465. eval_studio_client/api/test/test_v1_generate_test_cases_response.py +1 -1
  466. eval_studio_client/api/test/test_v1_get_dashboard_response.py +3 -2
  467. eval_studio_client/api/test/test_v1_get_document_response.py +1 -1
  468. eval_studio_client/api/test/test_v1_get_evaluator_response.py +4 -2
  469. eval_studio_client/api/test/test_v1_get_guardrails_configuration_response.py +51 -0
  470. eval_studio_client/api/test/test_v1_get_info_response.py +7 -2
  471. eval_studio_client/api/test/test_v1_get_leaderboard_report_response.py +173 -0
  472. eval_studio_client/api/test/test_v1_get_leaderboard_response.py +1 -1
  473. eval_studio_client/api/test/test_v1_get_model_response.py +1 -1
  474. eval_studio_client/api/test/test_v1_get_operation_progress_by_parent_response.py +1 -1
  475. eval_studio_client/api/test/test_v1_get_operation_response.py +1 -1
  476. eval_studio_client/api/test/test_v1_get_perturbator_response.py +1 -1
  477. eval_studio_client/api/test/test_v1_get_test_case_response.py +9 -2
  478. eval_studio_client/api/test/test_v1_get_test_class_response.py +1 -1
  479. eval_studio_client/api/test/test_v1_get_test_response.py +3 -2
  480. eval_studio_client/api/test/test_v1_get_workflow_node_prerequisites_response.py +56 -0
  481. eval_studio_client/api/test/test_v1_get_workflow_node_response.py +82 -0
  482. eval_studio_client/api/test/test_v1_get_workflow_response.py +93 -0
  483. eval_studio_client/api/test/test_v1_import_evaluation_request.py +17 -2
  484. eval_studio_client/api/test/test_v1_import_leaderboard_request.py +1 -1
  485. eval_studio_client/api/test/test_v1_import_leaderboard_response.py +1 -1
  486. eval_studio_client/api/test/test_v1_import_test_cases_from_library_response.py +71 -0
  487. eval_studio_client/api/test/test_v1_import_test_cases_request.py +57 -0
  488. eval_studio_client/api/test/test_v1_info.py +7 -2
  489. eval_studio_client/api/test/test_v1_init_workflow_node_response.py +82 -0
  490. eval_studio_client/api/test/test_v1_insight.py +1 -1
  491. eval_studio_client/api/test/test_v1_labeled_test_case.py +53 -0
  492. eval_studio_client/api/test/test_v1_leaderboard.py +1 -1
  493. eval_studio_client/api/test/test_v1_leaderboard_report.py +172 -0
  494. eval_studio_client/api/test/test_v1_leaderboard_report_actual_output_data.py +52 -0
  495. eval_studio_client/api/test/test_v1_leaderboard_report_actual_output_meta.py +56 -0
  496. eval_studio_client/api/test/test_v1_leaderboard_report_evaluator.py +114 -0
  497. eval_studio_client/api/test/test_v1_leaderboard_report_evaluator_parameter.py +63 -0
  498. eval_studio_client/api/test/test_v1_leaderboard_report_explanation.py +58 -0
  499. eval_studio_client/api/test/test_v1_leaderboard_report_metrics_meta_entry.py +66 -0
  500. eval_studio_client/api/test/test_v1_leaderboard_report_model.py +60 -0
  501. eval_studio_client/api/test/test_v1_leaderboard_report_result.py +92 -0
  502. eval_studio_client/api/test/test_v1_leaderboard_report_result_relationship.py +53 -0
  503. eval_studio_client/api/test/test_v1_leaderboard_status.py +1 -1
  504. eval_studio_client/api/test/test_v1_leaderboard_type.py +1 -1
  505. eval_studio_client/api/test/test_v1_leaderboard_view.py +1 -1
  506. eval_studio_client/api/test/test_v1_list_base_models_response.py +1 -1
  507. eval_studio_client/api/test/test_v1_list_dashboards_response.py +3 -2
  508. eval_studio_client/api/test/test_v1_list_documents_response.py +1 -1
  509. eval_studio_client/api/test/test_v1_list_evaluators_response.py +4 -2
  510. eval_studio_client/api/test/test_v1_list_leaderboards_response.py +1 -1
  511. eval_studio_client/api/test/test_v1_list_llm_models_response.py +1 -1
  512. eval_studio_client/api/test/test_v1_list_model_collections_response.py +1 -1
  513. eval_studio_client/api/test/test_v1_list_models_response.py +1 -1
  514. eval_studio_client/api/test/test_v1_list_most_recent_dashboards_response.py +3 -2
  515. eval_studio_client/api/test/test_v1_list_most_recent_leaderboards_response.py +1 -1
  516. eval_studio_client/api/test/test_v1_list_most_recent_models_response.py +1 -1
  517. eval_studio_client/api/test/test_v1_list_most_recent_tests_response.py +3 -2
  518. eval_studio_client/api/test/test_v1_list_operations_response.py +1 -1
  519. eval_studio_client/api/test/test_v1_list_perturbators_response.py +1 -1
  520. eval_studio_client/api/test/test_v1_list_prompt_library_items_response.py +71 -0
  521. eval_studio_client/api/test/test_v1_list_rag_collections_response.py +1 -1
  522. eval_studio_client/api/test/test_v1_list_test_case_library_items_response.py +71 -0
  523. eval_studio_client/api/test/test_v1_list_test_case_relationships_response.py +56 -0
  524. eval_studio_client/api/test/test_v1_list_test_cases_response.py +9 -2
  525. eval_studio_client/api/test/test_v1_list_test_classes_response.py +1 -1
  526. eval_studio_client/api/test/test_v1_list_tests_response.py +3 -2
  527. eval_studio_client/api/test/test_v1_list_workflow_dependencies_response.py +93 -0
  528. eval_studio_client/api/test/test_v1_list_workflows_response.py +95 -0
  529. eval_studio_client/api/test/test_v1_metric_score.py +52 -0
  530. eval_studio_client/api/test/test_v1_metric_scores.py +55 -0
  531. eval_studio_client/api/test/test_v1_model.py +1 -1
  532. eval_studio_client/api/test/test_v1_model_type.py +1 -1
  533. eval_studio_client/api/test/test_v1_operation.py +1 -1
  534. eval_studio_client/api/test/test_v1_operation_progress.py +1 -1
  535. eval_studio_client/api/test/test_v1_perturb_test_in_place_response.py +68 -0
  536. eval_studio_client/api/test/test_v1_perturb_test_response.py +3 -2
  537. eval_studio_client/api/test/test_v1_perturbator.py +1 -1
  538. eval_studio_client/api/test/test_v1_perturbator_configuration.py +1 -1
  539. eval_studio_client/api/test/test_v1_perturbator_intensity.py +1 -1
  540. eval_studio_client/api/test/test_v1_problem_and_action.py +1 -1
  541. eval_studio_client/api/test/test_v1_process_workflow_node_response.py +71 -0
  542. eval_studio_client/api/test/test_v1_prompt_library_item.py +68 -0
  543. eval_studio_client/api/test/test_v1_repeated_context.py +62 -0
  544. eval_studio_client/api/test/test_v1_repeated_string.py +53 -0
  545. eval_studio_client/api/test/test_v1_reset_workflow_node_response.py +82 -0
  546. eval_studio_client/api/test/test_v1_test.py +3 -2
  547. eval_studio_client/api/test/test_v1_test_case.py +9 -2
  548. eval_studio_client/api/test/test_v1_test_case_relationship.py +1 -1
  549. eval_studio_client/api/test/test_v1_test_cases_generator.py +1 -1
  550. eval_studio_client/api/test/test_v1_test_class.py +1 -1
  551. eval_studio_client/api/test/test_v1_test_class_type.py +1 -1
  552. eval_studio_client/api/test/test_v1_test_lab.py +1 -1
  553. eval_studio_client/api/test/test_v1_test_suite_evaluates.py +33 -0
  554. eval_studio_client/api/test/test_v1_test_type.py +33 -0
  555. eval_studio_client/api/test/test_v1_update_dashboard_response.py +3 -2
  556. eval_studio_client/api/test/test_v1_update_document_response.py +1 -1
  557. eval_studio_client/api/test/test_v1_update_leaderboard_response.py +1 -1
  558. eval_studio_client/api/test/test_v1_update_model_response.py +1 -1
  559. eval_studio_client/api/test/test_v1_update_operation_response.py +1 -1
  560. eval_studio_client/api/test/test_v1_update_test_case_response.py +9 -2
  561. eval_studio_client/api/test/test_v1_update_test_response.py +3 -2
  562. eval_studio_client/api/test/test_v1_update_workflow_node_response.py +82 -0
  563. eval_studio_client/api/test/test_v1_update_workflow_response.py +93 -0
  564. eval_studio_client/api/test/test_v1_who_am_i_response.py +1 -1
  565. eval_studio_client/api/test/test_v1_workflow.py +93 -0
  566. eval_studio_client/api/test/test_v1_workflow_dependency.py +52 -0
  567. eval_studio_client/api/test/test_v1_workflow_edge.py +61 -0
  568. eval_studio_client/api/test/test_v1_workflow_edge_type.py +33 -0
  569. eval_studio_client/api/test/test_v1_workflow_node.py +82 -0
  570. eval_studio_client/api/test/test_v1_workflow_node_artifact.py +62 -0
  571. eval_studio_client/api/test/test_v1_workflow_node_artifacts.py +65 -0
  572. eval_studio_client/api/test/test_v1_workflow_node_attributes.py +51 -0
  573. eval_studio_client/api/test/test_v1_workflow_node_status.py +33 -0
  574. eval_studio_client/api/test/test_v1_workflow_node_type.py +33 -0
  575. eval_studio_client/api/test/test_v1_workflow_node_view.py +33 -0
  576. eval_studio_client/api/test/test_v1_workflow_type.py +33 -0
  577. eval_studio_client/api/test/test_who_am_i_service_api.py +1 -1
  578. eval_studio_client/api/test/test_workflow_edge_service_api.py +52 -0
  579. eval_studio_client/api/test/test_workflow_node_service_api.py +94 -0
  580. eval_studio_client/api/test/test_workflow_service_api.py +93 -0
  581. eval_studio_client/api/test/test_workflow_service_clone_workflow_request.py +55 -0
  582. eval_studio_client/client.py +7 -0
  583. eval_studio_client/dashboards.py +29 -0
  584. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +5318 -1884
  585. eval_studio_client/leaderboards.py +123 -0
  586. eval_studio_client/models.py +3 -42
  587. eval_studio_client/test_labs.py +49 -21
  588. eval_studio_client/tests.py +290 -8
  589. {eval_studio_client-1.0.3a1.dist-info → eval_studio_client-1.1.0a6.dist-info}/METADATA +1 -2
  590. eval_studio_client-1.1.0a6.dist-info/RECORD +732 -0
  591. eval_studio_client-1.0.3a1.dist-info/RECORD +0 -486
  592. {eval_studio_client-1.0.3a1.dist-info → eval_studio_client-1.1.0a6.dist-info}/WHEEL +0 -0
@@ -0,0 +1,2403 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.proto
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: version not set
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, field_validator
20
+ from typing_extensions import Annotated
21
+ from eval_studio_client.api.models.required_the_updated_workflow import RequiredTheUpdatedWorkflow
22
+ from eval_studio_client.api.models.v1_batch_delete_workflows_request import V1BatchDeleteWorkflowsRequest
23
+ from eval_studio_client.api.models.v1_batch_delete_workflows_response import V1BatchDeleteWorkflowsResponse
24
+ from eval_studio_client.api.models.v1_clone_workflow_response import V1CloneWorkflowResponse
25
+ from eval_studio_client.api.models.v1_create_workflow_response import V1CreateWorkflowResponse
26
+ from eval_studio_client.api.models.v1_delete_workflow_response import V1DeleteWorkflowResponse
27
+ from eval_studio_client.api.models.v1_get_guardrails_configuration_response import V1GetGuardrailsConfigurationResponse
28
+ from eval_studio_client.api.models.v1_get_workflow_response import V1GetWorkflowResponse
29
+ from eval_studio_client.api.models.v1_list_workflow_dependencies_response import V1ListWorkflowDependenciesResponse
30
+ from eval_studio_client.api.models.v1_list_workflows_response import V1ListWorkflowsResponse
31
+ from eval_studio_client.api.models.v1_update_workflow_response import V1UpdateWorkflowResponse
32
+ from eval_studio_client.api.models.v1_workflow import V1Workflow
33
+ from eval_studio_client.api.models.workflow_service_clone_workflow_request import WorkflowServiceCloneWorkflowRequest
34
+
35
+ from eval_studio_client.api.api_client import ApiClient, RequestSerialized
36
+ from eval_studio_client.api.api_response import ApiResponse
37
+ from eval_studio_client.api.rest import RESTResponseType
38
+
39
+
40
+ class WorkflowServiceApi:
41
+ """NOTE: This class is auto generated by OpenAPI Generator
42
+ Ref: https://openapi-generator.tech
43
+
44
+ Do not edit the class manually.
45
+ """
46
+
47
+ def __init__(self, api_client=None) -> None:
48
+ if api_client is None:
49
+ api_client = ApiClient.get_default()
50
+ self.api_client = api_client
51
+
52
+
53
+ @validate_call
54
+ def workflow_service_batch_delete_workflows(
55
+ self,
56
+ body: V1BatchDeleteWorkflowsRequest,
57
+ _request_timeout: Union[
58
+ None,
59
+ Annotated[StrictFloat, Field(gt=0)],
60
+ Tuple[
61
+ Annotated[StrictFloat, Field(gt=0)],
62
+ Annotated[StrictFloat, Field(gt=0)]
63
+ ]
64
+ ] = None,
65
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
66
+ _content_type: Optional[StrictStr] = None,
67
+ _headers: Optional[Dict[StrictStr, Any]] = None,
68
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
69
+ ) -> V1BatchDeleteWorkflowsResponse:
70
+ """BatchDeleteWorkflows deletes Workflows by names. If any of the Workflows do not exist an error is returned.
71
+
72
+
73
+ :param body: (required)
74
+ :type body: V1BatchDeleteWorkflowsRequest
75
+ :param _request_timeout: timeout setting for this request. If one
76
+ number provided, it will be total request
77
+ timeout. It can also be a pair (tuple) of
78
+ (connection, read) timeouts.
79
+ :type _request_timeout: int, tuple(int, int), optional
80
+ :param _request_auth: set to override the auth_settings for an a single
81
+ request; this effectively ignores the
82
+ authentication in the spec for a single request.
83
+ :type _request_auth: dict, optional
84
+ :param _content_type: force content-type for the request.
85
+ :type _content_type: str, Optional
86
+ :param _headers: set to override the headers for a single
87
+ request; this effectively ignores the headers
88
+ in the spec for a single request.
89
+ :type _headers: dict, optional
90
+ :param _host_index: set to override the host_index for a single
91
+ request; this effectively ignores the host_index
92
+ in the spec for a single request.
93
+ :type _host_index: int, optional
94
+ :return: Returns the result object.
95
+ """ # noqa: E501
96
+
97
+ _param = self._workflow_service_batch_delete_workflows_serialize(
98
+ body=body,
99
+ _request_auth=_request_auth,
100
+ _content_type=_content_type,
101
+ _headers=_headers,
102
+ _host_index=_host_index
103
+ )
104
+
105
+ _response_types_map: Dict[str, Optional[str]] = {
106
+ '200': "V1BatchDeleteWorkflowsResponse",
107
+ }
108
+ response_data = self.api_client.call_api(
109
+ *_param,
110
+ _request_timeout=_request_timeout
111
+ )
112
+ response_data.read()
113
+ return self.api_client.response_deserialize(
114
+ response_data=response_data,
115
+ response_types_map=_response_types_map,
116
+ ).data
117
+
118
+
119
+ @validate_call
120
+ def workflow_service_batch_delete_workflows_with_http_info(
121
+ self,
122
+ body: V1BatchDeleteWorkflowsRequest,
123
+ _request_timeout: Union[
124
+ None,
125
+ Annotated[StrictFloat, Field(gt=0)],
126
+ Tuple[
127
+ Annotated[StrictFloat, Field(gt=0)],
128
+ Annotated[StrictFloat, Field(gt=0)]
129
+ ]
130
+ ] = None,
131
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
132
+ _content_type: Optional[StrictStr] = None,
133
+ _headers: Optional[Dict[StrictStr, Any]] = None,
134
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
135
+ ) -> ApiResponse[V1BatchDeleteWorkflowsResponse]:
136
+ """BatchDeleteWorkflows deletes Workflows by names. If any of the Workflows do not exist an error is returned.
137
+
138
+
139
+ :param body: (required)
140
+ :type body: V1BatchDeleteWorkflowsRequest
141
+ :param _request_timeout: timeout setting for this request. If one
142
+ number provided, it will be total request
143
+ timeout. It can also be a pair (tuple) of
144
+ (connection, read) timeouts.
145
+ :type _request_timeout: int, tuple(int, int), optional
146
+ :param _request_auth: set to override the auth_settings for an a single
147
+ request; this effectively ignores the
148
+ authentication in the spec for a single request.
149
+ :type _request_auth: dict, optional
150
+ :param _content_type: force content-type for the request.
151
+ :type _content_type: str, Optional
152
+ :param _headers: set to override the headers for a single
153
+ request; this effectively ignores the headers
154
+ in the spec for a single request.
155
+ :type _headers: dict, optional
156
+ :param _host_index: set to override the host_index for a single
157
+ request; this effectively ignores the host_index
158
+ in the spec for a single request.
159
+ :type _host_index: int, optional
160
+ :return: Returns the result object.
161
+ """ # noqa: E501
162
+
163
+ _param = self._workflow_service_batch_delete_workflows_serialize(
164
+ body=body,
165
+ _request_auth=_request_auth,
166
+ _content_type=_content_type,
167
+ _headers=_headers,
168
+ _host_index=_host_index
169
+ )
170
+
171
+ _response_types_map: Dict[str, Optional[str]] = {
172
+ '200': "V1BatchDeleteWorkflowsResponse",
173
+ }
174
+ response_data = self.api_client.call_api(
175
+ *_param,
176
+ _request_timeout=_request_timeout
177
+ )
178
+ response_data.read()
179
+ return self.api_client.response_deserialize(
180
+ response_data=response_data,
181
+ response_types_map=_response_types_map,
182
+ )
183
+
184
+
185
+ @validate_call
186
+ def workflow_service_batch_delete_workflows_without_preload_content(
187
+ self,
188
+ body: V1BatchDeleteWorkflowsRequest,
189
+ _request_timeout: Union[
190
+ None,
191
+ Annotated[StrictFloat, Field(gt=0)],
192
+ Tuple[
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Annotated[StrictFloat, Field(gt=0)]
195
+ ]
196
+ ] = None,
197
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
198
+ _content_type: Optional[StrictStr] = None,
199
+ _headers: Optional[Dict[StrictStr, Any]] = None,
200
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
201
+ ) -> RESTResponseType:
202
+ """BatchDeleteWorkflows deletes Workflows by names. If any of the Workflows do not exist an error is returned.
203
+
204
+
205
+ :param body: (required)
206
+ :type body: V1BatchDeleteWorkflowsRequest
207
+ :param _request_timeout: timeout setting for this request. If one
208
+ number provided, it will be total request
209
+ timeout. It can also be a pair (tuple) of
210
+ (connection, read) timeouts.
211
+ :type _request_timeout: int, tuple(int, int), optional
212
+ :param _request_auth: set to override the auth_settings for an a single
213
+ request; this effectively ignores the
214
+ authentication in the spec for a single request.
215
+ :type _request_auth: dict, optional
216
+ :param _content_type: force content-type for the request.
217
+ :type _content_type: str, Optional
218
+ :param _headers: set to override the headers for a single
219
+ request; this effectively ignores the headers
220
+ in the spec for a single request.
221
+ :type _headers: dict, optional
222
+ :param _host_index: set to override the host_index for a single
223
+ request; this effectively ignores the host_index
224
+ in the spec for a single request.
225
+ :type _host_index: int, optional
226
+ :return: Returns the result object.
227
+ """ # noqa: E501
228
+
229
+ _param = self._workflow_service_batch_delete_workflows_serialize(
230
+ body=body,
231
+ _request_auth=_request_auth,
232
+ _content_type=_content_type,
233
+ _headers=_headers,
234
+ _host_index=_host_index
235
+ )
236
+
237
+ _response_types_map: Dict[str, Optional[str]] = {
238
+ '200': "V1BatchDeleteWorkflowsResponse",
239
+ }
240
+ response_data = self.api_client.call_api(
241
+ *_param,
242
+ _request_timeout=_request_timeout
243
+ )
244
+ return response_data.response
245
+
246
+
247
+ def _workflow_service_batch_delete_workflows_serialize(
248
+ self,
249
+ body,
250
+ _request_auth,
251
+ _content_type,
252
+ _headers,
253
+ _host_index,
254
+ ) -> RequestSerialized:
255
+
256
+ _host = None
257
+
258
+ _collection_formats: Dict[str, str] = {
259
+ }
260
+
261
+ _path_params: Dict[str, str] = {}
262
+ _query_params: List[Tuple[str, str]] = []
263
+ _header_params: Dict[str, Optional[str]] = _headers or {}
264
+ _form_params: List[Tuple[str, str]] = []
265
+ _files: Dict[str, Union[str, bytes]] = {}
266
+ _body_params: Optional[bytes] = None
267
+
268
+ # process the path parameters
269
+ # process the query parameters
270
+ # process the header parameters
271
+ # process the form parameters
272
+ # process the body parameter
273
+ if body is not None:
274
+ _body_params = body
275
+
276
+
277
+ # set the HTTP header `Accept`
278
+ _header_params['Accept'] = self.api_client.select_header_accept(
279
+ [
280
+ 'application/json'
281
+ ]
282
+ )
283
+
284
+ # set the HTTP header `Content-Type`
285
+ if _content_type:
286
+ _header_params['Content-Type'] = _content_type
287
+ else:
288
+ _default_content_type = (
289
+ self.api_client.select_header_content_type(
290
+ [
291
+ 'application/json'
292
+ ]
293
+ )
294
+ )
295
+ if _default_content_type is not None:
296
+ _header_params['Content-Type'] = _default_content_type
297
+
298
+ # authentication setting
299
+ _auth_settings: List[str] = [
300
+ ]
301
+
302
+ return self.api_client.param_serialize(
303
+ method='POST',
304
+ resource_path='/v1/workflows:batchDelete',
305
+ path_params=_path_params,
306
+ query_params=_query_params,
307
+ header_params=_header_params,
308
+ body=_body_params,
309
+ post_params=_form_params,
310
+ files=_files,
311
+ auth_settings=_auth_settings,
312
+ collection_formats=_collection_formats,
313
+ _host=_host,
314
+ _request_auth=_request_auth
315
+ )
316
+
317
+
318
+
319
+
320
+ @validate_call
321
+ def workflow_service_clone_workflow(
322
+ self,
323
+ name_1: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to clone.")],
324
+ body: WorkflowServiceCloneWorkflowRequest,
325
+ _request_timeout: Union[
326
+ None,
327
+ Annotated[StrictFloat, Field(gt=0)],
328
+ Tuple[
329
+ Annotated[StrictFloat, Field(gt=0)],
330
+ Annotated[StrictFloat, Field(gt=0)]
331
+ ]
332
+ ] = None,
333
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
334
+ _content_type: Optional[StrictStr] = None,
335
+ _headers: Optional[Dict[StrictStr, Any]] = None,
336
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
337
+ ) -> V1CloneWorkflowResponse:
338
+ """CloneWorkflow clones an existing Workflow.
339
+
340
+
341
+ :param name_1: Required. The name of the Workflow to clone. (required)
342
+ :type name_1: str
343
+ :param body: (required)
344
+ :type body: WorkflowServiceCloneWorkflowRequest
345
+ :param _request_timeout: timeout setting for this request. If one
346
+ number provided, it will be total request
347
+ timeout. It can also be a pair (tuple) of
348
+ (connection, read) timeouts.
349
+ :type _request_timeout: int, tuple(int, int), optional
350
+ :param _request_auth: set to override the auth_settings for an a single
351
+ request; this effectively ignores the
352
+ authentication in the spec for a single request.
353
+ :type _request_auth: dict, optional
354
+ :param _content_type: force content-type for the request.
355
+ :type _content_type: str, Optional
356
+ :param _headers: set to override the headers for a single
357
+ request; this effectively ignores the headers
358
+ in the spec for a single request.
359
+ :type _headers: dict, optional
360
+ :param _host_index: set to override the host_index for a single
361
+ request; this effectively ignores the host_index
362
+ in the spec for a single request.
363
+ :type _host_index: int, optional
364
+ :return: Returns the result object.
365
+ """ # noqa: E501
366
+
367
+ _param = self._workflow_service_clone_workflow_serialize(
368
+ name_1=name_1,
369
+ body=body,
370
+ _request_auth=_request_auth,
371
+ _content_type=_content_type,
372
+ _headers=_headers,
373
+ _host_index=_host_index
374
+ )
375
+
376
+ _response_types_map: Dict[str, Optional[str]] = {
377
+ '200': "V1CloneWorkflowResponse",
378
+ }
379
+ response_data = self.api_client.call_api(
380
+ *_param,
381
+ _request_timeout=_request_timeout
382
+ )
383
+ response_data.read()
384
+ return self.api_client.response_deserialize(
385
+ response_data=response_data,
386
+ response_types_map=_response_types_map,
387
+ ).data
388
+
389
+
390
+ @validate_call
391
+ def workflow_service_clone_workflow_with_http_info(
392
+ self,
393
+ name_1: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to clone.")],
394
+ body: WorkflowServiceCloneWorkflowRequest,
395
+ _request_timeout: Union[
396
+ None,
397
+ Annotated[StrictFloat, Field(gt=0)],
398
+ Tuple[
399
+ Annotated[StrictFloat, Field(gt=0)],
400
+ Annotated[StrictFloat, Field(gt=0)]
401
+ ]
402
+ ] = None,
403
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
404
+ _content_type: Optional[StrictStr] = None,
405
+ _headers: Optional[Dict[StrictStr, Any]] = None,
406
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
407
+ ) -> ApiResponse[V1CloneWorkflowResponse]:
408
+ """CloneWorkflow clones an existing Workflow.
409
+
410
+
411
+ :param name_1: Required. The name of the Workflow to clone. (required)
412
+ :type name_1: str
413
+ :param body: (required)
414
+ :type body: WorkflowServiceCloneWorkflowRequest
415
+ :param _request_timeout: timeout setting for this request. If one
416
+ number provided, it will be total request
417
+ timeout. It can also be a pair (tuple) of
418
+ (connection, read) timeouts.
419
+ :type _request_timeout: int, tuple(int, int), optional
420
+ :param _request_auth: set to override the auth_settings for an a single
421
+ request; this effectively ignores the
422
+ authentication in the spec for a single request.
423
+ :type _request_auth: dict, optional
424
+ :param _content_type: force content-type for the request.
425
+ :type _content_type: str, Optional
426
+ :param _headers: set to override the headers for a single
427
+ request; this effectively ignores the headers
428
+ in the spec for a single request.
429
+ :type _headers: dict, optional
430
+ :param _host_index: set to override the host_index for a single
431
+ request; this effectively ignores the host_index
432
+ in the spec for a single request.
433
+ :type _host_index: int, optional
434
+ :return: Returns the result object.
435
+ """ # noqa: E501
436
+
437
+ _param = self._workflow_service_clone_workflow_serialize(
438
+ name_1=name_1,
439
+ body=body,
440
+ _request_auth=_request_auth,
441
+ _content_type=_content_type,
442
+ _headers=_headers,
443
+ _host_index=_host_index
444
+ )
445
+
446
+ _response_types_map: Dict[str, Optional[str]] = {
447
+ '200': "V1CloneWorkflowResponse",
448
+ }
449
+ response_data = self.api_client.call_api(
450
+ *_param,
451
+ _request_timeout=_request_timeout
452
+ )
453
+ response_data.read()
454
+ return self.api_client.response_deserialize(
455
+ response_data=response_data,
456
+ response_types_map=_response_types_map,
457
+ )
458
+
459
+
460
+ @validate_call
461
+ def workflow_service_clone_workflow_without_preload_content(
462
+ self,
463
+ name_1: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to clone.")],
464
+ body: WorkflowServiceCloneWorkflowRequest,
465
+ _request_timeout: Union[
466
+ None,
467
+ Annotated[StrictFloat, Field(gt=0)],
468
+ Tuple[
469
+ Annotated[StrictFloat, Field(gt=0)],
470
+ Annotated[StrictFloat, Field(gt=0)]
471
+ ]
472
+ ] = None,
473
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
474
+ _content_type: Optional[StrictStr] = None,
475
+ _headers: Optional[Dict[StrictStr, Any]] = None,
476
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
477
+ ) -> RESTResponseType:
478
+ """CloneWorkflow clones an existing Workflow.
479
+
480
+
481
+ :param name_1: Required. The name of the Workflow to clone. (required)
482
+ :type name_1: str
483
+ :param body: (required)
484
+ :type body: WorkflowServiceCloneWorkflowRequest
485
+ :param _request_timeout: timeout setting for this request. If one
486
+ number provided, it will be total request
487
+ timeout. It can also be a pair (tuple) of
488
+ (connection, read) timeouts.
489
+ :type _request_timeout: int, tuple(int, int), optional
490
+ :param _request_auth: set to override the auth_settings for an a single
491
+ request; this effectively ignores the
492
+ authentication in the spec for a single request.
493
+ :type _request_auth: dict, optional
494
+ :param _content_type: force content-type for the request.
495
+ :type _content_type: str, Optional
496
+ :param _headers: set to override the headers for a single
497
+ request; this effectively ignores the headers
498
+ in the spec for a single request.
499
+ :type _headers: dict, optional
500
+ :param _host_index: set to override the host_index for a single
501
+ request; this effectively ignores the host_index
502
+ in the spec for a single request.
503
+ :type _host_index: int, optional
504
+ :return: Returns the result object.
505
+ """ # noqa: E501
506
+
507
+ _param = self._workflow_service_clone_workflow_serialize(
508
+ name_1=name_1,
509
+ body=body,
510
+ _request_auth=_request_auth,
511
+ _content_type=_content_type,
512
+ _headers=_headers,
513
+ _host_index=_host_index
514
+ )
515
+
516
+ _response_types_map: Dict[str, Optional[str]] = {
517
+ '200': "V1CloneWorkflowResponse",
518
+ }
519
+ response_data = self.api_client.call_api(
520
+ *_param,
521
+ _request_timeout=_request_timeout
522
+ )
523
+ return response_data.response
524
+
525
+
526
+ def _workflow_service_clone_workflow_serialize(
527
+ self,
528
+ name_1,
529
+ body,
530
+ _request_auth,
531
+ _content_type,
532
+ _headers,
533
+ _host_index,
534
+ ) -> RequestSerialized:
535
+
536
+ _host = None
537
+
538
+ _collection_formats: Dict[str, str] = {
539
+ }
540
+
541
+ _path_params: Dict[str, str] = {}
542
+ _query_params: List[Tuple[str, str]] = []
543
+ _header_params: Dict[str, Optional[str]] = _headers or {}
544
+ _form_params: List[Tuple[str, str]] = []
545
+ _files: Dict[str, Union[str, bytes]] = {}
546
+ _body_params: Optional[bytes] = None
547
+
548
+ # process the path parameters
549
+ if name_1 is not None:
550
+ _path_params['name_1'] = name_1
551
+ # process the query parameters
552
+ # process the header parameters
553
+ # process the form parameters
554
+ # process the body parameter
555
+ if body is not None:
556
+ _body_params = body
557
+
558
+
559
+ # set the HTTP header `Accept`
560
+ _header_params['Accept'] = self.api_client.select_header_accept(
561
+ [
562
+ 'application/json'
563
+ ]
564
+ )
565
+
566
+ # set the HTTP header `Content-Type`
567
+ if _content_type:
568
+ _header_params['Content-Type'] = _content_type
569
+ else:
570
+ _default_content_type = (
571
+ self.api_client.select_header_content_type(
572
+ [
573
+ 'application/json'
574
+ ]
575
+ )
576
+ )
577
+ if _default_content_type is not None:
578
+ _header_params['Content-Type'] = _default_content_type
579
+
580
+ # authentication setting
581
+ _auth_settings: List[str] = [
582
+ ]
583
+
584
+ return self.api_client.param_serialize(
585
+ method='POST',
586
+ resource_path='/v1/{name_1}:clone',
587
+ path_params=_path_params,
588
+ query_params=_query_params,
589
+ header_params=_header_params,
590
+ body=_body_params,
591
+ post_params=_form_params,
592
+ files=_files,
593
+ auth_settings=_auth_settings,
594
+ collection_formats=_collection_formats,
595
+ _host=_host,
596
+ _request_auth=_request_auth
597
+ )
598
+
599
+
600
+
601
+
602
+ @validate_call
603
+ def workflow_service_create_workflow(
604
+ self,
605
+ workflow: Annotated[V1Workflow, Field(description="Required. The Workflow to create.")],
606
+ _request_timeout: Union[
607
+ None,
608
+ Annotated[StrictFloat, Field(gt=0)],
609
+ Tuple[
610
+ Annotated[StrictFloat, Field(gt=0)],
611
+ Annotated[StrictFloat, Field(gt=0)]
612
+ ]
613
+ ] = None,
614
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
615
+ _content_type: Optional[StrictStr] = None,
616
+ _headers: Optional[Dict[StrictStr, Any]] = None,
617
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
618
+ ) -> V1CreateWorkflowResponse:
619
+ """CreateWorkflow creates a Workflow.
620
+
621
+
622
+ :param workflow: Required. The Workflow to create. (required)
623
+ :type workflow: V1Workflow
624
+ :param _request_timeout: timeout setting for this request. If one
625
+ number provided, it will be total request
626
+ timeout. It can also be a pair (tuple) of
627
+ (connection, read) timeouts.
628
+ :type _request_timeout: int, tuple(int, int), optional
629
+ :param _request_auth: set to override the auth_settings for an a single
630
+ request; this effectively ignores the
631
+ authentication in the spec for a single request.
632
+ :type _request_auth: dict, optional
633
+ :param _content_type: force content-type for the request.
634
+ :type _content_type: str, Optional
635
+ :param _headers: set to override the headers for a single
636
+ request; this effectively ignores the headers
637
+ in the spec for a single request.
638
+ :type _headers: dict, optional
639
+ :param _host_index: set to override the host_index for a single
640
+ request; this effectively ignores the host_index
641
+ in the spec for a single request.
642
+ :type _host_index: int, optional
643
+ :return: Returns the result object.
644
+ """ # noqa: E501
645
+
646
+ _param = self._workflow_service_create_workflow_serialize(
647
+ workflow=workflow,
648
+ _request_auth=_request_auth,
649
+ _content_type=_content_type,
650
+ _headers=_headers,
651
+ _host_index=_host_index
652
+ )
653
+
654
+ _response_types_map: Dict[str, Optional[str]] = {
655
+ '200': "V1CreateWorkflowResponse",
656
+ }
657
+ response_data = self.api_client.call_api(
658
+ *_param,
659
+ _request_timeout=_request_timeout
660
+ )
661
+ response_data.read()
662
+ return self.api_client.response_deserialize(
663
+ response_data=response_data,
664
+ response_types_map=_response_types_map,
665
+ ).data
666
+
667
+
668
+ @validate_call
669
+ def workflow_service_create_workflow_with_http_info(
670
+ self,
671
+ workflow: Annotated[V1Workflow, Field(description="Required. The Workflow to create.")],
672
+ _request_timeout: Union[
673
+ None,
674
+ Annotated[StrictFloat, Field(gt=0)],
675
+ Tuple[
676
+ Annotated[StrictFloat, Field(gt=0)],
677
+ Annotated[StrictFloat, Field(gt=0)]
678
+ ]
679
+ ] = None,
680
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
681
+ _content_type: Optional[StrictStr] = None,
682
+ _headers: Optional[Dict[StrictStr, Any]] = None,
683
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
684
+ ) -> ApiResponse[V1CreateWorkflowResponse]:
685
+ """CreateWorkflow creates a Workflow.
686
+
687
+
688
+ :param workflow: Required. The Workflow to create. (required)
689
+ :type workflow: V1Workflow
690
+ :param _request_timeout: timeout setting for this request. If one
691
+ number provided, it will be total request
692
+ timeout. It can also be a pair (tuple) of
693
+ (connection, read) timeouts.
694
+ :type _request_timeout: int, tuple(int, int), optional
695
+ :param _request_auth: set to override the auth_settings for an a single
696
+ request; this effectively ignores the
697
+ authentication in the spec for a single request.
698
+ :type _request_auth: dict, optional
699
+ :param _content_type: force content-type for the request.
700
+ :type _content_type: str, Optional
701
+ :param _headers: set to override the headers for a single
702
+ request; this effectively ignores the headers
703
+ in the spec for a single request.
704
+ :type _headers: dict, optional
705
+ :param _host_index: set to override the host_index for a single
706
+ request; this effectively ignores the host_index
707
+ in the spec for a single request.
708
+ :type _host_index: int, optional
709
+ :return: Returns the result object.
710
+ """ # noqa: E501
711
+
712
+ _param = self._workflow_service_create_workflow_serialize(
713
+ workflow=workflow,
714
+ _request_auth=_request_auth,
715
+ _content_type=_content_type,
716
+ _headers=_headers,
717
+ _host_index=_host_index
718
+ )
719
+
720
+ _response_types_map: Dict[str, Optional[str]] = {
721
+ '200': "V1CreateWorkflowResponse",
722
+ }
723
+ response_data = self.api_client.call_api(
724
+ *_param,
725
+ _request_timeout=_request_timeout
726
+ )
727
+ response_data.read()
728
+ return self.api_client.response_deserialize(
729
+ response_data=response_data,
730
+ response_types_map=_response_types_map,
731
+ )
732
+
733
+
734
+ @validate_call
735
+ def workflow_service_create_workflow_without_preload_content(
736
+ self,
737
+ workflow: Annotated[V1Workflow, Field(description="Required. The Workflow to create.")],
738
+ _request_timeout: Union[
739
+ None,
740
+ Annotated[StrictFloat, Field(gt=0)],
741
+ Tuple[
742
+ Annotated[StrictFloat, Field(gt=0)],
743
+ Annotated[StrictFloat, Field(gt=0)]
744
+ ]
745
+ ] = None,
746
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
747
+ _content_type: Optional[StrictStr] = None,
748
+ _headers: Optional[Dict[StrictStr, Any]] = None,
749
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
750
+ ) -> RESTResponseType:
751
+ """CreateWorkflow creates a Workflow.
752
+
753
+
754
+ :param workflow: Required. The Workflow to create. (required)
755
+ :type workflow: V1Workflow
756
+ :param _request_timeout: timeout setting for this request. If one
757
+ number provided, it will be total request
758
+ timeout. It can also be a pair (tuple) of
759
+ (connection, read) timeouts.
760
+ :type _request_timeout: int, tuple(int, int), optional
761
+ :param _request_auth: set to override the auth_settings for an a single
762
+ request; this effectively ignores the
763
+ authentication in the spec for a single request.
764
+ :type _request_auth: dict, optional
765
+ :param _content_type: force content-type for the request.
766
+ :type _content_type: str, Optional
767
+ :param _headers: set to override the headers for a single
768
+ request; this effectively ignores the headers
769
+ in the spec for a single request.
770
+ :type _headers: dict, optional
771
+ :param _host_index: set to override the host_index for a single
772
+ request; this effectively ignores the host_index
773
+ in the spec for a single request.
774
+ :type _host_index: int, optional
775
+ :return: Returns the result object.
776
+ """ # noqa: E501
777
+
778
+ _param = self._workflow_service_create_workflow_serialize(
779
+ workflow=workflow,
780
+ _request_auth=_request_auth,
781
+ _content_type=_content_type,
782
+ _headers=_headers,
783
+ _host_index=_host_index
784
+ )
785
+
786
+ _response_types_map: Dict[str, Optional[str]] = {
787
+ '200': "V1CreateWorkflowResponse",
788
+ }
789
+ response_data = self.api_client.call_api(
790
+ *_param,
791
+ _request_timeout=_request_timeout
792
+ )
793
+ return response_data.response
794
+
795
+
796
+ def _workflow_service_create_workflow_serialize(
797
+ self,
798
+ workflow,
799
+ _request_auth,
800
+ _content_type,
801
+ _headers,
802
+ _host_index,
803
+ ) -> RequestSerialized:
804
+
805
+ _host = None
806
+
807
+ _collection_formats: Dict[str, str] = {
808
+ }
809
+
810
+ _path_params: Dict[str, str] = {}
811
+ _query_params: List[Tuple[str, str]] = []
812
+ _header_params: Dict[str, Optional[str]] = _headers or {}
813
+ _form_params: List[Tuple[str, str]] = []
814
+ _files: Dict[str, Union[str, bytes]] = {}
815
+ _body_params: Optional[bytes] = None
816
+
817
+ # process the path parameters
818
+ # process the query parameters
819
+ # process the header parameters
820
+ # process the form parameters
821
+ # process the body parameter
822
+ if workflow is not None:
823
+ _body_params = workflow
824
+
825
+
826
+ # set the HTTP header `Accept`
827
+ _header_params['Accept'] = self.api_client.select_header_accept(
828
+ [
829
+ 'application/json'
830
+ ]
831
+ )
832
+
833
+ # set the HTTP header `Content-Type`
834
+ if _content_type:
835
+ _header_params['Content-Type'] = _content_type
836
+ else:
837
+ _default_content_type = (
838
+ self.api_client.select_header_content_type(
839
+ [
840
+ 'application/json'
841
+ ]
842
+ )
843
+ )
844
+ if _default_content_type is not None:
845
+ _header_params['Content-Type'] = _default_content_type
846
+
847
+ # authentication setting
848
+ _auth_settings: List[str] = [
849
+ ]
850
+
851
+ return self.api_client.param_serialize(
852
+ method='POST',
853
+ resource_path='/v1/workflows',
854
+ path_params=_path_params,
855
+ query_params=_query_params,
856
+ header_params=_header_params,
857
+ body=_body_params,
858
+ post_params=_form_params,
859
+ files=_files,
860
+ auth_settings=_auth_settings,
861
+ collection_formats=_collection_formats,
862
+ _host=_host,
863
+ _request_auth=_request_auth
864
+ )
865
+
866
+
867
+
868
+
869
+ @validate_call
870
+ def workflow_service_delete_workflow(
871
+ self,
872
+ name_9: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to delete.")],
873
+ _request_timeout: Union[
874
+ None,
875
+ Annotated[StrictFloat, Field(gt=0)],
876
+ Tuple[
877
+ Annotated[StrictFloat, Field(gt=0)],
878
+ Annotated[StrictFloat, Field(gt=0)]
879
+ ]
880
+ ] = None,
881
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
882
+ _content_type: Optional[StrictStr] = None,
883
+ _headers: Optional[Dict[StrictStr, Any]] = None,
884
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
885
+ ) -> V1DeleteWorkflowResponse:
886
+ """DeleteWorkflow deletes a Workflow by name. If the Workflow does not exist an error is returned.
887
+
888
+
889
+ :param name_9: Required. The name of the Workflow to delete. (required)
890
+ :type name_9: str
891
+ :param _request_timeout: timeout setting for this request. If one
892
+ number provided, it will be total request
893
+ timeout. It can also be a pair (tuple) of
894
+ (connection, read) timeouts.
895
+ :type _request_timeout: int, tuple(int, int), optional
896
+ :param _request_auth: set to override the auth_settings for an a single
897
+ request; this effectively ignores the
898
+ authentication in the spec for a single request.
899
+ :type _request_auth: dict, optional
900
+ :param _content_type: force content-type for the request.
901
+ :type _content_type: str, Optional
902
+ :param _headers: set to override the headers for a single
903
+ request; this effectively ignores the headers
904
+ in the spec for a single request.
905
+ :type _headers: dict, optional
906
+ :param _host_index: set to override the host_index for a single
907
+ request; this effectively ignores the host_index
908
+ in the spec for a single request.
909
+ :type _host_index: int, optional
910
+ :return: Returns the result object.
911
+ """ # noqa: E501
912
+
913
+ _param = self._workflow_service_delete_workflow_serialize(
914
+ name_9=name_9,
915
+ _request_auth=_request_auth,
916
+ _content_type=_content_type,
917
+ _headers=_headers,
918
+ _host_index=_host_index
919
+ )
920
+
921
+ _response_types_map: Dict[str, Optional[str]] = {
922
+ '200': "V1DeleteWorkflowResponse",
923
+ }
924
+ response_data = self.api_client.call_api(
925
+ *_param,
926
+ _request_timeout=_request_timeout
927
+ )
928
+ response_data.read()
929
+ return self.api_client.response_deserialize(
930
+ response_data=response_data,
931
+ response_types_map=_response_types_map,
932
+ ).data
933
+
934
+
935
+ @validate_call
936
+ def workflow_service_delete_workflow_with_http_info(
937
+ self,
938
+ name_9: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to delete.")],
939
+ _request_timeout: Union[
940
+ None,
941
+ Annotated[StrictFloat, Field(gt=0)],
942
+ Tuple[
943
+ Annotated[StrictFloat, Field(gt=0)],
944
+ Annotated[StrictFloat, Field(gt=0)]
945
+ ]
946
+ ] = None,
947
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
948
+ _content_type: Optional[StrictStr] = None,
949
+ _headers: Optional[Dict[StrictStr, Any]] = None,
950
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
951
+ ) -> ApiResponse[V1DeleteWorkflowResponse]:
952
+ """DeleteWorkflow deletes a Workflow by name. If the Workflow does not exist an error is returned.
953
+
954
+
955
+ :param name_9: Required. The name of the Workflow to delete. (required)
956
+ :type name_9: str
957
+ :param _request_timeout: timeout setting for this request. If one
958
+ number provided, it will be total request
959
+ timeout. It can also be a pair (tuple) of
960
+ (connection, read) timeouts.
961
+ :type _request_timeout: int, tuple(int, int), optional
962
+ :param _request_auth: set to override the auth_settings for an a single
963
+ request; this effectively ignores the
964
+ authentication in the spec for a single request.
965
+ :type _request_auth: dict, optional
966
+ :param _content_type: force content-type for the request.
967
+ :type _content_type: str, Optional
968
+ :param _headers: set to override the headers for a single
969
+ request; this effectively ignores the headers
970
+ in the spec for a single request.
971
+ :type _headers: dict, optional
972
+ :param _host_index: set to override the host_index for a single
973
+ request; this effectively ignores the host_index
974
+ in the spec for a single request.
975
+ :type _host_index: int, optional
976
+ :return: Returns the result object.
977
+ """ # noqa: E501
978
+
979
+ _param = self._workflow_service_delete_workflow_serialize(
980
+ name_9=name_9,
981
+ _request_auth=_request_auth,
982
+ _content_type=_content_type,
983
+ _headers=_headers,
984
+ _host_index=_host_index
985
+ )
986
+
987
+ _response_types_map: Dict[str, Optional[str]] = {
988
+ '200': "V1DeleteWorkflowResponse",
989
+ }
990
+ response_data = self.api_client.call_api(
991
+ *_param,
992
+ _request_timeout=_request_timeout
993
+ )
994
+ response_data.read()
995
+ return self.api_client.response_deserialize(
996
+ response_data=response_data,
997
+ response_types_map=_response_types_map,
998
+ )
999
+
1000
+
1001
+ @validate_call
1002
+ def workflow_service_delete_workflow_without_preload_content(
1003
+ self,
1004
+ name_9: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to delete.")],
1005
+ _request_timeout: Union[
1006
+ None,
1007
+ Annotated[StrictFloat, Field(gt=0)],
1008
+ Tuple[
1009
+ Annotated[StrictFloat, Field(gt=0)],
1010
+ Annotated[StrictFloat, Field(gt=0)]
1011
+ ]
1012
+ ] = None,
1013
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1014
+ _content_type: Optional[StrictStr] = None,
1015
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1016
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1017
+ ) -> RESTResponseType:
1018
+ """DeleteWorkflow deletes a Workflow by name. If the Workflow does not exist an error is returned.
1019
+
1020
+
1021
+ :param name_9: Required. The name of the Workflow to delete. (required)
1022
+ :type name_9: str
1023
+ :param _request_timeout: timeout setting for this request. If one
1024
+ number provided, it will be total request
1025
+ timeout. It can also be a pair (tuple) of
1026
+ (connection, read) timeouts.
1027
+ :type _request_timeout: int, tuple(int, int), optional
1028
+ :param _request_auth: set to override the auth_settings for an a single
1029
+ request; this effectively ignores the
1030
+ authentication in the spec for a single request.
1031
+ :type _request_auth: dict, optional
1032
+ :param _content_type: force content-type for the request.
1033
+ :type _content_type: str, Optional
1034
+ :param _headers: set to override the headers for a single
1035
+ request; this effectively ignores the headers
1036
+ in the spec for a single request.
1037
+ :type _headers: dict, optional
1038
+ :param _host_index: set to override the host_index for a single
1039
+ request; this effectively ignores the host_index
1040
+ in the spec for a single request.
1041
+ :type _host_index: int, optional
1042
+ :return: Returns the result object.
1043
+ """ # noqa: E501
1044
+
1045
+ _param = self._workflow_service_delete_workflow_serialize(
1046
+ name_9=name_9,
1047
+ _request_auth=_request_auth,
1048
+ _content_type=_content_type,
1049
+ _headers=_headers,
1050
+ _host_index=_host_index
1051
+ )
1052
+
1053
+ _response_types_map: Dict[str, Optional[str]] = {
1054
+ '200': "V1DeleteWorkflowResponse",
1055
+ }
1056
+ response_data = self.api_client.call_api(
1057
+ *_param,
1058
+ _request_timeout=_request_timeout
1059
+ )
1060
+ return response_data.response
1061
+
1062
+
1063
+ def _workflow_service_delete_workflow_serialize(
1064
+ self,
1065
+ name_9,
1066
+ _request_auth,
1067
+ _content_type,
1068
+ _headers,
1069
+ _host_index,
1070
+ ) -> RequestSerialized:
1071
+
1072
+ _host = None
1073
+
1074
+ _collection_formats: Dict[str, str] = {
1075
+ }
1076
+
1077
+ _path_params: Dict[str, str] = {}
1078
+ _query_params: List[Tuple[str, str]] = []
1079
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1080
+ _form_params: List[Tuple[str, str]] = []
1081
+ _files: Dict[str, Union[str, bytes]] = {}
1082
+ _body_params: Optional[bytes] = None
1083
+
1084
+ # process the path parameters
1085
+ if name_9 is not None:
1086
+ _path_params['name_9'] = name_9
1087
+ # process the query parameters
1088
+ # process the header parameters
1089
+ # process the form parameters
1090
+ # process the body parameter
1091
+
1092
+
1093
+ # set the HTTP header `Accept`
1094
+ _header_params['Accept'] = self.api_client.select_header_accept(
1095
+ [
1096
+ 'application/json'
1097
+ ]
1098
+ )
1099
+
1100
+
1101
+ # authentication setting
1102
+ _auth_settings: List[str] = [
1103
+ ]
1104
+
1105
+ return self.api_client.param_serialize(
1106
+ method='DELETE',
1107
+ resource_path='/v1/{name_9}',
1108
+ path_params=_path_params,
1109
+ query_params=_query_params,
1110
+ header_params=_header_params,
1111
+ body=_body_params,
1112
+ post_params=_form_params,
1113
+ files=_files,
1114
+ auth_settings=_auth_settings,
1115
+ collection_formats=_collection_formats,
1116
+ _host=_host,
1117
+ _request_auth=_request_auth
1118
+ )
1119
+
1120
+
1121
+
1122
+
1123
+ @validate_call
1124
+ def workflow_service_get_guardrails_configuration(
1125
+ self,
1126
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned.")],
1127
+ _request_timeout: Union[
1128
+ None,
1129
+ Annotated[StrictFloat, Field(gt=0)],
1130
+ Tuple[
1131
+ Annotated[StrictFloat, Field(gt=0)],
1132
+ Annotated[StrictFloat, Field(gt=0)]
1133
+ ]
1134
+ ] = None,
1135
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1136
+ _content_type: Optional[StrictStr] = None,
1137
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1138
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1139
+ ) -> V1GetGuardrailsConfigurationResponse:
1140
+ """workflow_service_get_guardrails_configuration
1141
+
1142
+
1143
+ :param name: Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned. (required)
1144
+ :type name: str
1145
+ :param _request_timeout: timeout setting for this request. If one
1146
+ number provided, it will be total request
1147
+ timeout. It can also be a pair (tuple) of
1148
+ (connection, read) timeouts.
1149
+ :type _request_timeout: int, tuple(int, int), optional
1150
+ :param _request_auth: set to override the auth_settings for an a single
1151
+ request; this effectively ignores the
1152
+ authentication in the spec for a single request.
1153
+ :type _request_auth: dict, optional
1154
+ :param _content_type: force content-type for the request.
1155
+ :type _content_type: str, Optional
1156
+ :param _headers: set to override the headers for a single
1157
+ request; this effectively ignores the headers
1158
+ in the spec for a single request.
1159
+ :type _headers: dict, optional
1160
+ :param _host_index: set to override the host_index for a single
1161
+ request; this effectively ignores the host_index
1162
+ in the spec for a single request.
1163
+ :type _host_index: int, optional
1164
+ :return: Returns the result object.
1165
+ """ # noqa: E501
1166
+
1167
+ _param = self._workflow_service_get_guardrails_configuration_serialize(
1168
+ name=name,
1169
+ _request_auth=_request_auth,
1170
+ _content_type=_content_type,
1171
+ _headers=_headers,
1172
+ _host_index=_host_index
1173
+ )
1174
+
1175
+ _response_types_map: Dict[str, Optional[str]] = {
1176
+ '200': "V1GetGuardrailsConfigurationResponse",
1177
+ }
1178
+ response_data = self.api_client.call_api(
1179
+ *_param,
1180
+ _request_timeout=_request_timeout
1181
+ )
1182
+ response_data.read()
1183
+ return self.api_client.response_deserialize(
1184
+ response_data=response_data,
1185
+ response_types_map=_response_types_map,
1186
+ ).data
1187
+
1188
+
1189
+ @validate_call
1190
+ def workflow_service_get_guardrails_configuration_with_http_info(
1191
+ self,
1192
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned.")],
1193
+ _request_timeout: Union[
1194
+ None,
1195
+ Annotated[StrictFloat, Field(gt=0)],
1196
+ Tuple[
1197
+ Annotated[StrictFloat, Field(gt=0)],
1198
+ Annotated[StrictFloat, Field(gt=0)]
1199
+ ]
1200
+ ] = None,
1201
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1202
+ _content_type: Optional[StrictStr] = None,
1203
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1204
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1205
+ ) -> ApiResponse[V1GetGuardrailsConfigurationResponse]:
1206
+ """workflow_service_get_guardrails_configuration
1207
+
1208
+
1209
+ :param name: Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned. (required)
1210
+ :type name: str
1211
+ :param _request_timeout: timeout setting for this request. If one
1212
+ number provided, it will be total request
1213
+ timeout. It can also be a pair (tuple) of
1214
+ (connection, read) timeouts.
1215
+ :type _request_timeout: int, tuple(int, int), optional
1216
+ :param _request_auth: set to override the auth_settings for an a single
1217
+ request; this effectively ignores the
1218
+ authentication in the spec for a single request.
1219
+ :type _request_auth: dict, optional
1220
+ :param _content_type: force content-type for the request.
1221
+ :type _content_type: str, Optional
1222
+ :param _headers: set to override the headers for a single
1223
+ request; this effectively ignores the headers
1224
+ in the spec for a single request.
1225
+ :type _headers: dict, optional
1226
+ :param _host_index: set to override the host_index for a single
1227
+ request; this effectively ignores the host_index
1228
+ in the spec for a single request.
1229
+ :type _host_index: int, optional
1230
+ :return: Returns the result object.
1231
+ """ # noqa: E501
1232
+
1233
+ _param = self._workflow_service_get_guardrails_configuration_serialize(
1234
+ name=name,
1235
+ _request_auth=_request_auth,
1236
+ _content_type=_content_type,
1237
+ _headers=_headers,
1238
+ _host_index=_host_index
1239
+ )
1240
+
1241
+ _response_types_map: Dict[str, Optional[str]] = {
1242
+ '200': "V1GetGuardrailsConfigurationResponse",
1243
+ }
1244
+ response_data = self.api_client.call_api(
1245
+ *_param,
1246
+ _request_timeout=_request_timeout
1247
+ )
1248
+ response_data.read()
1249
+ return self.api_client.response_deserialize(
1250
+ response_data=response_data,
1251
+ response_types_map=_response_types_map,
1252
+ )
1253
+
1254
+
1255
+ @validate_call
1256
+ def workflow_service_get_guardrails_configuration_without_preload_content(
1257
+ self,
1258
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned.")],
1259
+ _request_timeout: Union[
1260
+ None,
1261
+ Annotated[StrictFloat, Field(gt=0)],
1262
+ Tuple[
1263
+ Annotated[StrictFloat, Field(gt=0)],
1264
+ Annotated[StrictFloat, Field(gt=0)]
1265
+ ]
1266
+ ] = None,
1267
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1268
+ _content_type: Optional[StrictStr] = None,
1269
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1270
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1271
+ ) -> RESTResponseType:
1272
+ """workflow_service_get_guardrails_configuration
1273
+
1274
+
1275
+ :param name: Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned. (required)
1276
+ :type name: str
1277
+ :param _request_timeout: timeout setting for this request. If one
1278
+ number provided, it will be total request
1279
+ timeout. It can also be a pair (tuple) of
1280
+ (connection, read) timeouts.
1281
+ :type _request_timeout: int, tuple(int, int), optional
1282
+ :param _request_auth: set to override the auth_settings for an a single
1283
+ request; this effectively ignores the
1284
+ authentication in the spec for a single request.
1285
+ :type _request_auth: dict, optional
1286
+ :param _content_type: force content-type for the request.
1287
+ :type _content_type: str, Optional
1288
+ :param _headers: set to override the headers for a single
1289
+ request; this effectively ignores the headers
1290
+ in the spec for a single request.
1291
+ :type _headers: dict, optional
1292
+ :param _host_index: set to override the host_index for a single
1293
+ request; this effectively ignores the host_index
1294
+ in the spec for a single request.
1295
+ :type _host_index: int, optional
1296
+ :return: Returns the result object.
1297
+ """ # noqa: E501
1298
+
1299
+ _param = self._workflow_service_get_guardrails_configuration_serialize(
1300
+ name=name,
1301
+ _request_auth=_request_auth,
1302
+ _content_type=_content_type,
1303
+ _headers=_headers,
1304
+ _host_index=_host_index
1305
+ )
1306
+
1307
+ _response_types_map: Dict[str, Optional[str]] = {
1308
+ '200': "V1GetGuardrailsConfigurationResponse",
1309
+ }
1310
+ response_data = self.api_client.call_api(
1311
+ *_param,
1312
+ _request_timeout=_request_timeout
1313
+ )
1314
+ return response_data.response
1315
+
1316
+
1317
+ def _workflow_service_get_guardrails_configuration_serialize(
1318
+ self,
1319
+ name,
1320
+ _request_auth,
1321
+ _content_type,
1322
+ _headers,
1323
+ _host_index,
1324
+ ) -> RequestSerialized:
1325
+
1326
+ _host = None
1327
+
1328
+ _collection_formats: Dict[str, str] = {
1329
+ }
1330
+
1331
+ _path_params: Dict[str, str] = {}
1332
+ _query_params: List[Tuple[str, str]] = []
1333
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1334
+ _form_params: List[Tuple[str, str]] = []
1335
+ _files: Dict[str, Union[str, bytes]] = {}
1336
+ _body_params: Optional[bytes] = None
1337
+
1338
+ # process the path parameters
1339
+ if name is not None:
1340
+ _path_params['name'] = name
1341
+ # process the query parameters
1342
+ # process the header parameters
1343
+ # process the form parameters
1344
+ # process the body parameter
1345
+
1346
+
1347
+ # set the HTTP header `Accept`
1348
+ _header_params['Accept'] = self.api_client.select_header_accept(
1349
+ [
1350
+ 'application/json'
1351
+ ]
1352
+ )
1353
+
1354
+
1355
+ # authentication setting
1356
+ _auth_settings: List[str] = [
1357
+ ]
1358
+
1359
+ return self.api_client.param_serialize(
1360
+ method='GET',
1361
+ resource_path='/v1/{name}:getGuardrailsConfiguration',
1362
+ path_params=_path_params,
1363
+ query_params=_query_params,
1364
+ header_params=_header_params,
1365
+ body=_body_params,
1366
+ post_params=_form_params,
1367
+ files=_files,
1368
+ auth_settings=_auth_settings,
1369
+ collection_formats=_collection_formats,
1370
+ _host=_host,
1371
+ _request_auth=_request_auth
1372
+ )
1373
+
1374
+
1375
+
1376
+
1377
+ @validate_call
1378
+ def workflow_service_get_workflow(
1379
+ self,
1380
+ name_12: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve.")],
1381
+ _request_timeout: Union[
1382
+ None,
1383
+ Annotated[StrictFloat, Field(gt=0)],
1384
+ Tuple[
1385
+ Annotated[StrictFloat, Field(gt=0)],
1386
+ Annotated[StrictFloat, Field(gt=0)]
1387
+ ]
1388
+ ] = None,
1389
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1390
+ _content_type: Optional[StrictStr] = None,
1391
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1392
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1393
+ ) -> V1GetWorkflowResponse:
1394
+ """GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
1395
+
1396
+
1397
+ :param name_12: Required. The name of the Workflow to retrieve. (required)
1398
+ :type name_12: str
1399
+ :param _request_timeout: timeout setting for this request. If one
1400
+ number provided, it will be total request
1401
+ timeout. It can also be a pair (tuple) of
1402
+ (connection, read) timeouts.
1403
+ :type _request_timeout: int, tuple(int, int), optional
1404
+ :param _request_auth: set to override the auth_settings for an a single
1405
+ request; this effectively ignores the
1406
+ authentication in the spec for a single request.
1407
+ :type _request_auth: dict, optional
1408
+ :param _content_type: force content-type for the request.
1409
+ :type _content_type: str, Optional
1410
+ :param _headers: set to override the headers for a single
1411
+ request; this effectively ignores the headers
1412
+ in the spec for a single request.
1413
+ :type _headers: dict, optional
1414
+ :param _host_index: set to override the host_index for a single
1415
+ request; this effectively ignores the host_index
1416
+ in the spec for a single request.
1417
+ :type _host_index: int, optional
1418
+ :return: Returns the result object.
1419
+ """ # noqa: E501
1420
+
1421
+ _param = self._workflow_service_get_workflow_serialize(
1422
+ name_12=name_12,
1423
+ _request_auth=_request_auth,
1424
+ _content_type=_content_type,
1425
+ _headers=_headers,
1426
+ _host_index=_host_index
1427
+ )
1428
+
1429
+ _response_types_map: Dict[str, Optional[str]] = {
1430
+ '200': "V1GetWorkflowResponse",
1431
+ }
1432
+ response_data = self.api_client.call_api(
1433
+ *_param,
1434
+ _request_timeout=_request_timeout
1435
+ )
1436
+ response_data.read()
1437
+ return self.api_client.response_deserialize(
1438
+ response_data=response_data,
1439
+ response_types_map=_response_types_map,
1440
+ ).data
1441
+
1442
+
1443
+ @validate_call
1444
+ def workflow_service_get_workflow_with_http_info(
1445
+ self,
1446
+ name_12: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve.")],
1447
+ _request_timeout: Union[
1448
+ None,
1449
+ Annotated[StrictFloat, Field(gt=0)],
1450
+ Tuple[
1451
+ Annotated[StrictFloat, Field(gt=0)],
1452
+ Annotated[StrictFloat, Field(gt=0)]
1453
+ ]
1454
+ ] = None,
1455
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1456
+ _content_type: Optional[StrictStr] = None,
1457
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1458
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1459
+ ) -> ApiResponse[V1GetWorkflowResponse]:
1460
+ """GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
1461
+
1462
+
1463
+ :param name_12: Required. The name of the Workflow to retrieve. (required)
1464
+ :type name_12: str
1465
+ :param _request_timeout: timeout setting for this request. If one
1466
+ number provided, it will be total request
1467
+ timeout. It can also be a pair (tuple) of
1468
+ (connection, read) timeouts.
1469
+ :type _request_timeout: int, tuple(int, int), optional
1470
+ :param _request_auth: set to override the auth_settings for an a single
1471
+ request; this effectively ignores the
1472
+ authentication in the spec for a single request.
1473
+ :type _request_auth: dict, optional
1474
+ :param _content_type: force content-type for the request.
1475
+ :type _content_type: str, Optional
1476
+ :param _headers: set to override the headers for a single
1477
+ request; this effectively ignores the headers
1478
+ in the spec for a single request.
1479
+ :type _headers: dict, optional
1480
+ :param _host_index: set to override the host_index for a single
1481
+ request; this effectively ignores the host_index
1482
+ in the spec for a single request.
1483
+ :type _host_index: int, optional
1484
+ :return: Returns the result object.
1485
+ """ # noqa: E501
1486
+
1487
+ _param = self._workflow_service_get_workflow_serialize(
1488
+ name_12=name_12,
1489
+ _request_auth=_request_auth,
1490
+ _content_type=_content_type,
1491
+ _headers=_headers,
1492
+ _host_index=_host_index
1493
+ )
1494
+
1495
+ _response_types_map: Dict[str, Optional[str]] = {
1496
+ '200': "V1GetWorkflowResponse",
1497
+ }
1498
+ response_data = self.api_client.call_api(
1499
+ *_param,
1500
+ _request_timeout=_request_timeout
1501
+ )
1502
+ response_data.read()
1503
+ return self.api_client.response_deserialize(
1504
+ response_data=response_data,
1505
+ response_types_map=_response_types_map,
1506
+ )
1507
+
1508
+
1509
+ @validate_call
1510
+ def workflow_service_get_workflow_without_preload_content(
1511
+ self,
1512
+ name_12: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve.")],
1513
+ _request_timeout: Union[
1514
+ None,
1515
+ Annotated[StrictFloat, Field(gt=0)],
1516
+ Tuple[
1517
+ Annotated[StrictFloat, Field(gt=0)],
1518
+ Annotated[StrictFloat, Field(gt=0)]
1519
+ ]
1520
+ ] = None,
1521
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1522
+ _content_type: Optional[StrictStr] = None,
1523
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1524
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1525
+ ) -> RESTResponseType:
1526
+ """GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
1527
+
1528
+
1529
+ :param name_12: Required. The name of the Workflow to retrieve. (required)
1530
+ :type name_12: str
1531
+ :param _request_timeout: timeout setting for this request. If one
1532
+ number provided, it will be total request
1533
+ timeout. It can also be a pair (tuple) of
1534
+ (connection, read) timeouts.
1535
+ :type _request_timeout: int, tuple(int, int), optional
1536
+ :param _request_auth: set to override the auth_settings for an a single
1537
+ request; this effectively ignores the
1538
+ authentication in the spec for a single request.
1539
+ :type _request_auth: dict, optional
1540
+ :param _content_type: force content-type for the request.
1541
+ :type _content_type: str, Optional
1542
+ :param _headers: set to override the headers for a single
1543
+ request; this effectively ignores the headers
1544
+ in the spec for a single request.
1545
+ :type _headers: dict, optional
1546
+ :param _host_index: set to override the host_index for a single
1547
+ request; this effectively ignores the host_index
1548
+ in the spec for a single request.
1549
+ :type _host_index: int, optional
1550
+ :return: Returns the result object.
1551
+ """ # noqa: E501
1552
+
1553
+ _param = self._workflow_service_get_workflow_serialize(
1554
+ name_12=name_12,
1555
+ _request_auth=_request_auth,
1556
+ _content_type=_content_type,
1557
+ _headers=_headers,
1558
+ _host_index=_host_index
1559
+ )
1560
+
1561
+ _response_types_map: Dict[str, Optional[str]] = {
1562
+ '200': "V1GetWorkflowResponse",
1563
+ }
1564
+ response_data = self.api_client.call_api(
1565
+ *_param,
1566
+ _request_timeout=_request_timeout
1567
+ )
1568
+ return response_data.response
1569
+
1570
+
1571
+ def _workflow_service_get_workflow_serialize(
1572
+ self,
1573
+ name_12,
1574
+ _request_auth,
1575
+ _content_type,
1576
+ _headers,
1577
+ _host_index,
1578
+ ) -> RequestSerialized:
1579
+
1580
+ _host = None
1581
+
1582
+ _collection_formats: Dict[str, str] = {
1583
+ }
1584
+
1585
+ _path_params: Dict[str, str] = {}
1586
+ _query_params: List[Tuple[str, str]] = []
1587
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1588
+ _form_params: List[Tuple[str, str]] = []
1589
+ _files: Dict[str, Union[str, bytes]] = {}
1590
+ _body_params: Optional[bytes] = None
1591
+
1592
+ # process the path parameters
1593
+ if name_12 is not None:
1594
+ _path_params['name_12'] = name_12
1595
+ # process the query parameters
1596
+ # process the header parameters
1597
+ # process the form parameters
1598
+ # process the body parameter
1599
+
1600
+
1601
+ # set the HTTP header `Accept`
1602
+ _header_params['Accept'] = self.api_client.select_header_accept(
1603
+ [
1604
+ 'application/json'
1605
+ ]
1606
+ )
1607
+
1608
+
1609
+ # authentication setting
1610
+ _auth_settings: List[str] = [
1611
+ ]
1612
+
1613
+ return self.api_client.param_serialize(
1614
+ method='GET',
1615
+ resource_path='/v1/{name_12}',
1616
+ path_params=_path_params,
1617
+ query_params=_query_params,
1618
+ header_params=_header_params,
1619
+ body=_body_params,
1620
+ post_params=_form_params,
1621
+ files=_files,
1622
+ auth_settings=_auth_settings,
1623
+ collection_formats=_collection_formats,
1624
+ _host=_host,
1625
+ _request_auth=_request_auth
1626
+ )
1627
+
1628
+
1629
+
1630
+
1631
+ @validate_call
1632
+ def workflow_service_list_workflow_dependencies(
1633
+ self,
1634
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1635
+ _request_timeout: Union[
1636
+ None,
1637
+ Annotated[StrictFloat, Field(gt=0)],
1638
+ Tuple[
1639
+ Annotated[StrictFloat, Field(gt=0)],
1640
+ Annotated[StrictFloat, Field(gt=0)]
1641
+ ]
1642
+ ] = None,
1643
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1644
+ _content_type: Optional[StrictStr] = None,
1645
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1646
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1647
+ ) -> V1ListWorkflowDependenciesResponse:
1648
+ """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
1649
+
1650
+
1651
+ :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1652
+ :type name: str
1653
+ :param _request_timeout: timeout setting for this request. If one
1654
+ number provided, it will be total request
1655
+ timeout. It can also be a pair (tuple) of
1656
+ (connection, read) timeouts.
1657
+ :type _request_timeout: int, tuple(int, int), optional
1658
+ :param _request_auth: set to override the auth_settings for an a single
1659
+ request; this effectively ignores the
1660
+ authentication in the spec for a single request.
1661
+ :type _request_auth: dict, optional
1662
+ :param _content_type: force content-type for the request.
1663
+ :type _content_type: str, Optional
1664
+ :param _headers: set to override the headers for a single
1665
+ request; this effectively ignores the headers
1666
+ in the spec for a single request.
1667
+ :type _headers: dict, optional
1668
+ :param _host_index: set to override the host_index for a single
1669
+ request; this effectively ignores the host_index
1670
+ in the spec for a single request.
1671
+ :type _host_index: int, optional
1672
+ :return: Returns the result object.
1673
+ """ # noqa: E501
1674
+
1675
+ _param = self._workflow_service_list_workflow_dependencies_serialize(
1676
+ name=name,
1677
+ _request_auth=_request_auth,
1678
+ _content_type=_content_type,
1679
+ _headers=_headers,
1680
+ _host_index=_host_index
1681
+ )
1682
+
1683
+ _response_types_map: Dict[str, Optional[str]] = {
1684
+ '200': "V1ListWorkflowDependenciesResponse",
1685
+ }
1686
+ response_data = self.api_client.call_api(
1687
+ *_param,
1688
+ _request_timeout=_request_timeout
1689
+ )
1690
+ response_data.read()
1691
+ return self.api_client.response_deserialize(
1692
+ response_data=response_data,
1693
+ response_types_map=_response_types_map,
1694
+ ).data
1695
+
1696
+
1697
+ @validate_call
1698
+ def workflow_service_list_workflow_dependencies_with_http_info(
1699
+ self,
1700
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1701
+ _request_timeout: Union[
1702
+ None,
1703
+ Annotated[StrictFloat, Field(gt=0)],
1704
+ Tuple[
1705
+ Annotated[StrictFloat, Field(gt=0)],
1706
+ Annotated[StrictFloat, Field(gt=0)]
1707
+ ]
1708
+ ] = None,
1709
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1710
+ _content_type: Optional[StrictStr] = None,
1711
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1712
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1713
+ ) -> ApiResponse[V1ListWorkflowDependenciesResponse]:
1714
+ """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
1715
+
1716
+
1717
+ :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1718
+ :type name: str
1719
+ :param _request_timeout: timeout setting for this request. If one
1720
+ number provided, it will be total request
1721
+ timeout. It can also be a pair (tuple) of
1722
+ (connection, read) timeouts.
1723
+ :type _request_timeout: int, tuple(int, int), optional
1724
+ :param _request_auth: set to override the auth_settings for an a single
1725
+ request; this effectively ignores the
1726
+ authentication in the spec for a single request.
1727
+ :type _request_auth: dict, optional
1728
+ :param _content_type: force content-type for the request.
1729
+ :type _content_type: str, Optional
1730
+ :param _headers: set to override the headers for a single
1731
+ request; this effectively ignores the headers
1732
+ in the spec for a single request.
1733
+ :type _headers: dict, optional
1734
+ :param _host_index: set to override the host_index for a single
1735
+ request; this effectively ignores the host_index
1736
+ in the spec for a single request.
1737
+ :type _host_index: int, optional
1738
+ :return: Returns the result object.
1739
+ """ # noqa: E501
1740
+
1741
+ _param = self._workflow_service_list_workflow_dependencies_serialize(
1742
+ name=name,
1743
+ _request_auth=_request_auth,
1744
+ _content_type=_content_type,
1745
+ _headers=_headers,
1746
+ _host_index=_host_index
1747
+ )
1748
+
1749
+ _response_types_map: Dict[str, Optional[str]] = {
1750
+ '200': "V1ListWorkflowDependenciesResponse",
1751
+ }
1752
+ response_data = self.api_client.call_api(
1753
+ *_param,
1754
+ _request_timeout=_request_timeout
1755
+ )
1756
+ response_data.read()
1757
+ return self.api_client.response_deserialize(
1758
+ response_data=response_data,
1759
+ response_types_map=_response_types_map,
1760
+ )
1761
+
1762
+
1763
+ @validate_call
1764
+ def workflow_service_list_workflow_dependencies_without_preload_content(
1765
+ self,
1766
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1767
+ _request_timeout: Union[
1768
+ None,
1769
+ Annotated[StrictFloat, Field(gt=0)],
1770
+ Tuple[
1771
+ Annotated[StrictFloat, Field(gt=0)],
1772
+ Annotated[StrictFloat, Field(gt=0)]
1773
+ ]
1774
+ ] = None,
1775
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1776
+ _content_type: Optional[StrictStr] = None,
1777
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1778
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1779
+ ) -> RESTResponseType:
1780
+ """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
1781
+
1782
+
1783
+ :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1784
+ :type name: str
1785
+ :param _request_timeout: timeout setting for this request. If one
1786
+ number provided, it will be total request
1787
+ timeout. It can also be a pair (tuple) of
1788
+ (connection, read) timeouts.
1789
+ :type _request_timeout: int, tuple(int, int), optional
1790
+ :param _request_auth: set to override the auth_settings for an a single
1791
+ request; this effectively ignores the
1792
+ authentication in the spec for a single request.
1793
+ :type _request_auth: dict, optional
1794
+ :param _content_type: force content-type for the request.
1795
+ :type _content_type: str, Optional
1796
+ :param _headers: set to override the headers for a single
1797
+ request; this effectively ignores the headers
1798
+ in the spec for a single request.
1799
+ :type _headers: dict, optional
1800
+ :param _host_index: set to override the host_index for a single
1801
+ request; this effectively ignores the host_index
1802
+ in the spec for a single request.
1803
+ :type _host_index: int, optional
1804
+ :return: Returns the result object.
1805
+ """ # noqa: E501
1806
+
1807
+ _param = self._workflow_service_list_workflow_dependencies_serialize(
1808
+ name=name,
1809
+ _request_auth=_request_auth,
1810
+ _content_type=_content_type,
1811
+ _headers=_headers,
1812
+ _host_index=_host_index
1813
+ )
1814
+
1815
+ _response_types_map: Dict[str, Optional[str]] = {
1816
+ '200': "V1ListWorkflowDependenciesResponse",
1817
+ }
1818
+ response_data = self.api_client.call_api(
1819
+ *_param,
1820
+ _request_timeout=_request_timeout
1821
+ )
1822
+ return response_data.response
1823
+
1824
+
1825
+ def _workflow_service_list_workflow_dependencies_serialize(
1826
+ self,
1827
+ name,
1828
+ _request_auth,
1829
+ _content_type,
1830
+ _headers,
1831
+ _host_index,
1832
+ ) -> RequestSerialized:
1833
+
1834
+ _host = None
1835
+
1836
+ _collection_formats: Dict[str, str] = {
1837
+ }
1838
+
1839
+ _path_params: Dict[str, str] = {}
1840
+ _query_params: List[Tuple[str, str]] = []
1841
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1842
+ _form_params: List[Tuple[str, str]] = []
1843
+ _files: Dict[str, Union[str, bytes]] = {}
1844
+ _body_params: Optional[bytes] = None
1845
+
1846
+ # process the path parameters
1847
+ if name is not None:
1848
+ _path_params['name'] = name
1849
+ # process the query parameters
1850
+ # process the header parameters
1851
+ # process the form parameters
1852
+ # process the body parameter
1853
+
1854
+
1855
+ # set the HTTP header `Accept`
1856
+ _header_params['Accept'] = self.api_client.select_header_accept(
1857
+ [
1858
+ 'application/json'
1859
+ ]
1860
+ )
1861
+
1862
+
1863
+ # authentication setting
1864
+ _auth_settings: List[str] = [
1865
+ ]
1866
+
1867
+ return self.api_client.param_serialize(
1868
+ method='GET',
1869
+ resource_path='/v1/{name}:nodeDependencies',
1870
+ path_params=_path_params,
1871
+ query_params=_query_params,
1872
+ header_params=_header_params,
1873
+ body=_body_params,
1874
+ post_params=_form_params,
1875
+ files=_files,
1876
+ auth_settings=_auth_settings,
1877
+ collection_formats=_collection_formats,
1878
+ _host=_host,
1879
+ _request_auth=_request_auth
1880
+ )
1881
+
1882
+
1883
+
1884
+
1885
+ @validate_call
1886
+ def workflow_service_list_workflows(
1887
+ self,
1888
+ _request_timeout: Union[
1889
+ None,
1890
+ Annotated[StrictFloat, Field(gt=0)],
1891
+ Tuple[
1892
+ Annotated[StrictFloat, Field(gt=0)],
1893
+ Annotated[StrictFloat, Field(gt=0)]
1894
+ ]
1895
+ ] = None,
1896
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1897
+ _content_type: Optional[StrictStr] = None,
1898
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1899
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1900
+ ) -> V1ListWorkflowsResponse:
1901
+ """ListWorkflows lists Workflows.
1902
+
1903
+
1904
+ :param _request_timeout: timeout setting for this request. If one
1905
+ number provided, it will be total request
1906
+ timeout. It can also be a pair (tuple) of
1907
+ (connection, read) timeouts.
1908
+ :type _request_timeout: int, tuple(int, int), optional
1909
+ :param _request_auth: set to override the auth_settings for an a single
1910
+ request; this effectively ignores the
1911
+ authentication in the spec for a single request.
1912
+ :type _request_auth: dict, optional
1913
+ :param _content_type: force content-type for the request.
1914
+ :type _content_type: str, Optional
1915
+ :param _headers: set to override the headers for a single
1916
+ request; this effectively ignores the headers
1917
+ in the spec for a single request.
1918
+ :type _headers: dict, optional
1919
+ :param _host_index: set to override the host_index for a single
1920
+ request; this effectively ignores the host_index
1921
+ in the spec for a single request.
1922
+ :type _host_index: int, optional
1923
+ :return: Returns the result object.
1924
+ """ # noqa: E501
1925
+
1926
+ _param = self._workflow_service_list_workflows_serialize(
1927
+ _request_auth=_request_auth,
1928
+ _content_type=_content_type,
1929
+ _headers=_headers,
1930
+ _host_index=_host_index
1931
+ )
1932
+
1933
+ _response_types_map: Dict[str, Optional[str]] = {
1934
+ '200': "V1ListWorkflowsResponse",
1935
+ }
1936
+ response_data = self.api_client.call_api(
1937
+ *_param,
1938
+ _request_timeout=_request_timeout
1939
+ )
1940
+ response_data.read()
1941
+ return self.api_client.response_deserialize(
1942
+ response_data=response_data,
1943
+ response_types_map=_response_types_map,
1944
+ ).data
1945
+
1946
+
1947
+ @validate_call
1948
+ def workflow_service_list_workflows_with_http_info(
1949
+ self,
1950
+ _request_timeout: Union[
1951
+ None,
1952
+ Annotated[StrictFloat, Field(gt=0)],
1953
+ Tuple[
1954
+ Annotated[StrictFloat, Field(gt=0)],
1955
+ Annotated[StrictFloat, Field(gt=0)]
1956
+ ]
1957
+ ] = None,
1958
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1959
+ _content_type: Optional[StrictStr] = None,
1960
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1961
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1962
+ ) -> ApiResponse[V1ListWorkflowsResponse]:
1963
+ """ListWorkflows lists Workflows.
1964
+
1965
+
1966
+ :param _request_timeout: timeout setting for this request. If one
1967
+ number provided, it will be total request
1968
+ timeout. It can also be a pair (tuple) of
1969
+ (connection, read) timeouts.
1970
+ :type _request_timeout: int, tuple(int, int), optional
1971
+ :param _request_auth: set to override the auth_settings for an a single
1972
+ request; this effectively ignores the
1973
+ authentication in the spec for a single request.
1974
+ :type _request_auth: dict, optional
1975
+ :param _content_type: force content-type for the request.
1976
+ :type _content_type: str, Optional
1977
+ :param _headers: set to override the headers for a single
1978
+ request; this effectively ignores the headers
1979
+ in the spec for a single request.
1980
+ :type _headers: dict, optional
1981
+ :param _host_index: set to override the host_index for a single
1982
+ request; this effectively ignores the host_index
1983
+ in the spec for a single request.
1984
+ :type _host_index: int, optional
1985
+ :return: Returns the result object.
1986
+ """ # noqa: E501
1987
+
1988
+ _param = self._workflow_service_list_workflows_serialize(
1989
+ _request_auth=_request_auth,
1990
+ _content_type=_content_type,
1991
+ _headers=_headers,
1992
+ _host_index=_host_index
1993
+ )
1994
+
1995
+ _response_types_map: Dict[str, Optional[str]] = {
1996
+ '200': "V1ListWorkflowsResponse",
1997
+ }
1998
+ response_data = self.api_client.call_api(
1999
+ *_param,
2000
+ _request_timeout=_request_timeout
2001
+ )
2002
+ response_data.read()
2003
+ return self.api_client.response_deserialize(
2004
+ response_data=response_data,
2005
+ response_types_map=_response_types_map,
2006
+ )
2007
+
2008
+
2009
+ @validate_call
2010
+ def workflow_service_list_workflows_without_preload_content(
2011
+ self,
2012
+ _request_timeout: Union[
2013
+ None,
2014
+ Annotated[StrictFloat, Field(gt=0)],
2015
+ Tuple[
2016
+ Annotated[StrictFloat, Field(gt=0)],
2017
+ Annotated[StrictFloat, Field(gt=0)]
2018
+ ]
2019
+ ] = None,
2020
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2021
+ _content_type: Optional[StrictStr] = None,
2022
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2023
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2024
+ ) -> RESTResponseType:
2025
+ """ListWorkflows lists Workflows.
2026
+
2027
+
2028
+ :param _request_timeout: timeout setting for this request. If one
2029
+ number provided, it will be total request
2030
+ timeout. It can also be a pair (tuple) of
2031
+ (connection, read) timeouts.
2032
+ :type _request_timeout: int, tuple(int, int), optional
2033
+ :param _request_auth: set to override the auth_settings for an a single
2034
+ request; this effectively ignores the
2035
+ authentication in the spec for a single request.
2036
+ :type _request_auth: dict, optional
2037
+ :param _content_type: force content-type for the request.
2038
+ :type _content_type: str, Optional
2039
+ :param _headers: set to override the headers for a single
2040
+ request; this effectively ignores the headers
2041
+ in the spec for a single request.
2042
+ :type _headers: dict, optional
2043
+ :param _host_index: set to override the host_index for a single
2044
+ request; this effectively ignores the host_index
2045
+ in the spec for a single request.
2046
+ :type _host_index: int, optional
2047
+ :return: Returns the result object.
2048
+ """ # noqa: E501
2049
+
2050
+ _param = self._workflow_service_list_workflows_serialize(
2051
+ _request_auth=_request_auth,
2052
+ _content_type=_content_type,
2053
+ _headers=_headers,
2054
+ _host_index=_host_index
2055
+ )
2056
+
2057
+ _response_types_map: Dict[str, Optional[str]] = {
2058
+ '200': "V1ListWorkflowsResponse",
2059
+ }
2060
+ response_data = self.api_client.call_api(
2061
+ *_param,
2062
+ _request_timeout=_request_timeout
2063
+ )
2064
+ return response_data.response
2065
+
2066
+
2067
+ def _workflow_service_list_workflows_serialize(
2068
+ self,
2069
+ _request_auth,
2070
+ _content_type,
2071
+ _headers,
2072
+ _host_index,
2073
+ ) -> RequestSerialized:
2074
+
2075
+ _host = None
2076
+
2077
+ _collection_formats: Dict[str, str] = {
2078
+ }
2079
+
2080
+ _path_params: Dict[str, str] = {}
2081
+ _query_params: List[Tuple[str, str]] = []
2082
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2083
+ _form_params: List[Tuple[str, str]] = []
2084
+ _files: Dict[str, Union[str, bytes]] = {}
2085
+ _body_params: Optional[bytes] = None
2086
+
2087
+ # process the path parameters
2088
+ # process the query parameters
2089
+ # process the header parameters
2090
+ # process the form parameters
2091
+ # process the body parameter
2092
+
2093
+
2094
+ # set the HTTP header `Accept`
2095
+ _header_params['Accept'] = self.api_client.select_header_accept(
2096
+ [
2097
+ 'application/json'
2098
+ ]
2099
+ )
2100
+
2101
+
2102
+ # authentication setting
2103
+ _auth_settings: List[str] = [
2104
+ ]
2105
+
2106
+ return self.api_client.param_serialize(
2107
+ method='GET',
2108
+ resource_path='/v1/workflows',
2109
+ path_params=_path_params,
2110
+ query_params=_query_params,
2111
+ header_params=_header_params,
2112
+ body=_body_params,
2113
+ post_params=_form_params,
2114
+ files=_files,
2115
+ auth_settings=_auth_settings,
2116
+ collection_formats=_collection_formats,
2117
+ _host=_host,
2118
+ _request_auth=_request_auth
2119
+ )
2120
+
2121
+
2122
+
2123
+
2124
+ @validate_call
2125
+ def workflow_service_update_workflow(
2126
+ self,
2127
+ workflow_name: Annotated[str, Field(strict=True, description="Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`.")],
2128
+ workflow: Annotated[RequiredTheUpdatedWorkflow, Field(description="Required. The updated Workflow.")],
2129
+ _request_timeout: Union[
2130
+ None,
2131
+ Annotated[StrictFloat, Field(gt=0)],
2132
+ Tuple[
2133
+ Annotated[StrictFloat, Field(gt=0)],
2134
+ Annotated[StrictFloat, Field(gt=0)]
2135
+ ]
2136
+ ] = None,
2137
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2138
+ _content_type: Optional[StrictStr] = None,
2139
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2140
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2141
+ ) -> V1UpdateWorkflowResponse:
2142
+ """UpdateWorkflow updates a Workflow. The update_mask is used to specify the fields to be updated.
2143
+
2144
+
2145
+ :param workflow_name: Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`. (required)
2146
+ :type workflow_name: str
2147
+ :param workflow: Required. The updated Workflow. (required)
2148
+ :type workflow: RequiredTheUpdatedWorkflow
2149
+ :param _request_timeout: timeout setting for this request. If one
2150
+ number provided, it will be total request
2151
+ timeout. It can also be a pair (tuple) of
2152
+ (connection, read) timeouts.
2153
+ :type _request_timeout: int, tuple(int, int), optional
2154
+ :param _request_auth: set to override the auth_settings for an a single
2155
+ request; this effectively ignores the
2156
+ authentication in the spec for a single request.
2157
+ :type _request_auth: dict, optional
2158
+ :param _content_type: force content-type for the request.
2159
+ :type _content_type: str, Optional
2160
+ :param _headers: set to override the headers for a single
2161
+ request; this effectively ignores the headers
2162
+ in the spec for a single request.
2163
+ :type _headers: dict, optional
2164
+ :param _host_index: set to override the host_index for a single
2165
+ request; this effectively ignores the host_index
2166
+ in the spec for a single request.
2167
+ :type _host_index: int, optional
2168
+ :return: Returns the result object.
2169
+ """ # noqa: E501
2170
+
2171
+ _param = self._workflow_service_update_workflow_serialize(
2172
+ workflow_name=workflow_name,
2173
+ workflow=workflow,
2174
+ _request_auth=_request_auth,
2175
+ _content_type=_content_type,
2176
+ _headers=_headers,
2177
+ _host_index=_host_index
2178
+ )
2179
+
2180
+ _response_types_map: Dict[str, Optional[str]] = {
2181
+ '200': "V1UpdateWorkflowResponse",
2182
+ }
2183
+ response_data = self.api_client.call_api(
2184
+ *_param,
2185
+ _request_timeout=_request_timeout
2186
+ )
2187
+ response_data.read()
2188
+ return self.api_client.response_deserialize(
2189
+ response_data=response_data,
2190
+ response_types_map=_response_types_map,
2191
+ ).data
2192
+
2193
+
2194
+ @validate_call
2195
+ def workflow_service_update_workflow_with_http_info(
2196
+ self,
2197
+ workflow_name: Annotated[str, Field(strict=True, description="Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`.")],
2198
+ workflow: Annotated[RequiredTheUpdatedWorkflow, Field(description="Required. The updated Workflow.")],
2199
+ _request_timeout: Union[
2200
+ None,
2201
+ Annotated[StrictFloat, Field(gt=0)],
2202
+ Tuple[
2203
+ Annotated[StrictFloat, Field(gt=0)],
2204
+ Annotated[StrictFloat, Field(gt=0)]
2205
+ ]
2206
+ ] = None,
2207
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2208
+ _content_type: Optional[StrictStr] = None,
2209
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2210
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2211
+ ) -> ApiResponse[V1UpdateWorkflowResponse]:
2212
+ """UpdateWorkflow updates a Workflow. The update_mask is used to specify the fields to be updated.
2213
+
2214
+
2215
+ :param workflow_name: Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`. (required)
2216
+ :type workflow_name: str
2217
+ :param workflow: Required. The updated Workflow. (required)
2218
+ :type workflow: RequiredTheUpdatedWorkflow
2219
+ :param _request_timeout: timeout setting for this request. If one
2220
+ number provided, it will be total request
2221
+ timeout. It can also be a pair (tuple) of
2222
+ (connection, read) timeouts.
2223
+ :type _request_timeout: int, tuple(int, int), optional
2224
+ :param _request_auth: set to override the auth_settings for an a single
2225
+ request; this effectively ignores the
2226
+ authentication in the spec for a single request.
2227
+ :type _request_auth: dict, optional
2228
+ :param _content_type: force content-type for the request.
2229
+ :type _content_type: str, Optional
2230
+ :param _headers: set to override the headers for a single
2231
+ request; this effectively ignores the headers
2232
+ in the spec for a single request.
2233
+ :type _headers: dict, optional
2234
+ :param _host_index: set to override the host_index for a single
2235
+ request; this effectively ignores the host_index
2236
+ in the spec for a single request.
2237
+ :type _host_index: int, optional
2238
+ :return: Returns the result object.
2239
+ """ # noqa: E501
2240
+
2241
+ _param = self._workflow_service_update_workflow_serialize(
2242
+ workflow_name=workflow_name,
2243
+ workflow=workflow,
2244
+ _request_auth=_request_auth,
2245
+ _content_type=_content_type,
2246
+ _headers=_headers,
2247
+ _host_index=_host_index
2248
+ )
2249
+
2250
+ _response_types_map: Dict[str, Optional[str]] = {
2251
+ '200': "V1UpdateWorkflowResponse",
2252
+ }
2253
+ response_data = self.api_client.call_api(
2254
+ *_param,
2255
+ _request_timeout=_request_timeout
2256
+ )
2257
+ response_data.read()
2258
+ return self.api_client.response_deserialize(
2259
+ response_data=response_data,
2260
+ response_types_map=_response_types_map,
2261
+ )
2262
+
2263
+
2264
+ @validate_call
2265
+ def workflow_service_update_workflow_without_preload_content(
2266
+ self,
2267
+ workflow_name: Annotated[str, Field(strict=True, description="Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`.")],
2268
+ workflow: Annotated[RequiredTheUpdatedWorkflow, Field(description="Required. The updated Workflow.")],
2269
+ _request_timeout: Union[
2270
+ None,
2271
+ Annotated[StrictFloat, Field(gt=0)],
2272
+ Tuple[
2273
+ Annotated[StrictFloat, Field(gt=0)],
2274
+ Annotated[StrictFloat, Field(gt=0)]
2275
+ ]
2276
+ ] = None,
2277
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2278
+ _content_type: Optional[StrictStr] = None,
2279
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2280
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2281
+ ) -> RESTResponseType:
2282
+ """UpdateWorkflow updates a Workflow. The update_mask is used to specify the fields to be updated.
2283
+
2284
+
2285
+ :param workflow_name: Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}`. (required)
2286
+ :type workflow_name: str
2287
+ :param workflow: Required. The updated Workflow. (required)
2288
+ :type workflow: RequiredTheUpdatedWorkflow
2289
+ :param _request_timeout: timeout setting for this request. If one
2290
+ number provided, it will be total request
2291
+ timeout. It can also be a pair (tuple) of
2292
+ (connection, read) timeouts.
2293
+ :type _request_timeout: int, tuple(int, int), optional
2294
+ :param _request_auth: set to override the auth_settings for an a single
2295
+ request; this effectively ignores the
2296
+ authentication in the spec for a single request.
2297
+ :type _request_auth: dict, optional
2298
+ :param _content_type: force content-type for the request.
2299
+ :type _content_type: str, Optional
2300
+ :param _headers: set to override the headers for a single
2301
+ request; this effectively ignores the headers
2302
+ in the spec for a single request.
2303
+ :type _headers: dict, optional
2304
+ :param _host_index: set to override the host_index for a single
2305
+ request; this effectively ignores the host_index
2306
+ in the spec for a single request.
2307
+ :type _host_index: int, optional
2308
+ :return: Returns the result object.
2309
+ """ # noqa: E501
2310
+
2311
+ _param = self._workflow_service_update_workflow_serialize(
2312
+ workflow_name=workflow_name,
2313
+ workflow=workflow,
2314
+ _request_auth=_request_auth,
2315
+ _content_type=_content_type,
2316
+ _headers=_headers,
2317
+ _host_index=_host_index
2318
+ )
2319
+
2320
+ _response_types_map: Dict[str, Optional[str]] = {
2321
+ '200': "V1UpdateWorkflowResponse",
2322
+ }
2323
+ response_data = self.api_client.call_api(
2324
+ *_param,
2325
+ _request_timeout=_request_timeout
2326
+ )
2327
+ return response_data.response
2328
+
2329
+
2330
+ def _workflow_service_update_workflow_serialize(
2331
+ self,
2332
+ workflow_name,
2333
+ workflow,
2334
+ _request_auth,
2335
+ _content_type,
2336
+ _headers,
2337
+ _host_index,
2338
+ ) -> RequestSerialized:
2339
+
2340
+ _host = None
2341
+
2342
+ _collection_formats: Dict[str, str] = {
2343
+ }
2344
+
2345
+ _path_params: Dict[str, str] = {}
2346
+ _query_params: List[Tuple[str, str]] = []
2347
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2348
+ _form_params: List[Tuple[str, str]] = []
2349
+ _files: Dict[str, Union[str, bytes]] = {}
2350
+ _body_params: Optional[bytes] = None
2351
+
2352
+ # process the path parameters
2353
+ if workflow_name is not None:
2354
+ _path_params['workflow.name'] = workflow_name
2355
+ # process the query parameters
2356
+ # process the header parameters
2357
+ # process the form parameters
2358
+ # process the body parameter
2359
+ if workflow is not None:
2360
+ _body_params = workflow
2361
+
2362
+
2363
+ # set the HTTP header `Accept`
2364
+ _header_params['Accept'] = self.api_client.select_header_accept(
2365
+ [
2366
+ 'application/json'
2367
+ ]
2368
+ )
2369
+
2370
+ # set the HTTP header `Content-Type`
2371
+ if _content_type:
2372
+ _header_params['Content-Type'] = _content_type
2373
+ else:
2374
+ _default_content_type = (
2375
+ self.api_client.select_header_content_type(
2376
+ [
2377
+ 'application/json'
2378
+ ]
2379
+ )
2380
+ )
2381
+ if _default_content_type is not None:
2382
+ _header_params['Content-Type'] = _default_content_type
2383
+
2384
+ # authentication setting
2385
+ _auth_settings: List[str] = [
2386
+ ]
2387
+
2388
+ return self.api_client.param_serialize(
2389
+ method='PATCH',
2390
+ resource_path='/v1/{workflow.name}',
2391
+ path_params=_path_params,
2392
+ query_params=_query_params,
2393
+ header_params=_header_params,
2394
+ body=_body_params,
2395
+ post_params=_form_params,
2396
+ files=_files,
2397
+ auth_settings=_auth_settings,
2398
+ collection_formats=_collection_formats,
2399
+ _host=_host,
2400
+ _request_auth=_request_auth
2401
+ )
2402
+
2403
+