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,2142 @@
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, 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_dashboard_to_update import RequiredTheDashboardToUpdate
23
+ from eval_studio_client.api.models.v1alpha_batch_delete_dashboards_request import V1alphaBatchDeleteDashboardsRequest
24
+ from eval_studio_client.api.models.v1alpha_batch_delete_dashboards_response import V1alphaBatchDeleteDashboardsResponse
25
+ from eval_studio_client.api.models.v1alpha_batch_get_dashboards_response import V1alphaBatchGetDashboardsResponse
26
+ from eval_studio_client.api.models.v1alpha_create_dashboard_response import V1alphaCreateDashboardResponse
27
+ from eval_studio_client.api.models.v1alpha_dashboard import V1alphaDashboard
28
+ from eval_studio_client.api.models.v1alpha_delete_dashboard_response import V1alphaDeleteDashboardResponse
29
+ from eval_studio_client.api.models.v1alpha_get_dashboard_response import V1alphaGetDashboardResponse
30
+ from eval_studio_client.api.models.v1alpha_list_dashboards_response import V1alphaListDashboardsResponse
31
+ from eval_studio_client.api.models.v1alpha_list_most_recent_dashboards_response import V1alphaListMostRecentDashboardsResponse
32
+ from eval_studio_client.api.models.v1alpha_update_dashboard_response import V1alphaUpdateDashboardResponse
33
+
34
+ from eval_studio_client.api.api_client import ApiClient, RequestSerialized
35
+ from eval_studio_client.api.api_response import ApiResponse
36
+ from eval_studio_client.api.rest import RESTResponseType
37
+
38
+
39
+ class DashboardServiceApi:
40
+ """NOTE: This class is auto generated by OpenAPI Generator
41
+ Ref: https://openapi-generator.tech
42
+
43
+ Do not edit the class manually.
44
+ """
45
+
46
+ def __init__(self, api_client=None) -> None:
47
+ if api_client is None:
48
+ api_client = ApiClient.get_default()
49
+ self.api_client = api_client
50
+
51
+
52
+ @validate_call
53
+ def dashboard_service_batch_delete_dashboards(
54
+ self,
55
+ body: V1alphaBatchDeleteDashboardsRequest,
56
+ _request_timeout: Union[
57
+ None,
58
+ Annotated[StrictFloat, Field(gt=0)],
59
+ Tuple[
60
+ Annotated[StrictFloat, Field(gt=0)],
61
+ Annotated[StrictFloat, Field(gt=0)]
62
+ ]
63
+ ] = None,
64
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
65
+ _content_type: Optional[StrictStr] = None,
66
+ _headers: Optional[Dict[StrictStr, Any]] = None,
67
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
68
+ ) -> V1alphaBatchDeleteDashboardsResponse:
69
+ """dashboard_service_batch_delete_dashboards
70
+
71
+
72
+ :param body: (required)
73
+ :type body: V1alphaBatchDeleteDashboardsRequest
74
+ :param _request_timeout: timeout setting for this request. If one
75
+ number provided, it will be total request
76
+ timeout. It can also be a pair (tuple) of
77
+ (connection, read) timeouts.
78
+ :type _request_timeout: int, tuple(int, int), optional
79
+ :param _request_auth: set to override the auth_settings for an a single
80
+ request; this effectively ignores the
81
+ authentication in the spec for a single request.
82
+ :type _request_auth: dict, optional
83
+ :param _content_type: force content-type for the request.
84
+ :type _content_type: str, Optional
85
+ :param _headers: set to override the headers for a single
86
+ request; this effectively ignores the headers
87
+ in the spec for a single request.
88
+ :type _headers: dict, optional
89
+ :param _host_index: set to override the host_index for a single
90
+ request; this effectively ignores the host_index
91
+ in the spec for a single request.
92
+ :type _host_index: int, optional
93
+ :return: Returns the result object.
94
+ """ # noqa: E501
95
+
96
+ _param = self._dashboard_service_batch_delete_dashboards_serialize(
97
+ body=body,
98
+ _request_auth=_request_auth,
99
+ _content_type=_content_type,
100
+ _headers=_headers,
101
+ _host_index=_host_index
102
+ )
103
+
104
+ _response_types_map: Dict[str, Optional[str]] = {
105
+ '200': "V1alphaBatchDeleteDashboardsResponse",
106
+ }
107
+ response_data = self.api_client.call_api(
108
+ *_param,
109
+ _request_timeout=_request_timeout
110
+ )
111
+ response_data.read()
112
+ return self.api_client.response_deserialize(
113
+ response_data=response_data,
114
+ response_types_map=_response_types_map,
115
+ ).data
116
+
117
+
118
+ @validate_call
119
+ def dashboard_service_batch_delete_dashboards_with_http_info(
120
+ self,
121
+ body: V1alphaBatchDeleteDashboardsRequest,
122
+ _request_timeout: Union[
123
+ None,
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Tuple[
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Annotated[StrictFloat, Field(gt=0)]
128
+ ]
129
+ ] = None,
130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
131
+ _content_type: Optional[StrictStr] = None,
132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
134
+ ) -> ApiResponse[V1alphaBatchDeleteDashboardsResponse]:
135
+ """dashboard_service_batch_delete_dashboards
136
+
137
+
138
+ :param body: (required)
139
+ :type body: V1alphaBatchDeleteDashboardsRequest
140
+ :param _request_timeout: timeout setting for this request. If one
141
+ number provided, it will be total request
142
+ timeout. It can also be a pair (tuple) of
143
+ (connection, read) timeouts.
144
+ :type _request_timeout: int, tuple(int, int), optional
145
+ :param _request_auth: set to override the auth_settings for an a single
146
+ request; this effectively ignores the
147
+ authentication in the spec for a single request.
148
+ :type _request_auth: dict, optional
149
+ :param _content_type: force content-type for the request.
150
+ :type _content_type: str, Optional
151
+ :param _headers: set to override the headers for a single
152
+ request; this effectively ignores the headers
153
+ in the spec for a single request.
154
+ :type _headers: dict, optional
155
+ :param _host_index: set to override the host_index for a single
156
+ request; this effectively ignores the host_index
157
+ in the spec for a single request.
158
+ :type _host_index: int, optional
159
+ :return: Returns the result object.
160
+ """ # noqa: E501
161
+
162
+ _param = self._dashboard_service_batch_delete_dashboards_serialize(
163
+ body=body,
164
+ _request_auth=_request_auth,
165
+ _content_type=_content_type,
166
+ _headers=_headers,
167
+ _host_index=_host_index
168
+ )
169
+
170
+ _response_types_map: Dict[str, Optional[str]] = {
171
+ '200': "V1alphaBatchDeleteDashboardsResponse",
172
+ }
173
+ response_data = self.api_client.call_api(
174
+ *_param,
175
+ _request_timeout=_request_timeout
176
+ )
177
+ response_data.read()
178
+ return self.api_client.response_deserialize(
179
+ response_data=response_data,
180
+ response_types_map=_response_types_map,
181
+ )
182
+
183
+
184
+ @validate_call
185
+ def dashboard_service_batch_delete_dashboards_without_preload_content(
186
+ self,
187
+ body: V1alphaBatchDeleteDashboardsRequest,
188
+ _request_timeout: Union[
189
+ None,
190
+ Annotated[StrictFloat, Field(gt=0)],
191
+ Tuple[
192
+ Annotated[StrictFloat, Field(gt=0)],
193
+ Annotated[StrictFloat, Field(gt=0)]
194
+ ]
195
+ ] = None,
196
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
197
+ _content_type: Optional[StrictStr] = None,
198
+ _headers: Optional[Dict[StrictStr, Any]] = None,
199
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
200
+ ) -> RESTResponseType:
201
+ """dashboard_service_batch_delete_dashboards
202
+
203
+
204
+ :param body: (required)
205
+ :type body: V1alphaBatchDeleteDashboardsRequest
206
+ :param _request_timeout: timeout setting for this request. If one
207
+ number provided, it will be total request
208
+ timeout. It can also be a pair (tuple) of
209
+ (connection, read) timeouts.
210
+ :type _request_timeout: int, tuple(int, int), optional
211
+ :param _request_auth: set to override the auth_settings for an a single
212
+ request; this effectively ignores the
213
+ authentication in the spec for a single request.
214
+ :type _request_auth: dict, optional
215
+ :param _content_type: force content-type for the request.
216
+ :type _content_type: str, Optional
217
+ :param _headers: set to override the headers for a single
218
+ request; this effectively ignores the headers
219
+ in the spec for a single request.
220
+ :type _headers: dict, optional
221
+ :param _host_index: set to override the host_index for a single
222
+ request; this effectively ignores the host_index
223
+ in the spec for a single request.
224
+ :type _host_index: int, optional
225
+ :return: Returns the result object.
226
+ """ # noqa: E501
227
+
228
+ _param = self._dashboard_service_batch_delete_dashboards_serialize(
229
+ body=body,
230
+ _request_auth=_request_auth,
231
+ _content_type=_content_type,
232
+ _headers=_headers,
233
+ _host_index=_host_index
234
+ )
235
+
236
+ _response_types_map: Dict[str, Optional[str]] = {
237
+ '200': "V1alphaBatchDeleteDashboardsResponse",
238
+ }
239
+ response_data = self.api_client.call_api(
240
+ *_param,
241
+ _request_timeout=_request_timeout
242
+ )
243
+ return response_data.response
244
+
245
+
246
+ def _dashboard_service_batch_delete_dashboards_serialize(
247
+ self,
248
+ body,
249
+ _request_auth,
250
+ _content_type,
251
+ _headers,
252
+ _host_index,
253
+ ) -> RequestSerialized:
254
+
255
+ _host = None
256
+
257
+ _collection_formats: Dict[str, str] = {
258
+ }
259
+
260
+ _path_params: Dict[str, str] = {}
261
+ _query_params: List[Tuple[str, str]] = []
262
+ _header_params: Dict[str, Optional[str]] = _headers or {}
263
+ _form_params: List[Tuple[str, str]] = []
264
+ _files: Dict[str, Union[str, bytes]] = {}
265
+ _body_params: Optional[bytes] = None
266
+
267
+ # process the path parameters
268
+ # process the query parameters
269
+ # process the header parameters
270
+ # process the form parameters
271
+ # process the body parameter
272
+ if body is not None:
273
+ _body_params = body
274
+
275
+
276
+ # set the HTTP header `Accept`
277
+ _header_params['Accept'] = self.api_client.select_header_accept(
278
+ [
279
+ 'application/json'
280
+ ]
281
+ )
282
+
283
+ # set the HTTP header `Content-Type`
284
+ if _content_type:
285
+ _header_params['Content-Type'] = _content_type
286
+ else:
287
+ _default_content_type = (
288
+ self.api_client.select_header_content_type(
289
+ [
290
+ 'application/json'
291
+ ]
292
+ )
293
+ )
294
+ if _default_content_type is not None:
295
+ _header_params['Content-Type'] = _default_content_type
296
+
297
+ # authentication setting
298
+ _auth_settings: List[str] = [
299
+ ]
300
+
301
+ return self.api_client.param_serialize(
302
+ method='POST',
303
+ resource_path='/v1alpha/dashboards:batchDelete',
304
+ path_params=_path_params,
305
+ query_params=_query_params,
306
+ header_params=_header_params,
307
+ body=_body_params,
308
+ post_params=_form_params,
309
+ files=_files,
310
+ auth_settings=_auth_settings,
311
+ collection_formats=_collection_formats,
312
+ _host=_host,
313
+ _request_auth=_request_auth
314
+ )
315
+
316
+
317
+
318
+
319
+ @validate_call
320
+ def dashboard_service_batch_get_dashboards(
321
+ self,
322
+ names: Annotated[Optional[List[StrictStr]], Field(description="Required. The names of the Dashboards to retrieve. A maximum of 1000 can be specified.")] = None,
323
+ _request_timeout: Union[
324
+ None,
325
+ Annotated[StrictFloat, Field(gt=0)],
326
+ Tuple[
327
+ Annotated[StrictFloat, Field(gt=0)],
328
+ Annotated[StrictFloat, Field(gt=0)]
329
+ ]
330
+ ] = None,
331
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
332
+ _content_type: Optional[StrictStr] = None,
333
+ _headers: Optional[Dict[StrictStr, Any]] = None,
334
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
335
+ ) -> V1alphaBatchGetDashboardsResponse:
336
+ """dashboard_service_batch_get_dashboards
337
+
338
+
339
+ :param names: Required. The names of the Dashboards to retrieve. A maximum of 1000 can be specified.
340
+ :type names: List[str]
341
+ :param _request_timeout: timeout setting for this request. If one
342
+ number provided, it will be total request
343
+ timeout. It can also be a pair (tuple) of
344
+ (connection, read) timeouts.
345
+ :type _request_timeout: int, tuple(int, int), optional
346
+ :param _request_auth: set to override the auth_settings for an a single
347
+ request; this effectively ignores the
348
+ authentication in the spec for a single request.
349
+ :type _request_auth: dict, optional
350
+ :param _content_type: force content-type for the request.
351
+ :type _content_type: str, Optional
352
+ :param _headers: set to override the headers for a single
353
+ request; this effectively ignores the headers
354
+ in the spec for a single request.
355
+ :type _headers: dict, optional
356
+ :param _host_index: set to override the host_index for a single
357
+ request; this effectively ignores the host_index
358
+ in the spec for a single request.
359
+ :type _host_index: int, optional
360
+ :return: Returns the result object.
361
+ """ # noqa: E501
362
+
363
+ _param = self._dashboard_service_batch_get_dashboards_serialize(
364
+ names=names,
365
+ _request_auth=_request_auth,
366
+ _content_type=_content_type,
367
+ _headers=_headers,
368
+ _host_index=_host_index
369
+ )
370
+
371
+ _response_types_map: Dict[str, Optional[str]] = {
372
+ '200': "V1alphaBatchGetDashboardsResponse",
373
+ }
374
+ response_data = self.api_client.call_api(
375
+ *_param,
376
+ _request_timeout=_request_timeout
377
+ )
378
+ response_data.read()
379
+ return self.api_client.response_deserialize(
380
+ response_data=response_data,
381
+ response_types_map=_response_types_map,
382
+ ).data
383
+
384
+
385
+ @validate_call
386
+ def dashboard_service_batch_get_dashboards_with_http_info(
387
+ self,
388
+ names: Annotated[Optional[List[StrictStr]], Field(description="Required. The names of the Dashboards to retrieve. A maximum of 1000 can be specified.")] = None,
389
+ _request_timeout: Union[
390
+ None,
391
+ Annotated[StrictFloat, Field(gt=0)],
392
+ Tuple[
393
+ Annotated[StrictFloat, Field(gt=0)],
394
+ Annotated[StrictFloat, Field(gt=0)]
395
+ ]
396
+ ] = None,
397
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
398
+ _content_type: Optional[StrictStr] = None,
399
+ _headers: Optional[Dict[StrictStr, Any]] = None,
400
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
401
+ ) -> ApiResponse[V1alphaBatchGetDashboardsResponse]:
402
+ """dashboard_service_batch_get_dashboards
403
+
404
+
405
+ :param names: Required. The names of the Dashboards to retrieve. A maximum of 1000 can be specified.
406
+ :type names: List[str]
407
+ :param _request_timeout: timeout setting for this request. If one
408
+ number provided, it will be total request
409
+ timeout. It can also be a pair (tuple) of
410
+ (connection, read) timeouts.
411
+ :type _request_timeout: int, tuple(int, int), optional
412
+ :param _request_auth: set to override the auth_settings for an a single
413
+ request; this effectively ignores the
414
+ authentication in the spec for a single request.
415
+ :type _request_auth: dict, optional
416
+ :param _content_type: force content-type for the request.
417
+ :type _content_type: str, Optional
418
+ :param _headers: set to override the headers for a single
419
+ request; this effectively ignores the headers
420
+ in the spec for a single request.
421
+ :type _headers: dict, optional
422
+ :param _host_index: set to override the host_index for a single
423
+ request; this effectively ignores the host_index
424
+ in the spec for a single request.
425
+ :type _host_index: int, optional
426
+ :return: Returns the result object.
427
+ """ # noqa: E501
428
+
429
+ _param = self._dashboard_service_batch_get_dashboards_serialize(
430
+ names=names,
431
+ _request_auth=_request_auth,
432
+ _content_type=_content_type,
433
+ _headers=_headers,
434
+ _host_index=_host_index
435
+ )
436
+
437
+ _response_types_map: Dict[str, Optional[str]] = {
438
+ '200': "V1alphaBatchGetDashboardsResponse",
439
+ }
440
+ response_data = self.api_client.call_api(
441
+ *_param,
442
+ _request_timeout=_request_timeout
443
+ )
444
+ response_data.read()
445
+ return self.api_client.response_deserialize(
446
+ response_data=response_data,
447
+ response_types_map=_response_types_map,
448
+ )
449
+
450
+
451
+ @validate_call
452
+ def dashboard_service_batch_get_dashboards_without_preload_content(
453
+ self,
454
+ names: Annotated[Optional[List[StrictStr]], Field(description="Required. The names of the Dashboards to retrieve. A maximum of 1000 can be specified.")] = None,
455
+ _request_timeout: Union[
456
+ None,
457
+ Annotated[StrictFloat, Field(gt=0)],
458
+ Tuple[
459
+ Annotated[StrictFloat, Field(gt=0)],
460
+ Annotated[StrictFloat, Field(gt=0)]
461
+ ]
462
+ ] = None,
463
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
464
+ _content_type: Optional[StrictStr] = None,
465
+ _headers: Optional[Dict[StrictStr, Any]] = None,
466
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
467
+ ) -> RESTResponseType:
468
+ """dashboard_service_batch_get_dashboards
469
+
470
+
471
+ :param names: Required. The names of the Dashboards to retrieve. A maximum of 1000 can be specified.
472
+ :type names: List[str]
473
+ :param _request_timeout: timeout setting for this request. If one
474
+ number provided, it will be total request
475
+ timeout. It can also be a pair (tuple) of
476
+ (connection, read) timeouts.
477
+ :type _request_timeout: int, tuple(int, int), optional
478
+ :param _request_auth: set to override the auth_settings for an a single
479
+ request; this effectively ignores the
480
+ authentication in the spec for a single request.
481
+ :type _request_auth: dict, optional
482
+ :param _content_type: force content-type for the request.
483
+ :type _content_type: str, Optional
484
+ :param _headers: set to override the headers for a single
485
+ request; this effectively ignores the headers
486
+ in the spec for a single request.
487
+ :type _headers: dict, optional
488
+ :param _host_index: set to override the host_index for a single
489
+ request; this effectively ignores the host_index
490
+ in the spec for a single request.
491
+ :type _host_index: int, optional
492
+ :return: Returns the result object.
493
+ """ # noqa: E501
494
+
495
+ _param = self._dashboard_service_batch_get_dashboards_serialize(
496
+ names=names,
497
+ _request_auth=_request_auth,
498
+ _content_type=_content_type,
499
+ _headers=_headers,
500
+ _host_index=_host_index
501
+ )
502
+
503
+ _response_types_map: Dict[str, Optional[str]] = {
504
+ '200': "V1alphaBatchGetDashboardsResponse",
505
+ }
506
+ response_data = self.api_client.call_api(
507
+ *_param,
508
+ _request_timeout=_request_timeout
509
+ )
510
+ return response_data.response
511
+
512
+
513
+ def _dashboard_service_batch_get_dashboards_serialize(
514
+ self,
515
+ names,
516
+ _request_auth,
517
+ _content_type,
518
+ _headers,
519
+ _host_index,
520
+ ) -> RequestSerialized:
521
+
522
+ _host = None
523
+
524
+ _collection_formats: Dict[str, str] = {
525
+ 'names': 'multi',
526
+ }
527
+
528
+ _path_params: Dict[str, str] = {}
529
+ _query_params: List[Tuple[str, str]] = []
530
+ _header_params: Dict[str, Optional[str]] = _headers or {}
531
+ _form_params: List[Tuple[str, str]] = []
532
+ _files: Dict[str, Union[str, bytes]] = {}
533
+ _body_params: Optional[bytes] = None
534
+
535
+ # process the path parameters
536
+ # process the query parameters
537
+ if names is not None:
538
+
539
+ _query_params.append(('names', names))
540
+
541
+ # process the header parameters
542
+ # process the form parameters
543
+ # process the body parameter
544
+
545
+
546
+ # set the HTTP header `Accept`
547
+ _header_params['Accept'] = self.api_client.select_header_accept(
548
+ [
549
+ 'application/json'
550
+ ]
551
+ )
552
+
553
+
554
+ # authentication setting
555
+ _auth_settings: List[str] = [
556
+ ]
557
+
558
+ return self.api_client.param_serialize(
559
+ method='GET',
560
+ resource_path='/v1alpha/dashboards:batchGet',
561
+ path_params=_path_params,
562
+ query_params=_query_params,
563
+ header_params=_header_params,
564
+ body=_body_params,
565
+ post_params=_form_params,
566
+ files=_files,
567
+ auth_settings=_auth_settings,
568
+ collection_formats=_collection_formats,
569
+ _host=_host,
570
+ _request_auth=_request_auth
571
+ )
572
+
573
+
574
+
575
+
576
+ @validate_call
577
+ def dashboard_service_create_dashboard(
578
+ self,
579
+ dashboard: Annotated[V1alphaDashboard, Field(description="Required. The Dashboard to create.")],
580
+ _request_timeout: Union[
581
+ None,
582
+ Annotated[StrictFloat, Field(gt=0)],
583
+ Tuple[
584
+ Annotated[StrictFloat, Field(gt=0)],
585
+ Annotated[StrictFloat, Field(gt=0)]
586
+ ]
587
+ ] = None,
588
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
589
+ _content_type: Optional[StrictStr] = None,
590
+ _headers: Optional[Dict[StrictStr, Any]] = None,
591
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
592
+ ) -> V1alphaCreateDashboardResponse:
593
+ """dashboard_service_create_dashboard
594
+
595
+
596
+ :param dashboard: Required. The Dashboard to create. (required)
597
+ :type dashboard: V1alphaDashboard
598
+ :param _request_timeout: timeout setting for this request. If one
599
+ number provided, it will be total request
600
+ timeout. It can also be a pair (tuple) of
601
+ (connection, read) timeouts.
602
+ :type _request_timeout: int, tuple(int, int), optional
603
+ :param _request_auth: set to override the auth_settings for an a single
604
+ request; this effectively ignores the
605
+ authentication in the spec for a single request.
606
+ :type _request_auth: dict, optional
607
+ :param _content_type: force content-type for the request.
608
+ :type _content_type: str, Optional
609
+ :param _headers: set to override the headers for a single
610
+ request; this effectively ignores the headers
611
+ in the spec for a single request.
612
+ :type _headers: dict, optional
613
+ :param _host_index: set to override the host_index for a single
614
+ request; this effectively ignores the host_index
615
+ in the spec for a single request.
616
+ :type _host_index: int, optional
617
+ :return: Returns the result object.
618
+ """ # noqa: E501
619
+
620
+ _param = self._dashboard_service_create_dashboard_serialize(
621
+ dashboard=dashboard,
622
+ _request_auth=_request_auth,
623
+ _content_type=_content_type,
624
+ _headers=_headers,
625
+ _host_index=_host_index
626
+ )
627
+
628
+ _response_types_map: Dict[str, Optional[str]] = {
629
+ '200': "V1alphaCreateDashboardResponse",
630
+ }
631
+ response_data = self.api_client.call_api(
632
+ *_param,
633
+ _request_timeout=_request_timeout
634
+ )
635
+ response_data.read()
636
+ return self.api_client.response_deserialize(
637
+ response_data=response_data,
638
+ response_types_map=_response_types_map,
639
+ ).data
640
+
641
+
642
+ @validate_call
643
+ def dashboard_service_create_dashboard_with_http_info(
644
+ self,
645
+ dashboard: Annotated[V1alphaDashboard, Field(description="Required. The Dashboard to create.")],
646
+ _request_timeout: Union[
647
+ None,
648
+ Annotated[StrictFloat, Field(gt=0)],
649
+ Tuple[
650
+ Annotated[StrictFloat, Field(gt=0)],
651
+ Annotated[StrictFloat, Field(gt=0)]
652
+ ]
653
+ ] = None,
654
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
655
+ _content_type: Optional[StrictStr] = None,
656
+ _headers: Optional[Dict[StrictStr, Any]] = None,
657
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
658
+ ) -> ApiResponse[V1alphaCreateDashboardResponse]:
659
+ """dashboard_service_create_dashboard
660
+
661
+
662
+ :param dashboard: Required. The Dashboard to create. (required)
663
+ :type dashboard: V1alphaDashboard
664
+ :param _request_timeout: timeout setting for this request. If one
665
+ number provided, it will be total request
666
+ timeout. It can also be a pair (tuple) of
667
+ (connection, read) timeouts.
668
+ :type _request_timeout: int, tuple(int, int), optional
669
+ :param _request_auth: set to override the auth_settings for an a single
670
+ request; this effectively ignores the
671
+ authentication in the spec for a single request.
672
+ :type _request_auth: dict, optional
673
+ :param _content_type: force content-type for the request.
674
+ :type _content_type: str, Optional
675
+ :param _headers: set to override the headers for a single
676
+ request; this effectively ignores the headers
677
+ in the spec for a single request.
678
+ :type _headers: dict, optional
679
+ :param _host_index: set to override the host_index for a single
680
+ request; this effectively ignores the host_index
681
+ in the spec for a single request.
682
+ :type _host_index: int, optional
683
+ :return: Returns the result object.
684
+ """ # noqa: E501
685
+
686
+ _param = self._dashboard_service_create_dashboard_serialize(
687
+ dashboard=dashboard,
688
+ _request_auth=_request_auth,
689
+ _content_type=_content_type,
690
+ _headers=_headers,
691
+ _host_index=_host_index
692
+ )
693
+
694
+ _response_types_map: Dict[str, Optional[str]] = {
695
+ '200': "V1alphaCreateDashboardResponse",
696
+ }
697
+ response_data = self.api_client.call_api(
698
+ *_param,
699
+ _request_timeout=_request_timeout
700
+ )
701
+ response_data.read()
702
+ return self.api_client.response_deserialize(
703
+ response_data=response_data,
704
+ response_types_map=_response_types_map,
705
+ )
706
+
707
+
708
+ @validate_call
709
+ def dashboard_service_create_dashboard_without_preload_content(
710
+ self,
711
+ dashboard: Annotated[V1alphaDashboard, Field(description="Required. The Dashboard to create.")],
712
+ _request_timeout: Union[
713
+ None,
714
+ Annotated[StrictFloat, Field(gt=0)],
715
+ Tuple[
716
+ Annotated[StrictFloat, Field(gt=0)],
717
+ Annotated[StrictFloat, Field(gt=0)]
718
+ ]
719
+ ] = None,
720
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
721
+ _content_type: Optional[StrictStr] = None,
722
+ _headers: Optional[Dict[StrictStr, Any]] = None,
723
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
724
+ ) -> RESTResponseType:
725
+ """dashboard_service_create_dashboard
726
+
727
+
728
+ :param dashboard: Required. The Dashboard to create. (required)
729
+ :type dashboard: V1alphaDashboard
730
+ :param _request_timeout: timeout setting for this request. If one
731
+ number provided, it will be total request
732
+ timeout. It can also be a pair (tuple) of
733
+ (connection, read) timeouts.
734
+ :type _request_timeout: int, tuple(int, int), optional
735
+ :param _request_auth: set to override the auth_settings for an a single
736
+ request; this effectively ignores the
737
+ authentication in the spec for a single request.
738
+ :type _request_auth: dict, optional
739
+ :param _content_type: force content-type for the request.
740
+ :type _content_type: str, Optional
741
+ :param _headers: set to override the headers for a single
742
+ request; this effectively ignores the headers
743
+ in the spec for a single request.
744
+ :type _headers: dict, optional
745
+ :param _host_index: set to override the host_index for a single
746
+ request; this effectively ignores the host_index
747
+ in the spec for a single request.
748
+ :type _host_index: int, optional
749
+ :return: Returns the result object.
750
+ """ # noqa: E501
751
+
752
+ _param = self._dashboard_service_create_dashboard_serialize(
753
+ dashboard=dashboard,
754
+ _request_auth=_request_auth,
755
+ _content_type=_content_type,
756
+ _headers=_headers,
757
+ _host_index=_host_index
758
+ )
759
+
760
+ _response_types_map: Dict[str, Optional[str]] = {
761
+ '200': "V1alphaCreateDashboardResponse",
762
+ }
763
+ response_data = self.api_client.call_api(
764
+ *_param,
765
+ _request_timeout=_request_timeout
766
+ )
767
+ return response_data.response
768
+
769
+
770
+ def _dashboard_service_create_dashboard_serialize(
771
+ self,
772
+ dashboard,
773
+ _request_auth,
774
+ _content_type,
775
+ _headers,
776
+ _host_index,
777
+ ) -> RequestSerialized:
778
+
779
+ _host = None
780
+
781
+ _collection_formats: Dict[str, str] = {
782
+ }
783
+
784
+ _path_params: Dict[str, str] = {}
785
+ _query_params: List[Tuple[str, str]] = []
786
+ _header_params: Dict[str, Optional[str]] = _headers or {}
787
+ _form_params: List[Tuple[str, str]] = []
788
+ _files: Dict[str, Union[str, bytes]] = {}
789
+ _body_params: Optional[bytes] = None
790
+
791
+ # process the path parameters
792
+ # process the query parameters
793
+ # process the header parameters
794
+ # process the form parameters
795
+ # process the body parameter
796
+ if dashboard is not None:
797
+ _body_params = dashboard
798
+
799
+
800
+ # set the HTTP header `Accept`
801
+ _header_params['Accept'] = self.api_client.select_header_accept(
802
+ [
803
+ 'application/json'
804
+ ]
805
+ )
806
+
807
+ # set the HTTP header `Content-Type`
808
+ if _content_type:
809
+ _header_params['Content-Type'] = _content_type
810
+ else:
811
+ _default_content_type = (
812
+ self.api_client.select_header_content_type(
813
+ [
814
+ 'application/json'
815
+ ]
816
+ )
817
+ )
818
+ if _default_content_type is not None:
819
+ _header_params['Content-Type'] = _default_content_type
820
+
821
+ # authentication setting
822
+ _auth_settings: List[str] = [
823
+ ]
824
+
825
+ return self.api_client.param_serialize(
826
+ method='POST',
827
+ resource_path='/v1alpha/dashboards',
828
+ path_params=_path_params,
829
+ query_params=_query_params,
830
+ header_params=_header_params,
831
+ body=_body_params,
832
+ post_params=_form_params,
833
+ files=_files,
834
+ auth_settings=_auth_settings,
835
+ collection_formats=_collection_formats,
836
+ _host=_host,
837
+ _request_auth=_request_auth
838
+ )
839
+
840
+
841
+
842
+
843
+ @validate_call
844
+ def dashboard_service_delete_dashboard(
845
+ self,
846
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to delete.")],
847
+ _request_timeout: Union[
848
+ None,
849
+ Annotated[StrictFloat, Field(gt=0)],
850
+ Tuple[
851
+ Annotated[StrictFloat, Field(gt=0)],
852
+ Annotated[StrictFloat, Field(gt=0)]
853
+ ]
854
+ ] = None,
855
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
856
+ _content_type: Optional[StrictStr] = None,
857
+ _headers: Optional[Dict[StrictStr, Any]] = None,
858
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
859
+ ) -> V1alphaDeleteDashboardResponse:
860
+ """dashboard_service_delete_dashboard
861
+
862
+
863
+ :param name: Required. The name of the Dashboard to delete. (required)
864
+ :type name: str
865
+ :param _request_timeout: timeout setting for this request. If one
866
+ number provided, it will be total request
867
+ timeout. It can also be a pair (tuple) of
868
+ (connection, read) timeouts.
869
+ :type _request_timeout: int, tuple(int, int), optional
870
+ :param _request_auth: set to override the auth_settings for an a single
871
+ request; this effectively ignores the
872
+ authentication in the spec for a single request.
873
+ :type _request_auth: dict, optional
874
+ :param _content_type: force content-type for the request.
875
+ :type _content_type: str, Optional
876
+ :param _headers: set to override the headers for a single
877
+ request; this effectively ignores the headers
878
+ in the spec for a single request.
879
+ :type _headers: dict, optional
880
+ :param _host_index: set to override the host_index for a single
881
+ request; this effectively ignores the host_index
882
+ in the spec for a single request.
883
+ :type _host_index: int, optional
884
+ :return: Returns the result object.
885
+ """ # noqa: E501
886
+
887
+ _param = self._dashboard_service_delete_dashboard_serialize(
888
+ name=name,
889
+ _request_auth=_request_auth,
890
+ _content_type=_content_type,
891
+ _headers=_headers,
892
+ _host_index=_host_index
893
+ )
894
+
895
+ _response_types_map: Dict[str, Optional[str]] = {
896
+ '200': "V1alphaDeleteDashboardResponse",
897
+ }
898
+ response_data = self.api_client.call_api(
899
+ *_param,
900
+ _request_timeout=_request_timeout
901
+ )
902
+ response_data.read()
903
+ return self.api_client.response_deserialize(
904
+ response_data=response_data,
905
+ response_types_map=_response_types_map,
906
+ ).data
907
+
908
+
909
+ @validate_call
910
+ def dashboard_service_delete_dashboard_with_http_info(
911
+ self,
912
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to delete.")],
913
+ _request_timeout: Union[
914
+ None,
915
+ Annotated[StrictFloat, Field(gt=0)],
916
+ Tuple[
917
+ Annotated[StrictFloat, Field(gt=0)],
918
+ Annotated[StrictFloat, Field(gt=0)]
919
+ ]
920
+ ] = None,
921
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
922
+ _content_type: Optional[StrictStr] = None,
923
+ _headers: Optional[Dict[StrictStr, Any]] = None,
924
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
925
+ ) -> ApiResponse[V1alphaDeleteDashboardResponse]:
926
+ """dashboard_service_delete_dashboard
927
+
928
+
929
+ :param name: Required. The name of the Dashboard to delete. (required)
930
+ :type name: str
931
+ :param _request_timeout: timeout setting for this request. If one
932
+ number provided, it will be total request
933
+ timeout. It can also be a pair (tuple) of
934
+ (connection, read) timeouts.
935
+ :type _request_timeout: int, tuple(int, int), optional
936
+ :param _request_auth: set to override the auth_settings for an a single
937
+ request; this effectively ignores the
938
+ authentication in the spec for a single request.
939
+ :type _request_auth: dict, optional
940
+ :param _content_type: force content-type for the request.
941
+ :type _content_type: str, Optional
942
+ :param _headers: set to override the headers for a single
943
+ request; this effectively ignores the headers
944
+ in the spec for a single request.
945
+ :type _headers: dict, optional
946
+ :param _host_index: set to override the host_index for a single
947
+ request; this effectively ignores the host_index
948
+ in the spec for a single request.
949
+ :type _host_index: int, optional
950
+ :return: Returns the result object.
951
+ """ # noqa: E501
952
+
953
+ _param = self._dashboard_service_delete_dashboard_serialize(
954
+ name=name,
955
+ _request_auth=_request_auth,
956
+ _content_type=_content_type,
957
+ _headers=_headers,
958
+ _host_index=_host_index
959
+ )
960
+
961
+ _response_types_map: Dict[str, Optional[str]] = {
962
+ '200': "V1alphaDeleteDashboardResponse",
963
+ }
964
+ response_data = self.api_client.call_api(
965
+ *_param,
966
+ _request_timeout=_request_timeout
967
+ )
968
+ response_data.read()
969
+ return self.api_client.response_deserialize(
970
+ response_data=response_data,
971
+ response_types_map=_response_types_map,
972
+ )
973
+
974
+
975
+ @validate_call
976
+ def dashboard_service_delete_dashboard_without_preload_content(
977
+ self,
978
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to delete.")],
979
+ _request_timeout: Union[
980
+ None,
981
+ Annotated[StrictFloat, Field(gt=0)],
982
+ Tuple[
983
+ Annotated[StrictFloat, Field(gt=0)],
984
+ Annotated[StrictFloat, Field(gt=0)]
985
+ ]
986
+ ] = None,
987
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
988
+ _content_type: Optional[StrictStr] = None,
989
+ _headers: Optional[Dict[StrictStr, Any]] = None,
990
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
991
+ ) -> RESTResponseType:
992
+ """dashboard_service_delete_dashboard
993
+
994
+
995
+ :param name: Required. The name of the Dashboard to delete. (required)
996
+ :type name: str
997
+ :param _request_timeout: timeout setting for this request. If one
998
+ number provided, it will be total request
999
+ timeout. It can also be a pair (tuple) of
1000
+ (connection, read) timeouts.
1001
+ :type _request_timeout: int, tuple(int, int), optional
1002
+ :param _request_auth: set to override the auth_settings for an a single
1003
+ request; this effectively ignores the
1004
+ authentication in the spec for a single request.
1005
+ :type _request_auth: dict, optional
1006
+ :param _content_type: force content-type for the request.
1007
+ :type _content_type: str, Optional
1008
+ :param _headers: set to override the headers for a single
1009
+ request; this effectively ignores the headers
1010
+ in the spec for a single request.
1011
+ :type _headers: dict, optional
1012
+ :param _host_index: set to override the host_index for a single
1013
+ request; this effectively ignores the host_index
1014
+ in the spec for a single request.
1015
+ :type _host_index: int, optional
1016
+ :return: Returns the result object.
1017
+ """ # noqa: E501
1018
+
1019
+ _param = self._dashboard_service_delete_dashboard_serialize(
1020
+ name=name,
1021
+ _request_auth=_request_auth,
1022
+ _content_type=_content_type,
1023
+ _headers=_headers,
1024
+ _host_index=_host_index
1025
+ )
1026
+
1027
+ _response_types_map: Dict[str, Optional[str]] = {
1028
+ '200': "V1alphaDeleteDashboardResponse",
1029
+ }
1030
+ response_data = self.api_client.call_api(
1031
+ *_param,
1032
+ _request_timeout=_request_timeout
1033
+ )
1034
+ return response_data.response
1035
+
1036
+
1037
+ def _dashboard_service_delete_dashboard_serialize(
1038
+ self,
1039
+ name,
1040
+ _request_auth,
1041
+ _content_type,
1042
+ _headers,
1043
+ _host_index,
1044
+ ) -> RequestSerialized:
1045
+
1046
+ _host = None
1047
+
1048
+ _collection_formats: Dict[str, str] = {
1049
+ }
1050
+
1051
+ _path_params: Dict[str, str] = {}
1052
+ _query_params: List[Tuple[str, str]] = []
1053
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1054
+ _form_params: List[Tuple[str, str]] = []
1055
+ _files: Dict[str, Union[str, bytes]] = {}
1056
+ _body_params: Optional[bytes] = None
1057
+
1058
+ # process the path parameters
1059
+ if name is not None:
1060
+ _path_params['name'] = name
1061
+ # process the query parameters
1062
+ # process the header parameters
1063
+ # process the form parameters
1064
+ # process the body parameter
1065
+
1066
+
1067
+ # set the HTTP header `Accept`
1068
+ _header_params['Accept'] = self.api_client.select_header_accept(
1069
+ [
1070
+ 'application/json'
1071
+ ]
1072
+ )
1073
+
1074
+
1075
+ # authentication setting
1076
+ _auth_settings: List[str] = [
1077
+ ]
1078
+
1079
+ return self.api_client.param_serialize(
1080
+ method='DELETE',
1081
+ resource_path='/v1alpha/{name}',
1082
+ path_params=_path_params,
1083
+ query_params=_query_params,
1084
+ header_params=_header_params,
1085
+ body=_body_params,
1086
+ post_params=_form_params,
1087
+ files=_files,
1088
+ auth_settings=_auth_settings,
1089
+ collection_formats=_collection_formats,
1090
+ _host=_host,
1091
+ _request_auth=_request_auth
1092
+ )
1093
+
1094
+
1095
+
1096
+
1097
+ @validate_call
1098
+ def dashboard_service_get_dashboard(
1099
+ self,
1100
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to retrieve.")],
1101
+ _request_timeout: Union[
1102
+ None,
1103
+ Annotated[StrictFloat, Field(gt=0)],
1104
+ Tuple[
1105
+ Annotated[StrictFloat, Field(gt=0)],
1106
+ Annotated[StrictFloat, Field(gt=0)]
1107
+ ]
1108
+ ] = None,
1109
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1110
+ _content_type: Optional[StrictStr] = None,
1111
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1112
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1113
+ ) -> V1alphaGetDashboardResponse:
1114
+ """dashboard_service_get_dashboard
1115
+
1116
+
1117
+ :param name: Required. The name of the Dashboard to retrieve. (required)
1118
+ :type name: str
1119
+ :param _request_timeout: timeout setting for this request. If one
1120
+ number provided, it will be total request
1121
+ timeout. It can also be a pair (tuple) of
1122
+ (connection, read) timeouts.
1123
+ :type _request_timeout: int, tuple(int, int), optional
1124
+ :param _request_auth: set to override the auth_settings for an a single
1125
+ request; this effectively ignores the
1126
+ authentication in the spec for a single request.
1127
+ :type _request_auth: dict, optional
1128
+ :param _content_type: force content-type for the request.
1129
+ :type _content_type: str, Optional
1130
+ :param _headers: set to override the headers for a single
1131
+ request; this effectively ignores the headers
1132
+ in the spec for a single request.
1133
+ :type _headers: dict, optional
1134
+ :param _host_index: set to override the host_index for a single
1135
+ request; this effectively ignores the host_index
1136
+ in the spec for a single request.
1137
+ :type _host_index: int, optional
1138
+ :return: Returns the result object.
1139
+ """ # noqa: E501
1140
+
1141
+ _param = self._dashboard_service_get_dashboard_serialize(
1142
+ name=name,
1143
+ _request_auth=_request_auth,
1144
+ _content_type=_content_type,
1145
+ _headers=_headers,
1146
+ _host_index=_host_index
1147
+ )
1148
+
1149
+ _response_types_map: Dict[str, Optional[str]] = {
1150
+ '200': "V1alphaGetDashboardResponse",
1151
+ }
1152
+ response_data = self.api_client.call_api(
1153
+ *_param,
1154
+ _request_timeout=_request_timeout
1155
+ )
1156
+ response_data.read()
1157
+ return self.api_client.response_deserialize(
1158
+ response_data=response_data,
1159
+ response_types_map=_response_types_map,
1160
+ ).data
1161
+
1162
+
1163
+ @validate_call
1164
+ def dashboard_service_get_dashboard_with_http_info(
1165
+ self,
1166
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to retrieve.")],
1167
+ _request_timeout: Union[
1168
+ None,
1169
+ Annotated[StrictFloat, Field(gt=0)],
1170
+ Tuple[
1171
+ Annotated[StrictFloat, Field(gt=0)],
1172
+ Annotated[StrictFloat, Field(gt=0)]
1173
+ ]
1174
+ ] = None,
1175
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1176
+ _content_type: Optional[StrictStr] = None,
1177
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1178
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1179
+ ) -> ApiResponse[V1alphaGetDashboardResponse]:
1180
+ """dashboard_service_get_dashboard
1181
+
1182
+
1183
+ :param name: Required. The name of the Dashboard to retrieve. (required)
1184
+ :type name: str
1185
+ :param _request_timeout: timeout setting for this request. If one
1186
+ number provided, it will be total request
1187
+ timeout. It can also be a pair (tuple) of
1188
+ (connection, read) timeouts.
1189
+ :type _request_timeout: int, tuple(int, int), optional
1190
+ :param _request_auth: set to override the auth_settings for an a single
1191
+ request; this effectively ignores the
1192
+ authentication in the spec for a single request.
1193
+ :type _request_auth: dict, optional
1194
+ :param _content_type: force content-type for the request.
1195
+ :type _content_type: str, Optional
1196
+ :param _headers: set to override the headers for a single
1197
+ request; this effectively ignores the headers
1198
+ in the spec for a single request.
1199
+ :type _headers: dict, optional
1200
+ :param _host_index: set to override the host_index for a single
1201
+ request; this effectively ignores the host_index
1202
+ in the spec for a single request.
1203
+ :type _host_index: int, optional
1204
+ :return: Returns the result object.
1205
+ """ # noqa: E501
1206
+
1207
+ _param = self._dashboard_service_get_dashboard_serialize(
1208
+ name=name,
1209
+ _request_auth=_request_auth,
1210
+ _content_type=_content_type,
1211
+ _headers=_headers,
1212
+ _host_index=_host_index
1213
+ )
1214
+
1215
+ _response_types_map: Dict[str, Optional[str]] = {
1216
+ '200': "V1alphaGetDashboardResponse",
1217
+ }
1218
+ response_data = self.api_client.call_api(
1219
+ *_param,
1220
+ _request_timeout=_request_timeout
1221
+ )
1222
+ response_data.read()
1223
+ return self.api_client.response_deserialize(
1224
+ response_data=response_data,
1225
+ response_types_map=_response_types_map,
1226
+ )
1227
+
1228
+
1229
+ @validate_call
1230
+ def dashboard_service_get_dashboard_without_preload_content(
1231
+ self,
1232
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to retrieve.")],
1233
+ _request_timeout: Union[
1234
+ None,
1235
+ Annotated[StrictFloat, Field(gt=0)],
1236
+ Tuple[
1237
+ Annotated[StrictFloat, Field(gt=0)],
1238
+ Annotated[StrictFloat, Field(gt=0)]
1239
+ ]
1240
+ ] = None,
1241
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1242
+ _content_type: Optional[StrictStr] = None,
1243
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1244
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1245
+ ) -> RESTResponseType:
1246
+ """dashboard_service_get_dashboard
1247
+
1248
+
1249
+ :param name: Required. The name of the Dashboard to retrieve. (required)
1250
+ :type name: str
1251
+ :param _request_timeout: timeout setting for this request. If one
1252
+ number provided, it will be total request
1253
+ timeout. It can also be a pair (tuple) of
1254
+ (connection, read) timeouts.
1255
+ :type _request_timeout: int, tuple(int, int), optional
1256
+ :param _request_auth: set to override the auth_settings for an a single
1257
+ request; this effectively ignores the
1258
+ authentication in the spec for a single request.
1259
+ :type _request_auth: dict, optional
1260
+ :param _content_type: force content-type for the request.
1261
+ :type _content_type: str, Optional
1262
+ :param _headers: set to override the headers for a single
1263
+ request; this effectively ignores the headers
1264
+ in the spec for a single request.
1265
+ :type _headers: dict, optional
1266
+ :param _host_index: set to override the host_index for a single
1267
+ request; this effectively ignores the host_index
1268
+ in the spec for a single request.
1269
+ :type _host_index: int, optional
1270
+ :return: Returns the result object.
1271
+ """ # noqa: E501
1272
+
1273
+ _param = self._dashboard_service_get_dashboard_serialize(
1274
+ name=name,
1275
+ _request_auth=_request_auth,
1276
+ _content_type=_content_type,
1277
+ _headers=_headers,
1278
+ _host_index=_host_index
1279
+ )
1280
+
1281
+ _response_types_map: Dict[str, Optional[str]] = {
1282
+ '200': "V1alphaGetDashboardResponse",
1283
+ }
1284
+ response_data = self.api_client.call_api(
1285
+ *_param,
1286
+ _request_timeout=_request_timeout
1287
+ )
1288
+ return response_data.response
1289
+
1290
+
1291
+ def _dashboard_service_get_dashboard_serialize(
1292
+ self,
1293
+ name,
1294
+ _request_auth,
1295
+ _content_type,
1296
+ _headers,
1297
+ _host_index,
1298
+ ) -> RequestSerialized:
1299
+
1300
+ _host = None
1301
+
1302
+ _collection_formats: Dict[str, str] = {
1303
+ }
1304
+
1305
+ _path_params: Dict[str, str] = {}
1306
+ _query_params: List[Tuple[str, str]] = []
1307
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1308
+ _form_params: List[Tuple[str, str]] = []
1309
+ _files: Dict[str, Union[str, bytes]] = {}
1310
+ _body_params: Optional[bytes] = None
1311
+
1312
+ # process the path parameters
1313
+ if name is not None:
1314
+ _path_params['name'] = name
1315
+ # process the query parameters
1316
+ # process the header parameters
1317
+ # process the form parameters
1318
+ # process the body parameter
1319
+
1320
+
1321
+ # set the HTTP header `Accept`
1322
+ _header_params['Accept'] = self.api_client.select_header_accept(
1323
+ [
1324
+ 'application/json'
1325
+ ]
1326
+ )
1327
+
1328
+
1329
+ # authentication setting
1330
+ _auth_settings: List[str] = [
1331
+ ]
1332
+
1333
+ return self.api_client.param_serialize(
1334
+ method='GET',
1335
+ resource_path='/v1alpha/{name}',
1336
+ path_params=_path_params,
1337
+ query_params=_query_params,
1338
+ header_params=_header_params,
1339
+ body=_body_params,
1340
+ post_params=_form_params,
1341
+ files=_files,
1342
+ auth_settings=_auth_settings,
1343
+ collection_formats=_collection_formats,
1344
+ _host=_host,
1345
+ _request_auth=_request_auth
1346
+ )
1347
+
1348
+
1349
+
1350
+
1351
+ @validate_call
1352
+ def dashboard_service_list_dashboards(
1353
+ self,
1354
+ filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"")] = None,
1355
+ _request_timeout: Union[
1356
+ None,
1357
+ Annotated[StrictFloat, Field(gt=0)],
1358
+ Tuple[
1359
+ Annotated[StrictFloat, Field(gt=0)],
1360
+ Annotated[StrictFloat, Field(gt=0)]
1361
+ ]
1362
+ ] = None,
1363
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1364
+ _content_type: Optional[StrictStr] = None,
1365
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1366
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1367
+ ) -> V1alphaListDashboardsResponse:
1368
+ """dashboard_service_list_dashboards
1369
+
1370
+
1371
+ :param filter: Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"
1372
+ :type filter: str
1373
+ :param _request_timeout: timeout setting for this request. If one
1374
+ number provided, it will be total request
1375
+ timeout. It can also be a pair (tuple) of
1376
+ (connection, read) timeouts.
1377
+ :type _request_timeout: int, tuple(int, int), optional
1378
+ :param _request_auth: set to override the auth_settings for an a single
1379
+ request; this effectively ignores the
1380
+ authentication in the spec for a single request.
1381
+ :type _request_auth: dict, optional
1382
+ :param _content_type: force content-type for the request.
1383
+ :type _content_type: str, Optional
1384
+ :param _headers: set to override the headers for a single
1385
+ request; this effectively ignores the headers
1386
+ in the spec for a single request.
1387
+ :type _headers: dict, optional
1388
+ :param _host_index: set to override the host_index for a single
1389
+ request; this effectively ignores the host_index
1390
+ in the spec for a single request.
1391
+ :type _host_index: int, optional
1392
+ :return: Returns the result object.
1393
+ """ # noqa: E501
1394
+
1395
+ _param = self._dashboard_service_list_dashboards_serialize(
1396
+ filter=filter,
1397
+ _request_auth=_request_auth,
1398
+ _content_type=_content_type,
1399
+ _headers=_headers,
1400
+ _host_index=_host_index
1401
+ )
1402
+
1403
+ _response_types_map: Dict[str, Optional[str]] = {
1404
+ '200': "V1alphaListDashboardsResponse",
1405
+ }
1406
+ response_data = self.api_client.call_api(
1407
+ *_param,
1408
+ _request_timeout=_request_timeout
1409
+ )
1410
+ response_data.read()
1411
+ return self.api_client.response_deserialize(
1412
+ response_data=response_data,
1413
+ response_types_map=_response_types_map,
1414
+ ).data
1415
+
1416
+
1417
+ @validate_call
1418
+ def dashboard_service_list_dashboards_with_http_info(
1419
+ self,
1420
+ filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"")] = None,
1421
+ _request_timeout: Union[
1422
+ None,
1423
+ Annotated[StrictFloat, Field(gt=0)],
1424
+ Tuple[
1425
+ Annotated[StrictFloat, Field(gt=0)],
1426
+ Annotated[StrictFloat, Field(gt=0)]
1427
+ ]
1428
+ ] = None,
1429
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1430
+ _content_type: Optional[StrictStr] = None,
1431
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1432
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1433
+ ) -> ApiResponse[V1alphaListDashboardsResponse]:
1434
+ """dashboard_service_list_dashboards
1435
+
1436
+
1437
+ :param filter: Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"
1438
+ :type filter: str
1439
+ :param _request_timeout: timeout setting for this request. If one
1440
+ number provided, it will be total request
1441
+ timeout. It can also be a pair (tuple) of
1442
+ (connection, read) timeouts.
1443
+ :type _request_timeout: int, tuple(int, int), optional
1444
+ :param _request_auth: set to override the auth_settings for an a single
1445
+ request; this effectively ignores the
1446
+ authentication in the spec for a single request.
1447
+ :type _request_auth: dict, optional
1448
+ :param _content_type: force content-type for the request.
1449
+ :type _content_type: str, Optional
1450
+ :param _headers: set to override the headers for a single
1451
+ request; this effectively ignores the headers
1452
+ in the spec for a single request.
1453
+ :type _headers: dict, optional
1454
+ :param _host_index: set to override the host_index for a single
1455
+ request; this effectively ignores the host_index
1456
+ in the spec for a single request.
1457
+ :type _host_index: int, optional
1458
+ :return: Returns the result object.
1459
+ """ # noqa: E501
1460
+
1461
+ _param = self._dashboard_service_list_dashboards_serialize(
1462
+ filter=filter,
1463
+ _request_auth=_request_auth,
1464
+ _content_type=_content_type,
1465
+ _headers=_headers,
1466
+ _host_index=_host_index
1467
+ )
1468
+
1469
+ _response_types_map: Dict[str, Optional[str]] = {
1470
+ '200': "V1alphaListDashboardsResponse",
1471
+ }
1472
+ response_data = self.api_client.call_api(
1473
+ *_param,
1474
+ _request_timeout=_request_timeout
1475
+ )
1476
+ response_data.read()
1477
+ return self.api_client.response_deserialize(
1478
+ response_data=response_data,
1479
+ response_types_map=_response_types_map,
1480
+ )
1481
+
1482
+
1483
+ @validate_call
1484
+ def dashboard_service_list_dashboards_without_preload_content(
1485
+ self,
1486
+ filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"")] = None,
1487
+ _request_timeout: Union[
1488
+ None,
1489
+ Annotated[StrictFloat, Field(gt=0)],
1490
+ Tuple[
1491
+ Annotated[StrictFloat, Field(gt=0)],
1492
+ Annotated[StrictFloat, Field(gt=0)]
1493
+ ]
1494
+ ] = None,
1495
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1496
+ _content_type: Optional[StrictStr] = None,
1497
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1498
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1499
+ ) -> RESTResponseType:
1500
+ """dashboard_service_list_dashboards
1501
+
1502
+
1503
+ :param filter: Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"
1504
+ :type filter: str
1505
+ :param _request_timeout: timeout setting for this request. If one
1506
+ number provided, it will be total request
1507
+ timeout. It can also be a pair (tuple) of
1508
+ (connection, read) timeouts.
1509
+ :type _request_timeout: int, tuple(int, int), optional
1510
+ :param _request_auth: set to override the auth_settings for an a single
1511
+ request; this effectively ignores the
1512
+ authentication in the spec for a single request.
1513
+ :type _request_auth: dict, optional
1514
+ :param _content_type: force content-type for the request.
1515
+ :type _content_type: str, Optional
1516
+ :param _headers: set to override the headers for a single
1517
+ request; this effectively ignores the headers
1518
+ in the spec for a single request.
1519
+ :type _headers: dict, optional
1520
+ :param _host_index: set to override the host_index for a single
1521
+ request; this effectively ignores the host_index
1522
+ in the spec for a single request.
1523
+ :type _host_index: int, optional
1524
+ :return: Returns the result object.
1525
+ """ # noqa: E501
1526
+
1527
+ _param = self._dashboard_service_list_dashboards_serialize(
1528
+ filter=filter,
1529
+ _request_auth=_request_auth,
1530
+ _content_type=_content_type,
1531
+ _headers=_headers,
1532
+ _host_index=_host_index
1533
+ )
1534
+
1535
+ _response_types_map: Dict[str, Optional[str]] = {
1536
+ '200': "V1alphaListDashboardsResponse",
1537
+ }
1538
+ response_data = self.api_client.call_api(
1539
+ *_param,
1540
+ _request_timeout=_request_timeout
1541
+ )
1542
+ return response_data.response
1543
+
1544
+
1545
+ def _dashboard_service_list_dashboards_serialize(
1546
+ self,
1547
+ filter,
1548
+ _request_auth,
1549
+ _content_type,
1550
+ _headers,
1551
+ _host_index,
1552
+ ) -> RequestSerialized:
1553
+
1554
+ _host = None
1555
+
1556
+ _collection_formats: Dict[str, str] = {
1557
+ }
1558
+
1559
+ _path_params: Dict[str, str] = {}
1560
+ _query_params: List[Tuple[str, str]] = []
1561
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1562
+ _form_params: List[Tuple[str, str]] = []
1563
+ _files: Dict[str, Union[str, bytes]] = {}
1564
+ _body_params: Optional[bytes] = None
1565
+
1566
+ # process the path parameters
1567
+ # process the query parameters
1568
+ if filter is not None:
1569
+
1570
+ _query_params.append(('filter', filter))
1571
+
1572
+ # process the header parameters
1573
+ # process the form parameters
1574
+ # process the body parameter
1575
+
1576
+
1577
+ # set the HTTP header `Accept`
1578
+ _header_params['Accept'] = self.api_client.select_header_accept(
1579
+ [
1580
+ 'application/json'
1581
+ ]
1582
+ )
1583
+
1584
+
1585
+ # authentication setting
1586
+ _auth_settings: List[str] = [
1587
+ ]
1588
+
1589
+ return self.api_client.param_serialize(
1590
+ method='GET',
1591
+ resource_path='/v1alpha/dashboards',
1592
+ path_params=_path_params,
1593
+ query_params=_query_params,
1594
+ header_params=_header_params,
1595
+ body=_body_params,
1596
+ post_params=_form_params,
1597
+ files=_files,
1598
+ auth_settings=_auth_settings,
1599
+ collection_formats=_collection_formats,
1600
+ _host=_host,
1601
+ _request_auth=_request_auth
1602
+ )
1603
+
1604
+
1605
+
1606
+
1607
+ @validate_call
1608
+ def dashboard_service_list_most_recent_dashboards(
1609
+ self,
1610
+ limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
1611
+ _request_timeout: Union[
1612
+ None,
1613
+ Annotated[StrictFloat, Field(gt=0)],
1614
+ Tuple[
1615
+ Annotated[StrictFloat, Field(gt=0)],
1616
+ Annotated[StrictFloat, Field(gt=0)]
1617
+ ]
1618
+ ] = None,
1619
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1620
+ _content_type: Optional[StrictStr] = None,
1621
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1622
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1623
+ ) -> V1alphaListMostRecentDashboardsResponse:
1624
+ """dashboard_service_list_most_recent_dashboards
1625
+
1626
+
1627
+ :param limit: Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.
1628
+ :type limit: int
1629
+ :param _request_timeout: timeout setting for this request. If one
1630
+ number provided, it will be total request
1631
+ timeout. It can also be a pair (tuple) of
1632
+ (connection, read) timeouts.
1633
+ :type _request_timeout: int, tuple(int, int), optional
1634
+ :param _request_auth: set to override the auth_settings for an a single
1635
+ request; this effectively ignores the
1636
+ authentication in the spec for a single request.
1637
+ :type _request_auth: dict, optional
1638
+ :param _content_type: force content-type for the request.
1639
+ :type _content_type: str, Optional
1640
+ :param _headers: set to override the headers for a single
1641
+ request; this effectively ignores the headers
1642
+ in the spec for a single request.
1643
+ :type _headers: dict, optional
1644
+ :param _host_index: set to override the host_index for a single
1645
+ request; this effectively ignores the host_index
1646
+ in the spec for a single request.
1647
+ :type _host_index: int, optional
1648
+ :return: Returns the result object.
1649
+ """ # noqa: E501
1650
+
1651
+ _param = self._dashboard_service_list_most_recent_dashboards_serialize(
1652
+ limit=limit,
1653
+ _request_auth=_request_auth,
1654
+ _content_type=_content_type,
1655
+ _headers=_headers,
1656
+ _host_index=_host_index
1657
+ )
1658
+
1659
+ _response_types_map: Dict[str, Optional[str]] = {
1660
+ '200': "V1alphaListMostRecentDashboardsResponse",
1661
+ }
1662
+ response_data = self.api_client.call_api(
1663
+ *_param,
1664
+ _request_timeout=_request_timeout
1665
+ )
1666
+ response_data.read()
1667
+ return self.api_client.response_deserialize(
1668
+ response_data=response_data,
1669
+ response_types_map=_response_types_map,
1670
+ ).data
1671
+
1672
+
1673
+ @validate_call
1674
+ def dashboard_service_list_most_recent_dashboards_with_http_info(
1675
+ self,
1676
+ limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
1677
+ _request_timeout: Union[
1678
+ None,
1679
+ Annotated[StrictFloat, Field(gt=0)],
1680
+ Tuple[
1681
+ Annotated[StrictFloat, Field(gt=0)],
1682
+ Annotated[StrictFloat, Field(gt=0)]
1683
+ ]
1684
+ ] = None,
1685
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1686
+ _content_type: Optional[StrictStr] = None,
1687
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1688
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1689
+ ) -> ApiResponse[V1alphaListMostRecentDashboardsResponse]:
1690
+ """dashboard_service_list_most_recent_dashboards
1691
+
1692
+
1693
+ :param limit: Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.
1694
+ :type limit: int
1695
+ :param _request_timeout: timeout setting for this request. If one
1696
+ number provided, it will be total request
1697
+ timeout. It can also be a pair (tuple) of
1698
+ (connection, read) timeouts.
1699
+ :type _request_timeout: int, tuple(int, int), optional
1700
+ :param _request_auth: set to override the auth_settings for an a single
1701
+ request; this effectively ignores the
1702
+ authentication in the spec for a single request.
1703
+ :type _request_auth: dict, optional
1704
+ :param _content_type: force content-type for the request.
1705
+ :type _content_type: str, Optional
1706
+ :param _headers: set to override the headers for a single
1707
+ request; this effectively ignores the headers
1708
+ in the spec for a single request.
1709
+ :type _headers: dict, optional
1710
+ :param _host_index: set to override the host_index for a single
1711
+ request; this effectively ignores the host_index
1712
+ in the spec for a single request.
1713
+ :type _host_index: int, optional
1714
+ :return: Returns the result object.
1715
+ """ # noqa: E501
1716
+
1717
+ _param = self._dashboard_service_list_most_recent_dashboards_serialize(
1718
+ limit=limit,
1719
+ _request_auth=_request_auth,
1720
+ _content_type=_content_type,
1721
+ _headers=_headers,
1722
+ _host_index=_host_index
1723
+ )
1724
+
1725
+ _response_types_map: Dict[str, Optional[str]] = {
1726
+ '200': "V1alphaListMostRecentDashboardsResponse",
1727
+ }
1728
+ response_data = self.api_client.call_api(
1729
+ *_param,
1730
+ _request_timeout=_request_timeout
1731
+ )
1732
+ response_data.read()
1733
+ return self.api_client.response_deserialize(
1734
+ response_data=response_data,
1735
+ response_types_map=_response_types_map,
1736
+ )
1737
+
1738
+
1739
+ @validate_call
1740
+ def dashboard_service_list_most_recent_dashboards_without_preload_content(
1741
+ self,
1742
+ limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
1743
+ _request_timeout: Union[
1744
+ None,
1745
+ Annotated[StrictFloat, Field(gt=0)],
1746
+ Tuple[
1747
+ Annotated[StrictFloat, Field(gt=0)],
1748
+ Annotated[StrictFloat, Field(gt=0)]
1749
+ ]
1750
+ ] = None,
1751
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1752
+ _content_type: Optional[StrictStr] = None,
1753
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1754
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1755
+ ) -> RESTResponseType:
1756
+ """dashboard_service_list_most_recent_dashboards
1757
+
1758
+
1759
+ :param limit: Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.
1760
+ :type limit: int
1761
+ :param _request_timeout: timeout setting for this request. If one
1762
+ number provided, it will be total request
1763
+ timeout. It can also be a pair (tuple) of
1764
+ (connection, read) timeouts.
1765
+ :type _request_timeout: int, tuple(int, int), optional
1766
+ :param _request_auth: set to override the auth_settings for an a single
1767
+ request; this effectively ignores the
1768
+ authentication in the spec for a single request.
1769
+ :type _request_auth: dict, optional
1770
+ :param _content_type: force content-type for the request.
1771
+ :type _content_type: str, Optional
1772
+ :param _headers: set to override the headers for a single
1773
+ request; this effectively ignores the headers
1774
+ in the spec for a single request.
1775
+ :type _headers: dict, optional
1776
+ :param _host_index: set to override the host_index for a single
1777
+ request; this effectively ignores the host_index
1778
+ in the spec for a single request.
1779
+ :type _host_index: int, optional
1780
+ :return: Returns the result object.
1781
+ """ # noqa: E501
1782
+
1783
+ _param = self._dashboard_service_list_most_recent_dashboards_serialize(
1784
+ limit=limit,
1785
+ _request_auth=_request_auth,
1786
+ _content_type=_content_type,
1787
+ _headers=_headers,
1788
+ _host_index=_host_index
1789
+ )
1790
+
1791
+ _response_types_map: Dict[str, Optional[str]] = {
1792
+ '200': "V1alphaListMostRecentDashboardsResponse",
1793
+ }
1794
+ response_data = self.api_client.call_api(
1795
+ *_param,
1796
+ _request_timeout=_request_timeout
1797
+ )
1798
+ return response_data.response
1799
+
1800
+
1801
+ def _dashboard_service_list_most_recent_dashboards_serialize(
1802
+ self,
1803
+ limit,
1804
+ _request_auth,
1805
+ _content_type,
1806
+ _headers,
1807
+ _host_index,
1808
+ ) -> RequestSerialized:
1809
+
1810
+ _host = None
1811
+
1812
+ _collection_formats: Dict[str, str] = {
1813
+ }
1814
+
1815
+ _path_params: Dict[str, str] = {}
1816
+ _query_params: List[Tuple[str, str]] = []
1817
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1818
+ _form_params: List[Tuple[str, str]] = []
1819
+ _files: Dict[str, Union[str, bytes]] = {}
1820
+ _body_params: Optional[bytes] = None
1821
+
1822
+ # process the path parameters
1823
+ # process the query parameters
1824
+ if limit is not None:
1825
+
1826
+ _query_params.append(('limit', limit))
1827
+
1828
+ # process the header parameters
1829
+ # process the form parameters
1830
+ # process the body parameter
1831
+
1832
+
1833
+ # set the HTTP header `Accept`
1834
+ _header_params['Accept'] = self.api_client.select_header_accept(
1835
+ [
1836
+ 'application/json'
1837
+ ]
1838
+ )
1839
+
1840
+
1841
+ # authentication setting
1842
+ _auth_settings: List[str] = [
1843
+ ]
1844
+
1845
+ return self.api_client.param_serialize(
1846
+ method='GET',
1847
+ resource_path='/v1alpha/dashboards:mostRecent',
1848
+ path_params=_path_params,
1849
+ query_params=_query_params,
1850
+ header_params=_header_params,
1851
+ body=_body_params,
1852
+ post_params=_form_params,
1853
+ files=_files,
1854
+ auth_settings=_auth_settings,
1855
+ collection_formats=_collection_formats,
1856
+ _host=_host,
1857
+ _request_auth=_request_auth
1858
+ )
1859
+
1860
+
1861
+
1862
+
1863
+ @validate_call
1864
+ def dashboard_service_update_dashboard(
1865
+ self,
1866
+ dashboard_name: Annotated[str, Field(strict=True, description="Output only. Name of the Dashboard resource. e.g.: \"dashboards/<UUID>\"")],
1867
+ dashboard: Annotated[RequiredTheDashboardToUpdate, Field(description="Required. The Dashboard to update. The Dashboard's `name` field is used to identify the Dashboard to update. Format: dashboards/{dashboard}")],
1868
+ _request_timeout: Union[
1869
+ None,
1870
+ Annotated[StrictFloat, Field(gt=0)],
1871
+ Tuple[
1872
+ Annotated[StrictFloat, Field(gt=0)],
1873
+ Annotated[StrictFloat, Field(gt=0)]
1874
+ ]
1875
+ ] = None,
1876
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1877
+ _content_type: Optional[StrictStr] = None,
1878
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1879
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1880
+ ) -> V1alphaUpdateDashboardResponse:
1881
+ """dashboard_service_update_dashboard
1882
+
1883
+
1884
+ :param dashboard_name: Output only. Name of the Dashboard resource. e.g.: \"dashboards/<UUID>\" (required)
1885
+ :type dashboard_name: str
1886
+ :param dashboard: Required. The Dashboard to update. The Dashboard's `name` field is used to identify the Dashboard to update. Format: dashboards/{dashboard} (required)
1887
+ :type dashboard: RequiredTheDashboardToUpdate
1888
+ :param _request_timeout: timeout setting for this request. If one
1889
+ number provided, it will be total request
1890
+ timeout. It can also be a pair (tuple) of
1891
+ (connection, read) timeouts.
1892
+ :type _request_timeout: int, tuple(int, int), optional
1893
+ :param _request_auth: set to override the auth_settings for an a single
1894
+ request; this effectively ignores the
1895
+ authentication in the spec for a single request.
1896
+ :type _request_auth: dict, optional
1897
+ :param _content_type: force content-type for the request.
1898
+ :type _content_type: str, Optional
1899
+ :param _headers: set to override the headers for a single
1900
+ request; this effectively ignores the headers
1901
+ in the spec for a single request.
1902
+ :type _headers: dict, optional
1903
+ :param _host_index: set to override the host_index for a single
1904
+ request; this effectively ignores the host_index
1905
+ in the spec for a single request.
1906
+ :type _host_index: int, optional
1907
+ :return: Returns the result object.
1908
+ """ # noqa: E501
1909
+
1910
+ _param = self._dashboard_service_update_dashboard_serialize(
1911
+ dashboard_name=dashboard_name,
1912
+ dashboard=dashboard,
1913
+ _request_auth=_request_auth,
1914
+ _content_type=_content_type,
1915
+ _headers=_headers,
1916
+ _host_index=_host_index
1917
+ )
1918
+
1919
+ _response_types_map: Dict[str, Optional[str]] = {
1920
+ '200': "V1alphaUpdateDashboardResponse",
1921
+ }
1922
+ response_data = self.api_client.call_api(
1923
+ *_param,
1924
+ _request_timeout=_request_timeout
1925
+ )
1926
+ response_data.read()
1927
+ return self.api_client.response_deserialize(
1928
+ response_data=response_data,
1929
+ response_types_map=_response_types_map,
1930
+ ).data
1931
+
1932
+
1933
+ @validate_call
1934
+ def dashboard_service_update_dashboard_with_http_info(
1935
+ self,
1936
+ dashboard_name: Annotated[str, Field(strict=True, description="Output only. Name of the Dashboard resource. e.g.: \"dashboards/<UUID>\"")],
1937
+ dashboard: Annotated[RequiredTheDashboardToUpdate, Field(description="Required. The Dashboard to update. The Dashboard's `name` field is used to identify the Dashboard to update. Format: dashboards/{dashboard}")],
1938
+ _request_timeout: Union[
1939
+ None,
1940
+ Annotated[StrictFloat, Field(gt=0)],
1941
+ Tuple[
1942
+ Annotated[StrictFloat, Field(gt=0)],
1943
+ Annotated[StrictFloat, Field(gt=0)]
1944
+ ]
1945
+ ] = None,
1946
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1947
+ _content_type: Optional[StrictStr] = None,
1948
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1949
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1950
+ ) -> ApiResponse[V1alphaUpdateDashboardResponse]:
1951
+ """dashboard_service_update_dashboard
1952
+
1953
+
1954
+ :param dashboard_name: Output only. Name of the Dashboard resource. e.g.: \"dashboards/<UUID>\" (required)
1955
+ :type dashboard_name: str
1956
+ :param dashboard: Required. The Dashboard to update. The Dashboard's `name` field is used to identify the Dashboard to update. Format: dashboards/{dashboard} (required)
1957
+ :type dashboard: RequiredTheDashboardToUpdate
1958
+ :param _request_timeout: timeout setting for this request. If one
1959
+ number provided, it will be total request
1960
+ timeout. It can also be a pair (tuple) of
1961
+ (connection, read) timeouts.
1962
+ :type _request_timeout: int, tuple(int, int), optional
1963
+ :param _request_auth: set to override the auth_settings for an a single
1964
+ request; this effectively ignores the
1965
+ authentication in the spec for a single request.
1966
+ :type _request_auth: dict, optional
1967
+ :param _content_type: force content-type for the request.
1968
+ :type _content_type: str, Optional
1969
+ :param _headers: set to override the headers for a single
1970
+ request; this effectively ignores the headers
1971
+ in the spec for a single request.
1972
+ :type _headers: dict, optional
1973
+ :param _host_index: set to override the host_index for a single
1974
+ request; this effectively ignores the host_index
1975
+ in the spec for a single request.
1976
+ :type _host_index: int, optional
1977
+ :return: Returns the result object.
1978
+ """ # noqa: E501
1979
+
1980
+ _param = self._dashboard_service_update_dashboard_serialize(
1981
+ dashboard_name=dashboard_name,
1982
+ dashboard=dashboard,
1983
+ _request_auth=_request_auth,
1984
+ _content_type=_content_type,
1985
+ _headers=_headers,
1986
+ _host_index=_host_index
1987
+ )
1988
+
1989
+ _response_types_map: Dict[str, Optional[str]] = {
1990
+ '200': "V1alphaUpdateDashboardResponse",
1991
+ }
1992
+ response_data = self.api_client.call_api(
1993
+ *_param,
1994
+ _request_timeout=_request_timeout
1995
+ )
1996
+ response_data.read()
1997
+ return self.api_client.response_deserialize(
1998
+ response_data=response_data,
1999
+ response_types_map=_response_types_map,
2000
+ )
2001
+
2002
+
2003
+ @validate_call
2004
+ def dashboard_service_update_dashboard_without_preload_content(
2005
+ self,
2006
+ dashboard_name: Annotated[str, Field(strict=True, description="Output only. Name of the Dashboard resource. e.g.: \"dashboards/<UUID>\"")],
2007
+ dashboard: Annotated[RequiredTheDashboardToUpdate, Field(description="Required. The Dashboard to update. The Dashboard's `name` field is used to identify the Dashboard to update. Format: dashboards/{dashboard}")],
2008
+ _request_timeout: Union[
2009
+ None,
2010
+ Annotated[StrictFloat, Field(gt=0)],
2011
+ Tuple[
2012
+ Annotated[StrictFloat, Field(gt=0)],
2013
+ Annotated[StrictFloat, Field(gt=0)]
2014
+ ]
2015
+ ] = None,
2016
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2017
+ _content_type: Optional[StrictStr] = None,
2018
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2019
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2020
+ ) -> RESTResponseType:
2021
+ """dashboard_service_update_dashboard
2022
+
2023
+
2024
+ :param dashboard_name: Output only. Name of the Dashboard resource. e.g.: \"dashboards/<UUID>\" (required)
2025
+ :type dashboard_name: str
2026
+ :param dashboard: Required. The Dashboard to update. The Dashboard's `name` field is used to identify the Dashboard to update. Format: dashboards/{dashboard} (required)
2027
+ :type dashboard: RequiredTheDashboardToUpdate
2028
+ :param _request_timeout: timeout setting for this request. If one
2029
+ number provided, it will be total request
2030
+ timeout. It can also be a pair (tuple) of
2031
+ (connection, read) timeouts.
2032
+ :type _request_timeout: int, tuple(int, int), optional
2033
+ :param _request_auth: set to override the auth_settings for an a single
2034
+ request; this effectively ignores the
2035
+ authentication in the spec for a single request.
2036
+ :type _request_auth: dict, optional
2037
+ :param _content_type: force content-type for the request.
2038
+ :type _content_type: str, Optional
2039
+ :param _headers: set to override the headers for a single
2040
+ request; this effectively ignores the headers
2041
+ in the spec for a single request.
2042
+ :type _headers: dict, optional
2043
+ :param _host_index: set to override the host_index for a single
2044
+ request; this effectively ignores the host_index
2045
+ in the spec for a single request.
2046
+ :type _host_index: int, optional
2047
+ :return: Returns the result object.
2048
+ """ # noqa: E501
2049
+
2050
+ _param = self._dashboard_service_update_dashboard_serialize(
2051
+ dashboard_name=dashboard_name,
2052
+ dashboard=dashboard,
2053
+ _request_auth=_request_auth,
2054
+ _content_type=_content_type,
2055
+ _headers=_headers,
2056
+ _host_index=_host_index
2057
+ )
2058
+
2059
+ _response_types_map: Dict[str, Optional[str]] = {
2060
+ '200': "V1alphaUpdateDashboardResponse",
2061
+ }
2062
+ response_data = self.api_client.call_api(
2063
+ *_param,
2064
+ _request_timeout=_request_timeout
2065
+ )
2066
+ return response_data.response
2067
+
2068
+
2069
+ def _dashboard_service_update_dashboard_serialize(
2070
+ self,
2071
+ dashboard_name,
2072
+ dashboard,
2073
+ _request_auth,
2074
+ _content_type,
2075
+ _headers,
2076
+ _host_index,
2077
+ ) -> RequestSerialized:
2078
+
2079
+ _host = None
2080
+
2081
+ _collection_formats: Dict[str, str] = {
2082
+ }
2083
+
2084
+ _path_params: Dict[str, str] = {}
2085
+ _query_params: List[Tuple[str, str]] = []
2086
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2087
+ _form_params: List[Tuple[str, str]] = []
2088
+ _files: Dict[str, Union[str, bytes]] = {}
2089
+ _body_params: Optional[bytes] = None
2090
+
2091
+ # process the path parameters
2092
+ if dashboard_name is not None:
2093
+ _path_params['dashboard.name'] = dashboard_name
2094
+ # process the query parameters
2095
+ # process the header parameters
2096
+ # process the form parameters
2097
+ # process the body parameter
2098
+ if dashboard is not None:
2099
+ _body_params = dashboard
2100
+
2101
+
2102
+ # set the HTTP header `Accept`
2103
+ _header_params['Accept'] = self.api_client.select_header_accept(
2104
+ [
2105
+ 'application/json'
2106
+ ]
2107
+ )
2108
+
2109
+ # set the HTTP header `Content-Type`
2110
+ if _content_type:
2111
+ _header_params['Content-Type'] = _content_type
2112
+ else:
2113
+ _default_content_type = (
2114
+ self.api_client.select_header_content_type(
2115
+ [
2116
+ 'application/json'
2117
+ ]
2118
+ )
2119
+ )
2120
+ if _default_content_type is not None:
2121
+ _header_params['Content-Type'] = _default_content_type
2122
+
2123
+ # authentication setting
2124
+ _auth_settings: List[str] = [
2125
+ ]
2126
+
2127
+ return self.api_client.param_serialize(
2128
+ method='PATCH',
2129
+ resource_path='/v1alpha/{dashboard.name}',
2130
+ path_params=_path_params,
2131
+ query_params=_query_params,
2132
+ header_params=_header_params,
2133
+ body=_body_params,
2134
+ post_params=_form_params,
2135
+ files=_files,
2136
+ auth_settings=_auth_settings,
2137
+ collection_formats=_collection_formats,
2138
+ _host=_host,
2139
+ _request_auth=_request_auth
2140
+ )
2141
+
2142
+