eval-studio-client 1.0.3__py3-none-any.whl → 1.1.0__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.3.dist-info → eval_studio_client-1.1.0.dist-info}/METADATA +1 -2
  590. eval_studio_client-1.1.0.dist-info/RECORD +732 -0
  591. eval_studio_client-1.0.3.dist-info/RECORD +0 -486
  592. {eval_studio_client-1.0.3.dist-info → eval_studio_client-1.1.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,2431 @@
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, StrictStr, field_validator
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from eval_studio_client.api.models.required_the_updated_workflow_node import RequiredTheUpdatedWorkflowNode
23
+ from eval_studio_client.api.models.v1_batch_get_workflow_nodes_response import V1BatchGetWorkflowNodesResponse
24
+ from eval_studio_client.api.models.v1_create_workflow_node_response import V1CreateWorkflowNodeResponse
25
+ from eval_studio_client.api.models.v1_delete_workflow_node_response import V1DeleteWorkflowNodeResponse
26
+ from eval_studio_client.api.models.v1_get_workflow_node_prerequisites_response import V1GetWorkflowNodePrerequisitesResponse
27
+ from eval_studio_client.api.models.v1_get_workflow_node_response import V1GetWorkflowNodeResponse
28
+ from eval_studio_client.api.models.v1_init_workflow_node_response import V1InitWorkflowNodeResponse
29
+ from eval_studio_client.api.models.v1_process_workflow_node_response import V1ProcessWorkflowNodeResponse
30
+ from eval_studio_client.api.models.v1_reset_workflow_node_response import V1ResetWorkflowNodeResponse
31
+ from eval_studio_client.api.models.v1_update_workflow_node_response import V1UpdateWorkflowNodeResponse
32
+ from eval_studio_client.api.models.v1_workflow_node import V1WorkflowNode
33
+
34
+ from eval_studio_client.api.api_client import ApiClient, RequestSerialized
35
+ from eval_studio_client.api.api_response import ApiResponse
36
+ from eval_studio_client.api.rest import RESTResponseType
37
+
38
+
39
+ class WorkflowNodeServiceApi:
40
+ """NOTE: This class is auto generated by OpenAPI Generator
41
+ Ref: https://openapi-generator.tech
42
+
43
+ Do not edit the class manually.
44
+ """
45
+
46
+ def __init__(self, api_client=None) -> None:
47
+ if api_client is None:
48
+ api_client = ApiClient.get_default()
49
+ self.api_client = api_client
50
+
51
+
52
+ @validate_call
53
+ def workflow_node_service_batch_get_workflow_nodes(
54
+ self,
55
+ names: Annotated[Optional[List[StrictStr]], Field(description="Required. The resource names of the WorkflowNodes to retrieve. Maximum 1000 items.")] = None,
56
+ view: Annotated[Optional[StrictStr], Field(description="Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.")] = None,
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
+ ) -> V1BatchGetWorkflowNodesResponse:
70
+ """BatchGetWorkflowNodes retrieves all WorkflowNodes with the specified resource names. If any of the WorkflowNodes do not exist an error is returned. Deleted WorkflowNodes are returned without error. The order of resource names in the request and the returned WorkflowNodes might differ.
71
+
72
+
73
+ :param names: Required. The resource names of the WorkflowNodes to retrieve. Maximum 1000 items.
74
+ :type names: List[str]
75
+ :param view: Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.
76
+ :type view: str
77
+ :param _request_timeout: timeout setting for this request. If one
78
+ number provided, it will be total request
79
+ timeout. It can also be a pair (tuple) of
80
+ (connection, read) timeouts.
81
+ :type _request_timeout: int, tuple(int, int), optional
82
+ :param _request_auth: set to override the auth_settings for an a single
83
+ request; this effectively ignores the
84
+ authentication in the spec for a single request.
85
+ :type _request_auth: dict, optional
86
+ :param _content_type: force content-type for the request.
87
+ :type _content_type: str, Optional
88
+ :param _headers: set to override the headers for a single
89
+ request; this effectively ignores the headers
90
+ in the spec for a single request.
91
+ :type _headers: dict, optional
92
+ :param _host_index: set to override the host_index for a single
93
+ request; this effectively ignores the host_index
94
+ in the spec for a single request.
95
+ :type _host_index: int, optional
96
+ :return: Returns the result object.
97
+ """ # noqa: E501
98
+
99
+ _param = self._workflow_node_service_batch_get_workflow_nodes_serialize(
100
+ names=names,
101
+ view=view,
102
+ _request_auth=_request_auth,
103
+ _content_type=_content_type,
104
+ _headers=_headers,
105
+ _host_index=_host_index
106
+ )
107
+
108
+ _response_types_map: Dict[str, Optional[str]] = {
109
+ '200': "V1BatchGetWorkflowNodesResponse",
110
+ }
111
+ response_data = self.api_client.call_api(
112
+ *_param,
113
+ _request_timeout=_request_timeout
114
+ )
115
+ response_data.read()
116
+ return self.api_client.response_deserialize(
117
+ response_data=response_data,
118
+ response_types_map=_response_types_map,
119
+ ).data
120
+
121
+
122
+ @validate_call
123
+ def workflow_node_service_batch_get_workflow_nodes_with_http_info(
124
+ self,
125
+ names: Annotated[Optional[List[StrictStr]], Field(description="Required. The resource names of the WorkflowNodes to retrieve. Maximum 1000 items.")] = None,
126
+ view: Annotated[Optional[StrictStr], Field(description="Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.")] = None,
127
+ _request_timeout: Union[
128
+ None,
129
+ Annotated[StrictFloat, Field(gt=0)],
130
+ Tuple[
131
+ Annotated[StrictFloat, Field(gt=0)],
132
+ Annotated[StrictFloat, Field(gt=0)]
133
+ ]
134
+ ] = None,
135
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
136
+ _content_type: Optional[StrictStr] = None,
137
+ _headers: Optional[Dict[StrictStr, Any]] = None,
138
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
139
+ ) -> ApiResponse[V1BatchGetWorkflowNodesResponse]:
140
+ """BatchGetWorkflowNodes retrieves all WorkflowNodes with the specified resource names. If any of the WorkflowNodes do not exist an error is returned. Deleted WorkflowNodes are returned without error. The order of resource names in the request and the returned WorkflowNodes might differ.
141
+
142
+
143
+ :param names: Required. The resource names of the WorkflowNodes to retrieve. Maximum 1000 items.
144
+ :type names: List[str]
145
+ :param view: Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.
146
+ :type view: str
147
+ :param _request_timeout: timeout setting for this request. If one
148
+ number provided, it will be total request
149
+ timeout. It can also be a pair (tuple) of
150
+ (connection, read) timeouts.
151
+ :type _request_timeout: int, tuple(int, int), optional
152
+ :param _request_auth: set to override the auth_settings for an a single
153
+ request; this effectively ignores the
154
+ authentication in the spec for a single request.
155
+ :type _request_auth: dict, optional
156
+ :param _content_type: force content-type for the request.
157
+ :type _content_type: str, Optional
158
+ :param _headers: set to override the headers for a single
159
+ request; this effectively ignores the headers
160
+ in the spec for a single request.
161
+ :type _headers: dict, optional
162
+ :param _host_index: set to override the host_index for a single
163
+ request; this effectively ignores the host_index
164
+ in the spec for a single request.
165
+ :type _host_index: int, optional
166
+ :return: Returns the result object.
167
+ """ # noqa: E501
168
+
169
+ _param = self._workflow_node_service_batch_get_workflow_nodes_serialize(
170
+ names=names,
171
+ view=view,
172
+ _request_auth=_request_auth,
173
+ _content_type=_content_type,
174
+ _headers=_headers,
175
+ _host_index=_host_index
176
+ )
177
+
178
+ _response_types_map: Dict[str, Optional[str]] = {
179
+ '200': "V1BatchGetWorkflowNodesResponse",
180
+ }
181
+ response_data = self.api_client.call_api(
182
+ *_param,
183
+ _request_timeout=_request_timeout
184
+ )
185
+ response_data.read()
186
+ return self.api_client.response_deserialize(
187
+ response_data=response_data,
188
+ response_types_map=_response_types_map,
189
+ )
190
+
191
+
192
+ @validate_call
193
+ def workflow_node_service_batch_get_workflow_nodes_without_preload_content(
194
+ self,
195
+ names: Annotated[Optional[List[StrictStr]], Field(description="Required. The resource names of the WorkflowNodes to retrieve. Maximum 1000 items.")] = None,
196
+ view: Annotated[Optional[StrictStr], Field(description="Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.")] = None,
197
+ _request_timeout: Union[
198
+ None,
199
+ Annotated[StrictFloat, Field(gt=0)],
200
+ Tuple[
201
+ Annotated[StrictFloat, Field(gt=0)],
202
+ Annotated[StrictFloat, Field(gt=0)]
203
+ ]
204
+ ] = None,
205
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
206
+ _content_type: Optional[StrictStr] = None,
207
+ _headers: Optional[Dict[StrictStr, Any]] = None,
208
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
209
+ ) -> RESTResponseType:
210
+ """BatchGetWorkflowNodes retrieves all WorkflowNodes with the specified resource names. If any of the WorkflowNodes do not exist an error is returned. Deleted WorkflowNodes are returned without error. The order of resource names in the request and the returned WorkflowNodes might differ.
211
+
212
+
213
+ :param names: Required. The resource names of the WorkflowNodes to retrieve. Maximum 1000 items.
214
+ :type names: List[str]
215
+ :param view: Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.
216
+ :type view: str
217
+ :param _request_timeout: timeout setting for this request. If one
218
+ number provided, it will be total request
219
+ timeout. It can also be a pair (tuple) of
220
+ (connection, read) timeouts.
221
+ :type _request_timeout: int, tuple(int, int), optional
222
+ :param _request_auth: set to override the auth_settings for an a single
223
+ request; this effectively ignores the
224
+ authentication in the spec for a single request.
225
+ :type _request_auth: dict, optional
226
+ :param _content_type: force content-type for the request.
227
+ :type _content_type: str, Optional
228
+ :param _headers: set to override the headers for a single
229
+ request; this effectively ignores the headers
230
+ in the spec for a single request.
231
+ :type _headers: dict, optional
232
+ :param _host_index: set to override the host_index for a single
233
+ request; this effectively ignores the host_index
234
+ in the spec for a single request.
235
+ :type _host_index: int, optional
236
+ :return: Returns the result object.
237
+ """ # noqa: E501
238
+
239
+ _param = self._workflow_node_service_batch_get_workflow_nodes_serialize(
240
+ names=names,
241
+ view=view,
242
+ _request_auth=_request_auth,
243
+ _content_type=_content_type,
244
+ _headers=_headers,
245
+ _host_index=_host_index
246
+ )
247
+
248
+ _response_types_map: Dict[str, Optional[str]] = {
249
+ '200': "V1BatchGetWorkflowNodesResponse",
250
+ }
251
+ response_data = self.api_client.call_api(
252
+ *_param,
253
+ _request_timeout=_request_timeout
254
+ )
255
+ return response_data.response
256
+
257
+
258
+ def _workflow_node_service_batch_get_workflow_nodes_serialize(
259
+ self,
260
+ names,
261
+ view,
262
+ _request_auth,
263
+ _content_type,
264
+ _headers,
265
+ _host_index,
266
+ ) -> RequestSerialized:
267
+
268
+ _host = None
269
+
270
+ _collection_formats: Dict[str, str] = {
271
+ 'names': 'multi',
272
+ }
273
+
274
+ _path_params: Dict[str, str] = {}
275
+ _query_params: List[Tuple[str, str]] = []
276
+ _header_params: Dict[str, Optional[str]] = _headers or {}
277
+ _form_params: List[Tuple[str, str]] = []
278
+ _files: Dict[str, Union[str, bytes]] = {}
279
+ _body_params: Optional[bytes] = None
280
+
281
+ # process the path parameters
282
+ # process the query parameters
283
+ if names is not None:
284
+
285
+ _query_params.append(('names', names))
286
+
287
+ if view is not None:
288
+
289
+ _query_params.append(('view', view))
290
+
291
+ # process the header parameters
292
+ # process the form parameters
293
+ # process the body parameter
294
+
295
+
296
+ # set the HTTP header `Accept`
297
+ _header_params['Accept'] = self.api_client.select_header_accept(
298
+ [
299
+ 'application/json'
300
+ ]
301
+ )
302
+
303
+
304
+ # authentication setting
305
+ _auth_settings: List[str] = [
306
+ ]
307
+
308
+ return self.api_client.param_serialize(
309
+ method='GET',
310
+ resource_path='/v1/workflows/*/nodes:batchGet',
311
+ path_params=_path_params,
312
+ query_params=_query_params,
313
+ header_params=_header_params,
314
+ body=_body_params,
315
+ post_params=_form_params,
316
+ files=_files,
317
+ auth_settings=_auth_settings,
318
+ collection_formats=_collection_formats,
319
+ _host=_host,
320
+ _request_auth=_request_auth
321
+ )
322
+
323
+
324
+
325
+
326
+ @validate_call
327
+ def workflow_node_service_create_workflow_node(
328
+ self,
329
+ parent: Annotated[str, Field(strict=True, description="Required. The parent Workflow in format of `workflow/{workflow_id}`.")],
330
+ node: Annotated[V1WorkflowNode, Field(description="Required. The WorkflowNode to create.")],
331
+ _request_timeout: Union[
332
+ None,
333
+ Annotated[StrictFloat, Field(gt=0)],
334
+ Tuple[
335
+ Annotated[StrictFloat, Field(gt=0)],
336
+ Annotated[StrictFloat, Field(gt=0)]
337
+ ]
338
+ ] = None,
339
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
340
+ _content_type: Optional[StrictStr] = None,
341
+ _headers: Optional[Dict[StrictStr, Any]] = None,
342
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
343
+ ) -> V1CreateWorkflowNodeResponse:
344
+ """CreateWorkflowNode creates a new WorkflowNode.
345
+
346
+
347
+ :param parent: Required. The parent Workflow in format of `workflow/{workflow_id}`. (required)
348
+ :type parent: str
349
+ :param node: Required. The WorkflowNode to create. (required)
350
+ :type node: V1WorkflowNode
351
+ :param _request_timeout: timeout setting for this request. If one
352
+ number provided, it will be total request
353
+ timeout. It can also be a pair (tuple) of
354
+ (connection, read) timeouts.
355
+ :type _request_timeout: int, tuple(int, int), optional
356
+ :param _request_auth: set to override the auth_settings for an a single
357
+ request; this effectively ignores the
358
+ authentication in the spec for a single request.
359
+ :type _request_auth: dict, optional
360
+ :param _content_type: force content-type for the request.
361
+ :type _content_type: str, Optional
362
+ :param _headers: set to override the headers for a single
363
+ request; this effectively ignores the headers
364
+ in the spec for a single request.
365
+ :type _headers: dict, optional
366
+ :param _host_index: set to override the host_index for a single
367
+ request; this effectively ignores the host_index
368
+ in the spec for a single request.
369
+ :type _host_index: int, optional
370
+ :return: Returns the result object.
371
+ """ # noqa: E501
372
+
373
+ _param = self._workflow_node_service_create_workflow_node_serialize(
374
+ parent=parent,
375
+ node=node,
376
+ _request_auth=_request_auth,
377
+ _content_type=_content_type,
378
+ _headers=_headers,
379
+ _host_index=_host_index
380
+ )
381
+
382
+ _response_types_map: Dict[str, Optional[str]] = {
383
+ '200': "V1CreateWorkflowNodeResponse",
384
+ }
385
+ response_data = self.api_client.call_api(
386
+ *_param,
387
+ _request_timeout=_request_timeout
388
+ )
389
+ response_data.read()
390
+ return self.api_client.response_deserialize(
391
+ response_data=response_data,
392
+ response_types_map=_response_types_map,
393
+ ).data
394
+
395
+
396
+ @validate_call
397
+ def workflow_node_service_create_workflow_node_with_http_info(
398
+ self,
399
+ parent: Annotated[str, Field(strict=True, description="Required. The parent Workflow in format of `workflow/{workflow_id}`.")],
400
+ node: Annotated[V1WorkflowNode, Field(description="Required. The WorkflowNode to create.")],
401
+ _request_timeout: Union[
402
+ None,
403
+ Annotated[StrictFloat, Field(gt=0)],
404
+ Tuple[
405
+ Annotated[StrictFloat, Field(gt=0)],
406
+ Annotated[StrictFloat, Field(gt=0)]
407
+ ]
408
+ ] = None,
409
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
410
+ _content_type: Optional[StrictStr] = None,
411
+ _headers: Optional[Dict[StrictStr, Any]] = None,
412
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
413
+ ) -> ApiResponse[V1CreateWorkflowNodeResponse]:
414
+ """CreateWorkflowNode creates a new WorkflowNode.
415
+
416
+
417
+ :param parent: Required. The parent Workflow in format of `workflow/{workflow_id}`. (required)
418
+ :type parent: str
419
+ :param node: Required. The WorkflowNode to create. (required)
420
+ :type node: V1WorkflowNode
421
+ :param _request_timeout: timeout setting for this request. If one
422
+ number provided, it will be total request
423
+ timeout. It can also be a pair (tuple) of
424
+ (connection, read) timeouts.
425
+ :type _request_timeout: int, tuple(int, int), optional
426
+ :param _request_auth: set to override the auth_settings for an a single
427
+ request; this effectively ignores the
428
+ authentication in the spec for a single request.
429
+ :type _request_auth: dict, optional
430
+ :param _content_type: force content-type for the request.
431
+ :type _content_type: str, Optional
432
+ :param _headers: set to override the headers for a single
433
+ request; this effectively ignores the headers
434
+ in the spec for a single request.
435
+ :type _headers: dict, optional
436
+ :param _host_index: set to override the host_index for a single
437
+ request; this effectively ignores the host_index
438
+ in the spec for a single request.
439
+ :type _host_index: int, optional
440
+ :return: Returns the result object.
441
+ """ # noqa: E501
442
+
443
+ _param = self._workflow_node_service_create_workflow_node_serialize(
444
+ parent=parent,
445
+ node=node,
446
+ _request_auth=_request_auth,
447
+ _content_type=_content_type,
448
+ _headers=_headers,
449
+ _host_index=_host_index
450
+ )
451
+
452
+ _response_types_map: Dict[str, Optional[str]] = {
453
+ '200': "V1CreateWorkflowNodeResponse",
454
+ }
455
+ response_data = self.api_client.call_api(
456
+ *_param,
457
+ _request_timeout=_request_timeout
458
+ )
459
+ response_data.read()
460
+ return self.api_client.response_deserialize(
461
+ response_data=response_data,
462
+ response_types_map=_response_types_map,
463
+ )
464
+
465
+
466
+ @validate_call
467
+ def workflow_node_service_create_workflow_node_without_preload_content(
468
+ self,
469
+ parent: Annotated[str, Field(strict=True, description="Required. The parent Workflow in format of `workflow/{workflow_id}`.")],
470
+ node: Annotated[V1WorkflowNode, Field(description="Required. The WorkflowNode to create.")],
471
+ _request_timeout: Union[
472
+ None,
473
+ Annotated[StrictFloat, Field(gt=0)],
474
+ Tuple[
475
+ Annotated[StrictFloat, Field(gt=0)],
476
+ Annotated[StrictFloat, Field(gt=0)]
477
+ ]
478
+ ] = None,
479
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
480
+ _content_type: Optional[StrictStr] = None,
481
+ _headers: Optional[Dict[StrictStr, Any]] = None,
482
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
483
+ ) -> RESTResponseType:
484
+ """CreateWorkflowNode creates a new WorkflowNode.
485
+
486
+
487
+ :param parent: Required. The parent Workflow in format of `workflow/{workflow_id}`. (required)
488
+ :type parent: str
489
+ :param node: Required. The WorkflowNode to create. (required)
490
+ :type node: V1WorkflowNode
491
+ :param _request_timeout: timeout setting for this request. If one
492
+ number provided, it will be total request
493
+ timeout. It can also be a pair (tuple) of
494
+ (connection, read) timeouts.
495
+ :type _request_timeout: int, tuple(int, int), optional
496
+ :param _request_auth: set to override the auth_settings for an a single
497
+ request; this effectively ignores the
498
+ authentication in the spec for a single request.
499
+ :type _request_auth: dict, optional
500
+ :param _content_type: force content-type for the request.
501
+ :type _content_type: str, Optional
502
+ :param _headers: set to override the headers for a single
503
+ request; this effectively ignores the headers
504
+ in the spec for a single request.
505
+ :type _headers: dict, optional
506
+ :param _host_index: set to override the host_index for a single
507
+ request; this effectively ignores the host_index
508
+ in the spec for a single request.
509
+ :type _host_index: int, optional
510
+ :return: Returns the result object.
511
+ """ # noqa: E501
512
+
513
+ _param = self._workflow_node_service_create_workflow_node_serialize(
514
+ parent=parent,
515
+ node=node,
516
+ _request_auth=_request_auth,
517
+ _content_type=_content_type,
518
+ _headers=_headers,
519
+ _host_index=_host_index
520
+ )
521
+
522
+ _response_types_map: Dict[str, Optional[str]] = {
523
+ '200': "V1CreateWorkflowNodeResponse",
524
+ }
525
+ response_data = self.api_client.call_api(
526
+ *_param,
527
+ _request_timeout=_request_timeout
528
+ )
529
+ return response_data.response
530
+
531
+
532
+ def _workflow_node_service_create_workflow_node_serialize(
533
+ self,
534
+ parent,
535
+ node,
536
+ _request_auth,
537
+ _content_type,
538
+ _headers,
539
+ _host_index,
540
+ ) -> RequestSerialized:
541
+
542
+ _host = None
543
+
544
+ _collection_formats: Dict[str, str] = {
545
+ }
546
+
547
+ _path_params: Dict[str, str] = {}
548
+ _query_params: List[Tuple[str, str]] = []
549
+ _header_params: Dict[str, Optional[str]] = _headers or {}
550
+ _form_params: List[Tuple[str, str]] = []
551
+ _files: Dict[str, Union[str, bytes]] = {}
552
+ _body_params: Optional[bytes] = None
553
+
554
+ # process the path parameters
555
+ if parent is not None:
556
+ _path_params['parent'] = parent
557
+ # process the query parameters
558
+ # process the header parameters
559
+ # process the form parameters
560
+ # process the body parameter
561
+ if node is not None:
562
+ _body_params = node
563
+
564
+
565
+ # set the HTTP header `Accept`
566
+ _header_params['Accept'] = self.api_client.select_header_accept(
567
+ [
568
+ 'application/json'
569
+ ]
570
+ )
571
+
572
+ # set the HTTP header `Content-Type`
573
+ if _content_type:
574
+ _header_params['Content-Type'] = _content_type
575
+ else:
576
+ _default_content_type = (
577
+ self.api_client.select_header_content_type(
578
+ [
579
+ 'application/json'
580
+ ]
581
+ )
582
+ )
583
+ if _default_content_type is not None:
584
+ _header_params['Content-Type'] = _default_content_type
585
+
586
+ # authentication setting
587
+ _auth_settings: List[str] = [
588
+ ]
589
+
590
+ return self.api_client.param_serialize(
591
+ method='POST',
592
+ resource_path='/v1/{parent}/nodes',
593
+ path_params=_path_params,
594
+ query_params=_query_params,
595
+ header_params=_header_params,
596
+ body=_body_params,
597
+ post_params=_form_params,
598
+ files=_files,
599
+ auth_settings=_auth_settings,
600
+ collection_formats=_collection_formats,
601
+ _host=_host,
602
+ _request_auth=_request_auth
603
+ )
604
+
605
+
606
+
607
+
608
+ @validate_call
609
+ def workflow_node_service_delete_workflow_node(
610
+ self,
611
+ name_8: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to delete.")],
612
+ _request_timeout: Union[
613
+ None,
614
+ Annotated[StrictFloat, Field(gt=0)],
615
+ Tuple[
616
+ Annotated[StrictFloat, Field(gt=0)],
617
+ Annotated[StrictFloat, Field(gt=0)]
618
+ ]
619
+ ] = None,
620
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
621
+ _content_type: Optional[StrictStr] = None,
622
+ _headers: Optional[Dict[StrictStr, Any]] = None,
623
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
624
+ ) -> V1DeleteWorkflowNodeResponse:
625
+ """DeleteWorkflowNode deletes a WorkflowNode by name. If the WorkflowNode does not exist an error is returned. The edges are handled in a following way:
626
+
627
+ - inbound edges are deleted - for every outbound edge a new edge is created for every inbound node and the given outbound node For example, deleting node D in the following graph: A ⇾ B ⇾ D ⇾ E ↘ ↗ C would create the following: A ⇾ B ⇾ E ↘ ↗ C Deleting node B in the same graph, would create: A ⇾ D ⇾ E ↘ ↗ C
628
+
629
+ :param name_8: Required. The name of the WorkflowNode to delete. (required)
630
+ :type name_8: str
631
+ :param _request_timeout: timeout setting for this request. If one
632
+ number provided, it will be total request
633
+ timeout. It can also be a pair (tuple) of
634
+ (connection, read) timeouts.
635
+ :type _request_timeout: int, tuple(int, int), optional
636
+ :param _request_auth: set to override the auth_settings for an a single
637
+ request; this effectively ignores the
638
+ authentication in the spec for a single request.
639
+ :type _request_auth: dict, optional
640
+ :param _content_type: force content-type for the request.
641
+ :type _content_type: str, Optional
642
+ :param _headers: set to override the headers for a single
643
+ request; this effectively ignores the headers
644
+ in the spec for a single request.
645
+ :type _headers: dict, optional
646
+ :param _host_index: set to override the host_index for a single
647
+ request; this effectively ignores the host_index
648
+ in the spec for a single request.
649
+ :type _host_index: int, optional
650
+ :return: Returns the result object.
651
+ """ # noqa: E501
652
+
653
+ _param = self._workflow_node_service_delete_workflow_node_serialize(
654
+ name_8=name_8,
655
+ _request_auth=_request_auth,
656
+ _content_type=_content_type,
657
+ _headers=_headers,
658
+ _host_index=_host_index
659
+ )
660
+
661
+ _response_types_map: Dict[str, Optional[str]] = {
662
+ '200': "V1DeleteWorkflowNodeResponse",
663
+ }
664
+ response_data = self.api_client.call_api(
665
+ *_param,
666
+ _request_timeout=_request_timeout
667
+ )
668
+ response_data.read()
669
+ return self.api_client.response_deserialize(
670
+ response_data=response_data,
671
+ response_types_map=_response_types_map,
672
+ ).data
673
+
674
+
675
+ @validate_call
676
+ def workflow_node_service_delete_workflow_node_with_http_info(
677
+ self,
678
+ name_8: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to delete.")],
679
+ _request_timeout: Union[
680
+ None,
681
+ Annotated[StrictFloat, Field(gt=0)],
682
+ Tuple[
683
+ Annotated[StrictFloat, Field(gt=0)],
684
+ Annotated[StrictFloat, Field(gt=0)]
685
+ ]
686
+ ] = None,
687
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
688
+ _content_type: Optional[StrictStr] = None,
689
+ _headers: Optional[Dict[StrictStr, Any]] = None,
690
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
691
+ ) -> ApiResponse[V1DeleteWorkflowNodeResponse]:
692
+ """DeleteWorkflowNode deletes a WorkflowNode by name. If the WorkflowNode does not exist an error is returned. The edges are handled in a following way:
693
+
694
+ - inbound edges are deleted - for every outbound edge a new edge is created for every inbound node and the given outbound node For example, deleting node D in the following graph: A ⇾ B ⇾ D ⇾ E ↘ ↗ C would create the following: A ⇾ B ⇾ E ↘ ↗ C Deleting node B in the same graph, would create: A ⇾ D ⇾ E ↘ ↗ C
695
+
696
+ :param name_8: Required. The name of the WorkflowNode to delete. (required)
697
+ :type name_8: str
698
+ :param _request_timeout: timeout setting for this request. If one
699
+ number provided, it will be total request
700
+ timeout. It can also be a pair (tuple) of
701
+ (connection, read) timeouts.
702
+ :type _request_timeout: int, tuple(int, int), optional
703
+ :param _request_auth: set to override the auth_settings for an a single
704
+ request; this effectively ignores the
705
+ authentication in the spec for a single request.
706
+ :type _request_auth: dict, optional
707
+ :param _content_type: force content-type for the request.
708
+ :type _content_type: str, Optional
709
+ :param _headers: set to override the headers for a single
710
+ request; this effectively ignores the headers
711
+ in the spec for a single request.
712
+ :type _headers: dict, optional
713
+ :param _host_index: set to override the host_index for a single
714
+ request; this effectively ignores the host_index
715
+ in the spec for a single request.
716
+ :type _host_index: int, optional
717
+ :return: Returns the result object.
718
+ """ # noqa: E501
719
+
720
+ _param = self._workflow_node_service_delete_workflow_node_serialize(
721
+ name_8=name_8,
722
+ _request_auth=_request_auth,
723
+ _content_type=_content_type,
724
+ _headers=_headers,
725
+ _host_index=_host_index
726
+ )
727
+
728
+ _response_types_map: Dict[str, Optional[str]] = {
729
+ '200': "V1DeleteWorkflowNodeResponse",
730
+ }
731
+ response_data = self.api_client.call_api(
732
+ *_param,
733
+ _request_timeout=_request_timeout
734
+ )
735
+ response_data.read()
736
+ return self.api_client.response_deserialize(
737
+ response_data=response_data,
738
+ response_types_map=_response_types_map,
739
+ )
740
+
741
+
742
+ @validate_call
743
+ def workflow_node_service_delete_workflow_node_without_preload_content(
744
+ self,
745
+ name_8: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to delete.")],
746
+ _request_timeout: Union[
747
+ None,
748
+ Annotated[StrictFloat, Field(gt=0)],
749
+ Tuple[
750
+ Annotated[StrictFloat, Field(gt=0)],
751
+ Annotated[StrictFloat, Field(gt=0)]
752
+ ]
753
+ ] = None,
754
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
755
+ _content_type: Optional[StrictStr] = None,
756
+ _headers: Optional[Dict[StrictStr, Any]] = None,
757
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
758
+ ) -> RESTResponseType:
759
+ """DeleteWorkflowNode deletes a WorkflowNode by name. If the WorkflowNode does not exist an error is returned. The edges are handled in a following way:
760
+
761
+ - inbound edges are deleted - for every outbound edge a new edge is created for every inbound node and the given outbound node For example, deleting node D in the following graph: A ⇾ B ⇾ D ⇾ E ↘ ↗ C would create the following: A ⇾ B ⇾ E ↘ ↗ C Deleting node B in the same graph, would create: A ⇾ D ⇾ E ↘ ↗ C
762
+
763
+ :param name_8: Required. The name of the WorkflowNode to delete. (required)
764
+ :type name_8: str
765
+ :param _request_timeout: timeout setting for this request. If one
766
+ number provided, it will be total request
767
+ timeout. It can also be a pair (tuple) of
768
+ (connection, read) timeouts.
769
+ :type _request_timeout: int, tuple(int, int), optional
770
+ :param _request_auth: set to override the auth_settings for an a single
771
+ request; this effectively ignores the
772
+ authentication in the spec for a single request.
773
+ :type _request_auth: dict, optional
774
+ :param _content_type: force content-type for the request.
775
+ :type _content_type: str, Optional
776
+ :param _headers: set to override the headers for a single
777
+ request; this effectively ignores the headers
778
+ in the spec for a single request.
779
+ :type _headers: dict, optional
780
+ :param _host_index: set to override the host_index for a single
781
+ request; this effectively ignores the host_index
782
+ in the spec for a single request.
783
+ :type _host_index: int, optional
784
+ :return: Returns the result object.
785
+ """ # noqa: E501
786
+
787
+ _param = self._workflow_node_service_delete_workflow_node_serialize(
788
+ name_8=name_8,
789
+ _request_auth=_request_auth,
790
+ _content_type=_content_type,
791
+ _headers=_headers,
792
+ _host_index=_host_index
793
+ )
794
+
795
+ _response_types_map: Dict[str, Optional[str]] = {
796
+ '200': "V1DeleteWorkflowNodeResponse",
797
+ }
798
+ response_data = self.api_client.call_api(
799
+ *_param,
800
+ _request_timeout=_request_timeout
801
+ )
802
+ return response_data.response
803
+
804
+
805
+ def _workflow_node_service_delete_workflow_node_serialize(
806
+ self,
807
+ name_8,
808
+ _request_auth,
809
+ _content_type,
810
+ _headers,
811
+ _host_index,
812
+ ) -> RequestSerialized:
813
+
814
+ _host = None
815
+
816
+ _collection_formats: Dict[str, str] = {
817
+ }
818
+
819
+ _path_params: Dict[str, str] = {}
820
+ _query_params: List[Tuple[str, str]] = []
821
+ _header_params: Dict[str, Optional[str]] = _headers or {}
822
+ _form_params: List[Tuple[str, str]] = []
823
+ _files: Dict[str, Union[str, bytes]] = {}
824
+ _body_params: Optional[bytes] = None
825
+
826
+ # process the path parameters
827
+ if name_8 is not None:
828
+ _path_params['name_8'] = name_8
829
+ # process the query parameters
830
+ # process the header parameters
831
+ # process the form parameters
832
+ # process the body parameter
833
+
834
+
835
+ # set the HTTP header `Accept`
836
+ _header_params['Accept'] = self.api_client.select_header_accept(
837
+ [
838
+ 'application/json'
839
+ ]
840
+ )
841
+
842
+
843
+ # authentication setting
844
+ _auth_settings: List[str] = [
845
+ ]
846
+
847
+ return self.api_client.param_serialize(
848
+ method='DELETE',
849
+ resource_path='/v1/{name_8}',
850
+ path_params=_path_params,
851
+ query_params=_query_params,
852
+ header_params=_header_params,
853
+ body=_body_params,
854
+ post_params=_form_params,
855
+ files=_files,
856
+ auth_settings=_auth_settings,
857
+ collection_formats=_collection_formats,
858
+ _host=_host,
859
+ _request_auth=_request_auth
860
+ )
861
+
862
+
863
+
864
+
865
+ @validate_call
866
+ def workflow_node_service_get_workflow_node(
867
+ self,
868
+ name_11: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to retrieve.")],
869
+ view: Annotated[Optional[StrictStr], Field(description="Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.")] = None,
870
+ _request_timeout: Union[
871
+ None,
872
+ Annotated[StrictFloat, Field(gt=0)],
873
+ Tuple[
874
+ Annotated[StrictFloat, Field(gt=0)],
875
+ Annotated[StrictFloat, Field(gt=0)]
876
+ ]
877
+ ] = None,
878
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
879
+ _content_type: Optional[StrictStr] = None,
880
+ _headers: Optional[Dict[StrictStr, Any]] = None,
881
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
882
+ ) -> V1GetWorkflowNodeResponse:
883
+ """GetWorkflowNode retrieves a WorkflowNode by name. Deleted WorkflowNode is returned without error, it has a delete_time and deleter fields set.
884
+
885
+
886
+ :param name_11: Required. The name of the WorkflowNode to retrieve. (required)
887
+ :type name_11: str
888
+ :param view: Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.
889
+ :type view: str
890
+ :param _request_timeout: timeout setting for this request. If one
891
+ number provided, it will be total request
892
+ timeout. It can also be a pair (tuple) of
893
+ (connection, read) timeouts.
894
+ :type _request_timeout: int, tuple(int, int), optional
895
+ :param _request_auth: set to override the auth_settings for an a single
896
+ request; this effectively ignores the
897
+ authentication in the spec for a single request.
898
+ :type _request_auth: dict, optional
899
+ :param _content_type: force content-type for the request.
900
+ :type _content_type: str, Optional
901
+ :param _headers: set to override the headers for a single
902
+ request; this effectively ignores the headers
903
+ in the spec for a single request.
904
+ :type _headers: dict, optional
905
+ :param _host_index: set to override the host_index for a single
906
+ request; this effectively ignores the host_index
907
+ in the spec for a single request.
908
+ :type _host_index: int, optional
909
+ :return: Returns the result object.
910
+ """ # noqa: E501
911
+
912
+ _param = self._workflow_node_service_get_workflow_node_serialize(
913
+ name_11=name_11,
914
+ view=view,
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': "V1GetWorkflowNodeResponse",
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_node_service_get_workflow_node_with_http_info(
937
+ self,
938
+ name_11: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to retrieve.")],
939
+ view: Annotated[Optional[StrictStr], Field(description="Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.")] = None,
940
+ _request_timeout: Union[
941
+ None,
942
+ Annotated[StrictFloat, Field(gt=0)],
943
+ Tuple[
944
+ Annotated[StrictFloat, Field(gt=0)],
945
+ Annotated[StrictFloat, Field(gt=0)]
946
+ ]
947
+ ] = None,
948
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
949
+ _content_type: Optional[StrictStr] = None,
950
+ _headers: Optional[Dict[StrictStr, Any]] = None,
951
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
952
+ ) -> ApiResponse[V1GetWorkflowNodeResponse]:
953
+ """GetWorkflowNode retrieves a WorkflowNode by name. Deleted WorkflowNode is returned without error, it has a delete_time and deleter fields set.
954
+
955
+
956
+ :param name_11: Required. The name of the WorkflowNode to retrieve. (required)
957
+ :type name_11: str
958
+ :param view: Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.
959
+ :type view: str
960
+ :param _request_timeout: timeout setting for this request. If one
961
+ number provided, it will be total request
962
+ timeout. It can also be a pair (tuple) of
963
+ (connection, read) timeouts.
964
+ :type _request_timeout: int, tuple(int, int), optional
965
+ :param _request_auth: set to override the auth_settings for an a single
966
+ request; this effectively ignores the
967
+ authentication in the spec for a single request.
968
+ :type _request_auth: dict, optional
969
+ :param _content_type: force content-type for the request.
970
+ :type _content_type: str, Optional
971
+ :param _headers: set to override the headers for a single
972
+ request; this effectively ignores the headers
973
+ in the spec for a single request.
974
+ :type _headers: dict, optional
975
+ :param _host_index: set to override the host_index for a single
976
+ request; this effectively ignores the host_index
977
+ in the spec for a single request.
978
+ :type _host_index: int, optional
979
+ :return: Returns the result object.
980
+ """ # noqa: E501
981
+
982
+ _param = self._workflow_node_service_get_workflow_node_serialize(
983
+ name_11=name_11,
984
+ view=view,
985
+ _request_auth=_request_auth,
986
+ _content_type=_content_type,
987
+ _headers=_headers,
988
+ _host_index=_host_index
989
+ )
990
+
991
+ _response_types_map: Dict[str, Optional[str]] = {
992
+ '200': "V1GetWorkflowNodeResponse",
993
+ }
994
+ response_data = self.api_client.call_api(
995
+ *_param,
996
+ _request_timeout=_request_timeout
997
+ )
998
+ response_data.read()
999
+ return self.api_client.response_deserialize(
1000
+ response_data=response_data,
1001
+ response_types_map=_response_types_map,
1002
+ )
1003
+
1004
+
1005
+ @validate_call
1006
+ def workflow_node_service_get_workflow_node_without_preload_content(
1007
+ self,
1008
+ name_11: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to retrieve.")],
1009
+ view: Annotated[Optional[StrictStr], Field(description="Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.")] = None,
1010
+ _request_timeout: Union[
1011
+ None,
1012
+ Annotated[StrictFloat, Field(gt=0)],
1013
+ Tuple[
1014
+ Annotated[StrictFloat, Field(gt=0)],
1015
+ Annotated[StrictFloat, Field(gt=0)]
1016
+ ]
1017
+ ] = None,
1018
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1019
+ _content_type: Optional[StrictStr] = None,
1020
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1021
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1022
+ ) -> RESTResponseType:
1023
+ """GetWorkflowNode retrieves a WorkflowNode by name. Deleted WorkflowNode is returned without error, it has a delete_time and deleter fields set.
1024
+
1025
+
1026
+ :param name_11: Required. The name of the WorkflowNode to retrieve. (required)
1027
+ :type name_11: str
1028
+ :param view: Optional. The level of detail to include in the response. - WORKFLOW_NODE_VIEW_UNSPECIFIED: Unspecified view. - WORKFLOW_NODE_VIEW_BASIC: Basic view. Lacks large data fields. TODO: describe what fields are omitted. - WORKFLOW_NODE_VIEW_FULL: Full view. Contains all fields.
1029
+ :type view: str
1030
+ :param _request_timeout: timeout setting for this request. If one
1031
+ number provided, it will be total request
1032
+ timeout. It can also be a pair (tuple) of
1033
+ (connection, read) timeouts.
1034
+ :type _request_timeout: int, tuple(int, int), optional
1035
+ :param _request_auth: set to override the auth_settings for an a single
1036
+ request; this effectively ignores the
1037
+ authentication in the spec for a single request.
1038
+ :type _request_auth: dict, optional
1039
+ :param _content_type: force content-type for the request.
1040
+ :type _content_type: str, Optional
1041
+ :param _headers: set to override the headers for a single
1042
+ request; this effectively ignores the headers
1043
+ in the spec for a single request.
1044
+ :type _headers: dict, optional
1045
+ :param _host_index: set to override the host_index for a single
1046
+ request; this effectively ignores the host_index
1047
+ in the spec for a single request.
1048
+ :type _host_index: int, optional
1049
+ :return: Returns the result object.
1050
+ """ # noqa: E501
1051
+
1052
+ _param = self._workflow_node_service_get_workflow_node_serialize(
1053
+ name_11=name_11,
1054
+ view=view,
1055
+ _request_auth=_request_auth,
1056
+ _content_type=_content_type,
1057
+ _headers=_headers,
1058
+ _host_index=_host_index
1059
+ )
1060
+
1061
+ _response_types_map: Dict[str, Optional[str]] = {
1062
+ '200': "V1GetWorkflowNodeResponse",
1063
+ }
1064
+ response_data = self.api_client.call_api(
1065
+ *_param,
1066
+ _request_timeout=_request_timeout
1067
+ )
1068
+ return response_data.response
1069
+
1070
+
1071
+ def _workflow_node_service_get_workflow_node_serialize(
1072
+ self,
1073
+ name_11,
1074
+ view,
1075
+ _request_auth,
1076
+ _content_type,
1077
+ _headers,
1078
+ _host_index,
1079
+ ) -> RequestSerialized:
1080
+
1081
+ _host = None
1082
+
1083
+ _collection_formats: Dict[str, str] = {
1084
+ }
1085
+
1086
+ _path_params: Dict[str, str] = {}
1087
+ _query_params: List[Tuple[str, str]] = []
1088
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1089
+ _form_params: List[Tuple[str, str]] = []
1090
+ _files: Dict[str, Union[str, bytes]] = {}
1091
+ _body_params: Optional[bytes] = None
1092
+
1093
+ # process the path parameters
1094
+ if name_11 is not None:
1095
+ _path_params['name_11'] = name_11
1096
+ # process the query parameters
1097
+ if view is not None:
1098
+
1099
+ _query_params.append(('view', view))
1100
+
1101
+ # process the header parameters
1102
+ # process the form parameters
1103
+ # process the body parameter
1104
+
1105
+
1106
+ # set the HTTP header `Accept`
1107
+ _header_params['Accept'] = self.api_client.select_header_accept(
1108
+ [
1109
+ 'application/json'
1110
+ ]
1111
+ )
1112
+
1113
+
1114
+ # authentication setting
1115
+ _auth_settings: List[str] = [
1116
+ ]
1117
+
1118
+ return self.api_client.param_serialize(
1119
+ method='GET',
1120
+ resource_path='/v1/{name_11}',
1121
+ path_params=_path_params,
1122
+ query_params=_query_params,
1123
+ header_params=_header_params,
1124
+ body=_body_params,
1125
+ post_params=_form_params,
1126
+ files=_files,
1127
+ auth_settings=_auth_settings,
1128
+ collection_formats=_collection_formats,
1129
+ _host=_host,
1130
+ _request_auth=_request_auth
1131
+ )
1132
+
1133
+
1134
+
1135
+
1136
+ @validate_call
1137
+ def workflow_node_service_get_workflow_node_prerequisites(
1138
+ self,
1139
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to retrieve the prerequisites for.")],
1140
+ _request_timeout: Union[
1141
+ None,
1142
+ Annotated[StrictFloat, Field(gt=0)],
1143
+ Tuple[
1144
+ Annotated[StrictFloat, Field(gt=0)],
1145
+ Annotated[StrictFloat, Field(gt=0)]
1146
+ ]
1147
+ ] = None,
1148
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1149
+ _content_type: Optional[StrictStr] = None,
1150
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1151
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1152
+ ) -> V1GetWorkflowNodePrerequisitesResponse:
1153
+ """GetWorkflowNodePrerequisites retrieves the WorkflowNodes and WorkflowEdges that are the prerequisites of the specified WorkflowNode. The list might be empty. Large data might be stored in storage and not returned in the response. It is client's responsibility to retrieve the data from storage using the content handlers. It is intended to be used by the Eval Studio Workers.
1154
+
1155
+
1156
+ :param name: Required. The name of the WorkflowNode to retrieve the prerequisites for. (required)
1157
+ :type name: str
1158
+ :param _request_timeout: timeout setting for this request. If one
1159
+ number provided, it will be total request
1160
+ timeout. It can also be a pair (tuple) of
1161
+ (connection, read) timeouts.
1162
+ :type _request_timeout: int, tuple(int, int), optional
1163
+ :param _request_auth: set to override the auth_settings for an a single
1164
+ request; this effectively ignores the
1165
+ authentication in the spec for a single request.
1166
+ :type _request_auth: dict, optional
1167
+ :param _content_type: force content-type for the request.
1168
+ :type _content_type: str, Optional
1169
+ :param _headers: set to override the headers for a single
1170
+ request; this effectively ignores the headers
1171
+ in the spec for a single request.
1172
+ :type _headers: dict, optional
1173
+ :param _host_index: set to override the host_index for a single
1174
+ request; this effectively ignores the host_index
1175
+ in the spec for a single request.
1176
+ :type _host_index: int, optional
1177
+ :return: Returns the result object.
1178
+ """ # noqa: E501
1179
+
1180
+ _param = self._workflow_node_service_get_workflow_node_prerequisites_serialize(
1181
+ name=name,
1182
+ _request_auth=_request_auth,
1183
+ _content_type=_content_type,
1184
+ _headers=_headers,
1185
+ _host_index=_host_index
1186
+ )
1187
+
1188
+ _response_types_map: Dict[str, Optional[str]] = {
1189
+ '200': "V1GetWorkflowNodePrerequisitesResponse",
1190
+ }
1191
+ response_data = self.api_client.call_api(
1192
+ *_param,
1193
+ _request_timeout=_request_timeout
1194
+ )
1195
+ response_data.read()
1196
+ return self.api_client.response_deserialize(
1197
+ response_data=response_data,
1198
+ response_types_map=_response_types_map,
1199
+ ).data
1200
+
1201
+
1202
+ @validate_call
1203
+ def workflow_node_service_get_workflow_node_prerequisites_with_http_info(
1204
+ self,
1205
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to retrieve the prerequisites for.")],
1206
+ _request_timeout: Union[
1207
+ None,
1208
+ Annotated[StrictFloat, Field(gt=0)],
1209
+ Tuple[
1210
+ Annotated[StrictFloat, Field(gt=0)],
1211
+ Annotated[StrictFloat, Field(gt=0)]
1212
+ ]
1213
+ ] = None,
1214
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1215
+ _content_type: Optional[StrictStr] = None,
1216
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1217
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1218
+ ) -> ApiResponse[V1GetWorkflowNodePrerequisitesResponse]:
1219
+ """GetWorkflowNodePrerequisites retrieves the WorkflowNodes and WorkflowEdges that are the prerequisites of the specified WorkflowNode. The list might be empty. Large data might be stored in storage and not returned in the response. It is client's responsibility to retrieve the data from storage using the content handlers. It is intended to be used by the Eval Studio Workers.
1220
+
1221
+
1222
+ :param name: Required. The name of the WorkflowNode to retrieve the prerequisites for. (required)
1223
+ :type name: str
1224
+ :param _request_timeout: timeout setting for this request. If one
1225
+ number provided, it will be total request
1226
+ timeout. It can also be a pair (tuple) of
1227
+ (connection, read) timeouts.
1228
+ :type _request_timeout: int, tuple(int, int), optional
1229
+ :param _request_auth: set to override the auth_settings for an a single
1230
+ request; this effectively ignores the
1231
+ authentication in the spec for a single request.
1232
+ :type _request_auth: dict, optional
1233
+ :param _content_type: force content-type for the request.
1234
+ :type _content_type: str, Optional
1235
+ :param _headers: set to override the headers for a single
1236
+ request; this effectively ignores the headers
1237
+ in the spec for a single request.
1238
+ :type _headers: dict, optional
1239
+ :param _host_index: set to override the host_index for a single
1240
+ request; this effectively ignores the host_index
1241
+ in the spec for a single request.
1242
+ :type _host_index: int, optional
1243
+ :return: Returns the result object.
1244
+ """ # noqa: E501
1245
+
1246
+ _param = self._workflow_node_service_get_workflow_node_prerequisites_serialize(
1247
+ name=name,
1248
+ _request_auth=_request_auth,
1249
+ _content_type=_content_type,
1250
+ _headers=_headers,
1251
+ _host_index=_host_index
1252
+ )
1253
+
1254
+ _response_types_map: Dict[str, Optional[str]] = {
1255
+ '200': "V1GetWorkflowNodePrerequisitesResponse",
1256
+ }
1257
+ response_data = self.api_client.call_api(
1258
+ *_param,
1259
+ _request_timeout=_request_timeout
1260
+ )
1261
+ response_data.read()
1262
+ return self.api_client.response_deserialize(
1263
+ response_data=response_data,
1264
+ response_types_map=_response_types_map,
1265
+ )
1266
+
1267
+
1268
+ @validate_call
1269
+ def workflow_node_service_get_workflow_node_prerequisites_without_preload_content(
1270
+ self,
1271
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to retrieve the prerequisites for.")],
1272
+ _request_timeout: Union[
1273
+ None,
1274
+ Annotated[StrictFloat, Field(gt=0)],
1275
+ Tuple[
1276
+ Annotated[StrictFloat, Field(gt=0)],
1277
+ Annotated[StrictFloat, Field(gt=0)]
1278
+ ]
1279
+ ] = None,
1280
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1281
+ _content_type: Optional[StrictStr] = None,
1282
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1283
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1284
+ ) -> RESTResponseType:
1285
+ """GetWorkflowNodePrerequisites retrieves the WorkflowNodes and WorkflowEdges that are the prerequisites of the specified WorkflowNode. The list might be empty. Large data might be stored in storage and not returned in the response. It is client's responsibility to retrieve the data from storage using the content handlers. It is intended to be used by the Eval Studio Workers.
1286
+
1287
+
1288
+ :param name: Required. The name of the WorkflowNode to retrieve the prerequisites for. (required)
1289
+ :type name: str
1290
+ :param _request_timeout: timeout setting for this request. If one
1291
+ number provided, it will be total request
1292
+ timeout. It can also be a pair (tuple) of
1293
+ (connection, read) timeouts.
1294
+ :type _request_timeout: int, tuple(int, int), optional
1295
+ :param _request_auth: set to override the auth_settings for an a single
1296
+ request; this effectively ignores the
1297
+ authentication in the spec for a single request.
1298
+ :type _request_auth: dict, optional
1299
+ :param _content_type: force content-type for the request.
1300
+ :type _content_type: str, Optional
1301
+ :param _headers: set to override the headers for a single
1302
+ request; this effectively ignores the headers
1303
+ in the spec for a single request.
1304
+ :type _headers: dict, optional
1305
+ :param _host_index: set to override the host_index for a single
1306
+ request; this effectively ignores the host_index
1307
+ in the spec for a single request.
1308
+ :type _host_index: int, optional
1309
+ :return: Returns the result object.
1310
+ """ # noqa: E501
1311
+
1312
+ _param = self._workflow_node_service_get_workflow_node_prerequisites_serialize(
1313
+ name=name,
1314
+ _request_auth=_request_auth,
1315
+ _content_type=_content_type,
1316
+ _headers=_headers,
1317
+ _host_index=_host_index
1318
+ )
1319
+
1320
+ _response_types_map: Dict[str, Optional[str]] = {
1321
+ '200': "V1GetWorkflowNodePrerequisitesResponse",
1322
+ }
1323
+ response_data = self.api_client.call_api(
1324
+ *_param,
1325
+ _request_timeout=_request_timeout
1326
+ )
1327
+ return response_data.response
1328
+
1329
+
1330
+ def _workflow_node_service_get_workflow_node_prerequisites_serialize(
1331
+ self,
1332
+ name,
1333
+ _request_auth,
1334
+ _content_type,
1335
+ _headers,
1336
+ _host_index,
1337
+ ) -> RequestSerialized:
1338
+
1339
+ _host = None
1340
+
1341
+ _collection_formats: Dict[str, str] = {
1342
+ }
1343
+
1344
+ _path_params: Dict[str, str] = {}
1345
+ _query_params: List[Tuple[str, str]] = []
1346
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1347
+ _form_params: List[Tuple[str, str]] = []
1348
+ _files: Dict[str, Union[str, bytes]] = {}
1349
+ _body_params: Optional[bytes] = None
1350
+
1351
+ # process the path parameters
1352
+ if name is not None:
1353
+ _path_params['name'] = name
1354
+ # process the query parameters
1355
+ # process the header parameters
1356
+ # process the form parameters
1357
+ # process the body parameter
1358
+
1359
+
1360
+ # set the HTTP header `Accept`
1361
+ _header_params['Accept'] = self.api_client.select_header_accept(
1362
+ [
1363
+ 'application/json'
1364
+ ]
1365
+ )
1366
+
1367
+
1368
+ # authentication setting
1369
+ _auth_settings: List[str] = [
1370
+ ]
1371
+
1372
+ return self.api_client.param_serialize(
1373
+ method='GET',
1374
+ resource_path='/v1/{name}:getPrerequisites',
1375
+ path_params=_path_params,
1376
+ query_params=_query_params,
1377
+ header_params=_header_params,
1378
+ body=_body_params,
1379
+ post_params=_form_params,
1380
+ files=_files,
1381
+ auth_settings=_auth_settings,
1382
+ collection_formats=_collection_formats,
1383
+ _host=_host,
1384
+ _request_auth=_request_auth
1385
+ )
1386
+
1387
+
1388
+
1389
+
1390
+ @validate_call
1391
+ def workflow_node_service_init_workflow_node(
1392
+ self,
1393
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to initialize.")],
1394
+ _request_timeout: Union[
1395
+ None,
1396
+ Annotated[StrictFloat, Field(gt=0)],
1397
+ Tuple[
1398
+ Annotated[StrictFloat, Field(gt=0)],
1399
+ Annotated[StrictFloat, Field(gt=0)]
1400
+ ]
1401
+ ] = None,
1402
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1403
+ _content_type: Optional[StrictStr] = None,
1404
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1405
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1406
+ ) -> V1InitWorkflowNodeResponse:
1407
+ """InitWorkflowNode initializes a WorkflowNode on first access.
1408
+
1409
+
1410
+ :param name: Required. The name of the WorkflowNode to initialize. (required)
1411
+ :type name: str
1412
+ :param _request_timeout: timeout setting for this request. If one
1413
+ number provided, it will be total request
1414
+ timeout. It can also be a pair (tuple) of
1415
+ (connection, read) timeouts.
1416
+ :type _request_timeout: int, tuple(int, int), optional
1417
+ :param _request_auth: set to override the auth_settings for an a single
1418
+ request; this effectively ignores the
1419
+ authentication in the spec for a single request.
1420
+ :type _request_auth: dict, optional
1421
+ :param _content_type: force content-type for the request.
1422
+ :type _content_type: str, Optional
1423
+ :param _headers: set to override the headers for a single
1424
+ request; this effectively ignores the headers
1425
+ in the spec for a single request.
1426
+ :type _headers: dict, optional
1427
+ :param _host_index: set to override the host_index for a single
1428
+ request; this effectively ignores the host_index
1429
+ in the spec for a single request.
1430
+ :type _host_index: int, optional
1431
+ :return: Returns the result object.
1432
+ """ # noqa: E501
1433
+
1434
+ _param = self._workflow_node_service_init_workflow_node_serialize(
1435
+ name=name,
1436
+ _request_auth=_request_auth,
1437
+ _content_type=_content_type,
1438
+ _headers=_headers,
1439
+ _host_index=_host_index
1440
+ )
1441
+
1442
+ _response_types_map: Dict[str, Optional[str]] = {
1443
+ '200': "V1InitWorkflowNodeResponse",
1444
+ }
1445
+ response_data = self.api_client.call_api(
1446
+ *_param,
1447
+ _request_timeout=_request_timeout
1448
+ )
1449
+ response_data.read()
1450
+ return self.api_client.response_deserialize(
1451
+ response_data=response_data,
1452
+ response_types_map=_response_types_map,
1453
+ ).data
1454
+
1455
+
1456
+ @validate_call
1457
+ def workflow_node_service_init_workflow_node_with_http_info(
1458
+ self,
1459
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to initialize.")],
1460
+ _request_timeout: Union[
1461
+ None,
1462
+ Annotated[StrictFloat, Field(gt=0)],
1463
+ Tuple[
1464
+ Annotated[StrictFloat, Field(gt=0)],
1465
+ Annotated[StrictFloat, Field(gt=0)]
1466
+ ]
1467
+ ] = None,
1468
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1469
+ _content_type: Optional[StrictStr] = None,
1470
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1471
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1472
+ ) -> ApiResponse[V1InitWorkflowNodeResponse]:
1473
+ """InitWorkflowNode initializes a WorkflowNode on first access.
1474
+
1475
+
1476
+ :param name: Required. The name of the WorkflowNode to initialize. (required)
1477
+ :type name: str
1478
+ :param _request_timeout: timeout setting for this request. If one
1479
+ number provided, it will be total request
1480
+ timeout. It can also be a pair (tuple) of
1481
+ (connection, read) timeouts.
1482
+ :type _request_timeout: int, tuple(int, int), optional
1483
+ :param _request_auth: set to override the auth_settings for an a single
1484
+ request; this effectively ignores the
1485
+ authentication in the spec for a single request.
1486
+ :type _request_auth: dict, optional
1487
+ :param _content_type: force content-type for the request.
1488
+ :type _content_type: str, Optional
1489
+ :param _headers: set to override the headers for a single
1490
+ request; this effectively ignores the headers
1491
+ in the spec for a single request.
1492
+ :type _headers: dict, optional
1493
+ :param _host_index: set to override the host_index for a single
1494
+ request; this effectively ignores the host_index
1495
+ in the spec for a single request.
1496
+ :type _host_index: int, optional
1497
+ :return: Returns the result object.
1498
+ """ # noqa: E501
1499
+
1500
+ _param = self._workflow_node_service_init_workflow_node_serialize(
1501
+ name=name,
1502
+ _request_auth=_request_auth,
1503
+ _content_type=_content_type,
1504
+ _headers=_headers,
1505
+ _host_index=_host_index
1506
+ )
1507
+
1508
+ _response_types_map: Dict[str, Optional[str]] = {
1509
+ '200': "V1InitWorkflowNodeResponse",
1510
+ }
1511
+ response_data = self.api_client.call_api(
1512
+ *_param,
1513
+ _request_timeout=_request_timeout
1514
+ )
1515
+ response_data.read()
1516
+ return self.api_client.response_deserialize(
1517
+ response_data=response_data,
1518
+ response_types_map=_response_types_map,
1519
+ )
1520
+
1521
+
1522
+ @validate_call
1523
+ def workflow_node_service_init_workflow_node_without_preload_content(
1524
+ self,
1525
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to initialize.")],
1526
+ _request_timeout: Union[
1527
+ None,
1528
+ Annotated[StrictFloat, Field(gt=0)],
1529
+ Tuple[
1530
+ Annotated[StrictFloat, Field(gt=0)],
1531
+ Annotated[StrictFloat, Field(gt=0)]
1532
+ ]
1533
+ ] = None,
1534
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1535
+ _content_type: Optional[StrictStr] = None,
1536
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1537
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1538
+ ) -> RESTResponseType:
1539
+ """InitWorkflowNode initializes a WorkflowNode on first access.
1540
+
1541
+
1542
+ :param name: Required. The name of the WorkflowNode to initialize. (required)
1543
+ :type name: str
1544
+ :param _request_timeout: timeout setting for this request. If one
1545
+ number provided, it will be total request
1546
+ timeout. It can also be a pair (tuple) of
1547
+ (connection, read) timeouts.
1548
+ :type _request_timeout: int, tuple(int, int), optional
1549
+ :param _request_auth: set to override the auth_settings for an a single
1550
+ request; this effectively ignores the
1551
+ authentication in the spec for a single request.
1552
+ :type _request_auth: dict, optional
1553
+ :param _content_type: force content-type for the request.
1554
+ :type _content_type: str, Optional
1555
+ :param _headers: set to override the headers for a single
1556
+ request; this effectively ignores the headers
1557
+ in the spec for a single request.
1558
+ :type _headers: dict, optional
1559
+ :param _host_index: set to override the host_index for a single
1560
+ request; this effectively ignores the host_index
1561
+ in the spec for a single request.
1562
+ :type _host_index: int, optional
1563
+ :return: Returns the result object.
1564
+ """ # noqa: E501
1565
+
1566
+ _param = self._workflow_node_service_init_workflow_node_serialize(
1567
+ name=name,
1568
+ _request_auth=_request_auth,
1569
+ _content_type=_content_type,
1570
+ _headers=_headers,
1571
+ _host_index=_host_index
1572
+ )
1573
+
1574
+ _response_types_map: Dict[str, Optional[str]] = {
1575
+ '200': "V1InitWorkflowNodeResponse",
1576
+ }
1577
+ response_data = self.api_client.call_api(
1578
+ *_param,
1579
+ _request_timeout=_request_timeout
1580
+ )
1581
+ return response_data.response
1582
+
1583
+
1584
+ def _workflow_node_service_init_workflow_node_serialize(
1585
+ self,
1586
+ name,
1587
+ _request_auth,
1588
+ _content_type,
1589
+ _headers,
1590
+ _host_index,
1591
+ ) -> RequestSerialized:
1592
+
1593
+ _host = None
1594
+
1595
+ _collection_formats: Dict[str, str] = {
1596
+ }
1597
+
1598
+ _path_params: Dict[str, str] = {}
1599
+ _query_params: List[Tuple[str, str]] = []
1600
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1601
+ _form_params: List[Tuple[str, str]] = []
1602
+ _files: Dict[str, Union[str, bytes]] = {}
1603
+ _body_params: Optional[bytes] = None
1604
+
1605
+ # process the path parameters
1606
+ if name is not None:
1607
+ _path_params['name'] = name
1608
+ # process the query parameters
1609
+ # process the header parameters
1610
+ # process the form parameters
1611
+ # process the body parameter
1612
+
1613
+
1614
+ # set the HTTP header `Accept`
1615
+ _header_params['Accept'] = self.api_client.select_header_accept(
1616
+ [
1617
+ 'application/json'
1618
+ ]
1619
+ )
1620
+
1621
+
1622
+ # authentication setting
1623
+ _auth_settings: List[str] = [
1624
+ ]
1625
+
1626
+ return self.api_client.param_serialize(
1627
+ method='POST',
1628
+ resource_path='/v1/{name}:init',
1629
+ path_params=_path_params,
1630
+ query_params=_query_params,
1631
+ header_params=_header_params,
1632
+ body=_body_params,
1633
+ post_params=_form_params,
1634
+ files=_files,
1635
+ auth_settings=_auth_settings,
1636
+ collection_formats=_collection_formats,
1637
+ _host=_host,
1638
+ _request_auth=_request_auth
1639
+ )
1640
+
1641
+
1642
+
1643
+
1644
+ @validate_call
1645
+ def workflow_node_service_process_workflow_node(
1646
+ self,
1647
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to process.")],
1648
+ _request_timeout: Union[
1649
+ None,
1650
+ Annotated[StrictFloat, Field(gt=0)],
1651
+ Tuple[
1652
+ Annotated[StrictFloat, Field(gt=0)],
1653
+ Annotated[StrictFloat, Field(gt=0)]
1654
+ ]
1655
+ ] = None,
1656
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1657
+ _content_type: Optional[StrictStr] = None,
1658
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1659
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1660
+ ) -> V1ProcessWorkflowNodeResponse:
1661
+ """ProcessWorkflowNode processes a WorkflowNode.
1662
+
1663
+
1664
+ :param name: Required. The name of the WorkflowNode to process. (required)
1665
+ :type name: str
1666
+ :param _request_timeout: timeout setting for this request. If one
1667
+ number provided, it will be total request
1668
+ timeout. It can also be a pair (tuple) of
1669
+ (connection, read) timeouts.
1670
+ :type _request_timeout: int, tuple(int, int), optional
1671
+ :param _request_auth: set to override the auth_settings for an a single
1672
+ request; this effectively ignores the
1673
+ authentication in the spec for a single request.
1674
+ :type _request_auth: dict, optional
1675
+ :param _content_type: force content-type for the request.
1676
+ :type _content_type: str, Optional
1677
+ :param _headers: set to override the headers for a single
1678
+ request; this effectively ignores the headers
1679
+ in the spec for a single request.
1680
+ :type _headers: dict, optional
1681
+ :param _host_index: set to override the host_index for a single
1682
+ request; this effectively ignores the host_index
1683
+ in the spec for a single request.
1684
+ :type _host_index: int, optional
1685
+ :return: Returns the result object.
1686
+ """ # noqa: E501
1687
+
1688
+ _param = self._workflow_node_service_process_workflow_node_serialize(
1689
+ name=name,
1690
+ _request_auth=_request_auth,
1691
+ _content_type=_content_type,
1692
+ _headers=_headers,
1693
+ _host_index=_host_index
1694
+ )
1695
+
1696
+ _response_types_map: Dict[str, Optional[str]] = {
1697
+ '200': "V1ProcessWorkflowNodeResponse",
1698
+ }
1699
+ response_data = self.api_client.call_api(
1700
+ *_param,
1701
+ _request_timeout=_request_timeout
1702
+ )
1703
+ response_data.read()
1704
+ return self.api_client.response_deserialize(
1705
+ response_data=response_data,
1706
+ response_types_map=_response_types_map,
1707
+ ).data
1708
+
1709
+
1710
+ @validate_call
1711
+ def workflow_node_service_process_workflow_node_with_http_info(
1712
+ self,
1713
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to process.")],
1714
+ _request_timeout: Union[
1715
+ None,
1716
+ Annotated[StrictFloat, Field(gt=0)],
1717
+ Tuple[
1718
+ Annotated[StrictFloat, Field(gt=0)],
1719
+ Annotated[StrictFloat, Field(gt=0)]
1720
+ ]
1721
+ ] = None,
1722
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1723
+ _content_type: Optional[StrictStr] = None,
1724
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1725
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1726
+ ) -> ApiResponse[V1ProcessWorkflowNodeResponse]:
1727
+ """ProcessWorkflowNode processes a WorkflowNode.
1728
+
1729
+
1730
+ :param name: Required. The name of the WorkflowNode to process. (required)
1731
+ :type name: str
1732
+ :param _request_timeout: timeout setting for this request. If one
1733
+ number provided, it will be total request
1734
+ timeout. It can also be a pair (tuple) of
1735
+ (connection, read) timeouts.
1736
+ :type _request_timeout: int, tuple(int, int), optional
1737
+ :param _request_auth: set to override the auth_settings for an a single
1738
+ request; this effectively ignores the
1739
+ authentication in the spec for a single request.
1740
+ :type _request_auth: dict, optional
1741
+ :param _content_type: force content-type for the request.
1742
+ :type _content_type: str, Optional
1743
+ :param _headers: set to override the headers for a single
1744
+ request; this effectively ignores the headers
1745
+ in the spec for a single request.
1746
+ :type _headers: dict, optional
1747
+ :param _host_index: set to override the host_index for a single
1748
+ request; this effectively ignores the host_index
1749
+ in the spec for a single request.
1750
+ :type _host_index: int, optional
1751
+ :return: Returns the result object.
1752
+ """ # noqa: E501
1753
+
1754
+ _param = self._workflow_node_service_process_workflow_node_serialize(
1755
+ name=name,
1756
+ _request_auth=_request_auth,
1757
+ _content_type=_content_type,
1758
+ _headers=_headers,
1759
+ _host_index=_host_index
1760
+ )
1761
+
1762
+ _response_types_map: Dict[str, Optional[str]] = {
1763
+ '200': "V1ProcessWorkflowNodeResponse",
1764
+ }
1765
+ response_data = self.api_client.call_api(
1766
+ *_param,
1767
+ _request_timeout=_request_timeout
1768
+ )
1769
+ response_data.read()
1770
+ return self.api_client.response_deserialize(
1771
+ response_data=response_data,
1772
+ response_types_map=_response_types_map,
1773
+ )
1774
+
1775
+
1776
+ @validate_call
1777
+ def workflow_node_service_process_workflow_node_without_preload_content(
1778
+ self,
1779
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to process.")],
1780
+ _request_timeout: Union[
1781
+ None,
1782
+ Annotated[StrictFloat, Field(gt=0)],
1783
+ Tuple[
1784
+ Annotated[StrictFloat, Field(gt=0)],
1785
+ Annotated[StrictFloat, Field(gt=0)]
1786
+ ]
1787
+ ] = None,
1788
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1789
+ _content_type: Optional[StrictStr] = None,
1790
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1791
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1792
+ ) -> RESTResponseType:
1793
+ """ProcessWorkflowNode processes a WorkflowNode.
1794
+
1795
+
1796
+ :param name: Required. The name of the WorkflowNode to process. (required)
1797
+ :type name: str
1798
+ :param _request_timeout: timeout setting for this request. If one
1799
+ number provided, it will be total request
1800
+ timeout. It can also be a pair (tuple) of
1801
+ (connection, read) timeouts.
1802
+ :type _request_timeout: int, tuple(int, int), optional
1803
+ :param _request_auth: set to override the auth_settings for an a single
1804
+ request; this effectively ignores the
1805
+ authentication in the spec for a single request.
1806
+ :type _request_auth: dict, optional
1807
+ :param _content_type: force content-type for the request.
1808
+ :type _content_type: str, Optional
1809
+ :param _headers: set to override the headers for a single
1810
+ request; this effectively ignores the headers
1811
+ in the spec for a single request.
1812
+ :type _headers: dict, optional
1813
+ :param _host_index: set to override the host_index for a single
1814
+ request; this effectively ignores the host_index
1815
+ in the spec for a single request.
1816
+ :type _host_index: int, optional
1817
+ :return: Returns the result object.
1818
+ """ # noqa: E501
1819
+
1820
+ _param = self._workflow_node_service_process_workflow_node_serialize(
1821
+ name=name,
1822
+ _request_auth=_request_auth,
1823
+ _content_type=_content_type,
1824
+ _headers=_headers,
1825
+ _host_index=_host_index
1826
+ )
1827
+
1828
+ _response_types_map: Dict[str, Optional[str]] = {
1829
+ '200': "V1ProcessWorkflowNodeResponse",
1830
+ }
1831
+ response_data = self.api_client.call_api(
1832
+ *_param,
1833
+ _request_timeout=_request_timeout
1834
+ )
1835
+ return response_data.response
1836
+
1837
+
1838
+ def _workflow_node_service_process_workflow_node_serialize(
1839
+ self,
1840
+ name,
1841
+ _request_auth,
1842
+ _content_type,
1843
+ _headers,
1844
+ _host_index,
1845
+ ) -> RequestSerialized:
1846
+
1847
+ _host = None
1848
+
1849
+ _collection_formats: Dict[str, str] = {
1850
+ }
1851
+
1852
+ _path_params: Dict[str, str] = {}
1853
+ _query_params: List[Tuple[str, str]] = []
1854
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1855
+ _form_params: List[Tuple[str, str]] = []
1856
+ _files: Dict[str, Union[str, bytes]] = {}
1857
+ _body_params: Optional[bytes] = None
1858
+
1859
+ # process the path parameters
1860
+ if name is not None:
1861
+ _path_params['name'] = name
1862
+ # process the query parameters
1863
+ # process the header parameters
1864
+ # process the form parameters
1865
+ # process the body parameter
1866
+
1867
+
1868
+ # set the HTTP header `Accept`
1869
+ _header_params['Accept'] = self.api_client.select_header_accept(
1870
+ [
1871
+ 'application/json'
1872
+ ]
1873
+ )
1874
+
1875
+
1876
+ # authentication setting
1877
+ _auth_settings: List[str] = [
1878
+ ]
1879
+
1880
+ return self.api_client.param_serialize(
1881
+ method='POST',
1882
+ resource_path='/v1/{name}:process',
1883
+ path_params=_path_params,
1884
+ query_params=_query_params,
1885
+ header_params=_header_params,
1886
+ body=_body_params,
1887
+ post_params=_form_params,
1888
+ files=_files,
1889
+ auth_settings=_auth_settings,
1890
+ collection_formats=_collection_formats,
1891
+ _host=_host,
1892
+ _request_auth=_request_auth
1893
+ )
1894
+
1895
+
1896
+
1897
+
1898
+ @validate_call
1899
+ def workflow_node_service_reset_workflow_node(
1900
+ self,
1901
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to reset.")],
1902
+ _request_timeout: Union[
1903
+ None,
1904
+ Annotated[StrictFloat, Field(gt=0)],
1905
+ Tuple[
1906
+ Annotated[StrictFloat, Field(gt=0)],
1907
+ Annotated[StrictFloat, Field(gt=0)]
1908
+ ]
1909
+ ] = None,
1910
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1911
+ _content_type: Optional[StrictStr] = None,
1912
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1913
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1914
+ ) -> V1ResetWorkflowNodeResponse:
1915
+ """ResetWorkflowNode resets a WorkflowNode.
1916
+
1917
+
1918
+ :param name: Required. The name of the WorkflowNode to reset. (required)
1919
+ :type name: str
1920
+ :param _request_timeout: timeout setting for this request. If one
1921
+ number provided, it will be total request
1922
+ timeout. It can also be a pair (tuple) of
1923
+ (connection, read) timeouts.
1924
+ :type _request_timeout: int, tuple(int, int), optional
1925
+ :param _request_auth: set to override the auth_settings for an a single
1926
+ request; this effectively ignores the
1927
+ authentication in the spec for a single request.
1928
+ :type _request_auth: dict, optional
1929
+ :param _content_type: force content-type for the request.
1930
+ :type _content_type: str, Optional
1931
+ :param _headers: set to override the headers for a single
1932
+ request; this effectively ignores the headers
1933
+ in the spec for a single request.
1934
+ :type _headers: dict, optional
1935
+ :param _host_index: set to override the host_index for a single
1936
+ request; this effectively ignores the host_index
1937
+ in the spec for a single request.
1938
+ :type _host_index: int, optional
1939
+ :return: Returns the result object.
1940
+ """ # noqa: E501
1941
+
1942
+ _param = self._workflow_node_service_reset_workflow_node_serialize(
1943
+ name=name,
1944
+ _request_auth=_request_auth,
1945
+ _content_type=_content_type,
1946
+ _headers=_headers,
1947
+ _host_index=_host_index
1948
+ )
1949
+
1950
+ _response_types_map: Dict[str, Optional[str]] = {
1951
+ '200': "V1ResetWorkflowNodeResponse",
1952
+ }
1953
+ response_data = self.api_client.call_api(
1954
+ *_param,
1955
+ _request_timeout=_request_timeout
1956
+ )
1957
+ response_data.read()
1958
+ return self.api_client.response_deserialize(
1959
+ response_data=response_data,
1960
+ response_types_map=_response_types_map,
1961
+ ).data
1962
+
1963
+
1964
+ @validate_call
1965
+ def workflow_node_service_reset_workflow_node_with_http_info(
1966
+ self,
1967
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to reset.")],
1968
+ _request_timeout: Union[
1969
+ None,
1970
+ Annotated[StrictFloat, Field(gt=0)],
1971
+ Tuple[
1972
+ Annotated[StrictFloat, Field(gt=0)],
1973
+ Annotated[StrictFloat, Field(gt=0)]
1974
+ ]
1975
+ ] = None,
1976
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1977
+ _content_type: Optional[StrictStr] = None,
1978
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1979
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1980
+ ) -> ApiResponse[V1ResetWorkflowNodeResponse]:
1981
+ """ResetWorkflowNode resets a WorkflowNode.
1982
+
1983
+
1984
+ :param name: Required. The name of the WorkflowNode to reset. (required)
1985
+ :type name: str
1986
+ :param _request_timeout: timeout setting for this request. If one
1987
+ number provided, it will be total request
1988
+ timeout. It can also be a pair (tuple) of
1989
+ (connection, read) timeouts.
1990
+ :type _request_timeout: int, tuple(int, int), optional
1991
+ :param _request_auth: set to override the auth_settings for an a single
1992
+ request; this effectively ignores the
1993
+ authentication in the spec for a single request.
1994
+ :type _request_auth: dict, optional
1995
+ :param _content_type: force content-type for the request.
1996
+ :type _content_type: str, Optional
1997
+ :param _headers: set to override the headers for a single
1998
+ request; this effectively ignores the headers
1999
+ in the spec for a single request.
2000
+ :type _headers: dict, optional
2001
+ :param _host_index: set to override the host_index for a single
2002
+ request; this effectively ignores the host_index
2003
+ in the spec for a single request.
2004
+ :type _host_index: int, optional
2005
+ :return: Returns the result object.
2006
+ """ # noqa: E501
2007
+
2008
+ _param = self._workflow_node_service_reset_workflow_node_serialize(
2009
+ name=name,
2010
+ _request_auth=_request_auth,
2011
+ _content_type=_content_type,
2012
+ _headers=_headers,
2013
+ _host_index=_host_index
2014
+ )
2015
+
2016
+ _response_types_map: Dict[str, Optional[str]] = {
2017
+ '200': "V1ResetWorkflowNodeResponse",
2018
+ }
2019
+ response_data = self.api_client.call_api(
2020
+ *_param,
2021
+ _request_timeout=_request_timeout
2022
+ )
2023
+ response_data.read()
2024
+ return self.api_client.response_deserialize(
2025
+ response_data=response_data,
2026
+ response_types_map=_response_types_map,
2027
+ )
2028
+
2029
+
2030
+ @validate_call
2031
+ def workflow_node_service_reset_workflow_node_without_preload_content(
2032
+ self,
2033
+ name: Annotated[str, Field(strict=True, description="Required. The name of the WorkflowNode to reset.")],
2034
+ _request_timeout: Union[
2035
+ None,
2036
+ Annotated[StrictFloat, Field(gt=0)],
2037
+ Tuple[
2038
+ Annotated[StrictFloat, Field(gt=0)],
2039
+ Annotated[StrictFloat, Field(gt=0)]
2040
+ ]
2041
+ ] = None,
2042
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2043
+ _content_type: Optional[StrictStr] = None,
2044
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2045
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2046
+ ) -> RESTResponseType:
2047
+ """ResetWorkflowNode resets a WorkflowNode.
2048
+
2049
+
2050
+ :param name: Required. The name of the WorkflowNode to reset. (required)
2051
+ :type name: str
2052
+ :param _request_timeout: timeout setting for this request. If one
2053
+ number provided, it will be total request
2054
+ timeout. It can also be a pair (tuple) of
2055
+ (connection, read) timeouts.
2056
+ :type _request_timeout: int, tuple(int, int), optional
2057
+ :param _request_auth: set to override the auth_settings for an a single
2058
+ request; this effectively ignores the
2059
+ authentication in the spec for a single request.
2060
+ :type _request_auth: dict, optional
2061
+ :param _content_type: force content-type for the request.
2062
+ :type _content_type: str, Optional
2063
+ :param _headers: set to override the headers for a single
2064
+ request; this effectively ignores the headers
2065
+ in the spec for a single request.
2066
+ :type _headers: dict, optional
2067
+ :param _host_index: set to override the host_index for a single
2068
+ request; this effectively ignores the host_index
2069
+ in the spec for a single request.
2070
+ :type _host_index: int, optional
2071
+ :return: Returns the result object.
2072
+ """ # noqa: E501
2073
+
2074
+ _param = self._workflow_node_service_reset_workflow_node_serialize(
2075
+ name=name,
2076
+ _request_auth=_request_auth,
2077
+ _content_type=_content_type,
2078
+ _headers=_headers,
2079
+ _host_index=_host_index
2080
+ )
2081
+
2082
+ _response_types_map: Dict[str, Optional[str]] = {
2083
+ '200': "V1ResetWorkflowNodeResponse",
2084
+ }
2085
+ response_data = self.api_client.call_api(
2086
+ *_param,
2087
+ _request_timeout=_request_timeout
2088
+ )
2089
+ return response_data.response
2090
+
2091
+
2092
+ def _workflow_node_service_reset_workflow_node_serialize(
2093
+ self,
2094
+ name,
2095
+ _request_auth,
2096
+ _content_type,
2097
+ _headers,
2098
+ _host_index,
2099
+ ) -> RequestSerialized:
2100
+
2101
+ _host = None
2102
+
2103
+ _collection_formats: Dict[str, str] = {
2104
+ }
2105
+
2106
+ _path_params: Dict[str, str] = {}
2107
+ _query_params: List[Tuple[str, str]] = []
2108
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2109
+ _form_params: List[Tuple[str, str]] = []
2110
+ _files: Dict[str, Union[str, bytes]] = {}
2111
+ _body_params: Optional[bytes] = None
2112
+
2113
+ # process the path parameters
2114
+ if name is not None:
2115
+ _path_params['name'] = name
2116
+ # process the query parameters
2117
+ # process the header parameters
2118
+ # process the form parameters
2119
+ # process the body parameter
2120
+
2121
+
2122
+ # set the HTTP header `Accept`
2123
+ _header_params['Accept'] = self.api_client.select_header_accept(
2124
+ [
2125
+ 'application/json'
2126
+ ]
2127
+ )
2128
+
2129
+
2130
+ # authentication setting
2131
+ _auth_settings: List[str] = [
2132
+ ]
2133
+
2134
+ return self.api_client.param_serialize(
2135
+ method='POST',
2136
+ resource_path='/v1/{name}:reset',
2137
+ path_params=_path_params,
2138
+ query_params=_query_params,
2139
+ header_params=_header_params,
2140
+ body=_body_params,
2141
+ post_params=_form_params,
2142
+ files=_files,
2143
+ auth_settings=_auth_settings,
2144
+ collection_formats=_collection_formats,
2145
+ _host=_host,
2146
+ _request_auth=_request_auth
2147
+ )
2148
+
2149
+
2150
+
2151
+
2152
+ @validate_call
2153
+ def workflow_node_service_update_workflow_node(
2154
+ self,
2155
+ node_name: Annotated[str, Field(strict=True, description="Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}/nodes/{node_id}`.")],
2156
+ node: Annotated[RequiredTheUpdatedWorkflowNode, Field(description="Required. The updated WorkflowNode.")],
2157
+ _request_timeout: Union[
2158
+ None,
2159
+ Annotated[StrictFloat, Field(gt=0)],
2160
+ Tuple[
2161
+ Annotated[StrictFloat, Field(gt=0)],
2162
+ Annotated[StrictFloat, Field(gt=0)]
2163
+ ]
2164
+ ] = None,
2165
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2166
+ _content_type: Optional[StrictStr] = None,
2167
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2168
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2169
+ ) -> V1UpdateWorkflowNodeResponse:
2170
+ """UpdateWorkflowNode updates a WorkflowNode. The update_mask is used to specify the fields to be updated.
2171
+
2172
+
2173
+ :param node_name: Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}/nodes/{node_id}`. (required)
2174
+ :type node_name: str
2175
+ :param node: Required. The updated WorkflowNode. (required)
2176
+ :type node: RequiredTheUpdatedWorkflowNode
2177
+ :param _request_timeout: timeout setting for this request. If one
2178
+ number provided, it will be total request
2179
+ timeout. It can also be a pair (tuple) of
2180
+ (connection, read) timeouts.
2181
+ :type _request_timeout: int, tuple(int, int), optional
2182
+ :param _request_auth: set to override the auth_settings for an a single
2183
+ request; this effectively ignores the
2184
+ authentication in the spec for a single request.
2185
+ :type _request_auth: dict, optional
2186
+ :param _content_type: force content-type for the request.
2187
+ :type _content_type: str, Optional
2188
+ :param _headers: set to override the headers for a single
2189
+ request; this effectively ignores the headers
2190
+ in the spec for a single request.
2191
+ :type _headers: dict, optional
2192
+ :param _host_index: set to override the host_index for a single
2193
+ request; this effectively ignores the host_index
2194
+ in the spec for a single request.
2195
+ :type _host_index: int, optional
2196
+ :return: Returns the result object.
2197
+ """ # noqa: E501
2198
+
2199
+ _param = self._workflow_node_service_update_workflow_node_serialize(
2200
+ node_name=node_name,
2201
+ node=node,
2202
+ _request_auth=_request_auth,
2203
+ _content_type=_content_type,
2204
+ _headers=_headers,
2205
+ _host_index=_host_index
2206
+ )
2207
+
2208
+ _response_types_map: Dict[str, Optional[str]] = {
2209
+ '200': "V1UpdateWorkflowNodeResponse",
2210
+ }
2211
+ response_data = self.api_client.call_api(
2212
+ *_param,
2213
+ _request_timeout=_request_timeout
2214
+ )
2215
+ response_data.read()
2216
+ return self.api_client.response_deserialize(
2217
+ response_data=response_data,
2218
+ response_types_map=_response_types_map,
2219
+ ).data
2220
+
2221
+
2222
+ @validate_call
2223
+ def workflow_node_service_update_workflow_node_with_http_info(
2224
+ self,
2225
+ node_name: Annotated[str, Field(strict=True, description="Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}/nodes/{node_id}`.")],
2226
+ node: Annotated[RequiredTheUpdatedWorkflowNode, Field(description="Required. The updated WorkflowNode.")],
2227
+ _request_timeout: Union[
2228
+ None,
2229
+ Annotated[StrictFloat, Field(gt=0)],
2230
+ Tuple[
2231
+ Annotated[StrictFloat, Field(gt=0)],
2232
+ Annotated[StrictFloat, Field(gt=0)]
2233
+ ]
2234
+ ] = None,
2235
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2236
+ _content_type: Optional[StrictStr] = None,
2237
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2238
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2239
+ ) -> ApiResponse[V1UpdateWorkflowNodeResponse]:
2240
+ """UpdateWorkflowNode updates a WorkflowNode. The update_mask is used to specify the fields to be updated.
2241
+
2242
+
2243
+ :param node_name: Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}/nodes/{node_id}`. (required)
2244
+ :type node_name: str
2245
+ :param node: Required. The updated WorkflowNode. (required)
2246
+ :type node: RequiredTheUpdatedWorkflowNode
2247
+ :param _request_timeout: timeout setting for this request. If one
2248
+ number provided, it will be total request
2249
+ timeout. It can also be a pair (tuple) of
2250
+ (connection, read) timeouts.
2251
+ :type _request_timeout: int, tuple(int, int), optional
2252
+ :param _request_auth: set to override the auth_settings for an a single
2253
+ request; this effectively ignores the
2254
+ authentication in the spec for a single request.
2255
+ :type _request_auth: dict, optional
2256
+ :param _content_type: force content-type for the request.
2257
+ :type _content_type: str, Optional
2258
+ :param _headers: set to override the headers for a single
2259
+ request; this effectively ignores the headers
2260
+ in the spec for a single request.
2261
+ :type _headers: dict, optional
2262
+ :param _host_index: set to override the host_index for a single
2263
+ request; this effectively ignores the host_index
2264
+ in the spec for a single request.
2265
+ :type _host_index: int, optional
2266
+ :return: Returns the result object.
2267
+ """ # noqa: E501
2268
+
2269
+ _param = self._workflow_node_service_update_workflow_node_serialize(
2270
+ node_name=node_name,
2271
+ node=node,
2272
+ _request_auth=_request_auth,
2273
+ _content_type=_content_type,
2274
+ _headers=_headers,
2275
+ _host_index=_host_index
2276
+ )
2277
+
2278
+ _response_types_map: Dict[str, Optional[str]] = {
2279
+ '200': "V1UpdateWorkflowNodeResponse",
2280
+ }
2281
+ response_data = self.api_client.call_api(
2282
+ *_param,
2283
+ _request_timeout=_request_timeout
2284
+ )
2285
+ response_data.read()
2286
+ return self.api_client.response_deserialize(
2287
+ response_data=response_data,
2288
+ response_types_map=_response_types_map,
2289
+ )
2290
+
2291
+
2292
+ @validate_call
2293
+ def workflow_node_service_update_workflow_node_without_preload_content(
2294
+ self,
2295
+ node_name: Annotated[str, Field(strict=True, description="Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}/nodes/{node_id}`.")],
2296
+ node: Annotated[RequiredTheUpdatedWorkflowNode, Field(description="Required. The updated WorkflowNode.")],
2297
+ _request_timeout: Union[
2298
+ None,
2299
+ Annotated[StrictFloat, Field(gt=0)],
2300
+ Tuple[
2301
+ Annotated[StrictFloat, Field(gt=0)],
2302
+ Annotated[StrictFloat, Field(gt=0)]
2303
+ ]
2304
+ ] = None,
2305
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2306
+ _content_type: Optional[StrictStr] = None,
2307
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2308
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2309
+ ) -> RESTResponseType:
2310
+ """UpdateWorkflowNode updates a WorkflowNode. The update_mask is used to specify the fields to be updated.
2311
+
2312
+
2313
+ :param node_name: Output only. Immutable. Resource name of the Workflow in format of `workflows/{workflow_id}/nodes/{node_id}`. (required)
2314
+ :type node_name: str
2315
+ :param node: Required. The updated WorkflowNode. (required)
2316
+ :type node: RequiredTheUpdatedWorkflowNode
2317
+ :param _request_timeout: timeout setting for this request. If one
2318
+ number provided, it will be total request
2319
+ timeout. It can also be a pair (tuple) of
2320
+ (connection, read) timeouts.
2321
+ :type _request_timeout: int, tuple(int, int), optional
2322
+ :param _request_auth: set to override the auth_settings for an a single
2323
+ request; this effectively ignores the
2324
+ authentication in the spec for a single request.
2325
+ :type _request_auth: dict, optional
2326
+ :param _content_type: force content-type for the request.
2327
+ :type _content_type: str, Optional
2328
+ :param _headers: set to override the headers for a single
2329
+ request; this effectively ignores the headers
2330
+ in the spec for a single request.
2331
+ :type _headers: dict, optional
2332
+ :param _host_index: set to override the host_index for a single
2333
+ request; this effectively ignores the host_index
2334
+ in the spec for a single request.
2335
+ :type _host_index: int, optional
2336
+ :return: Returns the result object.
2337
+ """ # noqa: E501
2338
+
2339
+ _param = self._workflow_node_service_update_workflow_node_serialize(
2340
+ node_name=node_name,
2341
+ node=node,
2342
+ _request_auth=_request_auth,
2343
+ _content_type=_content_type,
2344
+ _headers=_headers,
2345
+ _host_index=_host_index
2346
+ )
2347
+
2348
+ _response_types_map: Dict[str, Optional[str]] = {
2349
+ '200': "V1UpdateWorkflowNodeResponse",
2350
+ }
2351
+ response_data = self.api_client.call_api(
2352
+ *_param,
2353
+ _request_timeout=_request_timeout
2354
+ )
2355
+ return response_data.response
2356
+
2357
+
2358
+ def _workflow_node_service_update_workflow_node_serialize(
2359
+ self,
2360
+ node_name,
2361
+ node,
2362
+ _request_auth,
2363
+ _content_type,
2364
+ _headers,
2365
+ _host_index,
2366
+ ) -> RequestSerialized:
2367
+
2368
+ _host = None
2369
+
2370
+ _collection_formats: Dict[str, str] = {
2371
+ }
2372
+
2373
+ _path_params: Dict[str, str] = {}
2374
+ _query_params: List[Tuple[str, str]] = []
2375
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2376
+ _form_params: List[Tuple[str, str]] = []
2377
+ _files: Dict[str, Union[str, bytes]] = {}
2378
+ _body_params: Optional[bytes] = None
2379
+
2380
+ # process the path parameters
2381
+ if node_name is not None:
2382
+ _path_params['node.name'] = node_name
2383
+ # process the query parameters
2384
+ # process the header parameters
2385
+ # process the form parameters
2386
+ # process the body parameter
2387
+ if node is not None:
2388
+ _body_params = node
2389
+
2390
+
2391
+ # set the HTTP header `Accept`
2392
+ _header_params['Accept'] = self.api_client.select_header_accept(
2393
+ [
2394
+ 'application/json'
2395
+ ]
2396
+ )
2397
+
2398
+ # set the HTTP header `Content-Type`
2399
+ if _content_type:
2400
+ _header_params['Content-Type'] = _content_type
2401
+ else:
2402
+ _default_content_type = (
2403
+ self.api_client.select_header_content_type(
2404
+ [
2405
+ 'application/json'
2406
+ ]
2407
+ )
2408
+ )
2409
+ if _default_content_type is not None:
2410
+ _header_params['Content-Type'] = _default_content_type
2411
+
2412
+ # authentication setting
2413
+ _auth_settings: List[str] = [
2414
+ ]
2415
+
2416
+ return self.api_client.param_serialize(
2417
+ method='PATCH',
2418
+ resource_path='/v1/{node.name}',
2419
+ path_params=_path_params,
2420
+ query_params=_query_params,
2421
+ header_params=_header_params,
2422
+ body=_body_params,
2423
+ post_params=_form_params,
2424
+ files=_files,
2425
+ auth_settings=_auth_settings,
2426
+ collection_formats=_collection_formats,
2427
+ _host=_host,
2428
+ _request_auth=_request_auth
2429
+ )
2430
+
2431
+