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,2712 @@
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, StrictBool, StrictInt, 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_to_update import RequiredTheTestToUpdate
23
+ from eval_studio_client.api.models.test_service_perturb_test_request import TestServicePerturbTestRequest
24
+ from eval_studio_client.api.models.v1alpha_batch_delete_tests_request import V1alphaBatchDeleteTestsRequest
25
+ from eval_studio_client.api.models.v1alpha_batch_delete_tests_response import V1alphaBatchDeleteTestsResponse
26
+ from eval_studio_client.api.models.v1alpha_batch_get_tests_response import V1alphaBatchGetTestsResponse
27
+ from eval_studio_client.api.models.v1alpha_batch_import_tests_request import V1alphaBatchImportTestsRequest
28
+ from eval_studio_client.api.models.v1alpha_batch_import_tests_response import V1alphaBatchImportTestsResponse
29
+ from eval_studio_client.api.models.v1alpha_create_test_response import V1alphaCreateTestResponse
30
+ from eval_studio_client.api.models.v1alpha_delete_test_response import V1alphaDeleteTestResponse
31
+ from eval_studio_client.api.models.v1alpha_get_test_response import V1alphaGetTestResponse
32
+ from eval_studio_client.api.models.v1alpha_list_most_recent_tests_response import V1alphaListMostRecentTestsResponse
33
+ from eval_studio_client.api.models.v1alpha_list_tests_response import V1alphaListTestsResponse
34
+ from eval_studio_client.api.models.v1alpha_perturb_test_response import V1alphaPerturbTestResponse
35
+ from eval_studio_client.api.models.v1alpha_test import V1alphaTest
36
+ from eval_studio_client.api.models.v1alpha_update_test_response import V1alphaUpdateTestResponse
37
+
38
+ from eval_studio_client.api.api_client import ApiClient, RequestSerialized
39
+ from eval_studio_client.api.api_response import ApiResponse
40
+ from eval_studio_client.api.rest import RESTResponseType
41
+
42
+
43
+ class TestServiceApi:
44
+ """NOTE: This class is auto generated by OpenAPI Generator
45
+ Ref: https://openapi-generator.tech
46
+
47
+ Do not edit the class manually.
48
+ """
49
+
50
+ def __init__(self, api_client=None) -> None:
51
+ if api_client is None:
52
+ api_client = ApiClient.get_default()
53
+ self.api_client = api_client
54
+
55
+
56
+ @validate_call
57
+ def test_service_batch_delete_tests(
58
+ self,
59
+ body: V1alphaBatchDeleteTestsRequest,
60
+ _request_timeout: Union[
61
+ None,
62
+ Annotated[StrictFloat, Field(gt=0)],
63
+ Tuple[
64
+ Annotated[StrictFloat, Field(gt=0)],
65
+ Annotated[StrictFloat, Field(gt=0)]
66
+ ]
67
+ ] = None,
68
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
69
+ _content_type: Optional[StrictStr] = None,
70
+ _headers: Optional[Dict[StrictStr, Any]] = None,
71
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
72
+ ) -> V1alphaBatchDeleteTestsResponse:
73
+ """test_service_batch_delete_tests
74
+
75
+
76
+ :param body: (required)
77
+ :type body: V1alphaBatchDeleteTestsRequest
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :type _request_timeout: int, tuple(int, int), optional
83
+ :param _request_auth: set to override the auth_settings for an a single
84
+ request; this effectively ignores the
85
+ authentication in the spec for a single request.
86
+ :type _request_auth: dict, optional
87
+ :param _content_type: force content-type for the request.
88
+ :type _content_type: str, Optional
89
+ :param _headers: set to override the headers for a single
90
+ request; this effectively ignores the headers
91
+ in the spec for a single request.
92
+ :type _headers: dict, optional
93
+ :param _host_index: set to override the host_index for a single
94
+ request; this effectively ignores the host_index
95
+ in the spec for a single request.
96
+ :type _host_index: int, optional
97
+ :return: Returns the result object.
98
+ """ # noqa: E501
99
+
100
+ _param = self._test_service_batch_delete_tests_serialize(
101
+ body=body,
102
+ _request_auth=_request_auth,
103
+ _content_type=_content_type,
104
+ _headers=_headers,
105
+ _host_index=_host_index
106
+ )
107
+
108
+ _response_types_map: Dict[str, Optional[str]] = {
109
+ '200': "V1alphaBatchDeleteTestsResponse",
110
+ }
111
+ response_data = self.api_client.call_api(
112
+ *_param,
113
+ _request_timeout=_request_timeout
114
+ )
115
+ response_data.read()
116
+ return self.api_client.response_deserialize(
117
+ response_data=response_data,
118
+ response_types_map=_response_types_map,
119
+ ).data
120
+
121
+
122
+ @validate_call
123
+ def test_service_batch_delete_tests_with_http_info(
124
+ self,
125
+ body: V1alphaBatchDeleteTestsRequest,
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[V1alphaBatchDeleteTestsResponse]:
139
+ """test_service_batch_delete_tests
140
+
141
+
142
+ :param body: (required)
143
+ :type body: V1alphaBatchDeleteTestsRequest
144
+ :param _request_timeout: timeout setting for this request. If one
145
+ number provided, it will be total request
146
+ timeout. It can also be a pair (tuple) of
147
+ (connection, read) timeouts.
148
+ :type _request_timeout: int, tuple(int, int), optional
149
+ :param _request_auth: set to override the auth_settings for an a single
150
+ request; this effectively ignores the
151
+ authentication in the spec for a single request.
152
+ :type _request_auth: dict, optional
153
+ :param _content_type: force content-type for the request.
154
+ :type _content_type: str, Optional
155
+ :param _headers: set to override the headers for a single
156
+ request; this effectively ignores the headers
157
+ in the spec for a single request.
158
+ :type _headers: dict, optional
159
+ :param _host_index: set to override the host_index for a single
160
+ request; this effectively ignores the host_index
161
+ in the spec for a single request.
162
+ :type _host_index: int, optional
163
+ :return: Returns the result object.
164
+ """ # noqa: E501
165
+
166
+ _param = self._test_service_batch_delete_tests_serialize(
167
+ body=body,
168
+ _request_auth=_request_auth,
169
+ _content_type=_content_type,
170
+ _headers=_headers,
171
+ _host_index=_host_index
172
+ )
173
+
174
+ _response_types_map: Dict[str, Optional[str]] = {
175
+ '200': "V1alphaBatchDeleteTestsResponse",
176
+ }
177
+ response_data = self.api_client.call_api(
178
+ *_param,
179
+ _request_timeout=_request_timeout
180
+ )
181
+ response_data.read()
182
+ return self.api_client.response_deserialize(
183
+ response_data=response_data,
184
+ response_types_map=_response_types_map,
185
+ )
186
+
187
+
188
+ @validate_call
189
+ def test_service_batch_delete_tests_without_preload_content(
190
+ self,
191
+ body: V1alphaBatchDeleteTestsRequest,
192
+ _request_timeout: Union[
193
+ None,
194
+ Annotated[StrictFloat, Field(gt=0)],
195
+ Tuple[
196
+ Annotated[StrictFloat, Field(gt=0)],
197
+ Annotated[StrictFloat, Field(gt=0)]
198
+ ]
199
+ ] = None,
200
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
201
+ _content_type: Optional[StrictStr] = None,
202
+ _headers: Optional[Dict[StrictStr, Any]] = None,
203
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
204
+ ) -> RESTResponseType:
205
+ """test_service_batch_delete_tests
206
+
207
+
208
+ :param body: (required)
209
+ :type body: V1alphaBatchDeleteTestsRequest
210
+ :param _request_timeout: timeout setting for this request. If one
211
+ number provided, it will be total request
212
+ timeout. It can also be a pair (tuple) of
213
+ (connection, read) timeouts.
214
+ :type _request_timeout: int, tuple(int, int), optional
215
+ :param _request_auth: set to override the auth_settings for an a single
216
+ request; this effectively ignores the
217
+ authentication in the spec for a single request.
218
+ :type _request_auth: dict, optional
219
+ :param _content_type: force content-type for the request.
220
+ :type _content_type: str, Optional
221
+ :param _headers: set to override the headers for a single
222
+ request; this effectively ignores the headers
223
+ in the spec for a single request.
224
+ :type _headers: dict, optional
225
+ :param _host_index: set to override the host_index for a single
226
+ request; this effectively ignores the host_index
227
+ in the spec for a single request.
228
+ :type _host_index: int, optional
229
+ :return: Returns the result object.
230
+ """ # noqa: E501
231
+
232
+ _param = self._test_service_batch_delete_tests_serialize(
233
+ body=body,
234
+ _request_auth=_request_auth,
235
+ _content_type=_content_type,
236
+ _headers=_headers,
237
+ _host_index=_host_index
238
+ )
239
+
240
+ _response_types_map: Dict[str, Optional[str]] = {
241
+ '200': "V1alphaBatchDeleteTestsResponse",
242
+ }
243
+ response_data = self.api_client.call_api(
244
+ *_param,
245
+ _request_timeout=_request_timeout
246
+ )
247
+ return response_data.response
248
+
249
+
250
+ def _test_service_batch_delete_tests_serialize(
251
+ self,
252
+ body,
253
+ _request_auth,
254
+ _content_type,
255
+ _headers,
256
+ _host_index,
257
+ ) -> RequestSerialized:
258
+
259
+ _host = None
260
+
261
+ _collection_formats: Dict[str, str] = {
262
+ }
263
+
264
+ _path_params: Dict[str, str] = {}
265
+ _query_params: List[Tuple[str, str]] = []
266
+ _header_params: Dict[str, Optional[str]] = _headers or {}
267
+ _form_params: List[Tuple[str, str]] = []
268
+ _files: Dict[str, Union[str, bytes]] = {}
269
+ _body_params: Optional[bytes] = None
270
+
271
+ # process the path parameters
272
+ # process the query parameters
273
+ # process the header parameters
274
+ # process the form parameters
275
+ # process the body parameter
276
+ if body is not None:
277
+ _body_params = body
278
+
279
+
280
+ # set the HTTP header `Accept`
281
+ _header_params['Accept'] = self.api_client.select_header_accept(
282
+ [
283
+ 'application/json'
284
+ ]
285
+ )
286
+
287
+ # set the HTTP header `Content-Type`
288
+ if _content_type:
289
+ _header_params['Content-Type'] = _content_type
290
+ else:
291
+ _default_content_type = (
292
+ self.api_client.select_header_content_type(
293
+ [
294
+ 'application/json'
295
+ ]
296
+ )
297
+ )
298
+ if _default_content_type is not None:
299
+ _header_params['Content-Type'] = _default_content_type
300
+
301
+ # authentication setting
302
+ _auth_settings: List[str] = [
303
+ ]
304
+
305
+ return self.api_client.param_serialize(
306
+ method='POST',
307
+ resource_path='/v1alpha/tests:batchDelete',
308
+ path_params=_path_params,
309
+ query_params=_query_params,
310
+ header_params=_header_params,
311
+ body=_body_params,
312
+ post_params=_form_params,
313
+ files=_files,
314
+ auth_settings=_auth_settings,
315
+ collection_formats=_collection_formats,
316
+ _host=_host,
317
+ _request_auth=_request_auth
318
+ )
319
+
320
+
321
+
322
+
323
+ @validate_call
324
+ def test_service_batch_get_tests(
325
+ self,
326
+ names: Annotated[Optional[List[StrictStr]], Field(description="The names of the Tests to retrieve. A maximum of 1000 can be specified.")] = None,
327
+ _request_timeout: Union[
328
+ None,
329
+ Annotated[StrictFloat, Field(gt=0)],
330
+ Tuple[
331
+ Annotated[StrictFloat, Field(gt=0)],
332
+ Annotated[StrictFloat, Field(gt=0)]
333
+ ]
334
+ ] = None,
335
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
336
+ _content_type: Optional[StrictStr] = None,
337
+ _headers: Optional[Dict[StrictStr, Any]] = None,
338
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
339
+ ) -> V1alphaBatchGetTestsResponse:
340
+ """test_service_batch_get_tests
341
+
342
+
343
+ :param names: The names of the Tests to retrieve. A maximum of 1000 can be specified.
344
+ :type names: List[str]
345
+ :param _request_timeout: timeout setting for this request. If one
346
+ number provided, it will be total request
347
+ timeout. It can also be a pair (tuple) of
348
+ (connection, read) timeouts.
349
+ :type _request_timeout: int, tuple(int, int), optional
350
+ :param _request_auth: set to override the auth_settings for an a single
351
+ request; this effectively ignores the
352
+ authentication in the spec for a single request.
353
+ :type _request_auth: dict, optional
354
+ :param _content_type: force content-type for the request.
355
+ :type _content_type: str, Optional
356
+ :param _headers: set to override the headers for a single
357
+ request; this effectively ignores the headers
358
+ in the spec for a single request.
359
+ :type _headers: dict, optional
360
+ :param _host_index: set to override the host_index for a single
361
+ request; this effectively ignores the host_index
362
+ in the spec for a single request.
363
+ :type _host_index: int, optional
364
+ :return: Returns the result object.
365
+ """ # noqa: E501
366
+
367
+ _param = self._test_service_batch_get_tests_serialize(
368
+ names=names,
369
+ _request_auth=_request_auth,
370
+ _content_type=_content_type,
371
+ _headers=_headers,
372
+ _host_index=_host_index
373
+ )
374
+
375
+ _response_types_map: Dict[str, Optional[str]] = {
376
+ '200': "V1alphaBatchGetTestsResponse",
377
+ }
378
+ response_data = self.api_client.call_api(
379
+ *_param,
380
+ _request_timeout=_request_timeout
381
+ )
382
+ response_data.read()
383
+ return self.api_client.response_deserialize(
384
+ response_data=response_data,
385
+ response_types_map=_response_types_map,
386
+ ).data
387
+
388
+
389
+ @validate_call
390
+ def test_service_batch_get_tests_with_http_info(
391
+ self,
392
+ names: Annotated[Optional[List[StrictStr]], Field(description="The names of the Tests to retrieve. A maximum of 1000 can be specified.")] = None,
393
+ _request_timeout: Union[
394
+ None,
395
+ Annotated[StrictFloat, Field(gt=0)],
396
+ Tuple[
397
+ Annotated[StrictFloat, Field(gt=0)],
398
+ Annotated[StrictFloat, Field(gt=0)]
399
+ ]
400
+ ] = None,
401
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
402
+ _content_type: Optional[StrictStr] = None,
403
+ _headers: Optional[Dict[StrictStr, Any]] = None,
404
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
405
+ ) -> ApiResponse[V1alphaBatchGetTestsResponse]:
406
+ """test_service_batch_get_tests
407
+
408
+
409
+ :param names: The names of the Tests to retrieve. A maximum of 1000 can be specified.
410
+ :type names: List[str]
411
+ :param _request_timeout: timeout setting for this request. If one
412
+ number provided, it will be total request
413
+ timeout. It can also be a pair (tuple) of
414
+ (connection, read) timeouts.
415
+ :type _request_timeout: int, tuple(int, int), optional
416
+ :param _request_auth: set to override the auth_settings for an a single
417
+ request; this effectively ignores the
418
+ authentication in the spec for a single request.
419
+ :type _request_auth: dict, optional
420
+ :param _content_type: force content-type for the request.
421
+ :type _content_type: str, Optional
422
+ :param _headers: set to override the headers for a single
423
+ request; this effectively ignores the headers
424
+ in the spec for a single request.
425
+ :type _headers: dict, optional
426
+ :param _host_index: set to override the host_index for a single
427
+ request; this effectively ignores the host_index
428
+ in the spec for a single request.
429
+ :type _host_index: int, optional
430
+ :return: Returns the result object.
431
+ """ # noqa: E501
432
+
433
+ _param = self._test_service_batch_get_tests_serialize(
434
+ names=names,
435
+ _request_auth=_request_auth,
436
+ _content_type=_content_type,
437
+ _headers=_headers,
438
+ _host_index=_host_index
439
+ )
440
+
441
+ _response_types_map: Dict[str, Optional[str]] = {
442
+ '200': "V1alphaBatchGetTestsResponse",
443
+ }
444
+ response_data = self.api_client.call_api(
445
+ *_param,
446
+ _request_timeout=_request_timeout
447
+ )
448
+ response_data.read()
449
+ return self.api_client.response_deserialize(
450
+ response_data=response_data,
451
+ response_types_map=_response_types_map,
452
+ )
453
+
454
+
455
+ @validate_call
456
+ def test_service_batch_get_tests_without_preload_content(
457
+ self,
458
+ names: Annotated[Optional[List[StrictStr]], Field(description="The names of the Tests to retrieve. A maximum of 1000 can be specified.")] = None,
459
+ _request_timeout: Union[
460
+ None,
461
+ Annotated[StrictFloat, Field(gt=0)],
462
+ Tuple[
463
+ Annotated[StrictFloat, Field(gt=0)],
464
+ Annotated[StrictFloat, Field(gt=0)]
465
+ ]
466
+ ] = None,
467
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
468
+ _content_type: Optional[StrictStr] = None,
469
+ _headers: Optional[Dict[StrictStr, Any]] = None,
470
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
471
+ ) -> RESTResponseType:
472
+ """test_service_batch_get_tests
473
+
474
+
475
+ :param names: The names of the Tests to retrieve. A maximum of 1000 can be specified.
476
+ :type names: List[str]
477
+ :param _request_timeout: timeout setting for this request. If one
478
+ number provided, it will be total request
479
+ timeout. It can also be a pair (tuple) of
480
+ (connection, read) timeouts.
481
+ :type _request_timeout: int, tuple(int, int), optional
482
+ :param _request_auth: set to override the auth_settings for an a single
483
+ request; this effectively ignores the
484
+ authentication in the spec for a single request.
485
+ :type _request_auth: dict, optional
486
+ :param _content_type: force content-type for the request.
487
+ :type _content_type: str, Optional
488
+ :param _headers: set to override the headers for a single
489
+ request; this effectively ignores the headers
490
+ in the spec for a single request.
491
+ :type _headers: dict, optional
492
+ :param _host_index: set to override the host_index for a single
493
+ request; this effectively ignores the host_index
494
+ in the spec for a single request.
495
+ :type _host_index: int, optional
496
+ :return: Returns the result object.
497
+ """ # noqa: E501
498
+
499
+ _param = self._test_service_batch_get_tests_serialize(
500
+ names=names,
501
+ _request_auth=_request_auth,
502
+ _content_type=_content_type,
503
+ _headers=_headers,
504
+ _host_index=_host_index
505
+ )
506
+
507
+ _response_types_map: Dict[str, Optional[str]] = {
508
+ '200': "V1alphaBatchGetTestsResponse",
509
+ }
510
+ response_data = self.api_client.call_api(
511
+ *_param,
512
+ _request_timeout=_request_timeout
513
+ )
514
+ return response_data.response
515
+
516
+
517
+ def _test_service_batch_get_tests_serialize(
518
+ self,
519
+ names,
520
+ _request_auth,
521
+ _content_type,
522
+ _headers,
523
+ _host_index,
524
+ ) -> RequestSerialized:
525
+
526
+ _host = None
527
+
528
+ _collection_formats: Dict[str, str] = {
529
+ 'names': 'multi',
530
+ }
531
+
532
+ _path_params: Dict[str, str] = {}
533
+ _query_params: List[Tuple[str, str]] = []
534
+ _header_params: Dict[str, Optional[str]] = _headers or {}
535
+ _form_params: List[Tuple[str, str]] = []
536
+ _files: Dict[str, Union[str, bytes]] = {}
537
+ _body_params: Optional[bytes] = None
538
+
539
+ # process the path parameters
540
+ # process the query parameters
541
+ if names is not None:
542
+
543
+ _query_params.append(('names', names))
544
+
545
+ # process the header parameters
546
+ # process the form parameters
547
+ # process the body parameter
548
+
549
+
550
+ # set the HTTP header `Accept`
551
+ _header_params['Accept'] = self.api_client.select_header_accept(
552
+ [
553
+ 'application/json'
554
+ ]
555
+ )
556
+
557
+
558
+ # authentication setting
559
+ _auth_settings: List[str] = [
560
+ ]
561
+
562
+ return self.api_client.param_serialize(
563
+ method='GET',
564
+ resource_path='/v1alpha/tests:batchGet',
565
+ path_params=_path_params,
566
+ query_params=_query_params,
567
+ header_params=_header_params,
568
+ body=_body_params,
569
+ post_params=_form_params,
570
+ files=_files,
571
+ auth_settings=_auth_settings,
572
+ collection_formats=_collection_formats,
573
+ _host=_host,
574
+ _request_auth=_request_auth
575
+ )
576
+
577
+
578
+
579
+
580
+ @validate_call
581
+ def test_service_batch_import_tests(
582
+ self,
583
+ body: V1alphaBatchImportTestsRequest,
584
+ _request_timeout: Union[
585
+ None,
586
+ Annotated[StrictFloat, Field(gt=0)],
587
+ Tuple[
588
+ Annotated[StrictFloat, Field(gt=0)],
589
+ Annotated[StrictFloat, Field(gt=0)]
590
+ ]
591
+ ] = None,
592
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
593
+ _content_type: Optional[StrictStr] = None,
594
+ _headers: Optional[Dict[StrictStr, Any]] = None,
595
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
596
+ ) -> V1alphaBatchImportTestsResponse:
597
+ """test_service_batch_import_tests
598
+
599
+
600
+ :param body: (required)
601
+ :type body: V1alphaBatchImportTestsRequest
602
+ :param _request_timeout: timeout setting for this request. If one
603
+ number provided, it will be total request
604
+ timeout. It can also be a pair (tuple) of
605
+ (connection, read) timeouts.
606
+ :type _request_timeout: int, tuple(int, int), optional
607
+ :param _request_auth: set to override the auth_settings for an a single
608
+ request; this effectively ignores the
609
+ authentication in the spec for a single request.
610
+ :type _request_auth: dict, optional
611
+ :param _content_type: force content-type for the request.
612
+ :type _content_type: str, Optional
613
+ :param _headers: set to override the headers for a single
614
+ request; this effectively ignores the headers
615
+ in the spec for a single request.
616
+ :type _headers: dict, optional
617
+ :param _host_index: set to override the host_index for a single
618
+ request; this effectively ignores the host_index
619
+ in the spec for a single request.
620
+ :type _host_index: int, optional
621
+ :return: Returns the result object.
622
+ """ # noqa: E501
623
+
624
+ _param = self._test_service_batch_import_tests_serialize(
625
+ body=body,
626
+ _request_auth=_request_auth,
627
+ _content_type=_content_type,
628
+ _headers=_headers,
629
+ _host_index=_host_index
630
+ )
631
+
632
+ _response_types_map: Dict[str, Optional[str]] = {
633
+ '200': "V1alphaBatchImportTestsResponse",
634
+ }
635
+ response_data = self.api_client.call_api(
636
+ *_param,
637
+ _request_timeout=_request_timeout
638
+ )
639
+ response_data.read()
640
+ return self.api_client.response_deserialize(
641
+ response_data=response_data,
642
+ response_types_map=_response_types_map,
643
+ ).data
644
+
645
+
646
+ @validate_call
647
+ def test_service_batch_import_tests_with_http_info(
648
+ self,
649
+ body: V1alphaBatchImportTestsRequest,
650
+ _request_timeout: Union[
651
+ None,
652
+ Annotated[StrictFloat, Field(gt=0)],
653
+ Tuple[
654
+ Annotated[StrictFloat, Field(gt=0)],
655
+ Annotated[StrictFloat, Field(gt=0)]
656
+ ]
657
+ ] = None,
658
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
659
+ _content_type: Optional[StrictStr] = None,
660
+ _headers: Optional[Dict[StrictStr, Any]] = None,
661
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
662
+ ) -> ApiResponse[V1alphaBatchImportTestsResponse]:
663
+ """test_service_batch_import_tests
664
+
665
+
666
+ :param body: (required)
667
+ :type body: V1alphaBatchImportTestsRequest
668
+ :param _request_timeout: timeout setting for this request. If one
669
+ number provided, it will be total request
670
+ timeout. It can also be a pair (tuple) of
671
+ (connection, read) timeouts.
672
+ :type _request_timeout: int, tuple(int, int), optional
673
+ :param _request_auth: set to override the auth_settings for an a single
674
+ request; this effectively ignores the
675
+ authentication in the spec for a single request.
676
+ :type _request_auth: dict, optional
677
+ :param _content_type: force content-type for the request.
678
+ :type _content_type: str, Optional
679
+ :param _headers: set to override the headers for a single
680
+ request; this effectively ignores the headers
681
+ in the spec for a single request.
682
+ :type _headers: dict, optional
683
+ :param _host_index: set to override the host_index for a single
684
+ request; this effectively ignores the host_index
685
+ in the spec for a single request.
686
+ :type _host_index: int, optional
687
+ :return: Returns the result object.
688
+ """ # noqa: E501
689
+
690
+ _param = self._test_service_batch_import_tests_serialize(
691
+ body=body,
692
+ _request_auth=_request_auth,
693
+ _content_type=_content_type,
694
+ _headers=_headers,
695
+ _host_index=_host_index
696
+ )
697
+
698
+ _response_types_map: Dict[str, Optional[str]] = {
699
+ '200': "V1alphaBatchImportTestsResponse",
700
+ }
701
+ response_data = self.api_client.call_api(
702
+ *_param,
703
+ _request_timeout=_request_timeout
704
+ )
705
+ response_data.read()
706
+ return self.api_client.response_deserialize(
707
+ response_data=response_data,
708
+ response_types_map=_response_types_map,
709
+ )
710
+
711
+
712
+ @validate_call
713
+ def test_service_batch_import_tests_without_preload_content(
714
+ self,
715
+ body: V1alphaBatchImportTestsRequest,
716
+ _request_timeout: Union[
717
+ None,
718
+ Annotated[StrictFloat, Field(gt=0)],
719
+ Tuple[
720
+ Annotated[StrictFloat, Field(gt=0)],
721
+ Annotated[StrictFloat, Field(gt=0)]
722
+ ]
723
+ ] = None,
724
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
725
+ _content_type: Optional[StrictStr] = None,
726
+ _headers: Optional[Dict[StrictStr, Any]] = None,
727
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
728
+ ) -> RESTResponseType:
729
+ """test_service_batch_import_tests
730
+
731
+
732
+ :param body: (required)
733
+ :type body: V1alphaBatchImportTestsRequest
734
+ :param _request_timeout: timeout setting for this request. If one
735
+ number provided, it will be total request
736
+ timeout. It can also be a pair (tuple) of
737
+ (connection, read) timeouts.
738
+ :type _request_timeout: int, tuple(int, int), optional
739
+ :param _request_auth: set to override the auth_settings for an a single
740
+ request; this effectively ignores the
741
+ authentication in the spec for a single request.
742
+ :type _request_auth: dict, optional
743
+ :param _content_type: force content-type for the request.
744
+ :type _content_type: str, Optional
745
+ :param _headers: set to override the headers for a single
746
+ request; this effectively ignores the headers
747
+ in the spec for a single request.
748
+ :type _headers: dict, optional
749
+ :param _host_index: set to override the host_index for a single
750
+ request; this effectively ignores the host_index
751
+ in the spec for a single request.
752
+ :type _host_index: int, optional
753
+ :return: Returns the result object.
754
+ """ # noqa: E501
755
+
756
+ _param = self._test_service_batch_import_tests_serialize(
757
+ body=body,
758
+ _request_auth=_request_auth,
759
+ _content_type=_content_type,
760
+ _headers=_headers,
761
+ _host_index=_host_index
762
+ )
763
+
764
+ _response_types_map: Dict[str, Optional[str]] = {
765
+ '200': "V1alphaBatchImportTestsResponse",
766
+ }
767
+ response_data = self.api_client.call_api(
768
+ *_param,
769
+ _request_timeout=_request_timeout
770
+ )
771
+ return response_data.response
772
+
773
+
774
+ def _test_service_batch_import_tests_serialize(
775
+ self,
776
+ body,
777
+ _request_auth,
778
+ _content_type,
779
+ _headers,
780
+ _host_index,
781
+ ) -> RequestSerialized:
782
+
783
+ _host = None
784
+
785
+ _collection_formats: Dict[str, str] = {
786
+ }
787
+
788
+ _path_params: Dict[str, str] = {}
789
+ _query_params: List[Tuple[str, str]] = []
790
+ _header_params: Dict[str, Optional[str]] = _headers or {}
791
+ _form_params: List[Tuple[str, str]] = []
792
+ _files: Dict[str, Union[str, bytes]] = {}
793
+ _body_params: Optional[bytes] = None
794
+
795
+ # process the path parameters
796
+ # process the query parameters
797
+ # process the header parameters
798
+ # process the form parameters
799
+ # process the body parameter
800
+ if body is not None:
801
+ _body_params = body
802
+
803
+
804
+ # set the HTTP header `Accept`
805
+ _header_params['Accept'] = self.api_client.select_header_accept(
806
+ [
807
+ 'application/json'
808
+ ]
809
+ )
810
+
811
+ # set the HTTP header `Content-Type`
812
+ if _content_type:
813
+ _header_params['Content-Type'] = _content_type
814
+ else:
815
+ _default_content_type = (
816
+ self.api_client.select_header_content_type(
817
+ [
818
+ 'application/json'
819
+ ]
820
+ )
821
+ )
822
+ if _default_content_type is not None:
823
+ _header_params['Content-Type'] = _default_content_type
824
+
825
+ # authentication setting
826
+ _auth_settings: List[str] = [
827
+ ]
828
+
829
+ return self.api_client.param_serialize(
830
+ method='POST',
831
+ resource_path='/v1alpha/tests:batchImport',
832
+ path_params=_path_params,
833
+ query_params=_query_params,
834
+ header_params=_header_params,
835
+ body=_body_params,
836
+ post_params=_form_params,
837
+ files=_files,
838
+ auth_settings=_auth_settings,
839
+ collection_formats=_collection_formats,
840
+ _host=_host,
841
+ _request_auth=_request_auth
842
+ )
843
+
844
+
845
+
846
+
847
+ @validate_call
848
+ def test_service_create_test(
849
+ self,
850
+ test: Annotated[V1alphaTest, Field(description="The Test to create.")],
851
+ _request_timeout: Union[
852
+ None,
853
+ Annotated[StrictFloat, Field(gt=0)],
854
+ Tuple[
855
+ Annotated[StrictFloat, Field(gt=0)],
856
+ Annotated[StrictFloat, Field(gt=0)]
857
+ ]
858
+ ] = None,
859
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
860
+ _content_type: Optional[StrictStr] = None,
861
+ _headers: Optional[Dict[StrictStr, Any]] = None,
862
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
863
+ ) -> V1alphaCreateTestResponse:
864
+ """test_service_create_test
865
+
866
+
867
+ :param test: The Test to create. (required)
868
+ :type test: V1alphaTest
869
+ :param _request_timeout: timeout setting for this request. If one
870
+ number provided, it will be total request
871
+ timeout. It can also be a pair (tuple) of
872
+ (connection, read) timeouts.
873
+ :type _request_timeout: int, tuple(int, int), optional
874
+ :param _request_auth: set to override the auth_settings for an a single
875
+ request; this effectively ignores the
876
+ authentication in the spec for a single request.
877
+ :type _request_auth: dict, optional
878
+ :param _content_type: force content-type for the request.
879
+ :type _content_type: str, Optional
880
+ :param _headers: set to override the headers for a single
881
+ request; this effectively ignores the headers
882
+ in the spec for a single request.
883
+ :type _headers: dict, optional
884
+ :param _host_index: set to override the host_index for a single
885
+ request; this effectively ignores the host_index
886
+ in the spec for a single request.
887
+ :type _host_index: int, optional
888
+ :return: Returns the result object.
889
+ """ # noqa: E501
890
+
891
+ _param = self._test_service_create_test_serialize(
892
+ test=test,
893
+ _request_auth=_request_auth,
894
+ _content_type=_content_type,
895
+ _headers=_headers,
896
+ _host_index=_host_index
897
+ )
898
+
899
+ _response_types_map: Dict[str, Optional[str]] = {
900
+ '200': "V1alphaCreateTestResponse",
901
+ }
902
+ response_data = self.api_client.call_api(
903
+ *_param,
904
+ _request_timeout=_request_timeout
905
+ )
906
+ response_data.read()
907
+ return self.api_client.response_deserialize(
908
+ response_data=response_data,
909
+ response_types_map=_response_types_map,
910
+ ).data
911
+
912
+
913
+ @validate_call
914
+ def test_service_create_test_with_http_info(
915
+ self,
916
+ test: Annotated[V1alphaTest, Field(description="The Test to create.")],
917
+ _request_timeout: Union[
918
+ None,
919
+ Annotated[StrictFloat, Field(gt=0)],
920
+ Tuple[
921
+ Annotated[StrictFloat, Field(gt=0)],
922
+ Annotated[StrictFloat, Field(gt=0)]
923
+ ]
924
+ ] = None,
925
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
926
+ _content_type: Optional[StrictStr] = None,
927
+ _headers: Optional[Dict[StrictStr, Any]] = None,
928
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
929
+ ) -> ApiResponse[V1alphaCreateTestResponse]:
930
+ """test_service_create_test
931
+
932
+
933
+ :param test: The Test to create. (required)
934
+ :type test: V1alphaTest
935
+ :param _request_timeout: timeout setting for this request. If one
936
+ number provided, it will be total request
937
+ timeout. It can also be a pair (tuple) of
938
+ (connection, read) timeouts.
939
+ :type _request_timeout: int, tuple(int, int), optional
940
+ :param _request_auth: set to override the auth_settings for an a single
941
+ request; this effectively ignores the
942
+ authentication in the spec for a single request.
943
+ :type _request_auth: dict, optional
944
+ :param _content_type: force content-type for the request.
945
+ :type _content_type: str, Optional
946
+ :param _headers: set to override the headers for a single
947
+ request; this effectively ignores the headers
948
+ in the spec for a single request.
949
+ :type _headers: dict, optional
950
+ :param _host_index: set to override the host_index for a single
951
+ request; this effectively ignores the host_index
952
+ in the spec for a single request.
953
+ :type _host_index: int, optional
954
+ :return: Returns the result object.
955
+ """ # noqa: E501
956
+
957
+ _param = self._test_service_create_test_serialize(
958
+ test=test,
959
+ _request_auth=_request_auth,
960
+ _content_type=_content_type,
961
+ _headers=_headers,
962
+ _host_index=_host_index
963
+ )
964
+
965
+ _response_types_map: Dict[str, Optional[str]] = {
966
+ '200': "V1alphaCreateTestResponse",
967
+ }
968
+ response_data = self.api_client.call_api(
969
+ *_param,
970
+ _request_timeout=_request_timeout
971
+ )
972
+ response_data.read()
973
+ return self.api_client.response_deserialize(
974
+ response_data=response_data,
975
+ response_types_map=_response_types_map,
976
+ )
977
+
978
+
979
+ @validate_call
980
+ def test_service_create_test_without_preload_content(
981
+ self,
982
+ test: Annotated[V1alphaTest, Field(description="The Test to create.")],
983
+ _request_timeout: Union[
984
+ None,
985
+ Annotated[StrictFloat, Field(gt=0)],
986
+ Tuple[
987
+ Annotated[StrictFloat, Field(gt=0)],
988
+ Annotated[StrictFloat, Field(gt=0)]
989
+ ]
990
+ ] = None,
991
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
992
+ _content_type: Optional[StrictStr] = None,
993
+ _headers: Optional[Dict[StrictStr, Any]] = None,
994
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
995
+ ) -> RESTResponseType:
996
+ """test_service_create_test
997
+
998
+
999
+ :param test: The Test to create. (required)
1000
+ :type test: V1alphaTest
1001
+ :param _request_timeout: timeout setting for this request. If one
1002
+ number provided, it will be total request
1003
+ timeout. It can also be a pair (tuple) of
1004
+ (connection, read) timeouts.
1005
+ :type _request_timeout: int, tuple(int, int), optional
1006
+ :param _request_auth: set to override the auth_settings for an a single
1007
+ request; this effectively ignores the
1008
+ authentication in the spec for a single request.
1009
+ :type _request_auth: dict, optional
1010
+ :param _content_type: force content-type for the request.
1011
+ :type _content_type: str, Optional
1012
+ :param _headers: set to override the headers for a single
1013
+ request; this effectively ignores the headers
1014
+ in the spec for a single request.
1015
+ :type _headers: dict, optional
1016
+ :param _host_index: set to override the host_index for a single
1017
+ request; this effectively ignores the host_index
1018
+ in the spec for a single request.
1019
+ :type _host_index: int, optional
1020
+ :return: Returns the result object.
1021
+ """ # noqa: E501
1022
+
1023
+ _param = self._test_service_create_test_serialize(
1024
+ test=test,
1025
+ _request_auth=_request_auth,
1026
+ _content_type=_content_type,
1027
+ _headers=_headers,
1028
+ _host_index=_host_index
1029
+ )
1030
+
1031
+ _response_types_map: Dict[str, Optional[str]] = {
1032
+ '200': "V1alphaCreateTestResponse",
1033
+ }
1034
+ response_data = self.api_client.call_api(
1035
+ *_param,
1036
+ _request_timeout=_request_timeout
1037
+ )
1038
+ return response_data.response
1039
+
1040
+
1041
+ def _test_service_create_test_serialize(
1042
+ self,
1043
+ test,
1044
+ _request_auth,
1045
+ _content_type,
1046
+ _headers,
1047
+ _host_index,
1048
+ ) -> RequestSerialized:
1049
+
1050
+ _host = None
1051
+
1052
+ _collection_formats: Dict[str, str] = {
1053
+ }
1054
+
1055
+ _path_params: Dict[str, str] = {}
1056
+ _query_params: List[Tuple[str, str]] = []
1057
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1058
+ _form_params: List[Tuple[str, str]] = []
1059
+ _files: Dict[str, Union[str, bytes]] = {}
1060
+ _body_params: Optional[bytes] = None
1061
+
1062
+ # process the path parameters
1063
+ # process the query parameters
1064
+ # process the header parameters
1065
+ # process the form parameters
1066
+ # process the body parameter
1067
+ if test is not None:
1068
+ _body_params = test
1069
+
1070
+
1071
+ # set the HTTP header `Accept`
1072
+ _header_params['Accept'] = self.api_client.select_header_accept(
1073
+ [
1074
+ 'application/json'
1075
+ ]
1076
+ )
1077
+
1078
+ # set the HTTP header `Content-Type`
1079
+ if _content_type:
1080
+ _header_params['Content-Type'] = _content_type
1081
+ else:
1082
+ _default_content_type = (
1083
+ self.api_client.select_header_content_type(
1084
+ [
1085
+ 'application/json'
1086
+ ]
1087
+ )
1088
+ )
1089
+ if _default_content_type is not None:
1090
+ _header_params['Content-Type'] = _default_content_type
1091
+
1092
+ # authentication setting
1093
+ _auth_settings: List[str] = [
1094
+ ]
1095
+
1096
+ return self.api_client.param_serialize(
1097
+ method='POST',
1098
+ resource_path='/v1alpha/tests',
1099
+ path_params=_path_params,
1100
+ query_params=_query_params,
1101
+ header_params=_header_params,
1102
+ body=_body_params,
1103
+ post_params=_form_params,
1104
+ files=_files,
1105
+ auth_settings=_auth_settings,
1106
+ collection_formats=_collection_formats,
1107
+ _host=_host,
1108
+ _request_auth=_request_auth
1109
+ )
1110
+
1111
+
1112
+
1113
+
1114
+ @validate_call
1115
+ def test_service_delete_test(
1116
+ self,
1117
+ name_6: Annotated[str, Field(strict=True, description="Required. The name of the Test to delete.")],
1118
+ force: Annotated[Optional[StrictBool], Field(description="If set to true, any TestCases associated with this Test will also be deleted. Otherwise, if any TestCases are associated with this Test, the request will fail.")] = None,
1119
+ _request_timeout: Union[
1120
+ None,
1121
+ Annotated[StrictFloat, Field(gt=0)],
1122
+ Tuple[
1123
+ Annotated[StrictFloat, Field(gt=0)],
1124
+ Annotated[StrictFloat, Field(gt=0)]
1125
+ ]
1126
+ ] = None,
1127
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1128
+ _content_type: Optional[StrictStr] = None,
1129
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1130
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1131
+ ) -> V1alphaDeleteTestResponse:
1132
+ """test_service_delete_test
1133
+
1134
+
1135
+ :param name_6: Required. The name of the Test to delete. (required)
1136
+ :type name_6: str
1137
+ :param force: If set to true, any TestCases associated with this Test will also be deleted. Otherwise, if any TestCases are associated with this Test, the request will fail.
1138
+ :type force: bool
1139
+ :param _request_timeout: timeout setting for this request. If one
1140
+ number provided, it will be total request
1141
+ timeout. It can also be a pair (tuple) of
1142
+ (connection, read) timeouts.
1143
+ :type _request_timeout: int, tuple(int, int), optional
1144
+ :param _request_auth: set to override the auth_settings for an a single
1145
+ request; this effectively ignores the
1146
+ authentication in the spec for a single request.
1147
+ :type _request_auth: dict, optional
1148
+ :param _content_type: force content-type for the request.
1149
+ :type _content_type: str, Optional
1150
+ :param _headers: set to override the headers for a single
1151
+ request; this effectively ignores the headers
1152
+ in the spec for a single request.
1153
+ :type _headers: dict, optional
1154
+ :param _host_index: set to override the host_index for a single
1155
+ request; this effectively ignores the host_index
1156
+ in the spec for a single request.
1157
+ :type _host_index: int, optional
1158
+ :return: Returns the result object.
1159
+ """ # noqa: E501
1160
+
1161
+ _param = self._test_service_delete_test_serialize(
1162
+ name_6=name_6,
1163
+ force=force,
1164
+ _request_auth=_request_auth,
1165
+ _content_type=_content_type,
1166
+ _headers=_headers,
1167
+ _host_index=_host_index
1168
+ )
1169
+
1170
+ _response_types_map: Dict[str, Optional[str]] = {
1171
+ '200': "V1alphaDeleteTestResponse",
1172
+ }
1173
+ response_data = self.api_client.call_api(
1174
+ *_param,
1175
+ _request_timeout=_request_timeout
1176
+ )
1177
+ response_data.read()
1178
+ return self.api_client.response_deserialize(
1179
+ response_data=response_data,
1180
+ response_types_map=_response_types_map,
1181
+ ).data
1182
+
1183
+
1184
+ @validate_call
1185
+ def test_service_delete_test_with_http_info(
1186
+ self,
1187
+ name_6: Annotated[str, Field(strict=True, description="Required. The name of the Test to delete.")],
1188
+ force: Annotated[Optional[StrictBool], Field(description="If set to true, any TestCases associated with this Test will also be deleted. Otherwise, if any TestCases are associated with this Test, the request will fail.")] = None,
1189
+ _request_timeout: Union[
1190
+ None,
1191
+ Annotated[StrictFloat, Field(gt=0)],
1192
+ Tuple[
1193
+ Annotated[StrictFloat, Field(gt=0)],
1194
+ Annotated[StrictFloat, Field(gt=0)]
1195
+ ]
1196
+ ] = None,
1197
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1198
+ _content_type: Optional[StrictStr] = None,
1199
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1200
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1201
+ ) -> ApiResponse[V1alphaDeleteTestResponse]:
1202
+ """test_service_delete_test
1203
+
1204
+
1205
+ :param name_6: Required. The name of the Test to delete. (required)
1206
+ :type name_6: str
1207
+ :param force: If set to true, any TestCases associated with this Test will also be deleted. Otherwise, if any TestCases are associated with this Test, the request will fail.
1208
+ :type force: bool
1209
+ :param _request_timeout: timeout setting for this request. If one
1210
+ number provided, it will be total request
1211
+ timeout. It can also be a pair (tuple) of
1212
+ (connection, read) timeouts.
1213
+ :type _request_timeout: int, tuple(int, int), optional
1214
+ :param _request_auth: set to override the auth_settings for an a single
1215
+ request; this effectively ignores the
1216
+ authentication in the spec for a single request.
1217
+ :type _request_auth: dict, optional
1218
+ :param _content_type: force content-type for the request.
1219
+ :type _content_type: str, Optional
1220
+ :param _headers: set to override the headers for a single
1221
+ request; this effectively ignores the headers
1222
+ in the spec for a single request.
1223
+ :type _headers: dict, optional
1224
+ :param _host_index: set to override the host_index for a single
1225
+ request; this effectively ignores the host_index
1226
+ in the spec for a single request.
1227
+ :type _host_index: int, optional
1228
+ :return: Returns the result object.
1229
+ """ # noqa: E501
1230
+
1231
+ _param = self._test_service_delete_test_serialize(
1232
+ name_6=name_6,
1233
+ force=force,
1234
+ _request_auth=_request_auth,
1235
+ _content_type=_content_type,
1236
+ _headers=_headers,
1237
+ _host_index=_host_index
1238
+ )
1239
+
1240
+ _response_types_map: Dict[str, Optional[str]] = {
1241
+ '200': "V1alphaDeleteTestResponse",
1242
+ }
1243
+ response_data = self.api_client.call_api(
1244
+ *_param,
1245
+ _request_timeout=_request_timeout
1246
+ )
1247
+ response_data.read()
1248
+ return self.api_client.response_deserialize(
1249
+ response_data=response_data,
1250
+ response_types_map=_response_types_map,
1251
+ )
1252
+
1253
+
1254
+ @validate_call
1255
+ def test_service_delete_test_without_preload_content(
1256
+ self,
1257
+ name_6: Annotated[str, Field(strict=True, description="Required. The name of the Test to delete.")],
1258
+ force: Annotated[Optional[StrictBool], Field(description="If set to true, any TestCases associated with this Test will also be deleted. Otherwise, if any TestCases are associated with this Test, the request will fail.")] = None,
1259
+ _request_timeout: Union[
1260
+ None,
1261
+ Annotated[StrictFloat, Field(gt=0)],
1262
+ Tuple[
1263
+ Annotated[StrictFloat, Field(gt=0)],
1264
+ Annotated[StrictFloat, Field(gt=0)]
1265
+ ]
1266
+ ] = None,
1267
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1268
+ _content_type: Optional[StrictStr] = None,
1269
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1270
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1271
+ ) -> RESTResponseType:
1272
+ """test_service_delete_test
1273
+
1274
+
1275
+ :param name_6: Required. The name of the Test to delete. (required)
1276
+ :type name_6: str
1277
+ :param force: If set to true, any TestCases associated with this Test will also be deleted. Otherwise, if any TestCases are associated with this Test, the request will fail.
1278
+ :type force: bool
1279
+ :param _request_timeout: timeout setting for this request. If one
1280
+ number provided, it will be total request
1281
+ timeout. It can also be a pair (tuple) of
1282
+ (connection, read) timeouts.
1283
+ :type _request_timeout: int, tuple(int, int), optional
1284
+ :param _request_auth: set to override the auth_settings for an a single
1285
+ request; this effectively ignores the
1286
+ authentication in the spec for a single request.
1287
+ :type _request_auth: dict, optional
1288
+ :param _content_type: force content-type for the request.
1289
+ :type _content_type: str, Optional
1290
+ :param _headers: set to override the headers for a single
1291
+ request; this effectively ignores the headers
1292
+ in the spec for a single request.
1293
+ :type _headers: dict, optional
1294
+ :param _host_index: set to override the host_index for a single
1295
+ request; this effectively ignores the host_index
1296
+ in the spec for a single request.
1297
+ :type _host_index: int, optional
1298
+ :return: Returns the result object.
1299
+ """ # noqa: E501
1300
+
1301
+ _param = self._test_service_delete_test_serialize(
1302
+ name_6=name_6,
1303
+ force=force,
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': "V1alphaDeleteTestResponse",
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_service_delete_test_serialize(
1321
+ self,
1322
+ name_6,
1323
+ force,
1324
+ _request_auth,
1325
+ _content_type,
1326
+ _headers,
1327
+ _host_index,
1328
+ ) -> RequestSerialized:
1329
+
1330
+ _host = None
1331
+
1332
+ _collection_formats: Dict[str, str] = {
1333
+ }
1334
+
1335
+ _path_params: Dict[str, str] = {}
1336
+ _query_params: List[Tuple[str, str]] = []
1337
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1338
+ _form_params: List[Tuple[str, str]] = []
1339
+ _files: Dict[str, Union[str, bytes]] = {}
1340
+ _body_params: Optional[bytes] = None
1341
+
1342
+ # process the path parameters
1343
+ if name_6 is not None:
1344
+ _path_params['name_6'] = name_6
1345
+ # process the query parameters
1346
+ if force is not None:
1347
+
1348
+ _query_params.append(('force', force))
1349
+
1350
+ # process the header parameters
1351
+ # process the form parameters
1352
+ # process the body parameter
1353
+
1354
+
1355
+ # set the HTTP header `Accept`
1356
+ _header_params['Accept'] = self.api_client.select_header_accept(
1357
+ [
1358
+ 'application/json'
1359
+ ]
1360
+ )
1361
+
1362
+
1363
+ # authentication setting
1364
+ _auth_settings: List[str] = [
1365
+ ]
1366
+
1367
+ return self.api_client.param_serialize(
1368
+ method='DELETE',
1369
+ resource_path='/v1alpha/{name_6}',
1370
+ path_params=_path_params,
1371
+ query_params=_query_params,
1372
+ header_params=_header_params,
1373
+ body=_body_params,
1374
+ post_params=_form_params,
1375
+ files=_files,
1376
+ auth_settings=_auth_settings,
1377
+ collection_formats=_collection_formats,
1378
+ _host=_host,
1379
+ _request_auth=_request_auth
1380
+ )
1381
+
1382
+
1383
+
1384
+
1385
+ @validate_call
1386
+ def test_service_get_test(
1387
+ self,
1388
+ name_9: Annotated[str, Field(strict=True, description="Required. The name of the Test to retrieve.")],
1389
+ _request_timeout: Union[
1390
+ None,
1391
+ Annotated[StrictFloat, Field(gt=0)],
1392
+ Tuple[
1393
+ Annotated[StrictFloat, Field(gt=0)],
1394
+ Annotated[StrictFloat, Field(gt=0)]
1395
+ ]
1396
+ ] = None,
1397
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1398
+ _content_type: Optional[StrictStr] = None,
1399
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1400
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1401
+ ) -> V1alphaGetTestResponse:
1402
+ """test_service_get_test
1403
+
1404
+
1405
+ :param name_9: Required. The name of the Test to retrieve. (required)
1406
+ :type name_9: str
1407
+ :param _request_timeout: timeout setting for this request. If one
1408
+ number provided, it will be total request
1409
+ timeout. It can also be a pair (tuple) of
1410
+ (connection, read) timeouts.
1411
+ :type _request_timeout: int, tuple(int, int), optional
1412
+ :param _request_auth: set to override the auth_settings for an a single
1413
+ request; this effectively ignores the
1414
+ authentication in the spec for a single request.
1415
+ :type _request_auth: dict, optional
1416
+ :param _content_type: force content-type for the request.
1417
+ :type _content_type: str, Optional
1418
+ :param _headers: set to override the headers for a single
1419
+ request; this effectively ignores the headers
1420
+ in the spec for a single request.
1421
+ :type _headers: dict, optional
1422
+ :param _host_index: set to override the host_index for a single
1423
+ request; this effectively ignores the host_index
1424
+ in the spec for a single request.
1425
+ :type _host_index: int, optional
1426
+ :return: Returns the result object.
1427
+ """ # noqa: E501
1428
+
1429
+ _param = self._test_service_get_test_serialize(
1430
+ name_9=name_9,
1431
+ _request_auth=_request_auth,
1432
+ _content_type=_content_type,
1433
+ _headers=_headers,
1434
+ _host_index=_host_index
1435
+ )
1436
+
1437
+ _response_types_map: Dict[str, Optional[str]] = {
1438
+ '200': "V1alphaGetTestResponse",
1439
+ }
1440
+ response_data = self.api_client.call_api(
1441
+ *_param,
1442
+ _request_timeout=_request_timeout
1443
+ )
1444
+ response_data.read()
1445
+ return self.api_client.response_deserialize(
1446
+ response_data=response_data,
1447
+ response_types_map=_response_types_map,
1448
+ ).data
1449
+
1450
+
1451
+ @validate_call
1452
+ def test_service_get_test_with_http_info(
1453
+ self,
1454
+ name_9: Annotated[str, Field(strict=True, description="Required. The name of the Test to retrieve.")],
1455
+ _request_timeout: Union[
1456
+ None,
1457
+ Annotated[StrictFloat, Field(gt=0)],
1458
+ Tuple[
1459
+ Annotated[StrictFloat, Field(gt=0)],
1460
+ Annotated[StrictFloat, Field(gt=0)]
1461
+ ]
1462
+ ] = None,
1463
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1464
+ _content_type: Optional[StrictStr] = None,
1465
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1466
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1467
+ ) -> ApiResponse[V1alphaGetTestResponse]:
1468
+ """test_service_get_test
1469
+
1470
+
1471
+ :param name_9: Required. The name of the Test to retrieve. (required)
1472
+ :type name_9: str
1473
+ :param _request_timeout: timeout setting for this request. If one
1474
+ number provided, it will be total request
1475
+ timeout. It can also be a pair (tuple) of
1476
+ (connection, read) timeouts.
1477
+ :type _request_timeout: int, tuple(int, int), optional
1478
+ :param _request_auth: set to override the auth_settings for an a single
1479
+ request; this effectively ignores the
1480
+ authentication in the spec for a single request.
1481
+ :type _request_auth: dict, optional
1482
+ :param _content_type: force content-type for the request.
1483
+ :type _content_type: str, Optional
1484
+ :param _headers: set to override the headers for a single
1485
+ request; this effectively ignores the headers
1486
+ in the spec for a single request.
1487
+ :type _headers: dict, optional
1488
+ :param _host_index: set to override the host_index for a single
1489
+ request; this effectively ignores the host_index
1490
+ in the spec for a single request.
1491
+ :type _host_index: int, optional
1492
+ :return: Returns the result object.
1493
+ """ # noqa: E501
1494
+
1495
+ _param = self._test_service_get_test_serialize(
1496
+ name_9=name_9,
1497
+ _request_auth=_request_auth,
1498
+ _content_type=_content_type,
1499
+ _headers=_headers,
1500
+ _host_index=_host_index
1501
+ )
1502
+
1503
+ _response_types_map: Dict[str, Optional[str]] = {
1504
+ '200': "V1alphaGetTestResponse",
1505
+ }
1506
+ response_data = self.api_client.call_api(
1507
+ *_param,
1508
+ _request_timeout=_request_timeout
1509
+ )
1510
+ response_data.read()
1511
+ return self.api_client.response_deserialize(
1512
+ response_data=response_data,
1513
+ response_types_map=_response_types_map,
1514
+ )
1515
+
1516
+
1517
+ @validate_call
1518
+ def test_service_get_test_without_preload_content(
1519
+ self,
1520
+ name_9: Annotated[str, Field(strict=True, description="Required. The name of the Test to retrieve.")],
1521
+ _request_timeout: Union[
1522
+ None,
1523
+ Annotated[StrictFloat, Field(gt=0)],
1524
+ Tuple[
1525
+ Annotated[StrictFloat, Field(gt=0)],
1526
+ Annotated[StrictFloat, Field(gt=0)]
1527
+ ]
1528
+ ] = None,
1529
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1530
+ _content_type: Optional[StrictStr] = None,
1531
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1532
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1533
+ ) -> RESTResponseType:
1534
+ """test_service_get_test
1535
+
1536
+
1537
+ :param name_9: Required. The name of the Test to retrieve. (required)
1538
+ :type name_9: str
1539
+ :param _request_timeout: timeout setting for this request. If one
1540
+ number provided, it will be total request
1541
+ timeout. It can also be a pair (tuple) of
1542
+ (connection, read) timeouts.
1543
+ :type _request_timeout: int, tuple(int, int), optional
1544
+ :param _request_auth: set to override the auth_settings for an a single
1545
+ request; this effectively ignores the
1546
+ authentication in the spec for a single request.
1547
+ :type _request_auth: dict, optional
1548
+ :param _content_type: force content-type for the request.
1549
+ :type _content_type: str, Optional
1550
+ :param _headers: set to override the headers for a single
1551
+ request; this effectively ignores the headers
1552
+ in the spec for a single request.
1553
+ :type _headers: dict, optional
1554
+ :param _host_index: set to override the host_index for a single
1555
+ request; this effectively ignores the host_index
1556
+ in the spec for a single request.
1557
+ :type _host_index: int, optional
1558
+ :return: Returns the result object.
1559
+ """ # noqa: E501
1560
+
1561
+ _param = self._test_service_get_test_serialize(
1562
+ name_9=name_9,
1563
+ _request_auth=_request_auth,
1564
+ _content_type=_content_type,
1565
+ _headers=_headers,
1566
+ _host_index=_host_index
1567
+ )
1568
+
1569
+ _response_types_map: Dict[str, Optional[str]] = {
1570
+ '200': "V1alphaGetTestResponse",
1571
+ }
1572
+ response_data = self.api_client.call_api(
1573
+ *_param,
1574
+ _request_timeout=_request_timeout
1575
+ )
1576
+ return response_data.response
1577
+
1578
+
1579
+ def _test_service_get_test_serialize(
1580
+ self,
1581
+ name_9,
1582
+ _request_auth,
1583
+ _content_type,
1584
+ _headers,
1585
+ _host_index,
1586
+ ) -> RequestSerialized:
1587
+
1588
+ _host = None
1589
+
1590
+ _collection_formats: Dict[str, str] = {
1591
+ }
1592
+
1593
+ _path_params: Dict[str, str] = {}
1594
+ _query_params: List[Tuple[str, str]] = []
1595
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1596
+ _form_params: List[Tuple[str, str]] = []
1597
+ _files: Dict[str, Union[str, bytes]] = {}
1598
+ _body_params: Optional[bytes] = None
1599
+
1600
+ # process the path parameters
1601
+ if name_9 is not None:
1602
+ _path_params['name_9'] = name_9
1603
+ # process the query parameters
1604
+ # process the header parameters
1605
+ # process the form parameters
1606
+ # process the body parameter
1607
+
1608
+
1609
+ # set the HTTP header `Accept`
1610
+ _header_params['Accept'] = self.api_client.select_header_accept(
1611
+ [
1612
+ 'application/json'
1613
+ ]
1614
+ )
1615
+
1616
+
1617
+ # authentication setting
1618
+ _auth_settings: List[str] = [
1619
+ ]
1620
+
1621
+ return self.api_client.param_serialize(
1622
+ method='GET',
1623
+ resource_path='/v1alpha/{name_9}',
1624
+ path_params=_path_params,
1625
+ query_params=_query_params,
1626
+ header_params=_header_params,
1627
+ body=_body_params,
1628
+ post_params=_form_params,
1629
+ files=_files,
1630
+ auth_settings=_auth_settings,
1631
+ collection_formats=_collection_formats,
1632
+ _host=_host,
1633
+ _request_auth=_request_auth
1634
+ )
1635
+
1636
+
1637
+
1638
+
1639
+ @validate_call
1640
+ def test_service_list_most_recent_tests(
1641
+ self,
1642
+ limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Tests to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
1643
+ _request_timeout: Union[
1644
+ None,
1645
+ Annotated[StrictFloat, Field(gt=0)],
1646
+ Tuple[
1647
+ Annotated[StrictFloat, Field(gt=0)],
1648
+ Annotated[StrictFloat, Field(gt=0)]
1649
+ ]
1650
+ ] = None,
1651
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1652
+ _content_type: Optional[StrictStr] = None,
1653
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1654
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1655
+ ) -> V1alphaListMostRecentTestsResponse:
1656
+ """test_service_list_most_recent_tests
1657
+
1658
+
1659
+ :param limit: Optional. The max number of the most recent Tests to retrieve. Use -1 to retrieve all. Defaults to 3.
1660
+ :type limit: int
1661
+ :param _request_timeout: timeout setting for this request. If one
1662
+ number provided, it will be total request
1663
+ timeout. It can also be a pair (tuple) of
1664
+ (connection, read) timeouts.
1665
+ :type _request_timeout: int, tuple(int, int), optional
1666
+ :param _request_auth: set to override the auth_settings for an a single
1667
+ request; this effectively ignores the
1668
+ authentication in the spec for a single request.
1669
+ :type _request_auth: dict, optional
1670
+ :param _content_type: force content-type for the request.
1671
+ :type _content_type: str, Optional
1672
+ :param _headers: set to override the headers for a single
1673
+ request; this effectively ignores the headers
1674
+ in the spec for a single request.
1675
+ :type _headers: dict, optional
1676
+ :param _host_index: set to override the host_index for a single
1677
+ request; this effectively ignores the host_index
1678
+ in the spec for a single request.
1679
+ :type _host_index: int, optional
1680
+ :return: Returns the result object.
1681
+ """ # noqa: E501
1682
+
1683
+ _param = self._test_service_list_most_recent_tests_serialize(
1684
+ limit=limit,
1685
+ _request_auth=_request_auth,
1686
+ _content_type=_content_type,
1687
+ _headers=_headers,
1688
+ _host_index=_host_index
1689
+ )
1690
+
1691
+ _response_types_map: Dict[str, Optional[str]] = {
1692
+ '200': "V1alphaListMostRecentTestsResponse",
1693
+ }
1694
+ response_data = self.api_client.call_api(
1695
+ *_param,
1696
+ _request_timeout=_request_timeout
1697
+ )
1698
+ response_data.read()
1699
+ return self.api_client.response_deserialize(
1700
+ response_data=response_data,
1701
+ response_types_map=_response_types_map,
1702
+ ).data
1703
+
1704
+
1705
+ @validate_call
1706
+ def test_service_list_most_recent_tests_with_http_info(
1707
+ self,
1708
+ limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Tests to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
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[V1alphaListMostRecentTestsResponse]:
1722
+ """test_service_list_most_recent_tests
1723
+
1724
+
1725
+ :param limit: Optional. The max number of the most recent Tests to retrieve. Use -1 to retrieve all. Defaults to 3.
1726
+ :type limit: int
1727
+ :param _request_timeout: timeout setting for this request. If one
1728
+ number provided, it will be total request
1729
+ timeout. It can also be a pair (tuple) of
1730
+ (connection, read) timeouts.
1731
+ :type _request_timeout: int, tuple(int, int), optional
1732
+ :param _request_auth: set to override the auth_settings for an a single
1733
+ request; this effectively ignores the
1734
+ authentication in the spec for a single request.
1735
+ :type _request_auth: dict, optional
1736
+ :param _content_type: force content-type for the request.
1737
+ :type _content_type: str, Optional
1738
+ :param _headers: set to override the headers for a single
1739
+ request; this effectively ignores the headers
1740
+ in the spec for a single request.
1741
+ :type _headers: dict, optional
1742
+ :param _host_index: set to override the host_index for a single
1743
+ request; this effectively ignores the host_index
1744
+ in the spec for a single request.
1745
+ :type _host_index: int, optional
1746
+ :return: Returns the result object.
1747
+ """ # noqa: E501
1748
+
1749
+ _param = self._test_service_list_most_recent_tests_serialize(
1750
+ limit=limit,
1751
+ _request_auth=_request_auth,
1752
+ _content_type=_content_type,
1753
+ _headers=_headers,
1754
+ _host_index=_host_index
1755
+ )
1756
+
1757
+ _response_types_map: Dict[str, Optional[str]] = {
1758
+ '200': "V1alphaListMostRecentTestsResponse",
1759
+ }
1760
+ response_data = self.api_client.call_api(
1761
+ *_param,
1762
+ _request_timeout=_request_timeout
1763
+ )
1764
+ response_data.read()
1765
+ return self.api_client.response_deserialize(
1766
+ response_data=response_data,
1767
+ response_types_map=_response_types_map,
1768
+ )
1769
+
1770
+
1771
+ @validate_call
1772
+ def test_service_list_most_recent_tests_without_preload_content(
1773
+ self,
1774
+ limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Tests to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
1775
+ _request_timeout: Union[
1776
+ None,
1777
+ Annotated[StrictFloat, Field(gt=0)],
1778
+ Tuple[
1779
+ Annotated[StrictFloat, Field(gt=0)],
1780
+ Annotated[StrictFloat, Field(gt=0)]
1781
+ ]
1782
+ ] = None,
1783
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1784
+ _content_type: Optional[StrictStr] = None,
1785
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1786
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1787
+ ) -> RESTResponseType:
1788
+ """test_service_list_most_recent_tests
1789
+
1790
+
1791
+ :param limit: Optional. The max number of the most recent Tests to retrieve. Use -1 to retrieve all. Defaults to 3.
1792
+ :type limit: int
1793
+ :param _request_timeout: timeout setting for this request. If one
1794
+ number provided, it will be total request
1795
+ timeout. It can also be a pair (tuple) of
1796
+ (connection, read) timeouts.
1797
+ :type _request_timeout: int, tuple(int, int), optional
1798
+ :param _request_auth: set to override the auth_settings for an a single
1799
+ request; this effectively ignores the
1800
+ authentication in the spec for a single request.
1801
+ :type _request_auth: dict, optional
1802
+ :param _content_type: force content-type for the request.
1803
+ :type _content_type: str, Optional
1804
+ :param _headers: set to override the headers for a single
1805
+ request; this effectively ignores the headers
1806
+ in the spec for a single request.
1807
+ :type _headers: dict, optional
1808
+ :param _host_index: set to override the host_index for a single
1809
+ request; this effectively ignores the host_index
1810
+ in the spec for a single request.
1811
+ :type _host_index: int, optional
1812
+ :return: Returns the result object.
1813
+ """ # noqa: E501
1814
+
1815
+ _param = self._test_service_list_most_recent_tests_serialize(
1816
+ limit=limit,
1817
+ _request_auth=_request_auth,
1818
+ _content_type=_content_type,
1819
+ _headers=_headers,
1820
+ _host_index=_host_index
1821
+ )
1822
+
1823
+ _response_types_map: Dict[str, Optional[str]] = {
1824
+ '200': "V1alphaListMostRecentTestsResponse",
1825
+ }
1826
+ response_data = self.api_client.call_api(
1827
+ *_param,
1828
+ _request_timeout=_request_timeout
1829
+ )
1830
+ return response_data.response
1831
+
1832
+
1833
+ def _test_service_list_most_recent_tests_serialize(
1834
+ self,
1835
+ limit,
1836
+ _request_auth,
1837
+ _content_type,
1838
+ _headers,
1839
+ _host_index,
1840
+ ) -> RequestSerialized:
1841
+
1842
+ _host = None
1843
+
1844
+ _collection_formats: Dict[str, str] = {
1845
+ }
1846
+
1847
+ _path_params: Dict[str, str] = {}
1848
+ _query_params: List[Tuple[str, str]] = []
1849
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1850
+ _form_params: List[Tuple[str, str]] = []
1851
+ _files: Dict[str, Union[str, bytes]] = {}
1852
+ _body_params: Optional[bytes] = None
1853
+
1854
+ # process the path parameters
1855
+ # process the query parameters
1856
+ if limit is not None:
1857
+
1858
+ _query_params.append(('limit', limit))
1859
+
1860
+ # process the header parameters
1861
+ # process the form parameters
1862
+ # process the body parameter
1863
+
1864
+
1865
+ # set the HTTP header `Accept`
1866
+ _header_params['Accept'] = self.api_client.select_header_accept(
1867
+ [
1868
+ 'application/json'
1869
+ ]
1870
+ )
1871
+
1872
+
1873
+ # authentication setting
1874
+ _auth_settings: List[str] = [
1875
+ ]
1876
+
1877
+ return self.api_client.param_serialize(
1878
+ method='GET',
1879
+ resource_path='/v1alpha/tests:mostRecent',
1880
+ path_params=_path_params,
1881
+ query_params=_query_params,
1882
+ header_params=_header_params,
1883
+ body=_body_params,
1884
+ post_params=_form_params,
1885
+ files=_files,
1886
+ auth_settings=_auth_settings,
1887
+ collection_formats=_collection_formats,
1888
+ _host=_host,
1889
+ _request_auth=_request_auth
1890
+ )
1891
+
1892
+
1893
+
1894
+
1895
+ @validate_call
1896
+ def test_service_list_tests(
1897
+ self,
1898
+ order_by: Annotated[Optional[StrictStr], Field(description="If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time")] = None,
1899
+ _request_timeout: Union[
1900
+ None,
1901
+ Annotated[StrictFloat, Field(gt=0)],
1902
+ Tuple[
1903
+ Annotated[StrictFloat, Field(gt=0)],
1904
+ Annotated[StrictFloat, Field(gt=0)]
1905
+ ]
1906
+ ] = None,
1907
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1908
+ _content_type: Optional[StrictStr] = None,
1909
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1910
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1911
+ ) -> V1alphaListTestsResponse:
1912
+ """test_service_list_tests
1913
+
1914
+
1915
+ :param order_by: If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time
1916
+ :type order_by: str
1917
+ :param _request_timeout: timeout setting for this request. If one
1918
+ number provided, it will be total request
1919
+ timeout. It can also be a pair (tuple) of
1920
+ (connection, read) timeouts.
1921
+ :type _request_timeout: int, tuple(int, int), optional
1922
+ :param _request_auth: set to override the auth_settings for an a single
1923
+ request; this effectively ignores the
1924
+ authentication in the spec for a single request.
1925
+ :type _request_auth: dict, optional
1926
+ :param _content_type: force content-type for the request.
1927
+ :type _content_type: str, Optional
1928
+ :param _headers: set to override the headers for a single
1929
+ request; this effectively ignores the headers
1930
+ in the spec for a single request.
1931
+ :type _headers: dict, optional
1932
+ :param _host_index: set to override the host_index for a single
1933
+ request; this effectively ignores the host_index
1934
+ in the spec for a single request.
1935
+ :type _host_index: int, optional
1936
+ :return: Returns the result object.
1937
+ """ # noqa: E501
1938
+
1939
+ _param = self._test_service_list_tests_serialize(
1940
+ order_by=order_by,
1941
+ _request_auth=_request_auth,
1942
+ _content_type=_content_type,
1943
+ _headers=_headers,
1944
+ _host_index=_host_index
1945
+ )
1946
+
1947
+ _response_types_map: Dict[str, Optional[str]] = {
1948
+ '200': "V1alphaListTestsResponse",
1949
+ }
1950
+ response_data = self.api_client.call_api(
1951
+ *_param,
1952
+ _request_timeout=_request_timeout
1953
+ )
1954
+ response_data.read()
1955
+ return self.api_client.response_deserialize(
1956
+ response_data=response_data,
1957
+ response_types_map=_response_types_map,
1958
+ ).data
1959
+
1960
+
1961
+ @validate_call
1962
+ def test_service_list_tests_with_http_info(
1963
+ self,
1964
+ order_by: Annotated[Optional[StrictStr], Field(description="If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time")] = None,
1965
+ _request_timeout: Union[
1966
+ None,
1967
+ Annotated[StrictFloat, Field(gt=0)],
1968
+ Tuple[
1969
+ Annotated[StrictFloat, Field(gt=0)],
1970
+ Annotated[StrictFloat, Field(gt=0)]
1971
+ ]
1972
+ ] = None,
1973
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1974
+ _content_type: Optional[StrictStr] = None,
1975
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1976
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1977
+ ) -> ApiResponse[V1alphaListTestsResponse]:
1978
+ """test_service_list_tests
1979
+
1980
+
1981
+ :param order_by: If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time
1982
+ :type order_by: str
1983
+ :param _request_timeout: timeout setting for this request. If one
1984
+ number provided, it will be total request
1985
+ timeout. It can also be a pair (tuple) of
1986
+ (connection, read) timeouts.
1987
+ :type _request_timeout: int, tuple(int, int), optional
1988
+ :param _request_auth: set to override the auth_settings for an a single
1989
+ request; this effectively ignores the
1990
+ authentication in the spec for a single request.
1991
+ :type _request_auth: dict, optional
1992
+ :param _content_type: force content-type for the request.
1993
+ :type _content_type: str, Optional
1994
+ :param _headers: set to override the headers for a single
1995
+ request; this effectively ignores the headers
1996
+ in the spec for a single request.
1997
+ :type _headers: dict, optional
1998
+ :param _host_index: set to override the host_index for a single
1999
+ request; this effectively ignores the host_index
2000
+ in the spec for a single request.
2001
+ :type _host_index: int, optional
2002
+ :return: Returns the result object.
2003
+ """ # noqa: E501
2004
+
2005
+ _param = self._test_service_list_tests_serialize(
2006
+ order_by=order_by,
2007
+ _request_auth=_request_auth,
2008
+ _content_type=_content_type,
2009
+ _headers=_headers,
2010
+ _host_index=_host_index
2011
+ )
2012
+
2013
+ _response_types_map: Dict[str, Optional[str]] = {
2014
+ '200': "V1alphaListTestsResponse",
2015
+ }
2016
+ response_data = self.api_client.call_api(
2017
+ *_param,
2018
+ _request_timeout=_request_timeout
2019
+ )
2020
+ response_data.read()
2021
+ return self.api_client.response_deserialize(
2022
+ response_data=response_data,
2023
+ response_types_map=_response_types_map,
2024
+ )
2025
+
2026
+
2027
+ @validate_call
2028
+ def test_service_list_tests_without_preload_content(
2029
+ self,
2030
+ order_by: Annotated[Optional[StrictStr], Field(description="If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time")] = None,
2031
+ _request_timeout: Union[
2032
+ None,
2033
+ Annotated[StrictFloat, Field(gt=0)],
2034
+ Tuple[
2035
+ Annotated[StrictFloat, Field(gt=0)],
2036
+ Annotated[StrictFloat, Field(gt=0)]
2037
+ ]
2038
+ ] = None,
2039
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2040
+ _content_type: Optional[StrictStr] = None,
2041
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2042
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2043
+ ) -> RESTResponseType:
2044
+ """test_service_list_tests
2045
+
2046
+
2047
+ :param order_by: If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time
2048
+ :type order_by: str
2049
+ :param _request_timeout: timeout setting for this request. If one
2050
+ number provided, it will be total request
2051
+ timeout. It can also be a pair (tuple) of
2052
+ (connection, read) timeouts.
2053
+ :type _request_timeout: int, tuple(int, int), optional
2054
+ :param _request_auth: set to override the auth_settings for an a single
2055
+ request; this effectively ignores the
2056
+ authentication in the spec for a single request.
2057
+ :type _request_auth: dict, optional
2058
+ :param _content_type: force content-type for the request.
2059
+ :type _content_type: str, Optional
2060
+ :param _headers: set to override the headers for a single
2061
+ request; this effectively ignores the headers
2062
+ in the spec for a single request.
2063
+ :type _headers: dict, optional
2064
+ :param _host_index: set to override the host_index for a single
2065
+ request; this effectively ignores the host_index
2066
+ in the spec for a single request.
2067
+ :type _host_index: int, optional
2068
+ :return: Returns the result object.
2069
+ """ # noqa: E501
2070
+
2071
+ _param = self._test_service_list_tests_serialize(
2072
+ order_by=order_by,
2073
+ _request_auth=_request_auth,
2074
+ _content_type=_content_type,
2075
+ _headers=_headers,
2076
+ _host_index=_host_index
2077
+ )
2078
+
2079
+ _response_types_map: Dict[str, Optional[str]] = {
2080
+ '200': "V1alphaListTestsResponse",
2081
+ }
2082
+ response_data = self.api_client.call_api(
2083
+ *_param,
2084
+ _request_timeout=_request_timeout
2085
+ )
2086
+ return response_data.response
2087
+
2088
+
2089
+ def _test_service_list_tests_serialize(
2090
+ self,
2091
+ order_by,
2092
+ _request_auth,
2093
+ _content_type,
2094
+ _headers,
2095
+ _host_index,
2096
+ ) -> RequestSerialized:
2097
+
2098
+ _host = None
2099
+
2100
+ _collection_formats: Dict[str, str] = {
2101
+ }
2102
+
2103
+ _path_params: Dict[str, str] = {}
2104
+ _query_params: List[Tuple[str, str]] = []
2105
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2106
+ _form_params: List[Tuple[str, str]] = []
2107
+ _files: Dict[str, Union[str, bytes]] = {}
2108
+ _body_params: Optional[bytes] = None
2109
+
2110
+ # process the path parameters
2111
+ # process the query parameters
2112
+ if order_by is not None:
2113
+
2114
+ _query_params.append(('orderBy', order_by))
2115
+
2116
+ # process the header parameters
2117
+ # process the form parameters
2118
+ # process the body parameter
2119
+
2120
+
2121
+ # set the HTTP header `Accept`
2122
+ _header_params['Accept'] = self.api_client.select_header_accept(
2123
+ [
2124
+ 'application/json'
2125
+ ]
2126
+ )
2127
+
2128
+
2129
+ # authentication setting
2130
+ _auth_settings: List[str] = [
2131
+ ]
2132
+
2133
+ return self.api_client.param_serialize(
2134
+ method='GET',
2135
+ resource_path='/v1alpha/tests',
2136
+ path_params=_path_params,
2137
+ query_params=_query_params,
2138
+ header_params=_header_params,
2139
+ body=_body_params,
2140
+ post_params=_form_params,
2141
+ files=_files,
2142
+ auth_settings=_auth_settings,
2143
+ collection_formats=_collection_formats,
2144
+ _host=_host,
2145
+ _request_auth=_request_auth
2146
+ )
2147
+
2148
+
2149
+
2150
+
2151
+ @validate_call
2152
+ def test_service_perturb_test(
2153
+ self,
2154
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Test to perturb.")],
2155
+ body: TestServicePerturbTestRequest,
2156
+ _request_timeout: Union[
2157
+ None,
2158
+ Annotated[StrictFloat, Field(gt=0)],
2159
+ Tuple[
2160
+ Annotated[StrictFloat, Field(gt=0)],
2161
+ Annotated[StrictFloat, Field(gt=0)]
2162
+ ]
2163
+ ] = None,
2164
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2165
+ _content_type: Optional[StrictStr] = None,
2166
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2167
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2168
+ ) -> V1alphaPerturbTestResponse:
2169
+ """test_service_perturb_test
2170
+
2171
+
2172
+ :param name: Required. The name of the Test to perturb. (required)
2173
+ :type name: str
2174
+ :param body: (required)
2175
+ :type body: TestServicePerturbTestRequest
2176
+ :param _request_timeout: timeout setting for this request. If one
2177
+ number provided, it will be total request
2178
+ timeout. It can also be a pair (tuple) of
2179
+ (connection, read) timeouts.
2180
+ :type _request_timeout: int, tuple(int, int), optional
2181
+ :param _request_auth: set to override the auth_settings for an a single
2182
+ request; this effectively ignores the
2183
+ authentication in the spec for a single request.
2184
+ :type _request_auth: dict, optional
2185
+ :param _content_type: force content-type for the request.
2186
+ :type _content_type: str, Optional
2187
+ :param _headers: set to override the headers for a single
2188
+ request; this effectively ignores the headers
2189
+ in the spec for a single request.
2190
+ :type _headers: dict, optional
2191
+ :param _host_index: set to override the host_index for a single
2192
+ request; this effectively ignores the host_index
2193
+ in the spec for a single request.
2194
+ :type _host_index: int, optional
2195
+ :return: Returns the result object.
2196
+ """ # noqa: E501
2197
+
2198
+ _param = self._test_service_perturb_test_serialize(
2199
+ name=name,
2200
+ body=body,
2201
+ _request_auth=_request_auth,
2202
+ _content_type=_content_type,
2203
+ _headers=_headers,
2204
+ _host_index=_host_index
2205
+ )
2206
+
2207
+ _response_types_map: Dict[str, Optional[str]] = {
2208
+ '200': "V1alphaPerturbTestResponse",
2209
+ }
2210
+ response_data = self.api_client.call_api(
2211
+ *_param,
2212
+ _request_timeout=_request_timeout
2213
+ )
2214
+ response_data.read()
2215
+ return self.api_client.response_deserialize(
2216
+ response_data=response_data,
2217
+ response_types_map=_response_types_map,
2218
+ ).data
2219
+
2220
+
2221
+ @validate_call
2222
+ def test_service_perturb_test_with_http_info(
2223
+ self,
2224
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Test to perturb.")],
2225
+ body: TestServicePerturbTestRequest,
2226
+ _request_timeout: Union[
2227
+ None,
2228
+ Annotated[StrictFloat, Field(gt=0)],
2229
+ Tuple[
2230
+ Annotated[StrictFloat, Field(gt=0)],
2231
+ Annotated[StrictFloat, Field(gt=0)]
2232
+ ]
2233
+ ] = None,
2234
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2235
+ _content_type: Optional[StrictStr] = None,
2236
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2237
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2238
+ ) -> ApiResponse[V1alphaPerturbTestResponse]:
2239
+ """test_service_perturb_test
2240
+
2241
+
2242
+ :param name: Required. The name of the Test to perturb. (required)
2243
+ :type name: str
2244
+ :param body: (required)
2245
+ :type body: TestServicePerturbTestRequest
2246
+ :param _request_timeout: timeout setting for this request. If one
2247
+ number provided, it will be total request
2248
+ timeout. It can also be a pair (tuple) of
2249
+ (connection, read) timeouts.
2250
+ :type _request_timeout: int, tuple(int, int), optional
2251
+ :param _request_auth: set to override the auth_settings for an a single
2252
+ request; this effectively ignores the
2253
+ authentication in the spec for a single request.
2254
+ :type _request_auth: dict, optional
2255
+ :param _content_type: force content-type for the request.
2256
+ :type _content_type: str, Optional
2257
+ :param _headers: set to override the headers for a single
2258
+ request; this effectively ignores the headers
2259
+ in the spec for a single request.
2260
+ :type _headers: dict, optional
2261
+ :param _host_index: set to override the host_index for a single
2262
+ request; this effectively ignores the host_index
2263
+ in the spec for a single request.
2264
+ :type _host_index: int, optional
2265
+ :return: Returns the result object.
2266
+ """ # noqa: E501
2267
+
2268
+ _param = self._test_service_perturb_test_serialize(
2269
+ name=name,
2270
+ body=body,
2271
+ _request_auth=_request_auth,
2272
+ _content_type=_content_type,
2273
+ _headers=_headers,
2274
+ _host_index=_host_index
2275
+ )
2276
+
2277
+ _response_types_map: Dict[str, Optional[str]] = {
2278
+ '200': "V1alphaPerturbTestResponse",
2279
+ }
2280
+ response_data = self.api_client.call_api(
2281
+ *_param,
2282
+ _request_timeout=_request_timeout
2283
+ )
2284
+ response_data.read()
2285
+ return self.api_client.response_deserialize(
2286
+ response_data=response_data,
2287
+ response_types_map=_response_types_map,
2288
+ )
2289
+
2290
+
2291
+ @validate_call
2292
+ def test_service_perturb_test_without_preload_content(
2293
+ self,
2294
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Test to perturb.")],
2295
+ body: TestServicePerturbTestRequest,
2296
+ _request_timeout: Union[
2297
+ None,
2298
+ Annotated[StrictFloat, Field(gt=0)],
2299
+ Tuple[
2300
+ Annotated[StrictFloat, Field(gt=0)],
2301
+ Annotated[StrictFloat, Field(gt=0)]
2302
+ ]
2303
+ ] = None,
2304
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2305
+ _content_type: Optional[StrictStr] = None,
2306
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2307
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2308
+ ) -> RESTResponseType:
2309
+ """test_service_perturb_test
2310
+
2311
+
2312
+ :param name: Required. The name of the Test to perturb. (required)
2313
+ :type name: str
2314
+ :param body: (required)
2315
+ :type body: TestServicePerturbTestRequest
2316
+ :param _request_timeout: timeout setting for this request. If one
2317
+ number provided, it will be total request
2318
+ timeout. It can also be a pair (tuple) of
2319
+ (connection, read) timeouts.
2320
+ :type _request_timeout: int, tuple(int, int), optional
2321
+ :param _request_auth: set to override the auth_settings for an a single
2322
+ request; this effectively ignores the
2323
+ authentication in the spec for a single request.
2324
+ :type _request_auth: dict, optional
2325
+ :param _content_type: force content-type for the request.
2326
+ :type _content_type: str, Optional
2327
+ :param _headers: set to override the headers for a single
2328
+ request; this effectively ignores the headers
2329
+ in the spec for a single request.
2330
+ :type _headers: dict, optional
2331
+ :param _host_index: set to override the host_index for a single
2332
+ request; this effectively ignores the host_index
2333
+ in the spec for a single request.
2334
+ :type _host_index: int, optional
2335
+ :return: Returns the result object.
2336
+ """ # noqa: E501
2337
+
2338
+ _param = self._test_service_perturb_test_serialize(
2339
+ name=name,
2340
+ body=body,
2341
+ _request_auth=_request_auth,
2342
+ _content_type=_content_type,
2343
+ _headers=_headers,
2344
+ _host_index=_host_index
2345
+ )
2346
+
2347
+ _response_types_map: Dict[str, Optional[str]] = {
2348
+ '200': "V1alphaPerturbTestResponse",
2349
+ }
2350
+ response_data = self.api_client.call_api(
2351
+ *_param,
2352
+ _request_timeout=_request_timeout
2353
+ )
2354
+ return response_data.response
2355
+
2356
+
2357
+ def _test_service_perturb_test_serialize(
2358
+ self,
2359
+ name,
2360
+ body,
2361
+ _request_auth,
2362
+ _content_type,
2363
+ _headers,
2364
+ _host_index,
2365
+ ) -> RequestSerialized:
2366
+
2367
+ _host = None
2368
+
2369
+ _collection_formats: Dict[str, str] = {
2370
+ }
2371
+
2372
+ _path_params: Dict[str, str] = {}
2373
+ _query_params: List[Tuple[str, str]] = []
2374
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2375
+ _form_params: List[Tuple[str, str]] = []
2376
+ _files: Dict[str, Union[str, bytes]] = {}
2377
+ _body_params: Optional[bytes] = None
2378
+
2379
+ # process the path parameters
2380
+ if name is not None:
2381
+ _path_params['name'] = name
2382
+ # process the query parameters
2383
+ # process the header parameters
2384
+ # process the form parameters
2385
+ # process the body parameter
2386
+ if body is not None:
2387
+ _body_params = body
2388
+
2389
+
2390
+ # set the HTTP header `Accept`
2391
+ _header_params['Accept'] = self.api_client.select_header_accept(
2392
+ [
2393
+ 'application/json'
2394
+ ]
2395
+ )
2396
+
2397
+ # set the HTTP header `Content-Type`
2398
+ if _content_type:
2399
+ _header_params['Content-Type'] = _content_type
2400
+ else:
2401
+ _default_content_type = (
2402
+ self.api_client.select_header_content_type(
2403
+ [
2404
+ 'application/json'
2405
+ ]
2406
+ )
2407
+ )
2408
+ if _default_content_type is not None:
2409
+ _header_params['Content-Type'] = _default_content_type
2410
+
2411
+ # authentication setting
2412
+ _auth_settings: List[str] = [
2413
+ ]
2414
+
2415
+ return self.api_client.param_serialize(
2416
+ method='POST',
2417
+ resource_path='/v1alpha/{name}:perturb',
2418
+ path_params=_path_params,
2419
+ query_params=_query_params,
2420
+ header_params=_header_params,
2421
+ body=_body_params,
2422
+ post_params=_form_params,
2423
+ files=_files,
2424
+ auth_settings=_auth_settings,
2425
+ collection_formats=_collection_formats,
2426
+ _host=_host,
2427
+ _request_auth=_request_auth
2428
+ )
2429
+
2430
+
2431
+
2432
+
2433
+ @validate_call
2434
+ def test_service_update_test(
2435
+ self,
2436
+ test_name: Annotated[str, Field(strict=True, description="Output only. Name of the prompt resource. e.g.: \"tests/<UUID>\"")],
2437
+ test: Annotated[RequiredTheTestToUpdate, Field(description="Required. The Test to update.")],
2438
+ _request_timeout: Union[
2439
+ None,
2440
+ Annotated[StrictFloat, Field(gt=0)],
2441
+ Tuple[
2442
+ Annotated[StrictFloat, Field(gt=0)],
2443
+ Annotated[StrictFloat, Field(gt=0)]
2444
+ ]
2445
+ ] = None,
2446
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2447
+ _content_type: Optional[StrictStr] = None,
2448
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2449
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2450
+ ) -> V1alphaUpdateTestResponse:
2451
+ """test_service_update_test
2452
+
2453
+
2454
+ :param test_name: Output only. Name of the prompt resource. e.g.: \"tests/<UUID>\" (required)
2455
+ :type test_name: str
2456
+ :param test: Required. The Test to update. (required)
2457
+ :type test: RequiredTheTestToUpdate
2458
+ :param _request_timeout: timeout setting for this request. If one
2459
+ number provided, it will be total request
2460
+ timeout. It can also be a pair (tuple) of
2461
+ (connection, read) timeouts.
2462
+ :type _request_timeout: int, tuple(int, int), optional
2463
+ :param _request_auth: set to override the auth_settings for an a single
2464
+ request; this effectively ignores the
2465
+ authentication in the spec for a single request.
2466
+ :type _request_auth: dict, optional
2467
+ :param _content_type: force content-type for the request.
2468
+ :type _content_type: str, Optional
2469
+ :param _headers: set to override the headers for a single
2470
+ request; this effectively ignores the headers
2471
+ in the spec for a single request.
2472
+ :type _headers: dict, optional
2473
+ :param _host_index: set to override the host_index for a single
2474
+ request; this effectively ignores the host_index
2475
+ in the spec for a single request.
2476
+ :type _host_index: int, optional
2477
+ :return: Returns the result object.
2478
+ """ # noqa: E501
2479
+
2480
+ _param = self._test_service_update_test_serialize(
2481
+ test_name=test_name,
2482
+ test=test,
2483
+ _request_auth=_request_auth,
2484
+ _content_type=_content_type,
2485
+ _headers=_headers,
2486
+ _host_index=_host_index
2487
+ )
2488
+
2489
+ _response_types_map: Dict[str, Optional[str]] = {
2490
+ '200': "V1alphaUpdateTestResponse",
2491
+ }
2492
+ response_data = self.api_client.call_api(
2493
+ *_param,
2494
+ _request_timeout=_request_timeout
2495
+ )
2496
+ response_data.read()
2497
+ return self.api_client.response_deserialize(
2498
+ response_data=response_data,
2499
+ response_types_map=_response_types_map,
2500
+ ).data
2501
+
2502
+
2503
+ @validate_call
2504
+ def test_service_update_test_with_http_info(
2505
+ self,
2506
+ test_name: Annotated[str, Field(strict=True, description="Output only. Name of the prompt resource. e.g.: \"tests/<UUID>\"")],
2507
+ test: Annotated[RequiredTheTestToUpdate, Field(description="Required. The Test to update.")],
2508
+ _request_timeout: Union[
2509
+ None,
2510
+ Annotated[StrictFloat, Field(gt=0)],
2511
+ Tuple[
2512
+ Annotated[StrictFloat, Field(gt=0)],
2513
+ Annotated[StrictFloat, Field(gt=0)]
2514
+ ]
2515
+ ] = None,
2516
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2517
+ _content_type: Optional[StrictStr] = None,
2518
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2519
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2520
+ ) -> ApiResponse[V1alphaUpdateTestResponse]:
2521
+ """test_service_update_test
2522
+
2523
+
2524
+ :param test_name: Output only. Name of the prompt resource. e.g.: \"tests/<UUID>\" (required)
2525
+ :type test_name: str
2526
+ :param test: Required. The Test to update. (required)
2527
+ :type test: RequiredTheTestToUpdate
2528
+ :param _request_timeout: timeout setting for this request. If one
2529
+ number provided, it will be total request
2530
+ timeout. It can also be a pair (tuple) of
2531
+ (connection, read) timeouts.
2532
+ :type _request_timeout: int, tuple(int, int), optional
2533
+ :param _request_auth: set to override the auth_settings for an a single
2534
+ request; this effectively ignores the
2535
+ authentication in the spec for a single request.
2536
+ :type _request_auth: dict, optional
2537
+ :param _content_type: force content-type for the request.
2538
+ :type _content_type: str, Optional
2539
+ :param _headers: set to override the headers for a single
2540
+ request; this effectively ignores the headers
2541
+ in the spec for a single request.
2542
+ :type _headers: dict, optional
2543
+ :param _host_index: set to override the host_index for a single
2544
+ request; this effectively ignores the host_index
2545
+ in the spec for a single request.
2546
+ :type _host_index: int, optional
2547
+ :return: Returns the result object.
2548
+ """ # noqa: E501
2549
+
2550
+ _param = self._test_service_update_test_serialize(
2551
+ test_name=test_name,
2552
+ test=test,
2553
+ _request_auth=_request_auth,
2554
+ _content_type=_content_type,
2555
+ _headers=_headers,
2556
+ _host_index=_host_index
2557
+ )
2558
+
2559
+ _response_types_map: Dict[str, Optional[str]] = {
2560
+ '200': "V1alphaUpdateTestResponse",
2561
+ }
2562
+ response_data = self.api_client.call_api(
2563
+ *_param,
2564
+ _request_timeout=_request_timeout
2565
+ )
2566
+ response_data.read()
2567
+ return self.api_client.response_deserialize(
2568
+ response_data=response_data,
2569
+ response_types_map=_response_types_map,
2570
+ )
2571
+
2572
+
2573
+ @validate_call
2574
+ def test_service_update_test_without_preload_content(
2575
+ self,
2576
+ test_name: Annotated[str, Field(strict=True, description="Output only. Name of the prompt resource. e.g.: \"tests/<UUID>\"")],
2577
+ test: Annotated[RequiredTheTestToUpdate, Field(description="Required. The Test to update.")],
2578
+ _request_timeout: Union[
2579
+ None,
2580
+ Annotated[StrictFloat, Field(gt=0)],
2581
+ Tuple[
2582
+ Annotated[StrictFloat, Field(gt=0)],
2583
+ Annotated[StrictFloat, Field(gt=0)]
2584
+ ]
2585
+ ] = None,
2586
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2587
+ _content_type: Optional[StrictStr] = None,
2588
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2589
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2590
+ ) -> RESTResponseType:
2591
+ """test_service_update_test
2592
+
2593
+
2594
+ :param test_name: Output only. Name of the prompt resource. e.g.: \"tests/<UUID>\" (required)
2595
+ :type test_name: str
2596
+ :param test: Required. The Test to update. (required)
2597
+ :type test: RequiredTheTestToUpdate
2598
+ :param _request_timeout: timeout setting for this request. If one
2599
+ number provided, it will be total request
2600
+ timeout. It can also be a pair (tuple) of
2601
+ (connection, read) timeouts.
2602
+ :type _request_timeout: int, tuple(int, int), optional
2603
+ :param _request_auth: set to override the auth_settings for an a single
2604
+ request; this effectively ignores the
2605
+ authentication in the spec for a single request.
2606
+ :type _request_auth: dict, optional
2607
+ :param _content_type: force content-type for the request.
2608
+ :type _content_type: str, Optional
2609
+ :param _headers: set to override the headers for a single
2610
+ request; this effectively ignores the headers
2611
+ in the spec for a single request.
2612
+ :type _headers: dict, optional
2613
+ :param _host_index: set to override the host_index for a single
2614
+ request; this effectively ignores the host_index
2615
+ in the spec for a single request.
2616
+ :type _host_index: int, optional
2617
+ :return: Returns the result object.
2618
+ """ # noqa: E501
2619
+
2620
+ _param = self._test_service_update_test_serialize(
2621
+ test_name=test_name,
2622
+ test=test,
2623
+ _request_auth=_request_auth,
2624
+ _content_type=_content_type,
2625
+ _headers=_headers,
2626
+ _host_index=_host_index
2627
+ )
2628
+
2629
+ _response_types_map: Dict[str, Optional[str]] = {
2630
+ '200': "V1alphaUpdateTestResponse",
2631
+ }
2632
+ response_data = self.api_client.call_api(
2633
+ *_param,
2634
+ _request_timeout=_request_timeout
2635
+ )
2636
+ return response_data.response
2637
+
2638
+
2639
+ def _test_service_update_test_serialize(
2640
+ self,
2641
+ test_name,
2642
+ test,
2643
+ _request_auth,
2644
+ _content_type,
2645
+ _headers,
2646
+ _host_index,
2647
+ ) -> RequestSerialized:
2648
+
2649
+ _host = None
2650
+
2651
+ _collection_formats: Dict[str, str] = {
2652
+ }
2653
+
2654
+ _path_params: Dict[str, str] = {}
2655
+ _query_params: List[Tuple[str, str]] = []
2656
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2657
+ _form_params: List[Tuple[str, str]] = []
2658
+ _files: Dict[str, Union[str, bytes]] = {}
2659
+ _body_params: Optional[bytes] = None
2660
+
2661
+ # process the path parameters
2662
+ if test_name is not None:
2663
+ _path_params['test.name'] = test_name
2664
+ # process the query parameters
2665
+ # process the header parameters
2666
+ # process the form parameters
2667
+ # process the body parameter
2668
+ if test is not None:
2669
+ _body_params = test
2670
+
2671
+
2672
+ # set the HTTP header `Accept`
2673
+ _header_params['Accept'] = self.api_client.select_header_accept(
2674
+ [
2675
+ 'application/json'
2676
+ ]
2677
+ )
2678
+
2679
+ # set the HTTP header `Content-Type`
2680
+ if _content_type:
2681
+ _header_params['Content-Type'] = _content_type
2682
+ else:
2683
+ _default_content_type = (
2684
+ self.api_client.select_header_content_type(
2685
+ [
2686
+ 'application/json'
2687
+ ]
2688
+ )
2689
+ )
2690
+ if _default_content_type is not None:
2691
+ _header_params['Content-Type'] = _default_content_type
2692
+
2693
+ # authentication setting
2694
+ _auth_settings: List[str] = [
2695
+ ]
2696
+
2697
+ return self.api_client.param_serialize(
2698
+ method='PATCH',
2699
+ resource_path='/v1alpha/{test.name}',
2700
+ path_params=_path_params,
2701
+ query_params=_query_params,
2702
+ header_params=_header_params,
2703
+ body=_body_params,
2704
+ post_params=_form_params,
2705
+ files=_files,
2706
+ auth_settings=_auth_settings,
2707
+ collection_formats=_collection_formats,
2708
+ _host=_host,
2709
+ _request_auth=_request_auth
2710
+ )
2711
+
2712
+