eval-studio-client 0.7.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 (470) hide show
  1. eval_studio_client/__about__.py +1 -0
  2. eval_studio_client/__init__.py +4 -0
  3. eval_studio_client/api/__init__.py +180 -0
  4. eval_studio_client/api/api/__init__.py +20 -0
  5. eval_studio_client/api/api/dashboard_service_api.py +2142 -0
  6. eval_studio_client/api/api/document_service_api.py +1868 -0
  7. eval_studio_client/api/api/evaluation_service_api.py +1603 -0
  8. eval_studio_client/api/api/evaluator_service_api.py +1343 -0
  9. eval_studio_client/api/api/info_service_api.py +275 -0
  10. eval_studio_client/api/api/leaderboard_service_api.py +3336 -0
  11. eval_studio_client/api/api/model_service_api.py +2913 -0
  12. eval_studio_client/api/api/operation_progress_service_api.py +292 -0
  13. eval_studio_client/api/api/operation_service_api.py +1359 -0
  14. eval_studio_client/api/api/perturbation_service_api.py +321 -0
  15. eval_studio_client/api/api/perturbator_service_api.py +532 -0
  16. eval_studio_client/api/api/test_case_service_api.py +1913 -0
  17. eval_studio_client/api/api/test_class_service_api.py +532 -0
  18. eval_studio_client/api/api/test_lab_service_api.py +634 -0
  19. eval_studio_client/api/api/test_service_api.py +2712 -0
  20. eval_studio_client/api/api/who_am_i_service_api.py +275 -0
  21. eval_studio_client/api/api_client.py +770 -0
  22. eval_studio_client/api/api_response.py +21 -0
  23. eval_studio_client/api/configuration.py +436 -0
  24. eval_studio_client/api/docs/DashboardServiceApi.md +549 -0
  25. eval_studio_client/api/docs/DocumentServiceApi.md +478 -0
  26. eval_studio_client/api/docs/EvaluationServiceApi.md +332 -0
  27. eval_studio_client/api/docs/EvaluatorServiceApi.md +345 -0
  28. eval_studio_client/api/docs/InfoServiceApi.md +71 -0
  29. eval_studio_client/api/docs/LeaderboardServiceApi.md +835 -0
  30. eval_studio_client/api/docs/ModelServiceApi.md +750 -0
  31. eval_studio_client/api/docs/OperationProgressServiceApi.md +75 -0
  32. eval_studio_client/api/docs/OperationServiceApi.md +345 -0
  33. eval_studio_client/api/docs/PerturbationServiceApi.md +78 -0
  34. eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +31 -0
  35. eval_studio_client/api/docs/PerturbatorServiceApi.md +138 -0
  36. eval_studio_client/api/docs/ProtobufAny.md +30 -0
  37. eval_studio_client/api/docs/RequiredTheDashboardToUpdate.md +41 -0
  38. eval_studio_client/api/docs/RequiredTheDocumentToUpdate.md +38 -0
  39. eval_studio_client/api/docs/RequiredTheLeaderboardToUpdate.md +54 -0
  40. eval_studio_client/api/docs/RequiredTheModelToUpdate.md +41 -0
  41. eval_studio_client/api/docs/RequiredTheOperationToFinalize.md +39 -0
  42. eval_studio_client/api/docs/RequiredTheOperationToUpdate.md +39 -0
  43. eval_studio_client/api/docs/RequiredTheTestCaseToUpdate.md +39 -0
  44. eval_studio_client/api/docs/RequiredTheTestToUpdate.md +39 -0
  45. eval_studio_client/api/docs/RpcStatus.md +32 -0
  46. eval_studio_client/api/docs/TestCaseServiceApi.md +486 -0
  47. eval_studio_client/api/docs/TestCaseServiceBatchDeleteTestCasesRequest.md +29 -0
  48. eval_studio_client/api/docs/TestClassServiceApi.md +138 -0
  49. eval_studio_client/api/docs/TestLabServiceApi.md +151 -0
  50. eval_studio_client/api/docs/TestServiceApi.md +689 -0
  51. eval_studio_client/api/docs/TestServicePerturbTestRequest.md +31 -0
  52. eval_studio_client/api/docs/V1alphaBatchCreateLeaderboardsRequest.md +31 -0
  53. eval_studio_client/api/docs/V1alphaBatchCreateLeaderboardsResponse.md +29 -0
  54. eval_studio_client/api/docs/V1alphaBatchDeleteDashboardsRequest.md +29 -0
  55. eval_studio_client/api/docs/V1alphaBatchDeleteDashboardsResponse.md +29 -0
  56. eval_studio_client/api/docs/V1alphaBatchDeleteDocumentsRequest.md +29 -0
  57. eval_studio_client/api/docs/V1alphaBatchDeleteDocumentsResponse.md +29 -0
  58. eval_studio_client/api/docs/V1alphaBatchDeleteEvaluatorsRequest.md +29 -0
  59. eval_studio_client/api/docs/V1alphaBatchDeleteEvaluatorsResponse.md +29 -0
  60. eval_studio_client/api/docs/V1alphaBatchDeleteLeaderboardsRequest.md +30 -0
  61. eval_studio_client/api/docs/V1alphaBatchDeleteLeaderboardsResponse.md +29 -0
  62. eval_studio_client/api/docs/V1alphaBatchDeleteModelsRequest.md +29 -0
  63. eval_studio_client/api/docs/V1alphaBatchDeleteModelsResponse.md +29 -0
  64. eval_studio_client/api/docs/V1alphaBatchDeleteTestCasesResponse.md +29 -0
  65. eval_studio_client/api/docs/V1alphaBatchDeleteTestsRequest.md +30 -0
  66. eval_studio_client/api/docs/V1alphaBatchDeleteTestsResponse.md +29 -0
  67. eval_studio_client/api/docs/V1alphaBatchGetDashboardsResponse.md +29 -0
  68. eval_studio_client/api/docs/V1alphaBatchGetDocumentsResponse.md +29 -0
  69. eval_studio_client/api/docs/V1alphaBatchGetLeaderboardsResponse.md +29 -0
  70. eval_studio_client/api/docs/V1alphaBatchGetModelsResponse.md +29 -0
  71. eval_studio_client/api/docs/V1alphaBatchGetOperationsResponse.md +29 -0
  72. eval_studio_client/api/docs/V1alphaBatchGetTestsResponse.md +29 -0
  73. eval_studio_client/api/docs/V1alphaBatchImportLeaderboardRequest.md +37 -0
  74. eval_studio_client/api/docs/V1alphaBatchImportLeaderboardResponse.md +29 -0
  75. eval_studio_client/api/docs/V1alphaBatchImportTestsRequest.md +32 -0
  76. eval_studio_client/api/docs/V1alphaBatchImportTestsResponse.md +29 -0
  77. eval_studio_client/api/docs/V1alphaCheckBaseModelsResponse.md +30 -0
  78. eval_studio_client/api/docs/V1alphaCollectionInfo.md +33 -0
  79. eval_studio_client/api/docs/V1alphaCreateDashboardResponse.md +29 -0
  80. eval_studio_client/api/docs/V1alphaCreateDocumentResponse.md +29 -0
  81. eval_studio_client/api/docs/V1alphaCreateEvaluationRequest.md +37 -0
  82. eval_studio_client/api/docs/V1alphaCreateEvaluatorResponse.md +29 -0
  83. eval_studio_client/api/docs/V1alphaCreateLeaderboardRequest.md +29 -0
  84. eval_studio_client/api/docs/V1alphaCreateLeaderboardResponse.md +29 -0
  85. eval_studio_client/api/docs/V1alphaCreateLeaderboardWithoutCacheResponse.md +29 -0
  86. eval_studio_client/api/docs/V1alphaCreateModelResponse.md +29 -0
  87. eval_studio_client/api/docs/V1alphaCreatePerturbationResponse.md +29 -0
  88. eval_studio_client/api/docs/V1alphaCreateTestCaseResponse.md +29 -0
  89. eval_studio_client/api/docs/V1alphaCreateTestLabResponse.md +29 -0
  90. eval_studio_client/api/docs/V1alphaCreateTestResponse.md +29 -0
  91. eval_studio_client/api/docs/V1alphaDashboard.md +41 -0
  92. eval_studio_client/api/docs/V1alphaDashboardStatus.md +12 -0
  93. eval_studio_client/api/docs/V1alphaDeleteDashboardResponse.md +29 -0
  94. eval_studio_client/api/docs/V1alphaDeleteDocumentResponse.md +29 -0
  95. eval_studio_client/api/docs/V1alphaDeleteEvaluatorResponse.md +29 -0
  96. eval_studio_client/api/docs/V1alphaDeleteLeaderboardResponse.md +29 -0
  97. eval_studio_client/api/docs/V1alphaDeleteModelResponse.md +29 -0
  98. eval_studio_client/api/docs/V1alphaDeleteTestCaseResponse.md +29 -0
  99. eval_studio_client/api/docs/V1alphaDeleteTestResponse.md +29 -0
  100. eval_studio_client/api/docs/V1alphaDocument.md +38 -0
  101. eval_studio_client/api/docs/V1alphaEvaluationTest.md +32 -0
  102. eval_studio_client/api/docs/V1alphaEvaluator.md +45 -0
  103. eval_studio_client/api/docs/V1alphaEvaluatorParamType.md +12 -0
  104. eval_studio_client/api/docs/V1alphaEvaluatorParameter.md +40 -0
  105. eval_studio_client/api/docs/V1alphaEvaluatorView.md +12 -0
  106. eval_studio_client/api/docs/V1alphaFinalizeOperationResponse.md +29 -0
  107. eval_studio_client/api/docs/V1alphaFindAllTestCasesByIDResponse.md +29 -0
  108. eval_studio_client/api/docs/V1alphaFindTestLabResponse.md +29 -0
  109. eval_studio_client/api/docs/V1alphaGetDashboardResponse.md +29 -0
  110. eval_studio_client/api/docs/V1alphaGetDocumentResponse.md +29 -0
  111. eval_studio_client/api/docs/V1alphaGetEvaluatorResponse.md +29 -0
  112. eval_studio_client/api/docs/V1alphaGetInfoResponse.md +29 -0
  113. eval_studio_client/api/docs/V1alphaGetLeaderboardResponse.md +29 -0
  114. eval_studio_client/api/docs/V1alphaGetModelResponse.md +29 -0
  115. eval_studio_client/api/docs/V1alphaGetOperationProgressByParentResponse.md +29 -0
  116. eval_studio_client/api/docs/V1alphaGetOperationResponse.md +29 -0
  117. eval_studio_client/api/docs/V1alphaGetPerturbatorResponse.md +29 -0
  118. eval_studio_client/api/docs/V1alphaGetTestCaseResponse.md +29 -0
  119. eval_studio_client/api/docs/V1alphaGetTestClassResponse.md +29 -0
  120. eval_studio_client/api/docs/V1alphaGetTestResponse.md +29 -0
  121. eval_studio_client/api/docs/V1alphaImportEvaluationRequest.md +33 -0
  122. eval_studio_client/api/docs/V1alphaImportLeaderboardRequest.md +37 -0
  123. eval_studio_client/api/docs/V1alphaImportLeaderboardResponse.md +29 -0
  124. eval_studio_client/api/docs/V1alphaInfo.md +35 -0
  125. eval_studio_client/api/docs/V1alphaInsight.md +40 -0
  126. eval_studio_client/api/docs/V1alphaLeaderboard.md +54 -0
  127. eval_studio_client/api/docs/V1alphaLeaderboardStatus.md +12 -0
  128. eval_studio_client/api/docs/V1alphaLeaderboardType.md +12 -0
  129. eval_studio_client/api/docs/V1alphaLeaderboardView.md +12 -0
  130. eval_studio_client/api/docs/V1alphaListBaseModelsResponse.md +29 -0
  131. eval_studio_client/api/docs/V1alphaListDashboardsResponse.md +29 -0
  132. eval_studio_client/api/docs/V1alphaListDocumentsResponse.md +29 -0
  133. eval_studio_client/api/docs/V1alphaListEvaluatorsResponse.md +29 -0
  134. eval_studio_client/api/docs/V1alphaListLLMModelsResponse.md +29 -0
  135. eval_studio_client/api/docs/V1alphaListLeaderboardsResponse.md +30 -0
  136. eval_studio_client/api/docs/V1alphaListModelCollectionsResponse.md +29 -0
  137. eval_studio_client/api/docs/V1alphaListModelsResponse.md +29 -0
  138. eval_studio_client/api/docs/V1alphaListMostRecentDashboardsResponse.md +29 -0
  139. eval_studio_client/api/docs/V1alphaListMostRecentLeaderboardsResponse.md +29 -0
  140. eval_studio_client/api/docs/V1alphaListMostRecentModelsResponse.md +29 -0
  141. eval_studio_client/api/docs/V1alphaListMostRecentTestsResponse.md +29 -0
  142. eval_studio_client/api/docs/V1alphaListOperationsResponse.md +29 -0
  143. eval_studio_client/api/docs/V1alphaListPerturbatorsResponse.md +29 -0
  144. eval_studio_client/api/docs/V1alphaListRAGCollectionsResponse.md +29 -0
  145. eval_studio_client/api/docs/V1alphaListTestCasesResponse.md +29 -0
  146. eval_studio_client/api/docs/V1alphaListTestClassesResponse.md +29 -0
  147. eval_studio_client/api/docs/V1alphaListTestsResponse.md +29 -0
  148. eval_studio_client/api/docs/V1alphaModel.md +42 -0
  149. eval_studio_client/api/docs/V1alphaModelType.md +12 -0
  150. eval_studio_client/api/docs/V1alphaOperation.md +40 -0
  151. eval_studio_client/api/docs/V1alphaOperationProgress.md +32 -0
  152. eval_studio_client/api/docs/V1alphaPerturbTestResponse.md +29 -0
  153. eval_studio_client/api/docs/V1alphaPerturbator.md +39 -0
  154. eval_studio_client/api/docs/V1alphaPerturbatorConfiguration.md +32 -0
  155. eval_studio_client/api/docs/V1alphaPerturbatorIntensity.md +11 -0
  156. eval_studio_client/api/docs/V1alphaProblemAndAction.md +39 -0
  157. eval_studio_client/api/docs/V1alphaTest.md +40 -0
  158. eval_studio_client/api/docs/V1alphaTestCase.md +40 -0
  159. eval_studio_client/api/docs/V1alphaTestCaseRelationship.md +31 -0
  160. eval_studio_client/api/docs/V1alphaTestClass.md +41 -0
  161. eval_studio_client/api/docs/V1alphaTestClassType.md +12 -0
  162. eval_studio_client/api/docs/V1alphaTestLab.md +41 -0
  163. eval_studio_client/api/docs/V1alphaUpdateDashboardResponse.md +29 -0
  164. eval_studio_client/api/docs/V1alphaUpdateDocumentResponse.md +29 -0
  165. eval_studio_client/api/docs/V1alphaUpdateLeaderboardResponse.md +29 -0
  166. eval_studio_client/api/docs/V1alphaUpdateModelResponse.md +29 -0
  167. eval_studio_client/api/docs/V1alphaUpdateOperationResponse.md +29 -0
  168. eval_studio_client/api/docs/V1alphaUpdateTestCaseResponse.md +29 -0
  169. eval_studio_client/api/docs/V1alphaUpdateTestResponse.md +29 -0
  170. eval_studio_client/api/docs/V1alphaWhoAmIResponse.md +31 -0
  171. eval_studio_client/api/docs/WhoAmIServiceApi.md +72 -0
  172. eval_studio_client/api/exceptions.py +199 -0
  173. eval_studio_client/api/models/__init__.py +148 -0
  174. eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +115 -0
  175. eval_studio_client/api/models/protobuf_any.py +100 -0
  176. eval_studio_client/api/models/required_the_dashboard_to_update.py +127 -0
  177. eval_studio_client/api/models/required_the_document_to_update.py +116 -0
  178. eval_studio_client/api/models/required_the_leaderboard_to_update.py +178 -0
  179. eval_studio_client/api/models/required_the_model_to_update.py +127 -0
  180. eval_studio_client/api/models/required_the_operation_to_finalize.py +129 -0
  181. eval_studio_client/api/models/required_the_operation_to_update.py +129 -0
  182. eval_studio_client/api/models/required_the_test_case_to_update.py +120 -0
  183. eval_studio_client/api/models/required_the_test_to_update.py +122 -0
  184. eval_studio_client/api/models/rpc_status.py +99 -0
  185. eval_studio_client/api/models/test_case_service_batch_delete_test_cases_request.py +87 -0
  186. eval_studio_client/api/models/test_service_perturb_test_request.py +99 -0
  187. eval_studio_client/api/models/v1alpha_batch_create_leaderboards_request.py +99 -0
  188. eval_studio_client/api/models/v1alpha_batch_create_leaderboards_response.py +91 -0
  189. eval_studio_client/api/models/v1alpha_batch_delete_dashboards_request.py +87 -0
  190. eval_studio_client/api/models/v1alpha_batch_delete_dashboards_response.py +95 -0
  191. eval_studio_client/api/models/v1alpha_batch_delete_documents_request.py +87 -0
  192. eval_studio_client/api/models/v1alpha_batch_delete_documents_response.py +95 -0
  193. eval_studio_client/api/models/v1alpha_batch_delete_evaluators_request.py +87 -0
  194. eval_studio_client/api/models/v1alpha_batch_delete_evaluators_response.py +95 -0
  195. eval_studio_client/api/models/v1alpha_batch_delete_leaderboards_request.py +90 -0
  196. eval_studio_client/api/models/v1alpha_batch_delete_leaderboards_response.py +95 -0
  197. eval_studio_client/api/models/v1alpha_batch_delete_models_request.py +87 -0
  198. eval_studio_client/api/models/v1alpha_batch_delete_models_response.py +95 -0
  199. eval_studio_client/api/models/v1alpha_batch_delete_test_cases_response.py +95 -0
  200. eval_studio_client/api/models/v1alpha_batch_delete_tests_request.py +89 -0
  201. eval_studio_client/api/models/v1alpha_batch_delete_tests_response.py +95 -0
  202. eval_studio_client/api/models/v1alpha_batch_get_dashboards_response.py +95 -0
  203. eval_studio_client/api/models/v1alpha_batch_get_documents_response.py +95 -0
  204. eval_studio_client/api/models/v1alpha_batch_get_leaderboards_response.py +95 -0
  205. eval_studio_client/api/models/v1alpha_batch_get_models_response.py +95 -0
  206. eval_studio_client/api/models/v1alpha_batch_get_operations_response.py +95 -0
  207. eval_studio_client/api/models/v1alpha_batch_get_tests_response.py +95 -0
  208. eval_studio_client/api/models/v1alpha_batch_import_leaderboard_request.py +104 -0
  209. eval_studio_client/api/models/v1alpha_batch_import_leaderboard_response.py +91 -0
  210. eval_studio_client/api/models/v1alpha_batch_import_tests_request.py +93 -0
  211. eval_studio_client/api/models/v1alpha_batch_import_tests_response.py +95 -0
  212. eval_studio_client/api/models/v1alpha_check_base_models_response.py +89 -0
  213. eval_studio_client/api/models/v1alpha_collection_info.py +93 -0
  214. eval_studio_client/api/models/v1alpha_create_dashboard_response.py +91 -0
  215. eval_studio_client/api/models/v1alpha_create_document_response.py +91 -0
  216. eval_studio_client/api/models/v1alpha_create_evaluation_request.py +115 -0
  217. eval_studio_client/api/models/v1alpha_create_evaluator_response.py +91 -0
  218. eval_studio_client/api/models/v1alpha_create_leaderboard_request.py +91 -0
  219. eval_studio_client/api/models/v1alpha_create_leaderboard_response.py +91 -0
  220. eval_studio_client/api/models/v1alpha_create_leaderboard_without_cache_response.py +91 -0
  221. eval_studio_client/api/models/v1alpha_create_model_response.py +91 -0
  222. eval_studio_client/api/models/v1alpha_create_perturbation_response.py +87 -0
  223. eval_studio_client/api/models/v1alpha_create_test_case_response.py +91 -0
  224. eval_studio_client/api/models/v1alpha_create_test_lab_response.py +91 -0
  225. eval_studio_client/api/models/v1alpha_create_test_response.py +91 -0
  226. eval_studio_client/api/models/v1alpha_dashboard.py +131 -0
  227. eval_studio_client/api/models/v1alpha_dashboard_status.py +39 -0
  228. eval_studio_client/api/models/v1alpha_delete_dashboard_response.py +91 -0
  229. eval_studio_client/api/models/v1alpha_delete_document_response.py +91 -0
  230. eval_studio_client/api/models/v1alpha_delete_evaluator_response.py +91 -0
  231. eval_studio_client/api/models/v1alpha_delete_leaderboard_response.py +91 -0
  232. eval_studio_client/api/models/v1alpha_delete_model_response.py +91 -0
  233. eval_studio_client/api/models/v1alpha_delete_test_case_response.py +91 -0
  234. eval_studio_client/api/models/v1alpha_delete_test_response.py +91 -0
  235. eval_studio_client/api/models/v1alpha_document.py +120 -0
  236. eval_studio_client/api/models/v1alpha_evaluation_test.py +107 -0
  237. eval_studio_client/api/models/v1alpha_evaluator.py +155 -0
  238. eval_studio_client/api/models/v1alpha_evaluator_param_type.py +42 -0
  239. eval_studio_client/api/models/v1alpha_evaluator_parameter.py +126 -0
  240. eval_studio_client/api/models/v1alpha_evaluator_view.py +38 -0
  241. eval_studio_client/api/models/v1alpha_finalize_operation_response.py +91 -0
  242. eval_studio_client/api/models/v1alpha_find_all_test_cases_by_id_response.py +95 -0
  243. eval_studio_client/api/models/v1alpha_find_test_lab_response.py +91 -0
  244. eval_studio_client/api/models/v1alpha_get_dashboard_response.py +91 -0
  245. eval_studio_client/api/models/v1alpha_get_document_response.py +91 -0
  246. eval_studio_client/api/models/v1alpha_get_evaluator_response.py +91 -0
  247. eval_studio_client/api/models/v1alpha_get_info_response.py +91 -0
  248. eval_studio_client/api/models/v1alpha_get_leaderboard_response.py +91 -0
  249. eval_studio_client/api/models/v1alpha_get_model_response.py +91 -0
  250. eval_studio_client/api/models/v1alpha_get_operation_progress_by_parent_response.py +91 -0
  251. eval_studio_client/api/models/v1alpha_get_operation_response.py +91 -0
  252. eval_studio_client/api/models/v1alpha_get_perturbator_response.py +91 -0
  253. eval_studio_client/api/models/v1alpha_get_test_case_response.py +91 -0
  254. eval_studio_client/api/models/v1alpha_get_test_class_response.py +91 -0
  255. eval_studio_client/api/models/v1alpha_get_test_response.py +91 -0
  256. eval_studio_client/api/models/v1alpha_import_evaluation_request.py +99 -0
  257. eval_studio_client/api/models/v1alpha_import_leaderboard_request.py +104 -0
  258. eval_studio_client/api/models/v1alpha_import_leaderboard_response.py +91 -0
  259. eval_studio_client/api/models/v1alpha_info.py +99 -0
  260. eval_studio_client/api/models/v1alpha_insight.py +107 -0
  261. eval_studio_client/api/models/v1alpha_leaderboard.py +182 -0
  262. eval_studio_client/api/models/v1alpha_leaderboard_status.py +39 -0
  263. eval_studio_client/api/models/v1alpha_leaderboard_type.py +39 -0
  264. eval_studio_client/api/models/v1alpha_leaderboard_view.py +39 -0
  265. eval_studio_client/api/models/v1alpha_list_base_models_response.py +87 -0
  266. eval_studio_client/api/models/v1alpha_list_dashboards_response.py +95 -0
  267. eval_studio_client/api/models/v1alpha_list_documents_response.py +95 -0
  268. eval_studio_client/api/models/v1alpha_list_evaluators_response.py +95 -0
  269. eval_studio_client/api/models/v1alpha_list_leaderboards_response.py +97 -0
  270. eval_studio_client/api/models/v1alpha_list_llm_models_response.py +87 -0
  271. eval_studio_client/api/models/v1alpha_list_model_collections_response.py +95 -0
  272. eval_studio_client/api/models/v1alpha_list_models_response.py +95 -0
  273. eval_studio_client/api/models/v1alpha_list_most_recent_dashboards_response.py +95 -0
  274. eval_studio_client/api/models/v1alpha_list_most_recent_leaderboards_response.py +95 -0
  275. eval_studio_client/api/models/v1alpha_list_most_recent_models_response.py +95 -0
  276. eval_studio_client/api/models/v1alpha_list_most_recent_tests_response.py +95 -0
  277. eval_studio_client/api/models/v1alpha_list_operations_response.py +95 -0
  278. eval_studio_client/api/models/v1alpha_list_perturbators_response.py +95 -0
  279. eval_studio_client/api/models/v1alpha_list_rag_collections_response.py +95 -0
  280. eval_studio_client/api/models/v1alpha_list_test_cases_response.py +95 -0
  281. eval_studio_client/api/models/v1alpha_list_test_classes_response.py +95 -0
  282. eval_studio_client/api/models/v1alpha_list_tests_response.py +95 -0
  283. eval_studio_client/api/models/v1alpha_model.py +131 -0
  284. eval_studio_client/api/models/v1alpha_model_type.py +46 -0
  285. eval_studio_client/api/models/v1alpha_operation.py +133 -0
  286. eval_studio_client/api/models/v1alpha_operation_progress.py +99 -0
  287. eval_studio_client/api/models/v1alpha_perturb_test_response.py +91 -0
  288. eval_studio_client/api/models/v1alpha_perturbator.py +122 -0
  289. eval_studio_client/api/models/v1alpha_perturbator_configuration.py +92 -0
  290. eval_studio_client/api/models/v1alpha_perturbator_intensity.py +39 -0
  291. eval_studio_client/api/models/v1alpha_problem_and_action.py +129 -0
  292. eval_studio_client/api/models/v1alpha_test.py +126 -0
  293. eval_studio_client/api/models/v1alpha_test_case.py +124 -0
  294. eval_studio_client/api/models/v1alpha_test_case_relationship.py +91 -0
  295. eval_studio_client/api/models/v1alpha_test_class.py +127 -0
  296. eval_studio_client/api/models/v1alpha_test_class_type.py +42 -0
  297. eval_studio_client/api/models/v1alpha_test_lab.py +137 -0
  298. eval_studio_client/api/models/v1alpha_update_dashboard_response.py +91 -0
  299. eval_studio_client/api/models/v1alpha_update_document_response.py +91 -0
  300. eval_studio_client/api/models/v1alpha_update_leaderboard_response.py +91 -0
  301. eval_studio_client/api/models/v1alpha_update_model_response.py +91 -0
  302. eval_studio_client/api/models/v1alpha_update_operation_response.py +91 -0
  303. eval_studio_client/api/models/v1alpha_update_test_case_response.py +91 -0
  304. eval_studio_client/api/models/v1alpha_update_test_response.py +91 -0
  305. eval_studio_client/api/models/v1alpha_who_am_i_response.py +91 -0
  306. eval_studio_client/api/rest.py +257 -0
  307. eval_studio_client/api/test/__init__.py +0 -0
  308. eval_studio_client/api/test/test_dashboard_service_api.py +79 -0
  309. eval_studio_client/api/test/test_document_service_api.py +73 -0
  310. eval_studio_client/api/test/test_evaluation_service_api.py +55 -0
  311. eval_studio_client/api/test/test_evaluator_service_api.py +61 -0
  312. eval_studio_client/api/test/test_info_service_api.py +37 -0
  313. eval_studio_client/api/test/test_leaderboard_service_api.py +103 -0
  314. eval_studio_client/api/test/test_model_service_api.py +97 -0
  315. eval_studio_client/api/test/test_operation_progress_service_api.py +37 -0
  316. eval_studio_client/api/test/test_operation_service_api.py +61 -0
  317. eval_studio_client/api/test/test_perturbation_service_api.py +37 -0
  318. eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +79 -0
  319. eval_studio_client/api/test/test_perturbator_service_api.py +43 -0
  320. eval_studio_client/api/test/test_protobuf_any.py +51 -0
  321. eval_studio_client/api/test/test_required_the_dashboard_to_update.py +64 -0
  322. eval_studio_client/api/test/test_required_the_document_to_update.py +59 -0
  323. eval_studio_client/api/test/test_required_the_leaderboard_to_update.py +115 -0
  324. eval_studio_client/api/test/test_required_the_model_to_update.py +63 -0
  325. eval_studio_client/api/test/test_required_the_operation_to_finalize.py +71 -0
  326. eval_studio_client/api/test/test_required_the_operation_to_update.py +71 -0
  327. eval_studio_client/api/test/test_required_the_test_case_to_update.py +63 -0
  328. eval_studio_client/api/test/test_required_the_test_to_update.py +65 -0
  329. eval_studio_client/api/test/test_rpc_status.py +57 -0
  330. eval_studio_client/api/test/test_test_case_service_api.py +73 -0
  331. eval_studio_client/api/test/test_test_case_service_batch_delete_test_cases_request.py +53 -0
  332. eval_studio_client/api/test/test_test_class_service_api.py +43 -0
  333. eval_studio_client/api/test/test_test_lab_service_api.py +43 -0
  334. eval_studio_client/api/test/test_test_service_api.py +91 -0
  335. eval_studio_client/api/test/test_test_service_perturb_test_request.py +58 -0
  336. eval_studio_client/api/test/test_v1alpha_batch_create_leaderboards_request.py +119 -0
  337. eval_studio_client/api/test/test_v1alpha_batch_create_leaderboards_response.py +71 -0
  338. eval_studio_client/api/test/test_v1alpha_batch_delete_dashboards_request.py +53 -0
  339. eval_studio_client/api/test/test_v1alpha_batch_delete_dashboards_response.py +68 -0
  340. eval_studio_client/api/test/test_v1alpha_batch_delete_documents_request.py +53 -0
  341. eval_studio_client/api/test/test_v1alpha_batch_delete_documents_response.py +63 -0
  342. eval_studio_client/api/test/test_v1alpha_batch_delete_evaluators_request.py +53 -0
  343. eval_studio_client/api/test/test_v1alpha_batch_delete_evaluators_response.py +91 -0
  344. eval_studio_client/api/test/test_v1alpha_batch_delete_leaderboards_request.py +54 -0
  345. eval_studio_client/api/test/test_v1alpha_batch_delete_leaderboards_response.py +116 -0
  346. eval_studio_client/api/test/test_v1alpha_batch_delete_models_request.py +53 -0
  347. eval_studio_client/api/test/test_v1alpha_batch_delete_models_response.py +67 -0
  348. eval_studio_client/api/test/test_v1alpha_batch_delete_test_cases_response.py +67 -0
  349. eval_studio_client/api/test/test_v1alpha_batch_delete_tests_request.py +54 -0
  350. eval_studio_client/api/test/test_v1alpha_batch_delete_tests_response.py +69 -0
  351. eval_studio_client/api/test/test_v1alpha_batch_get_dashboards_response.py +68 -0
  352. eval_studio_client/api/test/test_v1alpha_batch_get_documents_response.py +63 -0
  353. eval_studio_client/api/test/test_v1alpha_batch_get_leaderboards_response.py +116 -0
  354. eval_studio_client/api/test/test_v1alpha_batch_get_models_response.py +67 -0
  355. eval_studio_client/api/test/test_v1alpha_batch_get_operations_response.py +73 -0
  356. eval_studio_client/api/test/test_v1alpha_batch_get_tests_response.py +69 -0
  357. eval_studio_client/api/test/test_v1alpha_batch_import_leaderboard_request.py +61 -0
  358. eval_studio_client/api/test/test_v1alpha_batch_import_leaderboard_response.py +71 -0
  359. eval_studio_client/api/test/test_v1alpha_batch_import_tests_request.py +54 -0
  360. eval_studio_client/api/test/test_v1alpha_batch_import_tests_response.py +69 -0
  361. eval_studio_client/api/test/test_v1alpha_check_base_models_response.py +52 -0
  362. eval_studio_client/api/test/test_v1alpha_collection_info.py +54 -0
  363. eval_studio_client/api/test/test_v1alpha_create_dashboard_response.py +66 -0
  364. eval_studio_client/api/test/test_v1alpha_create_document_response.py +61 -0
  365. eval_studio_client/api/test/test_v1alpha_create_evaluation_request.py +107 -0
  366. eval_studio_client/api/test/test_v1alpha_create_evaluator_response.py +89 -0
  367. eval_studio_client/api/test/test_v1alpha_create_leaderboard_request.py +114 -0
  368. eval_studio_client/api/test/test_v1alpha_create_leaderboard_response.py +71 -0
  369. eval_studio_client/api/test/test_v1alpha_create_leaderboard_without_cache_response.py +71 -0
  370. eval_studio_client/api/test/test_v1alpha_create_model_response.py +65 -0
  371. eval_studio_client/api/test/test_v1alpha_create_perturbation_response.py +51 -0
  372. eval_studio_client/api/test/test_v1alpha_create_test_case_response.py +65 -0
  373. eval_studio_client/api/test/test_v1alpha_create_test_lab_response.py +68 -0
  374. eval_studio_client/api/test/test_v1alpha_create_test_response.py +67 -0
  375. eval_studio_client/api/test/test_v1alpha_dashboard.py +65 -0
  376. eval_studio_client/api/test/test_v1alpha_dashboard_status.py +33 -0
  377. eval_studio_client/api/test/test_v1alpha_delete_dashboard_response.py +66 -0
  378. eval_studio_client/api/test/test_v1alpha_delete_document_response.py +61 -0
  379. eval_studio_client/api/test/test_v1alpha_delete_evaluator_response.py +89 -0
  380. eval_studio_client/api/test/test_v1alpha_delete_leaderboard_response.py +114 -0
  381. eval_studio_client/api/test/test_v1alpha_delete_model_response.py +65 -0
  382. eval_studio_client/api/test/test_v1alpha_delete_test_case_response.py +65 -0
  383. eval_studio_client/api/test/test_v1alpha_delete_test_response.py +67 -0
  384. eval_studio_client/api/test/test_v1alpha_document.py +60 -0
  385. eval_studio_client/api/test/test_v1alpha_evaluation_test.py +76 -0
  386. eval_studio_client/api/test/test_v1alpha_evaluator.py +91 -0
  387. eval_studio_client/api/test/test_v1alpha_evaluator_param_type.py +33 -0
  388. eval_studio_client/api/test/test_v1alpha_evaluator_parameter.py +68 -0
  389. eval_studio_client/api/test/test_v1alpha_evaluator_view.py +33 -0
  390. eval_studio_client/api/test/test_v1alpha_finalize_operation_response.py +71 -0
  391. eval_studio_client/api/test/test_v1alpha_find_all_test_cases_by_id_response.py +67 -0
  392. eval_studio_client/api/test/test_v1alpha_find_test_lab_response.py +68 -0
  393. eval_studio_client/api/test/test_v1alpha_get_dashboard_response.py +66 -0
  394. eval_studio_client/api/test/test_v1alpha_get_document_response.py +61 -0
  395. eval_studio_client/api/test/test_v1alpha_get_evaluator_response.py +89 -0
  396. eval_studio_client/api/test/test_v1alpha_get_info_response.py +60 -0
  397. eval_studio_client/api/test/test_v1alpha_get_leaderboard_response.py +114 -0
  398. eval_studio_client/api/test/test_v1alpha_get_model_response.py +65 -0
  399. eval_studio_client/api/test/test_v1alpha_get_operation_progress_by_parent_response.py +55 -0
  400. eval_studio_client/api/test/test_v1alpha_get_operation_response.py +71 -0
  401. eval_studio_client/api/test/test_v1alpha_get_perturbator_response.py +64 -0
  402. eval_studio_client/api/test/test_v1alpha_get_test_case_response.py +65 -0
  403. eval_studio_client/api/test/test_v1alpha_get_test_class_response.py +70 -0
  404. eval_studio_client/api/test/test_v1alpha_get_test_response.py +67 -0
  405. eval_studio_client/api/test/test_v1alpha_import_evaluation_request.py +73 -0
  406. eval_studio_client/api/test/test_v1alpha_import_leaderboard_request.py +59 -0
  407. eval_studio_client/api/test/test_v1alpha_import_leaderboard_response.py +71 -0
  408. eval_studio_client/api/test/test_v1alpha_info.py +59 -0
  409. eval_studio_client/api/test/test_v1alpha_insight.py +67 -0
  410. eval_studio_client/api/test/test_v1alpha_leaderboard.py +116 -0
  411. eval_studio_client/api/test/test_v1alpha_leaderboard_status.py +33 -0
  412. eval_studio_client/api/test/test_v1alpha_leaderboard_type.py +33 -0
  413. eval_studio_client/api/test/test_v1alpha_leaderboard_view.py +33 -0
  414. eval_studio_client/api/test/test_v1alpha_list_base_models_response.py +53 -0
  415. eval_studio_client/api/test/test_v1alpha_list_dashboards_response.py +68 -0
  416. eval_studio_client/api/test/test_v1alpha_list_documents_response.py +63 -0
  417. eval_studio_client/api/test/test_v1alpha_list_evaluators_response.py +91 -0
  418. eval_studio_client/api/test/test_v1alpha_list_leaderboards_response.py +117 -0
  419. eval_studio_client/api/test/test_v1alpha_list_llm_models_response.py +53 -0
  420. eval_studio_client/api/test/test_v1alpha_list_model_collections_response.py +57 -0
  421. eval_studio_client/api/test/test_v1alpha_list_models_response.py +67 -0
  422. eval_studio_client/api/test/test_v1alpha_list_most_recent_dashboards_response.py +68 -0
  423. eval_studio_client/api/test/test_v1alpha_list_most_recent_leaderboards_response.py +116 -0
  424. eval_studio_client/api/test/test_v1alpha_list_most_recent_models_response.py +67 -0
  425. eval_studio_client/api/test/test_v1alpha_list_most_recent_tests_response.py +69 -0
  426. eval_studio_client/api/test/test_v1alpha_list_operations_response.py +73 -0
  427. eval_studio_client/api/test/test_v1alpha_list_perturbators_response.py +66 -0
  428. eval_studio_client/api/test/test_v1alpha_list_rag_collections_response.py +57 -0
  429. eval_studio_client/api/test/test_v1alpha_list_test_cases_response.py +67 -0
  430. eval_studio_client/api/test/test_v1alpha_list_test_classes_response.py +72 -0
  431. eval_studio_client/api/test/test_v1alpha_list_tests_response.py +69 -0
  432. eval_studio_client/api/test/test_v1alpha_model.py +64 -0
  433. eval_studio_client/api/test/test_v1alpha_model_type.py +33 -0
  434. eval_studio_client/api/test/test_v1alpha_operation.py +72 -0
  435. eval_studio_client/api/test/test_v1alpha_operation_progress.py +54 -0
  436. eval_studio_client/api/test/test_v1alpha_perturb_test_response.py +67 -0
  437. eval_studio_client/api/test/test_v1alpha_perturbator.py +63 -0
  438. eval_studio_client/api/test/test_v1alpha_perturbator_configuration.py +53 -0
  439. eval_studio_client/api/test/test_v1alpha_perturbator_intensity.py +33 -0
  440. eval_studio_client/api/test/test_v1alpha_problem_and_action.py +65 -0
  441. eval_studio_client/api/test/test_v1alpha_test.py +66 -0
  442. eval_studio_client/api/test/test_v1alpha_test_case.py +64 -0
  443. eval_studio_client/api/test/test_v1alpha_test_case_relationship.py +53 -0
  444. eval_studio_client/api/test/test_v1alpha_test_class.py +69 -0
  445. eval_studio_client/api/test/test_v1alpha_test_class_type.py +33 -0
  446. eval_studio_client/api/test/test_v1alpha_test_lab.py +67 -0
  447. eval_studio_client/api/test/test_v1alpha_update_dashboard_response.py +66 -0
  448. eval_studio_client/api/test/test_v1alpha_update_document_response.py +61 -0
  449. eval_studio_client/api/test/test_v1alpha_update_leaderboard_response.py +114 -0
  450. eval_studio_client/api/test/test_v1alpha_update_model_response.py +65 -0
  451. eval_studio_client/api/test/test_v1alpha_update_operation_response.py +71 -0
  452. eval_studio_client/api/test/test_v1alpha_update_test_case_response.py +65 -0
  453. eval_studio_client/api/test/test_v1alpha_update_test_response.py +67 -0
  454. eval_studio_client/api/test/test_v1alpha_who_am_i_response.py +53 -0
  455. eval_studio_client/api/test/test_who_am_i_service_api.py +38 -0
  456. eval_studio_client/client.py +98 -0
  457. eval_studio_client/dashboards.py +187 -0
  458. eval_studio_client/documents.py +95 -0
  459. eval_studio_client/evaluators.py +65 -0
  460. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +6043 -0
  461. eval_studio_client/insights.py +35 -0
  462. eval_studio_client/leaderboards.py +207 -0
  463. eval_studio_client/models.py +522 -0
  464. eval_studio_client/perturbators.py +101 -0
  465. eval_studio_client/problems.py +50 -0
  466. eval_studio_client/test_labs.py +319 -0
  467. eval_studio_client/tests.py +369 -0
  468. eval_studio_client-0.7.0.dist-info/METADATA +18 -0
  469. eval_studio_client-0.7.0.dist-info/RECORD +470 -0
  470. eval_studio_client-0.7.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,1913 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1alpha/collection.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_test_case_to_update import RequiredTheTestCaseToUpdate
23
+ from eval_studio_client.api.models.test_case_service_batch_delete_test_cases_request import TestCaseServiceBatchDeleteTestCasesRequest
24
+ from eval_studio_client.api.models.v1alpha_batch_delete_test_cases_response import V1alphaBatchDeleteTestCasesResponse
25
+ from eval_studio_client.api.models.v1alpha_create_test_case_response import V1alphaCreateTestCaseResponse
26
+ from eval_studio_client.api.models.v1alpha_delete_test_case_response import V1alphaDeleteTestCaseResponse
27
+ from eval_studio_client.api.models.v1alpha_find_all_test_cases_by_id_response import V1alphaFindAllTestCasesByIDResponse
28
+ from eval_studio_client.api.models.v1alpha_get_test_case_response import V1alphaGetTestCaseResponse
29
+ from eval_studio_client.api.models.v1alpha_list_test_cases_response import V1alphaListTestCasesResponse
30
+ from eval_studio_client.api.models.v1alpha_test_case import V1alphaTestCase
31
+ from eval_studio_client.api.models.v1alpha_update_test_case_response import V1alphaUpdateTestCaseResponse
32
+
33
+ from eval_studio_client.api.api_client import ApiClient, RequestSerialized
34
+ from eval_studio_client.api.api_response import ApiResponse
35
+ from eval_studio_client.api.rest import RESTResponseType
36
+
37
+
38
+ class TestCaseServiceApi:
39
+ """NOTE: This class is auto generated by OpenAPI Generator
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+ """
44
+
45
+ def __init__(self, api_client=None) -> None:
46
+ if api_client is None:
47
+ api_client = ApiClient.get_default()
48
+ self.api_client = api_client
49
+
50
+
51
+ @validate_call
52
+ def test_case_service_batch_delete_test_cases(
53
+ self,
54
+ parent: Annotated[str, Field(strict=True, description="The parent Test whose TestCases will be deleted. Format: tests/<UUID> If this is set, the parent of all of the TestCases specified in `names` must match this field.")],
55
+ body: TestCaseServiceBatchDeleteTestCasesRequest,
56
+ _request_timeout: Union[
57
+ None,
58
+ Annotated[StrictFloat, Field(gt=0)],
59
+ Tuple[
60
+ Annotated[StrictFloat, Field(gt=0)],
61
+ Annotated[StrictFloat, Field(gt=0)]
62
+ ]
63
+ ] = None,
64
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
65
+ _content_type: Optional[StrictStr] = None,
66
+ _headers: Optional[Dict[StrictStr, Any]] = None,
67
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
68
+ ) -> V1alphaBatchDeleteTestCasesResponse:
69
+ """test_case_service_batch_delete_test_cases
70
+
71
+
72
+ :param parent: The parent Test whose TestCases will be deleted. Format: tests/<UUID> If this is set, the parent of all of the TestCases specified in `names` must match this field. (required)
73
+ :type parent: str
74
+ :param body: (required)
75
+ :type body: TestCaseServiceBatchDeleteTestCasesRequest
76
+ :param _request_timeout: timeout setting for this request. If one
77
+ number provided, it will be total request
78
+ timeout. It can also be a pair (tuple) of
79
+ (connection, read) timeouts.
80
+ :type _request_timeout: int, tuple(int, int), optional
81
+ :param _request_auth: set to override the auth_settings for an a single
82
+ request; this effectively ignores the
83
+ authentication in the spec for a single request.
84
+ :type _request_auth: dict, optional
85
+ :param _content_type: force content-type for the request.
86
+ :type _content_type: str, Optional
87
+ :param _headers: set to override the headers for a single
88
+ request; this effectively ignores the headers
89
+ in the spec for a single request.
90
+ :type _headers: dict, optional
91
+ :param _host_index: set to override the host_index for a single
92
+ request; this effectively ignores the host_index
93
+ in the spec for a single request.
94
+ :type _host_index: int, optional
95
+ :return: Returns the result object.
96
+ """ # noqa: E501
97
+
98
+ _param = self._test_case_service_batch_delete_test_cases_serialize(
99
+ parent=parent,
100
+ body=body,
101
+ _request_auth=_request_auth,
102
+ _content_type=_content_type,
103
+ _headers=_headers,
104
+ _host_index=_host_index
105
+ )
106
+
107
+ _response_types_map: Dict[str, Optional[str]] = {
108
+ '200': "V1alphaBatchDeleteTestCasesResponse",
109
+ }
110
+ response_data = self.api_client.call_api(
111
+ *_param,
112
+ _request_timeout=_request_timeout
113
+ )
114
+ response_data.read()
115
+ return self.api_client.response_deserialize(
116
+ response_data=response_data,
117
+ response_types_map=_response_types_map,
118
+ ).data
119
+
120
+
121
+ @validate_call
122
+ def test_case_service_batch_delete_test_cases_with_http_info(
123
+ self,
124
+ parent: Annotated[str, Field(strict=True, description="The parent Test whose TestCases will be deleted. Format: tests/<UUID> If this is set, the parent of all of the TestCases specified in `names` must match this field.")],
125
+ body: TestCaseServiceBatchDeleteTestCasesRequest,
126
+ _request_timeout: Union[
127
+ None,
128
+ Annotated[StrictFloat, Field(gt=0)],
129
+ Tuple[
130
+ Annotated[StrictFloat, Field(gt=0)],
131
+ Annotated[StrictFloat, Field(gt=0)]
132
+ ]
133
+ ] = None,
134
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
135
+ _content_type: Optional[StrictStr] = None,
136
+ _headers: Optional[Dict[StrictStr, Any]] = None,
137
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
138
+ ) -> ApiResponse[V1alphaBatchDeleteTestCasesResponse]:
139
+ """test_case_service_batch_delete_test_cases
140
+
141
+
142
+ :param parent: The parent Test whose TestCases will be deleted. Format: tests/<UUID> If this is set, the parent of all of the TestCases specified in `names` must match this field. (required)
143
+ :type parent: str
144
+ :param body: (required)
145
+ :type body: TestCaseServiceBatchDeleteTestCasesRequest
146
+ :param _request_timeout: timeout setting for this request. If one
147
+ number provided, it will be total request
148
+ timeout. It can also be a pair (tuple) of
149
+ (connection, read) timeouts.
150
+ :type _request_timeout: int, tuple(int, int), optional
151
+ :param _request_auth: set to override the auth_settings for an a single
152
+ request; this effectively ignores the
153
+ authentication in the spec for a single request.
154
+ :type _request_auth: dict, optional
155
+ :param _content_type: force content-type for the request.
156
+ :type _content_type: str, Optional
157
+ :param _headers: set to override the headers for a single
158
+ request; this effectively ignores the headers
159
+ in the spec for a single request.
160
+ :type _headers: dict, optional
161
+ :param _host_index: set to override the host_index for a single
162
+ request; this effectively ignores the host_index
163
+ in the spec for a single request.
164
+ :type _host_index: int, optional
165
+ :return: Returns the result object.
166
+ """ # noqa: E501
167
+
168
+ _param = self._test_case_service_batch_delete_test_cases_serialize(
169
+ parent=parent,
170
+ body=body,
171
+ _request_auth=_request_auth,
172
+ _content_type=_content_type,
173
+ _headers=_headers,
174
+ _host_index=_host_index
175
+ )
176
+
177
+ _response_types_map: Dict[str, Optional[str]] = {
178
+ '200': "V1alphaBatchDeleteTestCasesResponse",
179
+ }
180
+ response_data = self.api_client.call_api(
181
+ *_param,
182
+ _request_timeout=_request_timeout
183
+ )
184
+ response_data.read()
185
+ return self.api_client.response_deserialize(
186
+ response_data=response_data,
187
+ response_types_map=_response_types_map,
188
+ )
189
+
190
+
191
+ @validate_call
192
+ def test_case_service_batch_delete_test_cases_without_preload_content(
193
+ self,
194
+ parent: Annotated[str, Field(strict=True, description="The parent Test whose TestCases will be deleted. Format: tests/<UUID> If this is set, the parent of all of the TestCases specified in `names` must match this field.")],
195
+ body: TestCaseServiceBatchDeleteTestCasesRequest,
196
+ _request_timeout: Union[
197
+ None,
198
+ Annotated[StrictFloat, Field(gt=0)],
199
+ Tuple[
200
+ Annotated[StrictFloat, Field(gt=0)],
201
+ Annotated[StrictFloat, Field(gt=0)]
202
+ ]
203
+ ] = None,
204
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
205
+ _content_type: Optional[StrictStr] = None,
206
+ _headers: Optional[Dict[StrictStr, Any]] = None,
207
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
208
+ ) -> RESTResponseType:
209
+ """test_case_service_batch_delete_test_cases
210
+
211
+
212
+ :param parent: The parent Test whose TestCases will be deleted. Format: tests/<UUID> If this is set, the parent of all of the TestCases specified in `names` must match this field. (required)
213
+ :type parent: str
214
+ :param body: (required)
215
+ :type body: TestCaseServiceBatchDeleteTestCasesRequest
216
+ :param _request_timeout: timeout setting for this request. If one
217
+ number provided, it will be total request
218
+ timeout. It can also be a pair (tuple) of
219
+ (connection, read) timeouts.
220
+ :type _request_timeout: int, tuple(int, int), optional
221
+ :param _request_auth: set to override the auth_settings for an a single
222
+ request; this effectively ignores the
223
+ authentication in the spec for a single request.
224
+ :type _request_auth: dict, optional
225
+ :param _content_type: force content-type for the request.
226
+ :type _content_type: str, Optional
227
+ :param _headers: set to override the headers for a single
228
+ request; this effectively ignores the headers
229
+ in the spec for a single request.
230
+ :type _headers: dict, optional
231
+ :param _host_index: set to override the host_index for a single
232
+ request; this effectively ignores the host_index
233
+ in the spec for a single request.
234
+ :type _host_index: int, optional
235
+ :return: Returns the result object.
236
+ """ # noqa: E501
237
+
238
+ _param = self._test_case_service_batch_delete_test_cases_serialize(
239
+ parent=parent,
240
+ body=body,
241
+ _request_auth=_request_auth,
242
+ _content_type=_content_type,
243
+ _headers=_headers,
244
+ _host_index=_host_index
245
+ )
246
+
247
+ _response_types_map: Dict[str, Optional[str]] = {
248
+ '200': "V1alphaBatchDeleteTestCasesResponse",
249
+ }
250
+ response_data = self.api_client.call_api(
251
+ *_param,
252
+ _request_timeout=_request_timeout
253
+ )
254
+ return response_data.response
255
+
256
+
257
+ def _test_case_service_batch_delete_test_cases_serialize(
258
+ self,
259
+ parent,
260
+ body,
261
+ _request_auth,
262
+ _content_type,
263
+ _headers,
264
+ _host_index,
265
+ ) -> RequestSerialized:
266
+
267
+ _host = None
268
+
269
+ _collection_formats: Dict[str, str] = {
270
+ }
271
+
272
+ _path_params: Dict[str, str] = {}
273
+ _query_params: List[Tuple[str, str]] = []
274
+ _header_params: Dict[str, Optional[str]] = _headers or {}
275
+ _form_params: List[Tuple[str, str]] = []
276
+ _files: Dict[str, Union[str, bytes]] = {}
277
+ _body_params: Optional[bytes] = None
278
+
279
+ # process the path parameters
280
+ if parent is not None:
281
+ _path_params['parent'] = parent
282
+ # process the query parameters
283
+ # process the header parameters
284
+ # process the form parameters
285
+ # process the body parameter
286
+ if body is not None:
287
+ _body_params = body
288
+
289
+
290
+ # set the HTTP header `Accept`
291
+ _header_params['Accept'] = self.api_client.select_header_accept(
292
+ [
293
+ 'application/json'
294
+ ]
295
+ )
296
+
297
+ # set the HTTP header `Content-Type`
298
+ if _content_type:
299
+ _header_params['Content-Type'] = _content_type
300
+ else:
301
+ _default_content_type = (
302
+ self.api_client.select_header_content_type(
303
+ [
304
+ 'application/json'
305
+ ]
306
+ )
307
+ )
308
+ if _default_content_type is not None:
309
+ _header_params['Content-Type'] = _default_content_type
310
+
311
+ # authentication setting
312
+ _auth_settings: List[str] = [
313
+ ]
314
+
315
+ return self.api_client.param_serialize(
316
+ method='POST',
317
+ resource_path='/v1alpha/{parent}/testCases:batchDelete',
318
+ path_params=_path_params,
319
+ query_params=_query_params,
320
+ header_params=_header_params,
321
+ body=_body_params,
322
+ post_params=_form_params,
323
+ files=_files,
324
+ auth_settings=_auth_settings,
325
+ collection_formats=_collection_formats,
326
+ _host=_host,
327
+ _request_auth=_request_auth
328
+ )
329
+
330
+
331
+
332
+
333
+ @validate_call
334
+ def test_case_service_create_test_case(
335
+ self,
336
+ parent: Annotated[str, Field(strict=True, description="The parent Test where this TestCase will be created. Format: tests/<UUID>")],
337
+ test_case: Annotated[V1alphaTestCase, Field(description="The TestCase to create.")],
338
+ _request_timeout: Union[
339
+ None,
340
+ Annotated[StrictFloat, Field(gt=0)],
341
+ Tuple[
342
+ Annotated[StrictFloat, Field(gt=0)],
343
+ Annotated[StrictFloat, Field(gt=0)]
344
+ ]
345
+ ] = None,
346
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
347
+ _content_type: Optional[StrictStr] = None,
348
+ _headers: Optional[Dict[StrictStr, Any]] = None,
349
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
350
+ ) -> V1alphaCreateTestCaseResponse:
351
+ """test_case_service_create_test_case
352
+
353
+
354
+ :param parent: The parent Test where this TestCase will be created. Format: tests/<UUID> (required)
355
+ :type parent: str
356
+ :param test_case: The TestCase to create. (required)
357
+ :type test_case: V1alphaTestCase
358
+ :param _request_timeout: timeout setting for this request. If one
359
+ number provided, it will be total request
360
+ timeout. It can also be a pair (tuple) of
361
+ (connection, read) timeouts.
362
+ :type _request_timeout: int, tuple(int, int), optional
363
+ :param _request_auth: set to override the auth_settings for an a single
364
+ request; this effectively ignores the
365
+ authentication in the spec for a single request.
366
+ :type _request_auth: dict, optional
367
+ :param _content_type: force content-type for the request.
368
+ :type _content_type: str, Optional
369
+ :param _headers: set to override the headers for a single
370
+ request; this effectively ignores the headers
371
+ in the spec for a single request.
372
+ :type _headers: dict, optional
373
+ :param _host_index: set to override the host_index for a single
374
+ request; this effectively ignores the host_index
375
+ in the spec for a single request.
376
+ :type _host_index: int, optional
377
+ :return: Returns the result object.
378
+ """ # noqa: E501
379
+
380
+ _param = self._test_case_service_create_test_case_serialize(
381
+ parent=parent,
382
+ test_case=test_case,
383
+ _request_auth=_request_auth,
384
+ _content_type=_content_type,
385
+ _headers=_headers,
386
+ _host_index=_host_index
387
+ )
388
+
389
+ _response_types_map: Dict[str, Optional[str]] = {
390
+ '200': "V1alphaCreateTestCaseResponse",
391
+ }
392
+ response_data = self.api_client.call_api(
393
+ *_param,
394
+ _request_timeout=_request_timeout
395
+ )
396
+ response_data.read()
397
+ return self.api_client.response_deserialize(
398
+ response_data=response_data,
399
+ response_types_map=_response_types_map,
400
+ ).data
401
+
402
+
403
+ @validate_call
404
+ def test_case_service_create_test_case_with_http_info(
405
+ self,
406
+ parent: Annotated[str, Field(strict=True, description="The parent Test where this TestCase will be created. Format: tests/<UUID>")],
407
+ test_case: Annotated[V1alphaTestCase, Field(description="The TestCase to create.")],
408
+ _request_timeout: Union[
409
+ None,
410
+ Annotated[StrictFloat, Field(gt=0)],
411
+ Tuple[
412
+ Annotated[StrictFloat, Field(gt=0)],
413
+ Annotated[StrictFloat, Field(gt=0)]
414
+ ]
415
+ ] = None,
416
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
417
+ _content_type: Optional[StrictStr] = None,
418
+ _headers: Optional[Dict[StrictStr, Any]] = None,
419
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
420
+ ) -> ApiResponse[V1alphaCreateTestCaseResponse]:
421
+ """test_case_service_create_test_case
422
+
423
+
424
+ :param parent: The parent Test where this TestCase will be created. Format: tests/<UUID> (required)
425
+ :type parent: str
426
+ :param test_case: The TestCase to create. (required)
427
+ :type test_case: V1alphaTestCase
428
+ :param _request_timeout: timeout setting for this request. If one
429
+ number provided, it will be total request
430
+ timeout. It can also be a pair (tuple) of
431
+ (connection, read) timeouts.
432
+ :type _request_timeout: int, tuple(int, int), optional
433
+ :param _request_auth: set to override the auth_settings for an a single
434
+ request; this effectively ignores the
435
+ authentication in the spec for a single request.
436
+ :type _request_auth: dict, optional
437
+ :param _content_type: force content-type for the request.
438
+ :type _content_type: str, Optional
439
+ :param _headers: set to override the headers for a single
440
+ request; this effectively ignores the headers
441
+ in the spec for a single request.
442
+ :type _headers: dict, optional
443
+ :param _host_index: set to override the host_index for a single
444
+ request; this effectively ignores the host_index
445
+ in the spec for a single request.
446
+ :type _host_index: int, optional
447
+ :return: Returns the result object.
448
+ """ # noqa: E501
449
+
450
+ _param = self._test_case_service_create_test_case_serialize(
451
+ parent=parent,
452
+ test_case=test_case,
453
+ _request_auth=_request_auth,
454
+ _content_type=_content_type,
455
+ _headers=_headers,
456
+ _host_index=_host_index
457
+ )
458
+
459
+ _response_types_map: Dict[str, Optional[str]] = {
460
+ '200': "V1alphaCreateTestCaseResponse",
461
+ }
462
+ response_data = self.api_client.call_api(
463
+ *_param,
464
+ _request_timeout=_request_timeout
465
+ )
466
+ response_data.read()
467
+ return self.api_client.response_deserialize(
468
+ response_data=response_data,
469
+ response_types_map=_response_types_map,
470
+ )
471
+
472
+
473
+ @validate_call
474
+ def test_case_service_create_test_case_without_preload_content(
475
+ self,
476
+ parent: Annotated[str, Field(strict=True, description="The parent Test where this TestCase will be created. Format: tests/<UUID>")],
477
+ test_case: Annotated[V1alphaTestCase, Field(description="The TestCase to create.")],
478
+ _request_timeout: Union[
479
+ None,
480
+ Annotated[StrictFloat, Field(gt=0)],
481
+ Tuple[
482
+ Annotated[StrictFloat, Field(gt=0)],
483
+ Annotated[StrictFloat, Field(gt=0)]
484
+ ]
485
+ ] = None,
486
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
487
+ _content_type: Optional[StrictStr] = None,
488
+ _headers: Optional[Dict[StrictStr, Any]] = None,
489
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
490
+ ) -> RESTResponseType:
491
+ """test_case_service_create_test_case
492
+
493
+
494
+ :param parent: The parent Test where this TestCase will be created. Format: tests/<UUID> (required)
495
+ :type parent: str
496
+ :param test_case: The TestCase to create. (required)
497
+ :type test_case: V1alphaTestCase
498
+ :param _request_timeout: timeout setting for this request. If one
499
+ number provided, it will be total request
500
+ timeout. It can also be a pair (tuple) of
501
+ (connection, read) timeouts.
502
+ :type _request_timeout: int, tuple(int, int), optional
503
+ :param _request_auth: set to override the auth_settings for an a single
504
+ request; this effectively ignores the
505
+ authentication in the spec for a single request.
506
+ :type _request_auth: dict, optional
507
+ :param _content_type: force content-type for the request.
508
+ :type _content_type: str, Optional
509
+ :param _headers: set to override the headers for a single
510
+ request; this effectively ignores the headers
511
+ in the spec for a single request.
512
+ :type _headers: dict, optional
513
+ :param _host_index: set to override the host_index for a single
514
+ request; this effectively ignores the host_index
515
+ in the spec for a single request.
516
+ :type _host_index: int, optional
517
+ :return: Returns the result object.
518
+ """ # noqa: E501
519
+
520
+ _param = self._test_case_service_create_test_case_serialize(
521
+ parent=parent,
522
+ test_case=test_case,
523
+ _request_auth=_request_auth,
524
+ _content_type=_content_type,
525
+ _headers=_headers,
526
+ _host_index=_host_index
527
+ )
528
+
529
+ _response_types_map: Dict[str, Optional[str]] = {
530
+ '200': "V1alphaCreateTestCaseResponse",
531
+ }
532
+ response_data = self.api_client.call_api(
533
+ *_param,
534
+ _request_timeout=_request_timeout
535
+ )
536
+ return response_data.response
537
+
538
+
539
+ def _test_case_service_create_test_case_serialize(
540
+ self,
541
+ parent,
542
+ test_case,
543
+ _request_auth,
544
+ _content_type,
545
+ _headers,
546
+ _host_index,
547
+ ) -> RequestSerialized:
548
+
549
+ _host = None
550
+
551
+ _collection_formats: Dict[str, str] = {
552
+ }
553
+
554
+ _path_params: Dict[str, str] = {}
555
+ _query_params: List[Tuple[str, str]] = []
556
+ _header_params: Dict[str, Optional[str]] = _headers or {}
557
+ _form_params: List[Tuple[str, str]] = []
558
+ _files: Dict[str, Union[str, bytes]] = {}
559
+ _body_params: Optional[bytes] = None
560
+
561
+ # process the path parameters
562
+ if parent is not None:
563
+ _path_params['parent'] = parent
564
+ # process the query parameters
565
+ # process the header parameters
566
+ # process the form parameters
567
+ # process the body parameter
568
+ if test_case is not None:
569
+ _body_params = test_case
570
+
571
+
572
+ # set the HTTP header `Accept`
573
+ _header_params['Accept'] = self.api_client.select_header_accept(
574
+ [
575
+ 'application/json'
576
+ ]
577
+ )
578
+
579
+ # set the HTTP header `Content-Type`
580
+ if _content_type:
581
+ _header_params['Content-Type'] = _content_type
582
+ else:
583
+ _default_content_type = (
584
+ self.api_client.select_header_content_type(
585
+ [
586
+ 'application/json'
587
+ ]
588
+ )
589
+ )
590
+ if _default_content_type is not None:
591
+ _header_params['Content-Type'] = _default_content_type
592
+
593
+ # authentication setting
594
+ _auth_settings: List[str] = [
595
+ ]
596
+
597
+ return self.api_client.param_serialize(
598
+ method='POST',
599
+ resource_path='/v1alpha/{parent}/testCases',
600
+ path_params=_path_params,
601
+ query_params=_query_params,
602
+ header_params=_header_params,
603
+ body=_body_params,
604
+ post_params=_form_params,
605
+ files=_files,
606
+ auth_settings=_auth_settings,
607
+ collection_formats=_collection_formats,
608
+ _host=_host,
609
+ _request_auth=_request_auth
610
+ )
611
+
612
+
613
+
614
+
615
+ @validate_call
616
+ def test_case_service_delete_test_case(
617
+ self,
618
+ name_5: Annotated[str, Field(strict=True, description="The name of the TestCase to delete. Format: tests/<UUID>/testCases/<UUID>")],
619
+ _request_timeout: Union[
620
+ None,
621
+ Annotated[StrictFloat, Field(gt=0)],
622
+ Tuple[
623
+ Annotated[StrictFloat, Field(gt=0)],
624
+ Annotated[StrictFloat, Field(gt=0)]
625
+ ]
626
+ ] = None,
627
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
628
+ _content_type: Optional[StrictStr] = None,
629
+ _headers: Optional[Dict[StrictStr, Any]] = None,
630
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
631
+ ) -> V1alphaDeleteTestCaseResponse:
632
+ """test_case_service_delete_test_case
633
+
634
+
635
+ :param name_5: The name of the TestCase to delete. Format: tests/<UUID>/testCases/<UUID> (required)
636
+ :type name_5: str
637
+ :param _request_timeout: timeout setting for this request. If one
638
+ number provided, it will be total request
639
+ timeout. It can also be a pair (tuple) of
640
+ (connection, read) timeouts.
641
+ :type _request_timeout: int, tuple(int, int), optional
642
+ :param _request_auth: set to override the auth_settings for an a single
643
+ request; this effectively ignores the
644
+ authentication in the spec for a single request.
645
+ :type _request_auth: dict, optional
646
+ :param _content_type: force content-type for the request.
647
+ :type _content_type: str, Optional
648
+ :param _headers: set to override the headers for a single
649
+ request; this effectively ignores the headers
650
+ in the spec for a single request.
651
+ :type _headers: dict, optional
652
+ :param _host_index: set to override the host_index for a single
653
+ request; this effectively ignores the host_index
654
+ in the spec for a single request.
655
+ :type _host_index: int, optional
656
+ :return: Returns the result object.
657
+ """ # noqa: E501
658
+
659
+ _param = self._test_case_service_delete_test_case_serialize(
660
+ name_5=name_5,
661
+ _request_auth=_request_auth,
662
+ _content_type=_content_type,
663
+ _headers=_headers,
664
+ _host_index=_host_index
665
+ )
666
+
667
+ _response_types_map: Dict[str, Optional[str]] = {
668
+ '200': "V1alphaDeleteTestCaseResponse",
669
+ }
670
+ response_data = self.api_client.call_api(
671
+ *_param,
672
+ _request_timeout=_request_timeout
673
+ )
674
+ response_data.read()
675
+ return self.api_client.response_deserialize(
676
+ response_data=response_data,
677
+ response_types_map=_response_types_map,
678
+ ).data
679
+
680
+
681
+ @validate_call
682
+ def test_case_service_delete_test_case_with_http_info(
683
+ self,
684
+ name_5: Annotated[str, Field(strict=True, description="The name of the TestCase to delete. Format: tests/<UUID>/testCases/<UUID>")],
685
+ _request_timeout: Union[
686
+ None,
687
+ Annotated[StrictFloat, Field(gt=0)],
688
+ Tuple[
689
+ Annotated[StrictFloat, Field(gt=0)],
690
+ Annotated[StrictFloat, Field(gt=0)]
691
+ ]
692
+ ] = None,
693
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
694
+ _content_type: Optional[StrictStr] = None,
695
+ _headers: Optional[Dict[StrictStr, Any]] = None,
696
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
697
+ ) -> ApiResponse[V1alphaDeleteTestCaseResponse]:
698
+ """test_case_service_delete_test_case
699
+
700
+
701
+ :param name_5: The name of the TestCase to delete. Format: tests/<UUID>/testCases/<UUID> (required)
702
+ :type name_5: str
703
+ :param _request_timeout: timeout setting for this request. If one
704
+ number provided, it will be total request
705
+ timeout. It can also be a pair (tuple) of
706
+ (connection, read) timeouts.
707
+ :type _request_timeout: int, tuple(int, int), optional
708
+ :param _request_auth: set to override the auth_settings for an a single
709
+ request; this effectively ignores the
710
+ authentication in the spec for a single request.
711
+ :type _request_auth: dict, optional
712
+ :param _content_type: force content-type for the request.
713
+ :type _content_type: str, Optional
714
+ :param _headers: set to override the headers for a single
715
+ request; this effectively ignores the headers
716
+ in the spec for a single request.
717
+ :type _headers: dict, optional
718
+ :param _host_index: set to override the host_index for a single
719
+ request; this effectively ignores the host_index
720
+ in the spec for a single request.
721
+ :type _host_index: int, optional
722
+ :return: Returns the result object.
723
+ """ # noqa: E501
724
+
725
+ _param = self._test_case_service_delete_test_case_serialize(
726
+ name_5=name_5,
727
+ _request_auth=_request_auth,
728
+ _content_type=_content_type,
729
+ _headers=_headers,
730
+ _host_index=_host_index
731
+ )
732
+
733
+ _response_types_map: Dict[str, Optional[str]] = {
734
+ '200': "V1alphaDeleteTestCaseResponse",
735
+ }
736
+ response_data = self.api_client.call_api(
737
+ *_param,
738
+ _request_timeout=_request_timeout
739
+ )
740
+ response_data.read()
741
+ return self.api_client.response_deserialize(
742
+ response_data=response_data,
743
+ response_types_map=_response_types_map,
744
+ )
745
+
746
+
747
+ @validate_call
748
+ def test_case_service_delete_test_case_without_preload_content(
749
+ self,
750
+ name_5: Annotated[str, Field(strict=True, description="The name of the TestCase to delete. Format: tests/<UUID>/testCases/<UUID>")],
751
+ _request_timeout: Union[
752
+ None,
753
+ Annotated[StrictFloat, Field(gt=0)],
754
+ Tuple[
755
+ Annotated[StrictFloat, Field(gt=0)],
756
+ Annotated[StrictFloat, Field(gt=0)]
757
+ ]
758
+ ] = None,
759
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
760
+ _content_type: Optional[StrictStr] = None,
761
+ _headers: Optional[Dict[StrictStr, Any]] = None,
762
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
763
+ ) -> RESTResponseType:
764
+ """test_case_service_delete_test_case
765
+
766
+
767
+ :param name_5: The name of the TestCase to delete. Format: tests/<UUID>/testCases/<UUID> (required)
768
+ :type name_5: str
769
+ :param _request_timeout: timeout setting for this request. If one
770
+ number provided, it will be total request
771
+ timeout. It can also be a pair (tuple) of
772
+ (connection, read) timeouts.
773
+ :type _request_timeout: int, tuple(int, int), optional
774
+ :param _request_auth: set to override the auth_settings for an a single
775
+ request; this effectively ignores the
776
+ authentication in the spec for a single request.
777
+ :type _request_auth: dict, optional
778
+ :param _content_type: force content-type for the request.
779
+ :type _content_type: str, Optional
780
+ :param _headers: set to override the headers for a single
781
+ request; this effectively ignores the headers
782
+ in the spec for a single request.
783
+ :type _headers: dict, optional
784
+ :param _host_index: set to override the host_index for a single
785
+ request; this effectively ignores the host_index
786
+ in the spec for a single request.
787
+ :type _host_index: int, optional
788
+ :return: Returns the result object.
789
+ """ # noqa: E501
790
+
791
+ _param = self._test_case_service_delete_test_case_serialize(
792
+ name_5=name_5,
793
+ _request_auth=_request_auth,
794
+ _content_type=_content_type,
795
+ _headers=_headers,
796
+ _host_index=_host_index
797
+ )
798
+
799
+ _response_types_map: Dict[str, Optional[str]] = {
800
+ '200': "V1alphaDeleteTestCaseResponse",
801
+ }
802
+ response_data = self.api_client.call_api(
803
+ *_param,
804
+ _request_timeout=_request_timeout
805
+ )
806
+ return response_data.response
807
+
808
+
809
+ def _test_case_service_delete_test_case_serialize(
810
+ self,
811
+ name_5,
812
+ _request_auth,
813
+ _content_type,
814
+ _headers,
815
+ _host_index,
816
+ ) -> RequestSerialized:
817
+
818
+ _host = None
819
+
820
+ _collection_formats: Dict[str, str] = {
821
+ }
822
+
823
+ _path_params: Dict[str, str] = {}
824
+ _query_params: List[Tuple[str, str]] = []
825
+ _header_params: Dict[str, Optional[str]] = _headers or {}
826
+ _form_params: List[Tuple[str, str]] = []
827
+ _files: Dict[str, Union[str, bytes]] = {}
828
+ _body_params: Optional[bytes] = None
829
+
830
+ # process the path parameters
831
+ if name_5 is not None:
832
+ _path_params['name_5'] = name_5
833
+ # process the query parameters
834
+ # process the header parameters
835
+ # process the form parameters
836
+ # process the body parameter
837
+
838
+
839
+ # set the HTTP header `Accept`
840
+ _header_params['Accept'] = self.api_client.select_header_accept(
841
+ [
842
+ 'application/json'
843
+ ]
844
+ )
845
+
846
+
847
+ # authentication setting
848
+ _auth_settings: List[str] = [
849
+ ]
850
+
851
+ return self.api_client.param_serialize(
852
+ method='DELETE',
853
+ resource_path='/v1alpha/{name_5}',
854
+ path_params=_path_params,
855
+ query_params=_query_params,
856
+ header_params=_header_params,
857
+ body=_body_params,
858
+ post_params=_form_params,
859
+ files=_files,
860
+ auth_settings=_auth_settings,
861
+ collection_formats=_collection_formats,
862
+ _host=_host,
863
+ _request_auth=_request_auth
864
+ )
865
+
866
+
867
+
868
+
869
+ @validate_call
870
+ def test_case_service_find_all_test_cases_by_id(
871
+ self,
872
+ ids: Annotated[Optional[List[StrictStr]], Field(description="The list of TestCase IDs to retrieve.")] = None,
873
+ _request_timeout: Union[
874
+ None,
875
+ Annotated[StrictFloat, Field(gt=0)],
876
+ Tuple[
877
+ Annotated[StrictFloat, Field(gt=0)],
878
+ Annotated[StrictFloat, Field(gt=0)]
879
+ ]
880
+ ] = None,
881
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
882
+ _content_type: Optional[StrictStr] = None,
883
+ _headers: Optional[Dict[StrictStr, Any]] = None,
884
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
885
+ ) -> V1alphaFindAllTestCasesByIDResponse:
886
+ """test_case_service_find_all_test_cases_by_id
887
+
888
+
889
+ :param ids: The list of TestCase IDs to retrieve.
890
+ :type ids: List[str]
891
+ :param _request_timeout: timeout setting for this request. If one
892
+ number provided, it will be total request
893
+ timeout. It can also be a pair (tuple) of
894
+ (connection, read) timeouts.
895
+ :type _request_timeout: int, tuple(int, int), optional
896
+ :param _request_auth: set to override the auth_settings for an a single
897
+ request; this effectively ignores the
898
+ authentication in the spec for a single request.
899
+ :type _request_auth: dict, optional
900
+ :param _content_type: force content-type for the request.
901
+ :type _content_type: str, Optional
902
+ :param _headers: set to override the headers for a single
903
+ request; this effectively ignores the headers
904
+ in the spec for a single request.
905
+ :type _headers: dict, optional
906
+ :param _host_index: set to override the host_index for a single
907
+ request; this effectively ignores the host_index
908
+ in the spec for a single request.
909
+ :type _host_index: int, optional
910
+ :return: Returns the result object.
911
+ """ # noqa: E501
912
+
913
+ _param = self._test_case_service_find_all_test_cases_by_id_serialize(
914
+ ids=ids,
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': "V1alphaFindAllTestCasesByIDResponse",
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 test_case_service_find_all_test_cases_by_id_with_http_info(
937
+ self,
938
+ ids: Annotated[Optional[List[StrictStr]], Field(description="The list of TestCase IDs to retrieve.")] = None,
939
+ _request_timeout: Union[
940
+ None,
941
+ Annotated[StrictFloat, Field(gt=0)],
942
+ Tuple[
943
+ Annotated[StrictFloat, Field(gt=0)],
944
+ Annotated[StrictFloat, Field(gt=0)]
945
+ ]
946
+ ] = None,
947
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
948
+ _content_type: Optional[StrictStr] = None,
949
+ _headers: Optional[Dict[StrictStr, Any]] = None,
950
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
951
+ ) -> ApiResponse[V1alphaFindAllTestCasesByIDResponse]:
952
+ """test_case_service_find_all_test_cases_by_id
953
+
954
+
955
+ :param ids: The list of TestCase IDs to retrieve.
956
+ :type ids: List[str]
957
+ :param _request_timeout: timeout setting for this request. If one
958
+ number provided, it will be total request
959
+ timeout. It can also be a pair (tuple) of
960
+ (connection, read) timeouts.
961
+ :type _request_timeout: int, tuple(int, int), optional
962
+ :param _request_auth: set to override the auth_settings for an a single
963
+ request; this effectively ignores the
964
+ authentication in the spec for a single request.
965
+ :type _request_auth: dict, optional
966
+ :param _content_type: force content-type for the request.
967
+ :type _content_type: str, Optional
968
+ :param _headers: set to override the headers for a single
969
+ request; this effectively ignores the headers
970
+ in the spec for a single request.
971
+ :type _headers: dict, optional
972
+ :param _host_index: set to override the host_index for a single
973
+ request; this effectively ignores the host_index
974
+ in the spec for a single request.
975
+ :type _host_index: int, optional
976
+ :return: Returns the result object.
977
+ """ # noqa: E501
978
+
979
+ _param = self._test_case_service_find_all_test_cases_by_id_serialize(
980
+ ids=ids,
981
+ _request_auth=_request_auth,
982
+ _content_type=_content_type,
983
+ _headers=_headers,
984
+ _host_index=_host_index
985
+ )
986
+
987
+ _response_types_map: Dict[str, Optional[str]] = {
988
+ '200': "V1alphaFindAllTestCasesByIDResponse",
989
+ }
990
+ response_data = self.api_client.call_api(
991
+ *_param,
992
+ _request_timeout=_request_timeout
993
+ )
994
+ response_data.read()
995
+ return self.api_client.response_deserialize(
996
+ response_data=response_data,
997
+ response_types_map=_response_types_map,
998
+ )
999
+
1000
+
1001
+ @validate_call
1002
+ def test_case_service_find_all_test_cases_by_id_without_preload_content(
1003
+ self,
1004
+ ids: Annotated[Optional[List[StrictStr]], Field(description="The list of TestCase IDs to retrieve.")] = None,
1005
+ _request_timeout: Union[
1006
+ None,
1007
+ Annotated[StrictFloat, Field(gt=0)],
1008
+ Tuple[
1009
+ Annotated[StrictFloat, Field(gt=0)],
1010
+ Annotated[StrictFloat, Field(gt=0)]
1011
+ ]
1012
+ ] = None,
1013
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1014
+ _content_type: Optional[StrictStr] = None,
1015
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1016
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1017
+ ) -> RESTResponseType:
1018
+ """test_case_service_find_all_test_cases_by_id
1019
+
1020
+
1021
+ :param ids: The list of TestCase IDs to retrieve.
1022
+ :type ids: List[str]
1023
+ :param _request_timeout: timeout setting for this request. If one
1024
+ number provided, it will be total request
1025
+ timeout. It can also be a pair (tuple) of
1026
+ (connection, read) timeouts.
1027
+ :type _request_timeout: int, tuple(int, int), optional
1028
+ :param _request_auth: set to override the auth_settings for an a single
1029
+ request; this effectively ignores the
1030
+ authentication in the spec for a single request.
1031
+ :type _request_auth: dict, optional
1032
+ :param _content_type: force content-type for the request.
1033
+ :type _content_type: str, Optional
1034
+ :param _headers: set to override the headers for a single
1035
+ request; this effectively ignores the headers
1036
+ in the spec for a single request.
1037
+ :type _headers: dict, optional
1038
+ :param _host_index: set to override the host_index for a single
1039
+ request; this effectively ignores the host_index
1040
+ in the spec for a single request.
1041
+ :type _host_index: int, optional
1042
+ :return: Returns the result object.
1043
+ """ # noqa: E501
1044
+
1045
+ _param = self._test_case_service_find_all_test_cases_by_id_serialize(
1046
+ ids=ids,
1047
+ _request_auth=_request_auth,
1048
+ _content_type=_content_type,
1049
+ _headers=_headers,
1050
+ _host_index=_host_index
1051
+ )
1052
+
1053
+ _response_types_map: Dict[str, Optional[str]] = {
1054
+ '200': "V1alphaFindAllTestCasesByIDResponse",
1055
+ }
1056
+ response_data = self.api_client.call_api(
1057
+ *_param,
1058
+ _request_timeout=_request_timeout
1059
+ )
1060
+ return response_data.response
1061
+
1062
+
1063
+ def _test_case_service_find_all_test_cases_by_id_serialize(
1064
+ self,
1065
+ ids,
1066
+ _request_auth,
1067
+ _content_type,
1068
+ _headers,
1069
+ _host_index,
1070
+ ) -> RequestSerialized:
1071
+
1072
+ _host = None
1073
+
1074
+ _collection_formats: Dict[str, str] = {
1075
+ 'ids': 'multi',
1076
+ }
1077
+
1078
+ _path_params: Dict[str, str] = {}
1079
+ _query_params: List[Tuple[str, str]] = []
1080
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1081
+ _form_params: List[Tuple[str, str]] = []
1082
+ _files: Dict[str, Union[str, bytes]] = {}
1083
+ _body_params: Optional[bytes] = None
1084
+
1085
+ # process the path parameters
1086
+ # process the query parameters
1087
+ if ids is not None:
1088
+
1089
+ _query_params.append(('ids', ids))
1090
+
1091
+ # process the header parameters
1092
+ # process the form parameters
1093
+ # process the body parameter
1094
+
1095
+
1096
+ # set the HTTP header `Accept`
1097
+ _header_params['Accept'] = self.api_client.select_header_accept(
1098
+ [
1099
+ 'application/json'
1100
+ ]
1101
+ )
1102
+
1103
+
1104
+ # authentication setting
1105
+ _auth_settings: List[str] = [
1106
+ ]
1107
+
1108
+ return self.api_client.param_serialize(
1109
+ method='GET',
1110
+ resource_path='/v1alpha/tests/-/testCases:findAllTestCasesByID',
1111
+ path_params=_path_params,
1112
+ query_params=_query_params,
1113
+ header_params=_header_params,
1114
+ body=_body_params,
1115
+ post_params=_form_params,
1116
+ files=_files,
1117
+ auth_settings=_auth_settings,
1118
+ collection_formats=_collection_formats,
1119
+ _host=_host,
1120
+ _request_auth=_request_auth
1121
+ )
1122
+
1123
+
1124
+
1125
+
1126
+ @validate_call
1127
+ def test_case_service_get_test_case(
1128
+ self,
1129
+ name_7: Annotated[str, Field(strict=True, description="The name of the TestCase to retrieve. Format: tests/<UUID>/testCases/<UUID>")],
1130
+ _request_timeout: Union[
1131
+ None,
1132
+ Annotated[StrictFloat, Field(gt=0)],
1133
+ Tuple[
1134
+ Annotated[StrictFloat, Field(gt=0)],
1135
+ Annotated[StrictFloat, Field(gt=0)]
1136
+ ]
1137
+ ] = None,
1138
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1139
+ _content_type: Optional[StrictStr] = None,
1140
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1141
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1142
+ ) -> V1alphaGetTestCaseResponse:
1143
+ """test_case_service_get_test_case
1144
+
1145
+
1146
+ :param name_7: The name of the TestCase to retrieve. Format: tests/<UUID>/testCases/<UUID> (required)
1147
+ :type name_7: str
1148
+ :param _request_timeout: timeout setting for this request. If one
1149
+ number provided, it will be total request
1150
+ timeout. It can also be a pair (tuple) of
1151
+ (connection, read) timeouts.
1152
+ :type _request_timeout: int, tuple(int, int), optional
1153
+ :param _request_auth: set to override the auth_settings for an a single
1154
+ request; this effectively ignores the
1155
+ authentication in the spec for a single request.
1156
+ :type _request_auth: dict, optional
1157
+ :param _content_type: force content-type for the request.
1158
+ :type _content_type: str, Optional
1159
+ :param _headers: set to override the headers for a single
1160
+ request; this effectively ignores the headers
1161
+ in the spec for a single request.
1162
+ :type _headers: dict, optional
1163
+ :param _host_index: set to override the host_index for a single
1164
+ request; this effectively ignores the host_index
1165
+ in the spec for a single request.
1166
+ :type _host_index: int, optional
1167
+ :return: Returns the result object.
1168
+ """ # noqa: E501
1169
+
1170
+ _param = self._test_case_service_get_test_case_serialize(
1171
+ name_7=name_7,
1172
+ _request_auth=_request_auth,
1173
+ _content_type=_content_type,
1174
+ _headers=_headers,
1175
+ _host_index=_host_index
1176
+ )
1177
+
1178
+ _response_types_map: Dict[str, Optional[str]] = {
1179
+ '200': "V1alphaGetTestCaseResponse",
1180
+ }
1181
+ response_data = self.api_client.call_api(
1182
+ *_param,
1183
+ _request_timeout=_request_timeout
1184
+ )
1185
+ response_data.read()
1186
+ return self.api_client.response_deserialize(
1187
+ response_data=response_data,
1188
+ response_types_map=_response_types_map,
1189
+ ).data
1190
+
1191
+
1192
+ @validate_call
1193
+ def test_case_service_get_test_case_with_http_info(
1194
+ self,
1195
+ name_7: Annotated[str, Field(strict=True, description="The name of the TestCase to retrieve. Format: tests/<UUID>/testCases/<UUID>")],
1196
+ _request_timeout: Union[
1197
+ None,
1198
+ Annotated[StrictFloat, Field(gt=0)],
1199
+ Tuple[
1200
+ Annotated[StrictFloat, Field(gt=0)],
1201
+ Annotated[StrictFloat, Field(gt=0)]
1202
+ ]
1203
+ ] = None,
1204
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1205
+ _content_type: Optional[StrictStr] = None,
1206
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1207
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1208
+ ) -> ApiResponse[V1alphaGetTestCaseResponse]:
1209
+ """test_case_service_get_test_case
1210
+
1211
+
1212
+ :param name_7: The name of the TestCase to retrieve. Format: tests/<UUID>/testCases/<UUID> (required)
1213
+ :type name_7: str
1214
+ :param _request_timeout: timeout setting for this request. If one
1215
+ number provided, it will be total request
1216
+ timeout. It can also be a pair (tuple) of
1217
+ (connection, read) timeouts.
1218
+ :type _request_timeout: int, tuple(int, int), optional
1219
+ :param _request_auth: set to override the auth_settings for an a single
1220
+ request; this effectively ignores the
1221
+ authentication in the spec for a single request.
1222
+ :type _request_auth: dict, optional
1223
+ :param _content_type: force content-type for the request.
1224
+ :type _content_type: str, Optional
1225
+ :param _headers: set to override the headers for a single
1226
+ request; this effectively ignores the headers
1227
+ in the spec for a single request.
1228
+ :type _headers: dict, optional
1229
+ :param _host_index: set to override the host_index for a single
1230
+ request; this effectively ignores the host_index
1231
+ in the spec for a single request.
1232
+ :type _host_index: int, optional
1233
+ :return: Returns the result object.
1234
+ """ # noqa: E501
1235
+
1236
+ _param = self._test_case_service_get_test_case_serialize(
1237
+ name_7=name_7,
1238
+ _request_auth=_request_auth,
1239
+ _content_type=_content_type,
1240
+ _headers=_headers,
1241
+ _host_index=_host_index
1242
+ )
1243
+
1244
+ _response_types_map: Dict[str, Optional[str]] = {
1245
+ '200': "V1alphaGetTestCaseResponse",
1246
+ }
1247
+ response_data = self.api_client.call_api(
1248
+ *_param,
1249
+ _request_timeout=_request_timeout
1250
+ )
1251
+ response_data.read()
1252
+ return self.api_client.response_deserialize(
1253
+ response_data=response_data,
1254
+ response_types_map=_response_types_map,
1255
+ )
1256
+
1257
+
1258
+ @validate_call
1259
+ def test_case_service_get_test_case_without_preload_content(
1260
+ self,
1261
+ name_7: Annotated[str, Field(strict=True, description="The name of the TestCase to retrieve. Format: tests/<UUID>/testCases/<UUID>")],
1262
+ _request_timeout: Union[
1263
+ None,
1264
+ Annotated[StrictFloat, Field(gt=0)],
1265
+ Tuple[
1266
+ Annotated[StrictFloat, Field(gt=0)],
1267
+ Annotated[StrictFloat, Field(gt=0)]
1268
+ ]
1269
+ ] = None,
1270
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1271
+ _content_type: Optional[StrictStr] = None,
1272
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1273
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1274
+ ) -> RESTResponseType:
1275
+ """test_case_service_get_test_case
1276
+
1277
+
1278
+ :param name_7: The name of the TestCase to retrieve. Format: tests/<UUID>/testCases/<UUID> (required)
1279
+ :type name_7: str
1280
+ :param _request_timeout: timeout setting for this request. If one
1281
+ number provided, it will be total request
1282
+ timeout. It can also be a pair (tuple) of
1283
+ (connection, read) timeouts.
1284
+ :type _request_timeout: int, tuple(int, int), optional
1285
+ :param _request_auth: set to override the auth_settings for an a single
1286
+ request; this effectively ignores the
1287
+ authentication in the spec for a single request.
1288
+ :type _request_auth: dict, optional
1289
+ :param _content_type: force content-type for the request.
1290
+ :type _content_type: str, Optional
1291
+ :param _headers: set to override the headers for a single
1292
+ request; this effectively ignores the headers
1293
+ in the spec for a single request.
1294
+ :type _headers: dict, optional
1295
+ :param _host_index: set to override the host_index for a single
1296
+ request; this effectively ignores the host_index
1297
+ in the spec for a single request.
1298
+ :type _host_index: int, optional
1299
+ :return: Returns the result object.
1300
+ """ # noqa: E501
1301
+
1302
+ _param = self._test_case_service_get_test_case_serialize(
1303
+ name_7=name_7,
1304
+ _request_auth=_request_auth,
1305
+ _content_type=_content_type,
1306
+ _headers=_headers,
1307
+ _host_index=_host_index
1308
+ )
1309
+
1310
+ _response_types_map: Dict[str, Optional[str]] = {
1311
+ '200': "V1alphaGetTestCaseResponse",
1312
+ }
1313
+ response_data = self.api_client.call_api(
1314
+ *_param,
1315
+ _request_timeout=_request_timeout
1316
+ )
1317
+ return response_data.response
1318
+
1319
+
1320
+ def _test_case_service_get_test_case_serialize(
1321
+ self,
1322
+ name_7,
1323
+ _request_auth,
1324
+ _content_type,
1325
+ _headers,
1326
+ _host_index,
1327
+ ) -> RequestSerialized:
1328
+
1329
+ _host = None
1330
+
1331
+ _collection_formats: Dict[str, str] = {
1332
+ }
1333
+
1334
+ _path_params: Dict[str, str] = {}
1335
+ _query_params: List[Tuple[str, str]] = []
1336
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1337
+ _form_params: List[Tuple[str, str]] = []
1338
+ _files: Dict[str, Union[str, bytes]] = {}
1339
+ _body_params: Optional[bytes] = None
1340
+
1341
+ # process the path parameters
1342
+ if name_7 is not None:
1343
+ _path_params['name_7'] = name_7
1344
+ # process the query parameters
1345
+ # process the header parameters
1346
+ # process the form parameters
1347
+ # process the body parameter
1348
+
1349
+
1350
+ # set the HTTP header `Accept`
1351
+ _header_params['Accept'] = self.api_client.select_header_accept(
1352
+ [
1353
+ 'application/json'
1354
+ ]
1355
+ )
1356
+
1357
+
1358
+ # authentication setting
1359
+ _auth_settings: List[str] = [
1360
+ ]
1361
+
1362
+ return self.api_client.param_serialize(
1363
+ method='GET',
1364
+ resource_path='/v1alpha/{name_7}',
1365
+ path_params=_path_params,
1366
+ query_params=_query_params,
1367
+ header_params=_header_params,
1368
+ body=_body_params,
1369
+ post_params=_form_params,
1370
+ files=_files,
1371
+ auth_settings=_auth_settings,
1372
+ collection_formats=_collection_formats,
1373
+ _host=_host,
1374
+ _request_auth=_request_auth
1375
+ )
1376
+
1377
+
1378
+
1379
+
1380
+ @validate_call
1381
+ def test_case_service_list_test_cases(
1382
+ self,
1383
+ parent: Annotated[str, Field(strict=True, description="The parent Test whose TestCases will be listed. Format: tests/<UUID>")],
1384
+ _request_timeout: Union[
1385
+ None,
1386
+ Annotated[StrictFloat, Field(gt=0)],
1387
+ Tuple[
1388
+ Annotated[StrictFloat, Field(gt=0)],
1389
+ Annotated[StrictFloat, Field(gt=0)]
1390
+ ]
1391
+ ] = None,
1392
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1393
+ _content_type: Optional[StrictStr] = None,
1394
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1395
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1396
+ ) -> V1alphaListTestCasesResponse:
1397
+ """test_case_service_list_test_cases
1398
+
1399
+
1400
+ :param parent: The parent Test whose TestCases will be listed. Format: tests/<UUID> (required)
1401
+ :type parent: str
1402
+ :param _request_timeout: timeout setting for this request. If one
1403
+ number provided, it will be total request
1404
+ timeout. It can also be a pair (tuple) of
1405
+ (connection, read) timeouts.
1406
+ :type _request_timeout: int, tuple(int, int), optional
1407
+ :param _request_auth: set to override the auth_settings for an a single
1408
+ request; this effectively ignores the
1409
+ authentication in the spec for a single request.
1410
+ :type _request_auth: dict, optional
1411
+ :param _content_type: force content-type for the request.
1412
+ :type _content_type: str, Optional
1413
+ :param _headers: set to override the headers for a single
1414
+ request; this effectively ignores the headers
1415
+ in the spec for a single request.
1416
+ :type _headers: dict, optional
1417
+ :param _host_index: set to override the host_index for a single
1418
+ request; this effectively ignores the host_index
1419
+ in the spec for a single request.
1420
+ :type _host_index: int, optional
1421
+ :return: Returns the result object.
1422
+ """ # noqa: E501
1423
+
1424
+ _param = self._test_case_service_list_test_cases_serialize(
1425
+ parent=parent,
1426
+ _request_auth=_request_auth,
1427
+ _content_type=_content_type,
1428
+ _headers=_headers,
1429
+ _host_index=_host_index
1430
+ )
1431
+
1432
+ _response_types_map: Dict[str, Optional[str]] = {
1433
+ '200': "V1alphaListTestCasesResponse",
1434
+ }
1435
+ response_data = self.api_client.call_api(
1436
+ *_param,
1437
+ _request_timeout=_request_timeout
1438
+ )
1439
+ response_data.read()
1440
+ return self.api_client.response_deserialize(
1441
+ response_data=response_data,
1442
+ response_types_map=_response_types_map,
1443
+ ).data
1444
+
1445
+
1446
+ @validate_call
1447
+ def test_case_service_list_test_cases_with_http_info(
1448
+ self,
1449
+ parent: Annotated[str, Field(strict=True, description="The parent Test whose TestCases will be listed. Format: tests/<UUID>")],
1450
+ _request_timeout: Union[
1451
+ None,
1452
+ Annotated[StrictFloat, Field(gt=0)],
1453
+ Tuple[
1454
+ Annotated[StrictFloat, Field(gt=0)],
1455
+ Annotated[StrictFloat, Field(gt=0)]
1456
+ ]
1457
+ ] = None,
1458
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1459
+ _content_type: Optional[StrictStr] = None,
1460
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1461
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1462
+ ) -> ApiResponse[V1alphaListTestCasesResponse]:
1463
+ """test_case_service_list_test_cases
1464
+
1465
+
1466
+ :param parent: The parent Test whose TestCases will be listed. Format: tests/<UUID> (required)
1467
+ :type parent: str
1468
+ :param _request_timeout: timeout setting for this request. If one
1469
+ number provided, it will be total request
1470
+ timeout. It can also be a pair (tuple) of
1471
+ (connection, read) timeouts.
1472
+ :type _request_timeout: int, tuple(int, int), optional
1473
+ :param _request_auth: set to override the auth_settings for an a single
1474
+ request; this effectively ignores the
1475
+ authentication in the spec for a single request.
1476
+ :type _request_auth: dict, optional
1477
+ :param _content_type: force content-type for the request.
1478
+ :type _content_type: str, Optional
1479
+ :param _headers: set to override the headers for a single
1480
+ request; this effectively ignores the headers
1481
+ in the spec for a single request.
1482
+ :type _headers: dict, optional
1483
+ :param _host_index: set to override the host_index for a single
1484
+ request; this effectively ignores the host_index
1485
+ in the spec for a single request.
1486
+ :type _host_index: int, optional
1487
+ :return: Returns the result object.
1488
+ """ # noqa: E501
1489
+
1490
+ _param = self._test_case_service_list_test_cases_serialize(
1491
+ parent=parent,
1492
+ _request_auth=_request_auth,
1493
+ _content_type=_content_type,
1494
+ _headers=_headers,
1495
+ _host_index=_host_index
1496
+ )
1497
+
1498
+ _response_types_map: Dict[str, Optional[str]] = {
1499
+ '200': "V1alphaListTestCasesResponse",
1500
+ }
1501
+ response_data = self.api_client.call_api(
1502
+ *_param,
1503
+ _request_timeout=_request_timeout
1504
+ )
1505
+ response_data.read()
1506
+ return self.api_client.response_deserialize(
1507
+ response_data=response_data,
1508
+ response_types_map=_response_types_map,
1509
+ )
1510
+
1511
+
1512
+ @validate_call
1513
+ def test_case_service_list_test_cases_without_preload_content(
1514
+ self,
1515
+ parent: Annotated[str, Field(strict=True, description="The parent Test whose TestCases will be listed. Format: tests/<UUID>")],
1516
+ _request_timeout: Union[
1517
+ None,
1518
+ Annotated[StrictFloat, Field(gt=0)],
1519
+ Tuple[
1520
+ Annotated[StrictFloat, Field(gt=0)],
1521
+ Annotated[StrictFloat, Field(gt=0)]
1522
+ ]
1523
+ ] = None,
1524
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1525
+ _content_type: Optional[StrictStr] = None,
1526
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1527
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1528
+ ) -> RESTResponseType:
1529
+ """test_case_service_list_test_cases
1530
+
1531
+
1532
+ :param parent: The parent Test whose TestCases will be listed. Format: tests/<UUID> (required)
1533
+ :type parent: str
1534
+ :param _request_timeout: timeout setting for this request. If one
1535
+ number provided, it will be total request
1536
+ timeout. It can also be a pair (tuple) of
1537
+ (connection, read) timeouts.
1538
+ :type _request_timeout: int, tuple(int, int), optional
1539
+ :param _request_auth: set to override the auth_settings for an a single
1540
+ request; this effectively ignores the
1541
+ authentication in the spec for a single request.
1542
+ :type _request_auth: dict, optional
1543
+ :param _content_type: force content-type for the request.
1544
+ :type _content_type: str, Optional
1545
+ :param _headers: set to override the headers for a single
1546
+ request; this effectively ignores the headers
1547
+ in the spec for a single request.
1548
+ :type _headers: dict, optional
1549
+ :param _host_index: set to override the host_index for a single
1550
+ request; this effectively ignores the host_index
1551
+ in the spec for a single request.
1552
+ :type _host_index: int, optional
1553
+ :return: Returns the result object.
1554
+ """ # noqa: E501
1555
+
1556
+ _param = self._test_case_service_list_test_cases_serialize(
1557
+ parent=parent,
1558
+ _request_auth=_request_auth,
1559
+ _content_type=_content_type,
1560
+ _headers=_headers,
1561
+ _host_index=_host_index
1562
+ )
1563
+
1564
+ _response_types_map: Dict[str, Optional[str]] = {
1565
+ '200': "V1alphaListTestCasesResponse",
1566
+ }
1567
+ response_data = self.api_client.call_api(
1568
+ *_param,
1569
+ _request_timeout=_request_timeout
1570
+ )
1571
+ return response_data.response
1572
+
1573
+
1574
+ def _test_case_service_list_test_cases_serialize(
1575
+ self,
1576
+ parent,
1577
+ _request_auth,
1578
+ _content_type,
1579
+ _headers,
1580
+ _host_index,
1581
+ ) -> RequestSerialized:
1582
+
1583
+ _host = None
1584
+
1585
+ _collection_formats: Dict[str, str] = {
1586
+ }
1587
+
1588
+ _path_params: Dict[str, str] = {}
1589
+ _query_params: List[Tuple[str, str]] = []
1590
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1591
+ _form_params: List[Tuple[str, str]] = []
1592
+ _files: Dict[str, Union[str, bytes]] = {}
1593
+ _body_params: Optional[bytes] = None
1594
+
1595
+ # process the path parameters
1596
+ if parent is not None:
1597
+ _path_params['parent'] = parent
1598
+ # process the query parameters
1599
+ # process the header parameters
1600
+ # process the form parameters
1601
+ # process the body parameter
1602
+
1603
+
1604
+ # set the HTTP header `Accept`
1605
+ _header_params['Accept'] = self.api_client.select_header_accept(
1606
+ [
1607
+ 'application/json'
1608
+ ]
1609
+ )
1610
+
1611
+
1612
+ # authentication setting
1613
+ _auth_settings: List[str] = [
1614
+ ]
1615
+
1616
+ return self.api_client.param_serialize(
1617
+ method='GET',
1618
+ resource_path='/v1alpha/{parent}/testCases',
1619
+ path_params=_path_params,
1620
+ query_params=_query_params,
1621
+ header_params=_header_params,
1622
+ body=_body_params,
1623
+ post_params=_form_params,
1624
+ files=_files,
1625
+ auth_settings=_auth_settings,
1626
+ collection_formats=_collection_formats,
1627
+ _host=_host,
1628
+ _request_auth=_request_auth
1629
+ )
1630
+
1631
+
1632
+
1633
+
1634
+ @validate_call
1635
+ def test_case_service_update_test_case(
1636
+ self,
1637
+ test_case_name: Annotated[str, Field(strict=True, description="Output only. Name of the prompt resource. e.g.: \"tests/<UUID>/testCases/<UUID>\"")],
1638
+ test_case: Annotated[RequiredTheTestCaseToUpdate, Field(description="Required. The TestCase to update.")],
1639
+ _request_timeout: Union[
1640
+ None,
1641
+ Annotated[StrictFloat, Field(gt=0)],
1642
+ Tuple[
1643
+ Annotated[StrictFloat, Field(gt=0)],
1644
+ Annotated[StrictFloat, Field(gt=0)]
1645
+ ]
1646
+ ] = None,
1647
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1648
+ _content_type: Optional[StrictStr] = None,
1649
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1650
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1651
+ ) -> V1alphaUpdateTestCaseResponse:
1652
+ """test_case_service_update_test_case
1653
+
1654
+
1655
+ :param test_case_name: Output only. Name of the prompt resource. e.g.: \"tests/<UUID>/testCases/<UUID>\" (required)
1656
+ :type test_case_name: str
1657
+ :param test_case: Required. The TestCase to update. (required)
1658
+ :type test_case: RequiredTheTestCaseToUpdate
1659
+ :param _request_timeout: timeout setting for this request. If one
1660
+ number provided, it will be total request
1661
+ timeout. It can also be a pair (tuple) of
1662
+ (connection, read) timeouts.
1663
+ :type _request_timeout: int, tuple(int, int), optional
1664
+ :param _request_auth: set to override the auth_settings for an a single
1665
+ request; this effectively ignores the
1666
+ authentication in the spec for a single request.
1667
+ :type _request_auth: dict, optional
1668
+ :param _content_type: force content-type for the request.
1669
+ :type _content_type: str, Optional
1670
+ :param _headers: set to override the headers for a single
1671
+ request; this effectively ignores the headers
1672
+ in the spec for a single request.
1673
+ :type _headers: dict, optional
1674
+ :param _host_index: set to override the host_index for a single
1675
+ request; this effectively ignores the host_index
1676
+ in the spec for a single request.
1677
+ :type _host_index: int, optional
1678
+ :return: Returns the result object.
1679
+ """ # noqa: E501
1680
+
1681
+ _param = self._test_case_service_update_test_case_serialize(
1682
+ test_case_name=test_case_name,
1683
+ test_case=test_case,
1684
+ _request_auth=_request_auth,
1685
+ _content_type=_content_type,
1686
+ _headers=_headers,
1687
+ _host_index=_host_index
1688
+ )
1689
+
1690
+ _response_types_map: Dict[str, Optional[str]] = {
1691
+ '200': "V1alphaUpdateTestCaseResponse",
1692
+ }
1693
+ response_data = self.api_client.call_api(
1694
+ *_param,
1695
+ _request_timeout=_request_timeout
1696
+ )
1697
+ response_data.read()
1698
+ return self.api_client.response_deserialize(
1699
+ response_data=response_data,
1700
+ response_types_map=_response_types_map,
1701
+ ).data
1702
+
1703
+
1704
+ @validate_call
1705
+ def test_case_service_update_test_case_with_http_info(
1706
+ self,
1707
+ test_case_name: Annotated[str, Field(strict=True, description="Output only. Name of the prompt resource. e.g.: \"tests/<UUID>/testCases/<UUID>\"")],
1708
+ test_case: Annotated[RequiredTheTestCaseToUpdate, Field(description="Required. The TestCase to update.")],
1709
+ _request_timeout: Union[
1710
+ None,
1711
+ Annotated[StrictFloat, Field(gt=0)],
1712
+ Tuple[
1713
+ Annotated[StrictFloat, Field(gt=0)],
1714
+ Annotated[StrictFloat, Field(gt=0)]
1715
+ ]
1716
+ ] = None,
1717
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1718
+ _content_type: Optional[StrictStr] = None,
1719
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1720
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1721
+ ) -> ApiResponse[V1alphaUpdateTestCaseResponse]:
1722
+ """test_case_service_update_test_case
1723
+
1724
+
1725
+ :param test_case_name: Output only. Name of the prompt resource. e.g.: \"tests/<UUID>/testCases/<UUID>\" (required)
1726
+ :type test_case_name: str
1727
+ :param test_case: Required. The TestCase to update. (required)
1728
+ :type test_case: RequiredTheTestCaseToUpdate
1729
+ :param _request_timeout: timeout setting for this request. If one
1730
+ number provided, it will be total request
1731
+ timeout. It can also be a pair (tuple) of
1732
+ (connection, read) timeouts.
1733
+ :type _request_timeout: int, tuple(int, int), optional
1734
+ :param _request_auth: set to override the auth_settings for an a single
1735
+ request; this effectively ignores the
1736
+ authentication in the spec for a single request.
1737
+ :type _request_auth: dict, optional
1738
+ :param _content_type: force content-type for the request.
1739
+ :type _content_type: str, Optional
1740
+ :param _headers: set to override the headers for a single
1741
+ request; this effectively ignores the headers
1742
+ in the spec for a single request.
1743
+ :type _headers: dict, optional
1744
+ :param _host_index: set to override the host_index for a single
1745
+ request; this effectively ignores the host_index
1746
+ in the spec for a single request.
1747
+ :type _host_index: int, optional
1748
+ :return: Returns the result object.
1749
+ """ # noqa: E501
1750
+
1751
+ _param = self._test_case_service_update_test_case_serialize(
1752
+ test_case_name=test_case_name,
1753
+ test_case=test_case,
1754
+ _request_auth=_request_auth,
1755
+ _content_type=_content_type,
1756
+ _headers=_headers,
1757
+ _host_index=_host_index
1758
+ )
1759
+
1760
+ _response_types_map: Dict[str, Optional[str]] = {
1761
+ '200': "V1alphaUpdateTestCaseResponse",
1762
+ }
1763
+ response_data = self.api_client.call_api(
1764
+ *_param,
1765
+ _request_timeout=_request_timeout
1766
+ )
1767
+ response_data.read()
1768
+ return self.api_client.response_deserialize(
1769
+ response_data=response_data,
1770
+ response_types_map=_response_types_map,
1771
+ )
1772
+
1773
+
1774
+ @validate_call
1775
+ def test_case_service_update_test_case_without_preload_content(
1776
+ self,
1777
+ test_case_name: Annotated[str, Field(strict=True, description="Output only. Name of the prompt resource. e.g.: \"tests/<UUID>/testCases/<UUID>\"")],
1778
+ test_case: Annotated[RequiredTheTestCaseToUpdate, Field(description="Required. The TestCase to update.")],
1779
+ _request_timeout: Union[
1780
+ None,
1781
+ Annotated[StrictFloat, Field(gt=0)],
1782
+ Tuple[
1783
+ Annotated[StrictFloat, Field(gt=0)],
1784
+ Annotated[StrictFloat, Field(gt=0)]
1785
+ ]
1786
+ ] = None,
1787
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1788
+ _content_type: Optional[StrictStr] = None,
1789
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1790
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1791
+ ) -> RESTResponseType:
1792
+ """test_case_service_update_test_case
1793
+
1794
+
1795
+ :param test_case_name: Output only. Name of the prompt resource. e.g.: \"tests/<UUID>/testCases/<UUID>\" (required)
1796
+ :type test_case_name: str
1797
+ :param test_case: Required. The TestCase to update. (required)
1798
+ :type test_case: RequiredTheTestCaseToUpdate
1799
+ :param _request_timeout: timeout setting for this request. If one
1800
+ number provided, it will be total request
1801
+ timeout. It can also be a pair (tuple) of
1802
+ (connection, read) timeouts.
1803
+ :type _request_timeout: int, tuple(int, int), optional
1804
+ :param _request_auth: set to override the auth_settings for an a single
1805
+ request; this effectively ignores the
1806
+ authentication in the spec for a single request.
1807
+ :type _request_auth: dict, optional
1808
+ :param _content_type: force content-type for the request.
1809
+ :type _content_type: str, Optional
1810
+ :param _headers: set to override the headers for a single
1811
+ request; this effectively ignores the headers
1812
+ in the spec for a single request.
1813
+ :type _headers: dict, optional
1814
+ :param _host_index: set to override the host_index for a single
1815
+ request; this effectively ignores the host_index
1816
+ in the spec for a single request.
1817
+ :type _host_index: int, optional
1818
+ :return: Returns the result object.
1819
+ """ # noqa: E501
1820
+
1821
+ _param = self._test_case_service_update_test_case_serialize(
1822
+ test_case_name=test_case_name,
1823
+ test_case=test_case,
1824
+ _request_auth=_request_auth,
1825
+ _content_type=_content_type,
1826
+ _headers=_headers,
1827
+ _host_index=_host_index
1828
+ )
1829
+
1830
+ _response_types_map: Dict[str, Optional[str]] = {
1831
+ '200': "V1alphaUpdateTestCaseResponse",
1832
+ }
1833
+ response_data = self.api_client.call_api(
1834
+ *_param,
1835
+ _request_timeout=_request_timeout
1836
+ )
1837
+ return response_data.response
1838
+
1839
+
1840
+ def _test_case_service_update_test_case_serialize(
1841
+ self,
1842
+ test_case_name,
1843
+ test_case,
1844
+ _request_auth,
1845
+ _content_type,
1846
+ _headers,
1847
+ _host_index,
1848
+ ) -> RequestSerialized:
1849
+
1850
+ _host = None
1851
+
1852
+ _collection_formats: Dict[str, str] = {
1853
+ }
1854
+
1855
+ _path_params: Dict[str, str] = {}
1856
+ _query_params: List[Tuple[str, str]] = []
1857
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1858
+ _form_params: List[Tuple[str, str]] = []
1859
+ _files: Dict[str, Union[str, bytes]] = {}
1860
+ _body_params: Optional[bytes] = None
1861
+
1862
+ # process the path parameters
1863
+ if test_case_name is not None:
1864
+ _path_params['testCase.name'] = test_case_name
1865
+ # process the query parameters
1866
+ # process the header parameters
1867
+ # process the form parameters
1868
+ # process the body parameter
1869
+ if test_case is not None:
1870
+ _body_params = test_case
1871
+
1872
+
1873
+ # set the HTTP header `Accept`
1874
+ _header_params['Accept'] = self.api_client.select_header_accept(
1875
+ [
1876
+ 'application/json'
1877
+ ]
1878
+ )
1879
+
1880
+ # set the HTTP header `Content-Type`
1881
+ if _content_type:
1882
+ _header_params['Content-Type'] = _content_type
1883
+ else:
1884
+ _default_content_type = (
1885
+ self.api_client.select_header_content_type(
1886
+ [
1887
+ 'application/json'
1888
+ ]
1889
+ )
1890
+ )
1891
+ if _default_content_type is not None:
1892
+ _header_params['Content-Type'] = _default_content_type
1893
+
1894
+ # authentication setting
1895
+ _auth_settings: List[str] = [
1896
+ ]
1897
+
1898
+ return self.api_client.param_serialize(
1899
+ method='PATCH',
1900
+ resource_path='/v1alpha/{testCase.name}',
1901
+ path_params=_path_params,
1902
+ query_params=_query_params,
1903
+ header_params=_header_params,
1904
+ body=_body_params,
1905
+ post_params=_form_params,
1906
+ files=_files,
1907
+ auth_settings=_auth_settings,
1908
+ collection_formats=_collection_formats,
1909
+ _host=_host,
1910
+ _request_auth=_request_auth
1911
+ )
1912
+
1913
+