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.
- eval_studio_client/__about__.py +1 -0
- eval_studio_client/__init__.py +4 -0
- eval_studio_client/api/__init__.py +180 -0
- eval_studio_client/api/api/__init__.py +20 -0
- eval_studio_client/api/api/dashboard_service_api.py +2142 -0
- eval_studio_client/api/api/document_service_api.py +1868 -0
- eval_studio_client/api/api/evaluation_service_api.py +1603 -0
- eval_studio_client/api/api/evaluator_service_api.py +1343 -0
- eval_studio_client/api/api/info_service_api.py +275 -0
- eval_studio_client/api/api/leaderboard_service_api.py +3336 -0
- eval_studio_client/api/api/model_service_api.py +2913 -0
- eval_studio_client/api/api/operation_progress_service_api.py +292 -0
- eval_studio_client/api/api/operation_service_api.py +1359 -0
- eval_studio_client/api/api/perturbation_service_api.py +321 -0
- eval_studio_client/api/api/perturbator_service_api.py +532 -0
- eval_studio_client/api/api/test_case_service_api.py +1913 -0
- eval_studio_client/api/api/test_class_service_api.py +532 -0
- eval_studio_client/api/api/test_lab_service_api.py +634 -0
- eval_studio_client/api/api/test_service_api.py +2712 -0
- eval_studio_client/api/api/who_am_i_service_api.py +275 -0
- eval_studio_client/api/api_client.py +770 -0
- eval_studio_client/api/api_response.py +21 -0
- eval_studio_client/api/configuration.py +436 -0
- eval_studio_client/api/docs/DashboardServiceApi.md +549 -0
- eval_studio_client/api/docs/DocumentServiceApi.md +478 -0
- eval_studio_client/api/docs/EvaluationServiceApi.md +332 -0
- eval_studio_client/api/docs/EvaluatorServiceApi.md +345 -0
- eval_studio_client/api/docs/InfoServiceApi.md +71 -0
- eval_studio_client/api/docs/LeaderboardServiceApi.md +835 -0
- eval_studio_client/api/docs/ModelServiceApi.md +750 -0
- eval_studio_client/api/docs/OperationProgressServiceApi.md +75 -0
- eval_studio_client/api/docs/OperationServiceApi.md +345 -0
- eval_studio_client/api/docs/PerturbationServiceApi.md +78 -0
- eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +31 -0
- eval_studio_client/api/docs/PerturbatorServiceApi.md +138 -0
- eval_studio_client/api/docs/ProtobufAny.md +30 -0
- eval_studio_client/api/docs/RequiredTheDashboardToUpdate.md +41 -0
- eval_studio_client/api/docs/RequiredTheDocumentToUpdate.md +38 -0
- eval_studio_client/api/docs/RequiredTheLeaderboardToUpdate.md +54 -0
- eval_studio_client/api/docs/RequiredTheModelToUpdate.md +41 -0
- eval_studio_client/api/docs/RequiredTheOperationToFinalize.md +39 -0
- eval_studio_client/api/docs/RequiredTheOperationToUpdate.md +39 -0
- eval_studio_client/api/docs/RequiredTheTestCaseToUpdate.md +39 -0
- eval_studio_client/api/docs/RequiredTheTestToUpdate.md +39 -0
- eval_studio_client/api/docs/RpcStatus.md +32 -0
- eval_studio_client/api/docs/TestCaseServiceApi.md +486 -0
- eval_studio_client/api/docs/TestCaseServiceBatchDeleteTestCasesRequest.md +29 -0
- eval_studio_client/api/docs/TestClassServiceApi.md +138 -0
- eval_studio_client/api/docs/TestLabServiceApi.md +151 -0
- eval_studio_client/api/docs/TestServiceApi.md +689 -0
- eval_studio_client/api/docs/TestServicePerturbTestRequest.md +31 -0
- eval_studio_client/api/docs/V1alphaBatchCreateLeaderboardsRequest.md +31 -0
- eval_studio_client/api/docs/V1alphaBatchCreateLeaderboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteDashboardsRequest.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteDashboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteDocumentsRequest.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteDocumentsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteEvaluatorsRequest.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteEvaluatorsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteLeaderboardsRequest.md +30 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteLeaderboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteModelsRequest.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteTestCasesResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteTestsRequest.md +30 -0
- eval_studio_client/api/docs/V1alphaBatchDeleteTestsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchGetDashboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchGetDocumentsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchGetLeaderboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchGetModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchGetOperationsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchGetTestsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchImportLeaderboardRequest.md +37 -0
- eval_studio_client/api/docs/V1alphaBatchImportLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaBatchImportTestsRequest.md +32 -0
- eval_studio_client/api/docs/V1alphaBatchImportTestsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCheckBaseModelsResponse.md +30 -0
- eval_studio_client/api/docs/V1alphaCollectionInfo.md +33 -0
- eval_studio_client/api/docs/V1alphaCreateDashboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCreateDocumentResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCreateEvaluationRequest.md +37 -0
- eval_studio_client/api/docs/V1alphaCreateEvaluatorResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCreateLeaderboardRequest.md +29 -0
- eval_studio_client/api/docs/V1alphaCreateLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCreateLeaderboardWithoutCacheResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCreateModelResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCreatePerturbationResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCreateTestCaseResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCreateTestLabResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaCreateTestResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaDashboard.md +41 -0
- eval_studio_client/api/docs/V1alphaDashboardStatus.md +12 -0
- eval_studio_client/api/docs/V1alphaDeleteDashboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaDeleteDocumentResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaDeleteEvaluatorResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaDeleteLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaDeleteModelResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaDeleteTestCaseResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaDeleteTestResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaDocument.md +38 -0
- eval_studio_client/api/docs/V1alphaEvaluationTest.md +32 -0
- eval_studio_client/api/docs/V1alphaEvaluator.md +45 -0
- eval_studio_client/api/docs/V1alphaEvaluatorParamType.md +12 -0
- eval_studio_client/api/docs/V1alphaEvaluatorParameter.md +40 -0
- eval_studio_client/api/docs/V1alphaEvaluatorView.md +12 -0
- eval_studio_client/api/docs/V1alphaFinalizeOperationResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaFindAllTestCasesByIDResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaFindTestLabResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetDashboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetDocumentResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetEvaluatorResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetInfoResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetModelResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetOperationProgressByParentResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetOperationResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetPerturbatorResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetTestCaseResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetTestClassResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaGetTestResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaImportEvaluationRequest.md +33 -0
- eval_studio_client/api/docs/V1alphaImportLeaderboardRequest.md +37 -0
- eval_studio_client/api/docs/V1alphaImportLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaInfo.md +35 -0
- eval_studio_client/api/docs/V1alphaInsight.md +40 -0
- eval_studio_client/api/docs/V1alphaLeaderboard.md +54 -0
- eval_studio_client/api/docs/V1alphaLeaderboardStatus.md +12 -0
- eval_studio_client/api/docs/V1alphaLeaderboardType.md +12 -0
- eval_studio_client/api/docs/V1alphaLeaderboardView.md +12 -0
- eval_studio_client/api/docs/V1alphaListBaseModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListDashboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListDocumentsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListEvaluatorsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListLLMModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListLeaderboardsResponse.md +30 -0
- eval_studio_client/api/docs/V1alphaListModelCollectionsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListMostRecentDashboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListMostRecentLeaderboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListMostRecentModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListMostRecentTestsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListOperationsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListPerturbatorsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListRAGCollectionsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListTestCasesResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListTestClassesResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaListTestsResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaModel.md +42 -0
- eval_studio_client/api/docs/V1alphaModelType.md +12 -0
- eval_studio_client/api/docs/V1alphaOperation.md +40 -0
- eval_studio_client/api/docs/V1alphaOperationProgress.md +32 -0
- eval_studio_client/api/docs/V1alphaPerturbTestResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaPerturbator.md +39 -0
- eval_studio_client/api/docs/V1alphaPerturbatorConfiguration.md +32 -0
- eval_studio_client/api/docs/V1alphaPerturbatorIntensity.md +11 -0
- eval_studio_client/api/docs/V1alphaProblemAndAction.md +39 -0
- eval_studio_client/api/docs/V1alphaTest.md +40 -0
- eval_studio_client/api/docs/V1alphaTestCase.md +40 -0
- eval_studio_client/api/docs/V1alphaTestCaseRelationship.md +31 -0
- eval_studio_client/api/docs/V1alphaTestClass.md +41 -0
- eval_studio_client/api/docs/V1alphaTestClassType.md +12 -0
- eval_studio_client/api/docs/V1alphaTestLab.md +41 -0
- eval_studio_client/api/docs/V1alphaUpdateDashboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaUpdateDocumentResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaUpdateLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaUpdateModelResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaUpdateOperationResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaUpdateTestCaseResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaUpdateTestResponse.md +29 -0
- eval_studio_client/api/docs/V1alphaWhoAmIResponse.md +31 -0
- eval_studio_client/api/docs/WhoAmIServiceApi.md +72 -0
- eval_studio_client/api/exceptions.py +199 -0
- eval_studio_client/api/models/__init__.py +148 -0
- eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +115 -0
- eval_studio_client/api/models/protobuf_any.py +100 -0
- eval_studio_client/api/models/required_the_dashboard_to_update.py +127 -0
- eval_studio_client/api/models/required_the_document_to_update.py +116 -0
- eval_studio_client/api/models/required_the_leaderboard_to_update.py +178 -0
- eval_studio_client/api/models/required_the_model_to_update.py +127 -0
- eval_studio_client/api/models/required_the_operation_to_finalize.py +129 -0
- eval_studio_client/api/models/required_the_operation_to_update.py +129 -0
- eval_studio_client/api/models/required_the_test_case_to_update.py +120 -0
- eval_studio_client/api/models/required_the_test_to_update.py +122 -0
- eval_studio_client/api/models/rpc_status.py +99 -0
- eval_studio_client/api/models/test_case_service_batch_delete_test_cases_request.py +87 -0
- eval_studio_client/api/models/test_service_perturb_test_request.py +99 -0
- eval_studio_client/api/models/v1alpha_batch_create_leaderboards_request.py +99 -0
- eval_studio_client/api/models/v1alpha_batch_create_leaderboards_response.py +91 -0
- eval_studio_client/api/models/v1alpha_batch_delete_dashboards_request.py +87 -0
- eval_studio_client/api/models/v1alpha_batch_delete_dashboards_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_delete_documents_request.py +87 -0
- eval_studio_client/api/models/v1alpha_batch_delete_documents_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_delete_evaluators_request.py +87 -0
- eval_studio_client/api/models/v1alpha_batch_delete_evaluators_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_delete_leaderboards_request.py +90 -0
- eval_studio_client/api/models/v1alpha_batch_delete_leaderboards_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_delete_models_request.py +87 -0
- eval_studio_client/api/models/v1alpha_batch_delete_models_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_delete_test_cases_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_delete_tests_request.py +89 -0
- eval_studio_client/api/models/v1alpha_batch_delete_tests_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_get_dashboards_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_get_documents_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_get_leaderboards_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_get_models_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_get_operations_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_get_tests_response.py +95 -0
- eval_studio_client/api/models/v1alpha_batch_import_leaderboard_request.py +104 -0
- eval_studio_client/api/models/v1alpha_batch_import_leaderboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_batch_import_tests_request.py +93 -0
- eval_studio_client/api/models/v1alpha_batch_import_tests_response.py +95 -0
- eval_studio_client/api/models/v1alpha_check_base_models_response.py +89 -0
- eval_studio_client/api/models/v1alpha_collection_info.py +93 -0
- eval_studio_client/api/models/v1alpha_create_dashboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_create_document_response.py +91 -0
- eval_studio_client/api/models/v1alpha_create_evaluation_request.py +115 -0
- eval_studio_client/api/models/v1alpha_create_evaluator_response.py +91 -0
- eval_studio_client/api/models/v1alpha_create_leaderboard_request.py +91 -0
- eval_studio_client/api/models/v1alpha_create_leaderboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_create_leaderboard_without_cache_response.py +91 -0
- eval_studio_client/api/models/v1alpha_create_model_response.py +91 -0
- eval_studio_client/api/models/v1alpha_create_perturbation_response.py +87 -0
- eval_studio_client/api/models/v1alpha_create_test_case_response.py +91 -0
- eval_studio_client/api/models/v1alpha_create_test_lab_response.py +91 -0
- eval_studio_client/api/models/v1alpha_create_test_response.py +91 -0
- eval_studio_client/api/models/v1alpha_dashboard.py +131 -0
- eval_studio_client/api/models/v1alpha_dashboard_status.py +39 -0
- eval_studio_client/api/models/v1alpha_delete_dashboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_delete_document_response.py +91 -0
- eval_studio_client/api/models/v1alpha_delete_evaluator_response.py +91 -0
- eval_studio_client/api/models/v1alpha_delete_leaderboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_delete_model_response.py +91 -0
- eval_studio_client/api/models/v1alpha_delete_test_case_response.py +91 -0
- eval_studio_client/api/models/v1alpha_delete_test_response.py +91 -0
- eval_studio_client/api/models/v1alpha_document.py +120 -0
- eval_studio_client/api/models/v1alpha_evaluation_test.py +107 -0
- eval_studio_client/api/models/v1alpha_evaluator.py +155 -0
- eval_studio_client/api/models/v1alpha_evaluator_param_type.py +42 -0
- eval_studio_client/api/models/v1alpha_evaluator_parameter.py +126 -0
- eval_studio_client/api/models/v1alpha_evaluator_view.py +38 -0
- eval_studio_client/api/models/v1alpha_finalize_operation_response.py +91 -0
- eval_studio_client/api/models/v1alpha_find_all_test_cases_by_id_response.py +95 -0
- eval_studio_client/api/models/v1alpha_find_test_lab_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_dashboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_document_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_evaluator_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_info_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_leaderboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_model_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_operation_progress_by_parent_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_operation_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_perturbator_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_test_case_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_test_class_response.py +91 -0
- eval_studio_client/api/models/v1alpha_get_test_response.py +91 -0
- eval_studio_client/api/models/v1alpha_import_evaluation_request.py +99 -0
- eval_studio_client/api/models/v1alpha_import_leaderboard_request.py +104 -0
- eval_studio_client/api/models/v1alpha_import_leaderboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_info.py +99 -0
- eval_studio_client/api/models/v1alpha_insight.py +107 -0
- eval_studio_client/api/models/v1alpha_leaderboard.py +182 -0
- eval_studio_client/api/models/v1alpha_leaderboard_status.py +39 -0
- eval_studio_client/api/models/v1alpha_leaderboard_type.py +39 -0
- eval_studio_client/api/models/v1alpha_leaderboard_view.py +39 -0
- eval_studio_client/api/models/v1alpha_list_base_models_response.py +87 -0
- eval_studio_client/api/models/v1alpha_list_dashboards_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_documents_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_evaluators_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_leaderboards_response.py +97 -0
- eval_studio_client/api/models/v1alpha_list_llm_models_response.py +87 -0
- eval_studio_client/api/models/v1alpha_list_model_collections_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_models_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_most_recent_dashboards_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_most_recent_leaderboards_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_most_recent_models_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_most_recent_tests_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_operations_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_perturbators_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_rag_collections_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_test_cases_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_test_classes_response.py +95 -0
- eval_studio_client/api/models/v1alpha_list_tests_response.py +95 -0
- eval_studio_client/api/models/v1alpha_model.py +131 -0
- eval_studio_client/api/models/v1alpha_model_type.py +46 -0
- eval_studio_client/api/models/v1alpha_operation.py +133 -0
- eval_studio_client/api/models/v1alpha_operation_progress.py +99 -0
- eval_studio_client/api/models/v1alpha_perturb_test_response.py +91 -0
- eval_studio_client/api/models/v1alpha_perturbator.py +122 -0
- eval_studio_client/api/models/v1alpha_perturbator_configuration.py +92 -0
- eval_studio_client/api/models/v1alpha_perturbator_intensity.py +39 -0
- eval_studio_client/api/models/v1alpha_problem_and_action.py +129 -0
- eval_studio_client/api/models/v1alpha_test.py +126 -0
- eval_studio_client/api/models/v1alpha_test_case.py +124 -0
- eval_studio_client/api/models/v1alpha_test_case_relationship.py +91 -0
- eval_studio_client/api/models/v1alpha_test_class.py +127 -0
- eval_studio_client/api/models/v1alpha_test_class_type.py +42 -0
- eval_studio_client/api/models/v1alpha_test_lab.py +137 -0
- eval_studio_client/api/models/v1alpha_update_dashboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_update_document_response.py +91 -0
- eval_studio_client/api/models/v1alpha_update_leaderboard_response.py +91 -0
- eval_studio_client/api/models/v1alpha_update_model_response.py +91 -0
- eval_studio_client/api/models/v1alpha_update_operation_response.py +91 -0
- eval_studio_client/api/models/v1alpha_update_test_case_response.py +91 -0
- eval_studio_client/api/models/v1alpha_update_test_response.py +91 -0
- eval_studio_client/api/models/v1alpha_who_am_i_response.py +91 -0
- eval_studio_client/api/rest.py +257 -0
- eval_studio_client/api/test/__init__.py +0 -0
- eval_studio_client/api/test/test_dashboard_service_api.py +79 -0
- eval_studio_client/api/test/test_document_service_api.py +73 -0
- eval_studio_client/api/test/test_evaluation_service_api.py +55 -0
- eval_studio_client/api/test/test_evaluator_service_api.py +61 -0
- eval_studio_client/api/test/test_info_service_api.py +37 -0
- eval_studio_client/api/test/test_leaderboard_service_api.py +103 -0
- eval_studio_client/api/test/test_model_service_api.py +97 -0
- eval_studio_client/api/test/test_operation_progress_service_api.py +37 -0
- eval_studio_client/api/test/test_operation_service_api.py +61 -0
- eval_studio_client/api/test/test_perturbation_service_api.py +37 -0
- eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +79 -0
- eval_studio_client/api/test/test_perturbator_service_api.py +43 -0
- eval_studio_client/api/test/test_protobuf_any.py +51 -0
- eval_studio_client/api/test/test_required_the_dashboard_to_update.py +64 -0
- eval_studio_client/api/test/test_required_the_document_to_update.py +59 -0
- eval_studio_client/api/test/test_required_the_leaderboard_to_update.py +115 -0
- eval_studio_client/api/test/test_required_the_model_to_update.py +63 -0
- eval_studio_client/api/test/test_required_the_operation_to_finalize.py +71 -0
- eval_studio_client/api/test/test_required_the_operation_to_update.py +71 -0
- eval_studio_client/api/test/test_required_the_test_case_to_update.py +63 -0
- eval_studio_client/api/test/test_required_the_test_to_update.py +65 -0
- eval_studio_client/api/test/test_rpc_status.py +57 -0
- eval_studio_client/api/test/test_test_case_service_api.py +73 -0
- eval_studio_client/api/test/test_test_case_service_batch_delete_test_cases_request.py +53 -0
- eval_studio_client/api/test/test_test_class_service_api.py +43 -0
- eval_studio_client/api/test/test_test_lab_service_api.py +43 -0
- eval_studio_client/api/test/test_test_service_api.py +91 -0
- eval_studio_client/api/test/test_test_service_perturb_test_request.py +58 -0
- eval_studio_client/api/test/test_v1alpha_batch_create_leaderboards_request.py +119 -0
- eval_studio_client/api/test/test_v1alpha_batch_create_leaderboards_response.py +71 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_dashboards_request.py +53 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_dashboards_response.py +68 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_documents_request.py +53 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_documents_response.py +63 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_evaluators_request.py +53 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_evaluators_response.py +91 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_leaderboards_request.py +54 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_leaderboards_response.py +116 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_models_request.py +53 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_models_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_test_cases_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_tests_request.py +54 -0
- eval_studio_client/api/test/test_v1alpha_batch_delete_tests_response.py +69 -0
- eval_studio_client/api/test/test_v1alpha_batch_get_dashboards_response.py +68 -0
- eval_studio_client/api/test/test_v1alpha_batch_get_documents_response.py +63 -0
- eval_studio_client/api/test/test_v1alpha_batch_get_leaderboards_response.py +116 -0
- eval_studio_client/api/test/test_v1alpha_batch_get_models_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_batch_get_operations_response.py +73 -0
- eval_studio_client/api/test/test_v1alpha_batch_get_tests_response.py +69 -0
- eval_studio_client/api/test/test_v1alpha_batch_import_leaderboard_request.py +61 -0
- eval_studio_client/api/test/test_v1alpha_batch_import_leaderboard_response.py +71 -0
- eval_studio_client/api/test/test_v1alpha_batch_import_tests_request.py +54 -0
- eval_studio_client/api/test/test_v1alpha_batch_import_tests_response.py +69 -0
- eval_studio_client/api/test/test_v1alpha_check_base_models_response.py +52 -0
- eval_studio_client/api/test/test_v1alpha_collection_info.py +54 -0
- eval_studio_client/api/test/test_v1alpha_create_dashboard_response.py +66 -0
- eval_studio_client/api/test/test_v1alpha_create_document_response.py +61 -0
- eval_studio_client/api/test/test_v1alpha_create_evaluation_request.py +107 -0
- eval_studio_client/api/test/test_v1alpha_create_evaluator_response.py +89 -0
- eval_studio_client/api/test/test_v1alpha_create_leaderboard_request.py +114 -0
- eval_studio_client/api/test/test_v1alpha_create_leaderboard_response.py +71 -0
- eval_studio_client/api/test/test_v1alpha_create_leaderboard_without_cache_response.py +71 -0
- eval_studio_client/api/test/test_v1alpha_create_model_response.py +65 -0
- eval_studio_client/api/test/test_v1alpha_create_perturbation_response.py +51 -0
- eval_studio_client/api/test/test_v1alpha_create_test_case_response.py +65 -0
- eval_studio_client/api/test/test_v1alpha_create_test_lab_response.py +68 -0
- eval_studio_client/api/test/test_v1alpha_create_test_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_dashboard.py +65 -0
- eval_studio_client/api/test/test_v1alpha_dashboard_status.py +33 -0
- eval_studio_client/api/test/test_v1alpha_delete_dashboard_response.py +66 -0
- eval_studio_client/api/test/test_v1alpha_delete_document_response.py +61 -0
- eval_studio_client/api/test/test_v1alpha_delete_evaluator_response.py +89 -0
- eval_studio_client/api/test/test_v1alpha_delete_leaderboard_response.py +114 -0
- eval_studio_client/api/test/test_v1alpha_delete_model_response.py +65 -0
- eval_studio_client/api/test/test_v1alpha_delete_test_case_response.py +65 -0
- eval_studio_client/api/test/test_v1alpha_delete_test_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_document.py +60 -0
- eval_studio_client/api/test/test_v1alpha_evaluation_test.py +76 -0
- eval_studio_client/api/test/test_v1alpha_evaluator.py +91 -0
- eval_studio_client/api/test/test_v1alpha_evaluator_param_type.py +33 -0
- eval_studio_client/api/test/test_v1alpha_evaluator_parameter.py +68 -0
- eval_studio_client/api/test/test_v1alpha_evaluator_view.py +33 -0
- eval_studio_client/api/test/test_v1alpha_finalize_operation_response.py +71 -0
- eval_studio_client/api/test/test_v1alpha_find_all_test_cases_by_id_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_find_test_lab_response.py +68 -0
- eval_studio_client/api/test/test_v1alpha_get_dashboard_response.py +66 -0
- eval_studio_client/api/test/test_v1alpha_get_document_response.py +61 -0
- eval_studio_client/api/test/test_v1alpha_get_evaluator_response.py +89 -0
- eval_studio_client/api/test/test_v1alpha_get_info_response.py +60 -0
- eval_studio_client/api/test/test_v1alpha_get_leaderboard_response.py +114 -0
- eval_studio_client/api/test/test_v1alpha_get_model_response.py +65 -0
- eval_studio_client/api/test/test_v1alpha_get_operation_progress_by_parent_response.py +55 -0
- eval_studio_client/api/test/test_v1alpha_get_operation_response.py +71 -0
- eval_studio_client/api/test/test_v1alpha_get_perturbator_response.py +64 -0
- eval_studio_client/api/test/test_v1alpha_get_test_case_response.py +65 -0
- eval_studio_client/api/test/test_v1alpha_get_test_class_response.py +70 -0
- eval_studio_client/api/test/test_v1alpha_get_test_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_import_evaluation_request.py +73 -0
- eval_studio_client/api/test/test_v1alpha_import_leaderboard_request.py +59 -0
- eval_studio_client/api/test/test_v1alpha_import_leaderboard_response.py +71 -0
- eval_studio_client/api/test/test_v1alpha_info.py +59 -0
- eval_studio_client/api/test/test_v1alpha_insight.py +67 -0
- eval_studio_client/api/test/test_v1alpha_leaderboard.py +116 -0
- eval_studio_client/api/test/test_v1alpha_leaderboard_status.py +33 -0
- eval_studio_client/api/test/test_v1alpha_leaderboard_type.py +33 -0
- eval_studio_client/api/test/test_v1alpha_leaderboard_view.py +33 -0
- eval_studio_client/api/test/test_v1alpha_list_base_models_response.py +53 -0
- eval_studio_client/api/test/test_v1alpha_list_dashboards_response.py +68 -0
- eval_studio_client/api/test/test_v1alpha_list_documents_response.py +63 -0
- eval_studio_client/api/test/test_v1alpha_list_evaluators_response.py +91 -0
- eval_studio_client/api/test/test_v1alpha_list_leaderboards_response.py +117 -0
- eval_studio_client/api/test/test_v1alpha_list_llm_models_response.py +53 -0
- eval_studio_client/api/test/test_v1alpha_list_model_collections_response.py +57 -0
- eval_studio_client/api/test/test_v1alpha_list_models_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_list_most_recent_dashboards_response.py +68 -0
- eval_studio_client/api/test/test_v1alpha_list_most_recent_leaderboards_response.py +116 -0
- eval_studio_client/api/test/test_v1alpha_list_most_recent_models_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_list_most_recent_tests_response.py +69 -0
- eval_studio_client/api/test/test_v1alpha_list_operations_response.py +73 -0
- eval_studio_client/api/test/test_v1alpha_list_perturbators_response.py +66 -0
- eval_studio_client/api/test/test_v1alpha_list_rag_collections_response.py +57 -0
- eval_studio_client/api/test/test_v1alpha_list_test_cases_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_list_test_classes_response.py +72 -0
- eval_studio_client/api/test/test_v1alpha_list_tests_response.py +69 -0
- eval_studio_client/api/test/test_v1alpha_model.py +64 -0
- eval_studio_client/api/test/test_v1alpha_model_type.py +33 -0
- eval_studio_client/api/test/test_v1alpha_operation.py +72 -0
- eval_studio_client/api/test/test_v1alpha_operation_progress.py +54 -0
- eval_studio_client/api/test/test_v1alpha_perturb_test_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_perturbator.py +63 -0
- eval_studio_client/api/test/test_v1alpha_perturbator_configuration.py +53 -0
- eval_studio_client/api/test/test_v1alpha_perturbator_intensity.py +33 -0
- eval_studio_client/api/test/test_v1alpha_problem_and_action.py +65 -0
- eval_studio_client/api/test/test_v1alpha_test.py +66 -0
- eval_studio_client/api/test/test_v1alpha_test_case.py +64 -0
- eval_studio_client/api/test/test_v1alpha_test_case_relationship.py +53 -0
- eval_studio_client/api/test/test_v1alpha_test_class.py +69 -0
- eval_studio_client/api/test/test_v1alpha_test_class_type.py +33 -0
- eval_studio_client/api/test/test_v1alpha_test_lab.py +67 -0
- eval_studio_client/api/test/test_v1alpha_update_dashboard_response.py +66 -0
- eval_studio_client/api/test/test_v1alpha_update_document_response.py +61 -0
- eval_studio_client/api/test/test_v1alpha_update_leaderboard_response.py +114 -0
- eval_studio_client/api/test/test_v1alpha_update_model_response.py +65 -0
- eval_studio_client/api/test/test_v1alpha_update_operation_response.py +71 -0
- eval_studio_client/api/test/test_v1alpha_update_test_case_response.py +65 -0
- eval_studio_client/api/test/test_v1alpha_update_test_response.py +67 -0
- eval_studio_client/api/test/test_v1alpha_who_am_i_response.py +53 -0
- eval_studio_client/api/test/test_who_am_i_service_api.py +38 -0
- eval_studio_client/client.py +98 -0
- eval_studio_client/dashboards.py +187 -0
- eval_studio_client/documents.py +95 -0
- eval_studio_client/evaluators.py +65 -0
- eval_studio_client/gen/openapiv2/eval_studio.swagger.json +6043 -0
- eval_studio_client/insights.py +35 -0
- eval_studio_client/leaderboards.py +207 -0
- eval_studio_client/models.py +522 -0
- eval_studio_client/perturbators.py +101 -0
- eval_studio_client/problems.py +50 -0
- eval_studio_client/test_labs.py +319 -0
- eval_studio_client/tests.py +369 -0
- eval_studio_client-0.7.0.dist-info/METADATA +18 -0
- eval_studio_client-0.7.0.dist-info/RECORD +470 -0
- eval_studio_client-0.7.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,1343 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1alpha/collection.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: version not set
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictStr, field_validator
|
|
20
|
+
from typing import Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from eval_studio_client.api.models.v1alpha_batch_delete_evaluators_request import V1alphaBatchDeleteEvaluatorsRequest
|
|
23
|
+
from eval_studio_client.api.models.v1alpha_batch_delete_evaluators_response import V1alphaBatchDeleteEvaluatorsResponse
|
|
24
|
+
from eval_studio_client.api.models.v1alpha_create_evaluator_response import V1alphaCreateEvaluatorResponse
|
|
25
|
+
from eval_studio_client.api.models.v1alpha_delete_evaluator_response import V1alphaDeleteEvaluatorResponse
|
|
26
|
+
from eval_studio_client.api.models.v1alpha_evaluator import V1alphaEvaluator
|
|
27
|
+
from eval_studio_client.api.models.v1alpha_get_evaluator_response import V1alphaGetEvaluatorResponse
|
|
28
|
+
from eval_studio_client.api.models.v1alpha_list_evaluators_response import V1alphaListEvaluatorsResponse
|
|
29
|
+
|
|
30
|
+
from eval_studio_client.api.api_client import ApiClient, RequestSerialized
|
|
31
|
+
from eval_studio_client.api.api_response import ApiResponse
|
|
32
|
+
from eval_studio_client.api.rest import RESTResponseType
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class EvaluatorServiceApi:
|
|
36
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
37
|
+
Ref: https://openapi-generator.tech
|
|
38
|
+
|
|
39
|
+
Do not edit the class manually.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
def __init__(self, api_client=None) -> None:
|
|
43
|
+
if api_client is None:
|
|
44
|
+
api_client = ApiClient.get_default()
|
|
45
|
+
self.api_client = api_client
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@validate_call
|
|
49
|
+
def evaluator_service_batch_delete_evaluators(
|
|
50
|
+
self,
|
|
51
|
+
body: V1alphaBatchDeleteEvaluatorsRequest,
|
|
52
|
+
_request_timeout: Union[
|
|
53
|
+
None,
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Tuple[
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
58
|
+
]
|
|
59
|
+
] = None,
|
|
60
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_content_type: Optional[StrictStr] = None,
|
|
62
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
63
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
64
|
+
) -> V1alphaBatchDeleteEvaluatorsResponse:
|
|
65
|
+
"""evaluator_service_batch_delete_evaluators
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:param body: (required)
|
|
69
|
+
:type body: V1alphaBatchDeleteEvaluatorsRequest
|
|
70
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
71
|
+
number provided, it will be total request
|
|
72
|
+
timeout. It can also be a pair (tuple) of
|
|
73
|
+
(connection, read) timeouts.
|
|
74
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
75
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
76
|
+
request; this effectively ignores the
|
|
77
|
+
authentication in the spec for a single request.
|
|
78
|
+
:type _request_auth: dict, optional
|
|
79
|
+
:param _content_type: force content-type for the request.
|
|
80
|
+
:type _content_type: str, Optional
|
|
81
|
+
:param _headers: set to override the headers for a single
|
|
82
|
+
request; this effectively ignores the headers
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _headers: dict, optional
|
|
85
|
+
:param _host_index: set to override the host_index for a single
|
|
86
|
+
request; this effectively ignores the host_index
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _host_index: int, optional
|
|
89
|
+
:return: Returns the result object.
|
|
90
|
+
""" # noqa: E501
|
|
91
|
+
|
|
92
|
+
_param = self._evaluator_service_batch_delete_evaluators_serialize(
|
|
93
|
+
body=body,
|
|
94
|
+
_request_auth=_request_auth,
|
|
95
|
+
_content_type=_content_type,
|
|
96
|
+
_headers=_headers,
|
|
97
|
+
_host_index=_host_index
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
101
|
+
'200': "V1alphaBatchDeleteEvaluatorsResponse",
|
|
102
|
+
}
|
|
103
|
+
response_data = self.api_client.call_api(
|
|
104
|
+
*_param,
|
|
105
|
+
_request_timeout=_request_timeout
|
|
106
|
+
)
|
|
107
|
+
response_data.read()
|
|
108
|
+
return self.api_client.response_deserialize(
|
|
109
|
+
response_data=response_data,
|
|
110
|
+
response_types_map=_response_types_map,
|
|
111
|
+
).data
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@validate_call
|
|
115
|
+
def evaluator_service_batch_delete_evaluators_with_http_info(
|
|
116
|
+
self,
|
|
117
|
+
body: V1alphaBatchDeleteEvaluatorsRequest,
|
|
118
|
+
_request_timeout: Union[
|
|
119
|
+
None,
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
121
|
+
Tuple[
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
124
|
+
]
|
|
125
|
+
] = None,
|
|
126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
127
|
+
_content_type: Optional[StrictStr] = None,
|
|
128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
130
|
+
) -> ApiResponse[V1alphaBatchDeleteEvaluatorsResponse]:
|
|
131
|
+
"""evaluator_service_batch_delete_evaluators
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param body: (required)
|
|
135
|
+
:type body: V1alphaBatchDeleteEvaluatorsRequest
|
|
136
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
137
|
+
number provided, it will be total request
|
|
138
|
+
timeout. It can also be a pair (tuple) of
|
|
139
|
+
(connection, read) timeouts.
|
|
140
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
141
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
142
|
+
request; this effectively ignores the
|
|
143
|
+
authentication in the spec for a single request.
|
|
144
|
+
:type _request_auth: dict, optional
|
|
145
|
+
:param _content_type: force content-type for the request.
|
|
146
|
+
:type _content_type: str, Optional
|
|
147
|
+
:param _headers: set to override the headers for a single
|
|
148
|
+
request; this effectively ignores the headers
|
|
149
|
+
in the spec for a single request.
|
|
150
|
+
:type _headers: dict, optional
|
|
151
|
+
:param _host_index: set to override the host_index for a single
|
|
152
|
+
request; this effectively ignores the host_index
|
|
153
|
+
in the spec for a single request.
|
|
154
|
+
:type _host_index: int, optional
|
|
155
|
+
:return: Returns the result object.
|
|
156
|
+
""" # noqa: E501
|
|
157
|
+
|
|
158
|
+
_param = self._evaluator_service_batch_delete_evaluators_serialize(
|
|
159
|
+
body=body,
|
|
160
|
+
_request_auth=_request_auth,
|
|
161
|
+
_content_type=_content_type,
|
|
162
|
+
_headers=_headers,
|
|
163
|
+
_host_index=_host_index
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
167
|
+
'200': "V1alphaBatchDeleteEvaluatorsResponse",
|
|
168
|
+
}
|
|
169
|
+
response_data = self.api_client.call_api(
|
|
170
|
+
*_param,
|
|
171
|
+
_request_timeout=_request_timeout
|
|
172
|
+
)
|
|
173
|
+
response_data.read()
|
|
174
|
+
return self.api_client.response_deserialize(
|
|
175
|
+
response_data=response_data,
|
|
176
|
+
response_types_map=_response_types_map,
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@validate_call
|
|
181
|
+
def evaluator_service_batch_delete_evaluators_without_preload_content(
|
|
182
|
+
self,
|
|
183
|
+
body: V1alphaBatchDeleteEvaluatorsRequest,
|
|
184
|
+
_request_timeout: Union[
|
|
185
|
+
None,
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Tuple[
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
189
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
190
|
+
]
|
|
191
|
+
] = None,
|
|
192
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_content_type: Optional[StrictStr] = None,
|
|
194
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
195
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
196
|
+
) -> RESTResponseType:
|
|
197
|
+
"""evaluator_service_batch_delete_evaluators
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param body: (required)
|
|
201
|
+
:type body: V1alphaBatchDeleteEvaluatorsRequest
|
|
202
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
203
|
+
number provided, it will be total request
|
|
204
|
+
timeout. It can also be a pair (tuple) of
|
|
205
|
+
(connection, read) timeouts.
|
|
206
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
207
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
208
|
+
request; this effectively ignores the
|
|
209
|
+
authentication in the spec for a single request.
|
|
210
|
+
:type _request_auth: dict, optional
|
|
211
|
+
:param _content_type: force content-type for the request.
|
|
212
|
+
:type _content_type: str, Optional
|
|
213
|
+
:param _headers: set to override the headers for a single
|
|
214
|
+
request; this effectively ignores the headers
|
|
215
|
+
in the spec for a single request.
|
|
216
|
+
:type _headers: dict, optional
|
|
217
|
+
:param _host_index: set to override the host_index for a single
|
|
218
|
+
request; this effectively ignores the host_index
|
|
219
|
+
in the spec for a single request.
|
|
220
|
+
:type _host_index: int, optional
|
|
221
|
+
:return: Returns the result object.
|
|
222
|
+
""" # noqa: E501
|
|
223
|
+
|
|
224
|
+
_param = self._evaluator_service_batch_delete_evaluators_serialize(
|
|
225
|
+
body=body,
|
|
226
|
+
_request_auth=_request_auth,
|
|
227
|
+
_content_type=_content_type,
|
|
228
|
+
_headers=_headers,
|
|
229
|
+
_host_index=_host_index
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
233
|
+
'200': "V1alphaBatchDeleteEvaluatorsResponse",
|
|
234
|
+
}
|
|
235
|
+
response_data = self.api_client.call_api(
|
|
236
|
+
*_param,
|
|
237
|
+
_request_timeout=_request_timeout
|
|
238
|
+
)
|
|
239
|
+
return response_data.response
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
def _evaluator_service_batch_delete_evaluators_serialize(
|
|
243
|
+
self,
|
|
244
|
+
body,
|
|
245
|
+
_request_auth,
|
|
246
|
+
_content_type,
|
|
247
|
+
_headers,
|
|
248
|
+
_host_index,
|
|
249
|
+
) -> RequestSerialized:
|
|
250
|
+
|
|
251
|
+
_host = None
|
|
252
|
+
|
|
253
|
+
_collection_formats: Dict[str, str] = {
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
_path_params: Dict[str, str] = {}
|
|
257
|
+
_query_params: List[Tuple[str, str]] = []
|
|
258
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
259
|
+
_form_params: List[Tuple[str, str]] = []
|
|
260
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
261
|
+
_body_params: Optional[bytes] = None
|
|
262
|
+
|
|
263
|
+
# process the path parameters
|
|
264
|
+
# process the query parameters
|
|
265
|
+
# process the header parameters
|
|
266
|
+
# process the form parameters
|
|
267
|
+
# process the body parameter
|
|
268
|
+
if body is not None:
|
|
269
|
+
_body_params = body
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
# set the HTTP header `Accept`
|
|
273
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
274
|
+
[
|
|
275
|
+
'application/json'
|
|
276
|
+
]
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
# set the HTTP header `Content-Type`
|
|
280
|
+
if _content_type:
|
|
281
|
+
_header_params['Content-Type'] = _content_type
|
|
282
|
+
else:
|
|
283
|
+
_default_content_type = (
|
|
284
|
+
self.api_client.select_header_content_type(
|
|
285
|
+
[
|
|
286
|
+
'application/json'
|
|
287
|
+
]
|
|
288
|
+
)
|
|
289
|
+
)
|
|
290
|
+
if _default_content_type is not None:
|
|
291
|
+
_header_params['Content-Type'] = _default_content_type
|
|
292
|
+
|
|
293
|
+
# authentication setting
|
|
294
|
+
_auth_settings: List[str] = [
|
|
295
|
+
]
|
|
296
|
+
|
|
297
|
+
return self.api_client.param_serialize(
|
|
298
|
+
method='POST',
|
|
299
|
+
resource_path='/v1alpha/evaluators:batchDelete',
|
|
300
|
+
path_params=_path_params,
|
|
301
|
+
query_params=_query_params,
|
|
302
|
+
header_params=_header_params,
|
|
303
|
+
body=_body_params,
|
|
304
|
+
post_params=_form_params,
|
|
305
|
+
files=_files,
|
|
306
|
+
auth_settings=_auth_settings,
|
|
307
|
+
collection_formats=_collection_formats,
|
|
308
|
+
_host=_host,
|
|
309
|
+
_request_auth=_request_auth
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
@validate_call
|
|
316
|
+
def evaluator_service_create_evaluator(
|
|
317
|
+
self,
|
|
318
|
+
evaluator: Annotated[V1alphaEvaluator, Field(description="Required. The Evaluator to create.")],
|
|
319
|
+
_request_timeout: Union[
|
|
320
|
+
None,
|
|
321
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
322
|
+
Tuple[
|
|
323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
325
|
+
]
|
|
326
|
+
] = None,
|
|
327
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
328
|
+
_content_type: Optional[StrictStr] = None,
|
|
329
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
330
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
331
|
+
) -> V1alphaCreateEvaluatorResponse:
|
|
332
|
+
"""evaluator_service_create_evaluator
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
:param evaluator: Required. The Evaluator to create. (required)
|
|
336
|
+
:type evaluator: V1alphaEvaluator
|
|
337
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
338
|
+
number provided, it will be total request
|
|
339
|
+
timeout. It can also be a pair (tuple) of
|
|
340
|
+
(connection, read) timeouts.
|
|
341
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
342
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
343
|
+
request; this effectively ignores the
|
|
344
|
+
authentication in the spec for a single request.
|
|
345
|
+
:type _request_auth: dict, optional
|
|
346
|
+
:param _content_type: force content-type for the request.
|
|
347
|
+
:type _content_type: str, Optional
|
|
348
|
+
:param _headers: set to override the headers for a single
|
|
349
|
+
request; this effectively ignores the headers
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _headers: dict, optional
|
|
352
|
+
:param _host_index: set to override the host_index for a single
|
|
353
|
+
request; this effectively ignores the host_index
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _host_index: int, optional
|
|
356
|
+
:return: Returns the result object.
|
|
357
|
+
""" # noqa: E501
|
|
358
|
+
|
|
359
|
+
_param = self._evaluator_service_create_evaluator_serialize(
|
|
360
|
+
evaluator=evaluator,
|
|
361
|
+
_request_auth=_request_auth,
|
|
362
|
+
_content_type=_content_type,
|
|
363
|
+
_headers=_headers,
|
|
364
|
+
_host_index=_host_index
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
368
|
+
'200': "V1alphaCreateEvaluatorResponse",
|
|
369
|
+
}
|
|
370
|
+
response_data = self.api_client.call_api(
|
|
371
|
+
*_param,
|
|
372
|
+
_request_timeout=_request_timeout
|
|
373
|
+
)
|
|
374
|
+
response_data.read()
|
|
375
|
+
return self.api_client.response_deserialize(
|
|
376
|
+
response_data=response_data,
|
|
377
|
+
response_types_map=_response_types_map,
|
|
378
|
+
).data
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
@validate_call
|
|
382
|
+
def evaluator_service_create_evaluator_with_http_info(
|
|
383
|
+
self,
|
|
384
|
+
evaluator: Annotated[V1alphaEvaluator, Field(description="Required. The Evaluator to create.")],
|
|
385
|
+
_request_timeout: Union[
|
|
386
|
+
None,
|
|
387
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
388
|
+
Tuple[
|
|
389
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
390
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
391
|
+
]
|
|
392
|
+
] = None,
|
|
393
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
394
|
+
_content_type: Optional[StrictStr] = None,
|
|
395
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
396
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
397
|
+
) -> ApiResponse[V1alphaCreateEvaluatorResponse]:
|
|
398
|
+
"""evaluator_service_create_evaluator
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
:param evaluator: Required. The Evaluator to create. (required)
|
|
402
|
+
:type evaluator: V1alphaEvaluator
|
|
403
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
404
|
+
number provided, it will be total request
|
|
405
|
+
timeout. It can also be a pair (tuple) of
|
|
406
|
+
(connection, read) timeouts.
|
|
407
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
408
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
409
|
+
request; this effectively ignores the
|
|
410
|
+
authentication in the spec for a single request.
|
|
411
|
+
:type _request_auth: dict, optional
|
|
412
|
+
:param _content_type: force content-type for the request.
|
|
413
|
+
:type _content_type: str, Optional
|
|
414
|
+
:param _headers: set to override the headers for a single
|
|
415
|
+
request; this effectively ignores the headers
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _headers: dict, optional
|
|
418
|
+
:param _host_index: set to override the host_index for a single
|
|
419
|
+
request; this effectively ignores the host_index
|
|
420
|
+
in the spec for a single request.
|
|
421
|
+
:type _host_index: int, optional
|
|
422
|
+
:return: Returns the result object.
|
|
423
|
+
""" # noqa: E501
|
|
424
|
+
|
|
425
|
+
_param = self._evaluator_service_create_evaluator_serialize(
|
|
426
|
+
evaluator=evaluator,
|
|
427
|
+
_request_auth=_request_auth,
|
|
428
|
+
_content_type=_content_type,
|
|
429
|
+
_headers=_headers,
|
|
430
|
+
_host_index=_host_index
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
434
|
+
'200': "V1alphaCreateEvaluatorResponse",
|
|
435
|
+
}
|
|
436
|
+
response_data = self.api_client.call_api(
|
|
437
|
+
*_param,
|
|
438
|
+
_request_timeout=_request_timeout
|
|
439
|
+
)
|
|
440
|
+
response_data.read()
|
|
441
|
+
return self.api_client.response_deserialize(
|
|
442
|
+
response_data=response_data,
|
|
443
|
+
response_types_map=_response_types_map,
|
|
444
|
+
)
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
@validate_call
|
|
448
|
+
def evaluator_service_create_evaluator_without_preload_content(
|
|
449
|
+
self,
|
|
450
|
+
evaluator: Annotated[V1alphaEvaluator, Field(description="Required. The Evaluator to create.")],
|
|
451
|
+
_request_timeout: Union[
|
|
452
|
+
None,
|
|
453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
454
|
+
Tuple[
|
|
455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
456
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
457
|
+
]
|
|
458
|
+
] = None,
|
|
459
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
460
|
+
_content_type: Optional[StrictStr] = None,
|
|
461
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
462
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
463
|
+
) -> RESTResponseType:
|
|
464
|
+
"""evaluator_service_create_evaluator
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
:param evaluator: Required. The Evaluator to create. (required)
|
|
468
|
+
:type evaluator: V1alphaEvaluator
|
|
469
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
470
|
+
number provided, it will be total request
|
|
471
|
+
timeout. It can also be a pair (tuple) of
|
|
472
|
+
(connection, read) timeouts.
|
|
473
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
474
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
475
|
+
request; this effectively ignores the
|
|
476
|
+
authentication in the spec for a single request.
|
|
477
|
+
:type _request_auth: dict, optional
|
|
478
|
+
:param _content_type: force content-type for the request.
|
|
479
|
+
:type _content_type: str, Optional
|
|
480
|
+
:param _headers: set to override the headers for a single
|
|
481
|
+
request; this effectively ignores the headers
|
|
482
|
+
in the spec for a single request.
|
|
483
|
+
:type _headers: dict, optional
|
|
484
|
+
:param _host_index: set to override the host_index for a single
|
|
485
|
+
request; this effectively ignores the host_index
|
|
486
|
+
in the spec for a single request.
|
|
487
|
+
:type _host_index: int, optional
|
|
488
|
+
:return: Returns the result object.
|
|
489
|
+
""" # noqa: E501
|
|
490
|
+
|
|
491
|
+
_param = self._evaluator_service_create_evaluator_serialize(
|
|
492
|
+
evaluator=evaluator,
|
|
493
|
+
_request_auth=_request_auth,
|
|
494
|
+
_content_type=_content_type,
|
|
495
|
+
_headers=_headers,
|
|
496
|
+
_host_index=_host_index
|
|
497
|
+
)
|
|
498
|
+
|
|
499
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
500
|
+
'200': "V1alphaCreateEvaluatorResponse",
|
|
501
|
+
}
|
|
502
|
+
response_data = self.api_client.call_api(
|
|
503
|
+
*_param,
|
|
504
|
+
_request_timeout=_request_timeout
|
|
505
|
+
)
|
|
506
|
+
return response_data.response
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
def _evaluator_service_create_evaluator_serialize(
|
|
510
|
+
self,
|
|
511
|
+
evaluator,
|
|
512
|
+
_request_auth,
|
|
513
|
+
_content_type,
|
|
514
|
+
_headers,
|
|
515
|
+
_host_index,
|
|
516
|
+
) -> RequestSerialized:
|
|
517
|
+
|
|
518
|
+
_host = None
|
|
519
|
+
|
|
520
|
+
_collection_formats: Dict[str, str] = {
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
_path_params: Dict[str, str] = {}
|
|
524
|
+
_query_params: List[Tuple[str, str]] = []
|
|
525
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
526
|
+
_form_params: List[Tuple[str, str]] = []
|
|
527
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
528
|
+
_body_params: Optional[bytes] = None
|
|
529
|
+
|
|
530
|
+
# process the path parameters
|
|
531
|
+
# process the query parameters
|
|
532
|
+
# process the header parameters
|
|
533
|
+
# process the form parameters
|
|
534
|
+
# process the body parameter
|
|
535
|
+
if evaluator is not None:
|
|
536
|
+
_body_params = evaluator
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
# set the HTTP header `Accept`
|
|
540
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
541
|
+
[
|
|
542
|
+
'application/json'
|
|
543
|
+
]
|
|
544
|
+
)
|
|
545
|
+
|
|
546
|
+
# set the HTTP header `Content-Type`
|
|
547
|
+
if _content_type:
|
|
548
|
+
_header_params['Content-Type'] = _content_type
|
|
549
|
+
else:
|
|
550
|
+
_default_content_type = (
|
|
551
|
+
self.api_client.select_header_content_type(
|
|
552
|
+
[
|
|
553
|
+
'application/json'
|
|
554
|
+
]
|
|
555
|
+
)
|
|
556
|
+
)
|
|
557
|
+
if _default_content_type is not None:
|
|
558
|
+
_header_params['Content-Type'] = _default_content_type
|
|
559
|
+
|
|
560
|
+
# authentication setting
|
|
561
|
+
_auth_settings: List[str] = [
|
|
562
|
+
]
|
|
563
|
+
|
|
564
|
+
return self.api_client.param_serialize(
|
|
565
|
+
method='POST',
|
|
566
|
+
resource_path='/v1alpha/evaluators',
|
|
567
|
+
path_params=_path_params,
|
|
568
|
+
query_params=_query_params,
|
|
569
|
+
header_params=_header_params,
|
|
570
|
+
body=_body_params,
|
|
571
|
+
post_params=_form_params,
|
|
572
|
+
files=_files,
|
|
573
|
+
auth_settings=_auth_settings,
|
|
574
|
+
collection_formats=_collection_formats,
|
|
575
|
+
_host=_host,
|
|
576
|
+
_request_auth=_request_auth
|
|
577
|
+
)
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
@validate_call
|
|
583
|
+
def evaluator_service_delete_evaluator(
|
|
584
|
+
self,
|
|
585
|
+
name_2: Annotated[str, Field(strict=True, description="Required. The name of the Evaluator to delete.")],
|
|
586
|
+
_request_timeout: Union[
|
|
587
|
+
None,
|
|
588
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
589
|
+
Tuple[
|
|
590
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
591
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
592
|
+
]
|
|
593
|
+
] = None,
|
|
594
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
595
|
+
_content_type: Optional[StrictStr] = None,
|
|
596
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
597
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
598
|
+
) -> V1alphaDeleteEvaluatorResponse:
|
|
599
|
+
"""evaluator_service_delete_evaluator
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
:param name_2: Required. The name of the Evaluator to delete. (required)
|
|
603
|
+
:type name_2: str
|
|
604
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
605
|
+
number provided, it will be total request
|
|
606
|
+
timeout. It can also be a pair (tuple) of
|
|
607
|
+
(connection, read) timeouts.
|
|
608
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
609
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
610
|
+
request; this effectively ignores the
|
|
611
|
+
authentication in the spec for a single request.
|
|
612
|
+
:type _request_auth: dict, optional
|
|
613
|
+
:param _content_type: force content-type for the request.
|
|
614
|
+
:type _content_type: str, Optional
|
|
615
|
+
:param _headers: set to override the headers for a single
|
|
616
|
+
request; this effectively ignores the headers
|
|
617
|
+
in the spec for a single request.
|
|
618
|
+
:type _headers: dict, optional
|
|
619
|
+
:param _host_index: set to override the host_index for a single
|
|
620
|
+
request; this effectively ignores the host_index
|
|
621
|
+
in the spec for a single request.
|
|
622
|
+
:type _host_index: int, optional
|
|
623
|
+
:return: Returns the result object.
|
|
624
|
+
""" # noqa: E501
|
|
625
|
+
|
|
626
|
+
_param = self._evaluator_service_delete_evaluator_serialize(
|
|
627
|
+
name_2=name_2,
|
|
628
|
+
_request_auth=_request_auth,
|
|
629
|
+
_content_type=_content_type,
|
|
630
|
+
_headers=_headers,
|
|
631
|
+
_host_index=_host_index
|
|
632
|
+
)
|
|
633
|
+
|
|
634
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
635
|
+
'200': "V1alphaDeleteEvaluatorResponse",
|
|
636
|
+
}
|
|
637
|
+
response_data = self.api_client.call_api(
|
|
638
|
+
*_param,
|
|
639
|
+
_request_timeout=_request_timeout
|
|
640
|
+
)
|
|
641
|
+
response_data.read()
|
|
642
|
+
return self.api_client.response_deserialize(
|
|
643
|
+
response_data=response_data,
|
|
644
|
+
response_types_map=_response_types_map,
|
|
645
|
+
).data
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
@validate_call
|
|
649
|
+
def evaluator_service_delete_evaluator_with_http_info(
|
|
650
|
+
self,
|
|
651
|
+
name_2: Annotated[str, Field(strict=True, description="Required. The name of the Evaluator to delete.")],
|
|
652
|
+
_request_timeout: Union[
|
|
653
|
+
None,
|
|
654
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
655
|
+
Tuple[
|
|
656
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
657
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
658
|
+
]
|
|
659
|
+
] = None,
|
|
660
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
661
|
+
_content_type: Optional[StrictStr] = None,
|
|
662
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
663
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
664
|
+
) -> ApiResponse[V1alphaDeleteEvaluatorResponse]:
|
|
665
|
+
"""evaluator_service_delete_evaluator
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
:param name_2: Required. The name of the Evaluator to delete. (required)
|
|
669
|
+
:type name_2: str
|
|
670
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
671
|
+
number provided, it will be total request
|
|
672
|
+
timeout. It can also be a pair (tuple) of
|
|
673
|
+
(connection, read) timeouts.
|
|
674
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
675
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
676
|
+
request; this effectively ignores the
|
|
677
|
+
authentication in the spec for a single request.
|
|
678
|
+
:type _request_auth: dict, optional
|
|
679
|
+
:param _content_type: force content-type for the request.
|
|
680
|
+
:type _content_type: str, Optional
|
|
681
|
+
:param _headers: set to override the headers for a single
|
|
682
|
+
request; this effectively ignores the headers
|
|
683
|
+
in the spec for a single request.
|
|
684
|
+
:type _headers: dict, optional
|
|
685
|
+
:param _host_index: set to override the host_index for a single
|
|
686
|
+
request; this effectively ignores the host_index
|
|
687
|
+
in the spec for a single request.
|
|
688
|
+
:type _host_index: int, optional
|
|
689
|
+
:return: Returns the result object.
|
|
690
|
+
""" # noqa: E501
|
|
691
|
+
|
|
692
|
+
_param = self._evaluator_service_delete_evaluator_serialize(
|
|
693
|
+
name_2=name_2,
|
|
694
|
+
_request_auth=_request_auth,
|
|
695
|
+
_content_type=_content_type,
|
|
696
|
+
_headers=_headers,
|
|
697
|
+
_host_index=_host_index
|
|
698
|
+
)
|
|
699
|
+
|
|
700
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
701
|
+
'200': "V1alphaDeleteEvaluatorResponse",
|
|
702
|
+
}
|
|
703
|
+
response_data = self.api_client.call_api(
|
|
704
|
+
*_param,
|
|
705
|
+
_request_timeout=_request_timeout
|
|
706
|
+
)
|
|
707
|
+
response_data.read()
|
|
708
|
+
return self.api_client.response_deserialize(
|
|
709
|
+
response_data=response_data,
|
|
710
|
+
response_types_map=_response_types_map,
|
|
711
|
+
)
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
@validate_call
|
|
715
|
+
def evaluator_service_delete_evaluator_without_preload_content(
|
|
716
|
+
self,
|
|
717
|
+
name_2: Annotated[str, Field(strict=True, description="Required. The name of the Evaluator to delete.")],
|
|
718
|
+
_request_timeout: Union[
|
|
719
|
+
None,
|
|
720
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
721
|
+
Tuple[
|
|
722
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
723
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
724
|
+
]
|
|
725
|
+
] = None,
|
|
726
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
727
|
+
_content_type: Optional[StrictStr] = None,
|
|
728
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
729
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
730
|
+
) -> RESTResponseType:
|
|
731
|
+
"""evaluator_service_delete_evaluator
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
:param name_2: Required. The name of the Evaluator to delete. (required)
|
|
735
|
+
:type name_2: str
|
|
736
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
737
|
+
number provided, it will be total request
|
|
738
|
+
timeout. It can also be a pair (tuple) of
|
|
739
|
+
(connection, read) timeouts.
|
|
740
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
741
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
742
|
+
request; this effectively ignores the
|
|
743
|
+
authentication in the spec for a single request.
|
|
744
|
+
:type _request_auth: dict, optional
|
|
745
|
+
:param _content_type: force content-type for the request.
|
|
746
|
+
:type _content_type: str, Optional
|
|
747
|
+
:param _headers: set to override the headers for a single
|
|
748
|
+
request; this effectively ignores the headers
|
|
749
|
+
in the spec for a single request.
|
|
750
|
+
:type _headers: dict, optional
|
|
751
|
+
:param _host_index: set to override the host_index for a single
|
|
752
|
+
request; this effectively ignores the host_index
|
|
753
|
+
in the spec for a single request.
|
|
754
|
+
:type _host_index: int, optional
|
|
755
|
+
:return: Returns the result object.
|
|
756
|
+
""" # noqa: E501
|
|
757
|
+
|
|
758
|
+
_param = self._evaluator_service_delete_evaluator_serialize(
|
|
759
|
+
name_2=name_2,
|
|
760
|
+
_request_auth=_request_auth,
|
|
761
|
+
_content_type=_content_type,
|
|
762
|
+
_headers=_headers,
|
|
763
|
+
_host_index=_host_index
|
|
764
|
+
)
|
|
765
|
+
|
|
766
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
767
|
+
'200': "V1alphaDeleteEvaluatorResponse",
|
|
768
|
+
}
|
|
769
|
+
response_data = self.api_client.call_api(
|
|
770
|
+
*_param,
|
|
771
|
+
_request_timeout=_request_timeout
|
|
772
|
+
)
|
|
773
|
+
return response_data.response
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
def _evaluator_service_delete_evaluator_serialize(
|
|
777
|
+
self,
|
|
778
|
+
name_2,
|
|
779
|
+
_request_auth,
|
|
780
|
+
_content_type,
|
|
781
|
+
_headers,
|
|
782
|
+
_host_index,
|
|
783
|
+
) -> RequestSerialized:
|
|
784
|
+
|
|
785
|
+
_host = None
|
|
786
|
+
|
|
787
|
+
_collection_formats: Dict[str, str] = {
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
_path_params: Dict[str, str] = {}
|
|
791
|
+
_query_params: List[Tuple[str, str]] = []
|
|
792
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
793
|
+
_form_params: List[Tuple[str, str]] = []
|
|
794
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
795
|
+
_body_params: Optional[bytes] = None
|
|
796
|
+
|
|
797
|
+
# process the path parameters
|
|
798
|
+
if name_2 is not None:
|
|
799
|
+
_path_params['name_2'] = name_2
|
|
800
|
+
# process the query parameters
|
|
801
|
+
# process the header parameters
|
|
802
|
+
# process the form parameters
|
|
803
|
+
# process the body parameter
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
# set the HTTP header `Accept`
|
|
807
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
808
|
+
[
|
|
809
|
+
'application/json'
|
|
810
|
+
]
|
|
811
|
+
)
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
# authentication setting
|
|
815
|
+
_auth_settings: List[str] = [
|
|
816
|
+
]
|
|
817
|
+
|
|
818
|
+
return self.api_client.param_serialize(
|
|
819
|
+
method='DELETE',
|
|
820
|
+
resource_path='/v1alpha/{name_2}',
|
|
821
|
+
path_params=_path_params,
|
|
822
|
+
query_params=_query_params,
|
|
823
|
+
header_params=_header_params,
|
|
824
|
+
body=_body_params,
|
|
825
|
+
post_params=_form_params,
|
|
826
|
+
files=_files,
|
|
827
|
+
auth_settings=_auth_settings,
|
|
828
|
+
collection_formats=_collection_formats,
|
|
829
|
+
_host=_host,
|
|
830
|
+
_request_auth=_request_auth
|
|
831
|
+
)
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
@validate_call
|
|
837
|
+
def evaluator_service_get_evaluator(
|
|
838
|
+
self,
|
|
839
|
+
name_2: Annotated[str, Field(strict=True, description="Required. The name of the Evaluator to retrieve.")],
|
|
840
|
+
_request_timeout: Union[
|
|
841
|
+
None,
|
|
842
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
843
|
+
Tuple[
|
|
844
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
845
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
846
|
+
]
|
|
847
|
+
] = None,
|
|
848
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
849
|
+
_content_type: Optional[StrictStr] = None,
|
|
850
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
851
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
852
|
+
) -> V1alphaGetEvaluatorResponse:
|
|
853
|
+
"""evaluator_service_get_evaluator
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
:param name_2: Required. The name of the Evaluator to retrieve. (required)
|
|
857
|
+
:type name_2: str
|
|
858
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
859
|
+
number provided, it will be total request
|
|
860
|
+
timeout. It can also be a pair (tuple) of
|
|
861
|
+
(connection, read) timeouts.
|
|
862
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
863
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
864
|
+
request; this effectively ignores the
|
|
865
|
+
authentication in the spec for a single request.
|
|
866
|
+
:type _request_auth: dict, optional
|
|
867
|
+
:param _content_type: force content-type for the request.
|
|
868
|
+
:type _content_type: str, Optional
|
|
869
|
+
:param _headers: set to override the headers for a single
|
|
870
|
+
request; this effectively ignores the headers
|
|
871
|
+
in the spec for a single request.
|
|
872
|
+
:type _headers: dict, optional
|
|
873
|
+
:param _host_index: set to override the host_index for a single
|
|
874
|
+
request; this effectively ignores the host_index
|
|
875
|
+
in the spec for a single request.
|
|
876
|
+
:type _host_index: int, optional
|
|
877
|
+
:return: Returns the result object.
|
|
878
|
+
""" # noqa: E501
|
|
879
|
+
|
|
880
|
+
_param = self._evaluator_service_get_evaluator_serialize(
|
|
881
|
+
name_2=name_2,
|
|
882
|
+
_request_auth=_request_auth,
|
|
883
|
+
_content_type=_content_type,
|
|
884
|
+
_headers=_headers,
|
|
885
|
+
_host_index=_host_index
|
|
886
|
+
)
|
|
887
|
+
|
|
888
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
889
|
+
'200': "V1alphaGetEvaluatorResponse",
|
|
890
|
+
}
|
|
891
|
+
response_data = self.api_client.call_api(
|
|
892
|
+
*_param,
|
|
893
|
+
_request_timeout=_request_timeout
|
|
894
|
+
)
|
|
895
|
+
response_data.read()
|
|
896
|
+
return self.api_client.response_deserialize(
|
|
897
|
+
response_data=response_data,
|
|
898
|
+
response_types_map=_response_types_map,
|
|
899
|
+
).data
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
@validate_call
|
|
903
|
+
def evaluator_service_get_evaluator_with_http_info(
|
|
904
|
+
self,
|
|
905
|
+
name_2: Annotated[str, Field(strict=True, description="Required. The name of the Evaluator to retrieve.")],
|
|
906
|
+
_request_timeout: Union[
|
|
907
|
+
None,
|
|
908
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
909
|
+
Tuple[
|
|
910
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
911
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
912
|
+
]
|
|
913
|
+
] = None,
|
|
914
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
915
|
+
_content_type: Optional[StrictStr] = None,
|
|
916
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
917
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
918
|
+
) -> ApiResponse[V1alphaGetEvaluatorResponse]:
|
|
919
|
+
"""evaluator_service_get_evaluator
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
:param name_2: Required. The name of the Evaluator to retrieve. (required)
|
|
923
|
+
:type name_2: str
|
|
924
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
925
|
+
number provided, it will be total request
|
|
926
|
+
timeout. It can also be a pair (tuple) of
|
|
927
|
+
(connection, read) timeouts.
|
|
928
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
929
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
930
|
+
request; this effectively ignores the
|
|
931
|
+
authentication in the spec for a single request.
|
|
932
|
+
:type _request_auth: dict, optional
|
|
933
|
+
:param _content_type: force content-type for the request.
|
|
934
|
+
:type _content_type: str, Optional
|
|
935
|
+
:param _headers: set to override the headers for a single
|
|
936
|
+
request; this effectively ignores the headers
|
|
937
|
+
in the spec for a single request.
|
|
938
|
+
:type _headers: dict, optional
|
|
939
|
+
:param _host_index: set to override the host_index for a single
|
|
940
|
+
request; this effectively ignores the host_index
|
|
941
|
+
in the spec for a single request.
|
|
942
|
+
:type _host_index: int, optional
|
|
943
|
+
:return: Returns the result object.
|
|
944
|
+
""" # noqa: E501
|
|
945
|
+
|
|
946
|
+
_param = self._evaluator_service_get_evaluator_serialize(
|
|
947
|
+
name_2=name_2,
|
|
948
|
+
_request_auth=_request_auth,
|
|
949
|
+
_content_type=_content_type,
|
|
950
|
+
_headers=_headers,
|
|
951
|
+
_host_index=_host_index
|
|
952
|
+
)
|
|
953
|
+
|
|
954
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
955
|
+
'200': "V1alphaGetEvaluatorResponse",
|
|
956
|
+
}
|
|
957
|
+
response_data = self.api_client.call_api(
|
|
958
|
+
*_param,
|
|
959
|
+
_request_timeout=_request_timeout
|
|
960
|
+
)
|
|
961
|
+
response_data.read()
|
|
962
|
+
return self.api_client.response_deserialize(
|
|
963
|
+
response_data=response_data,
|
|
964
|
+
response_types_map=_response_types_map,
|
|
965
|
+
)
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
@validate_call
|
|
969
|
+
def evaluator_service_get_evaluator_without_preload_content(
|
|
970
|
+
self,
|
|
971
|
+
name_2: Annotated[str, Field(strict=True, description="Required. The name of the Evaluator to retrieve.")],
|
|
972
|
+
_request_timeout: Union[
|
|
973
|
+
None,
|
|
974
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
975
|
+
Tuple[
|
|
976
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
977
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
978
|
+
]
|
|
979
|
+
] = None,
|
|
980
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
981
|
+
_content_type: Optional[StrictStr] = None,
|
|
982
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
983
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
984
|
+
) -> RESTResponseType:
|
|
985
|
+
"""evaluator_service_get_evaluator
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
:param name_2: Required. The name of the Evaluator to retrieve. (required)
|
|
989
|
+
:type name_2: str
|
|
990
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
991
|
+
number provided, it will be total request
|
|
992
|
+
timeout. It can also be a pair (tuple) of
|
|
993
|
+
(connection, read) timeouts.
|
|
994
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
995
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
996
|
+
request; this effectively ignores the
|
|
997
|
+
authentication in the spec for a single request.
|
|
998
|
+
:type _request_auth: dict, optional
|
|
999
|
+
:param _content_type: force content-type for the request.
|
|
1000
|
+
:type _content_type: str, Optional
|
|
1001
|
+
:param _headers: set to override the headers for a single
|
|
1002
|
+
request; this effectively ignores the headers
|
|
1003
|
+
in the spec for a single request.
|
|
1004
|
+
:type _headers: dict, optional
|
|
1005
|
+
:param _host_index: set to override the host_index for a single
|
|
1006
|
+
request; this effectively ignores the host_index
|
|
1007
|
+
in the spec for a single request.
|
|
1008
|
+
:type _host_index: int, optional
|
|
1009
|
+
:return: Returns the result object.
|
|
1010
|
+
""" # noqa: E501
|
|
1011
|
+
|
|
1012
|
+
_param = self._evaluator_service_get_evaluator_serialize(
|
|
1013
|
+
name_2=name_2,
|
|
1014
|
+
_request_auth=_request_auth,
|
|
1015
|
+
_content_type=_content_type,
|
|
1016
|
+
_headers=_headers,
|
|
1017
|
+
_host_index=_host_index
|
|
1018
|
+
)
|
|
1019
|
+
|
|
1020
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1021
|
+
'200': "V1alphaGetEvaluatorResponse",
|
|
1022
|
+
}
|
|
1023
|
+
response_data = self.api_client.call_api(
|
|
1024
|
+
*_param,
|
|
1025
|
+
_request_timeout=_request_timeout
|
|
1026
|
+
)
|
|
1027
|
+
return response_data.response
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
def _evaluator_service_get_evaluator_serialize(
|
|
1031
|
+
self,
|
|
1032
|
+
name_2,
|
|
1033
|
+
_request_auth,
|
|
1034
|
+
_content_type,
|
|
1035
|
+
_headers,
|
|
1036
|
+
_host_index,
|
|
1037
|
+
) -> RequestSerialized:
|
|
1038
|
+
|
|
1039
|
+
_host = None
|
|
1040
|
+
|
|
1041
|
+
_collection_formats: Dict[str, str] = {
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
_path_params: Dict[str, str] = {}
|
|
1045
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1046
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1047
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1048
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
1049
|
+
_body_params: Optional[bytes] = None
|
|
1050
|
+
|
|
1051
|
+
# process the path parameters
|
|
1052
|
+
if name_2 is not None:
|
|
1053
|
+
_path_params['name_2'] = name_2
|
|
1054
|
+
# process the query parameters
|
|
1055
|
+
# process the header parameters
|
|
1056
|
+
# process the form parameters
|
|
1057
|
+
# process the body parameter
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
# set the HTTP header `Accept`
|
|
1061
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1062
|
+
[
|
|
1063
|
+
'application/json'
|
|
1064
|
+
]
|
|
1065
|
+
)
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
# authentication setting
|
|
1069
|
+
_auth_settings: List[str] = [
|
|
1070
|
+
]
|
|
1071
|
+
|
|
1072
|
+
return self.api_client.param_serialize(
|
|
1073
|
+
method='GET',
|
|
1074
|
+
resource_path='/v1alpha/{name_2}',
|
|
1075
|
+
path_params=_path_params,
|
|
1076
|
+
query_params=_query_params,
|
|
1077
|
+
header_params=_header_params,
|
|
1078
|
+
body=_body_params,
|
|
1079
|
+
post_params=_form_params,
|
|
1080
|
+
files=_files,
|
|
1081
|
+
auth_settings=_auth_settings,
|
|
1082
|
+
collection_formats=_collection_formats,
|
|
1083
|
+
_host=_host,
|
|
1084
|
+
_request_auth=_request_auth
|
|
1085
|
+
)
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
@validate_call
|
|
1091
|
+
def evaluator_service_list_evaluators(
|
|
1092
|
+
self,
|
|
1093
|
+
view: Annotated[Optional[StrictStr], Field(description="Optional. View specifies the amount of information included in the Evaluator's description. Brief view includes only short descriptions, which can significantly decrease the amount of data transferred. - EVALUATOR_VIEW_UNSPECIFIED: The default / unset value. The API will default to the EVALUATOR_VIEW_BRIEF. - EVALUATOR_VIEW_BRIEF: Brief view of the Evaluator, which doesn't include the long description, only the brief one. - EVALUATOR_VIEW_FULL: Full view of the evaluator, including brief and full description.")] = None,
|
|
1094
|
+
_request_timeout: Union[
|
|
1095
|
+
None,
|
|
1096
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1097
|
+
Tuple[
|
|
1098
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1099
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1100
|
+
]
|
|
1101
|
+
] = None,
|
|
1102
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1103
|
+
_content_type: Optional[StrictStr] = None,
|
|
1104
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1105
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1106
|
+
) -> V1alphaListEvaluatorsResponse:
|
|
1107
|
+
"""evaluator_service_list_evaluators
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
:param view: Optional. View specifies the amount of information included in the Evaluator's description. Brief view includes only short descriptions, which can significantly decrease the amount of data transferred. - EVALUATOR_VIEW_UNSPECIFIED: The default / unset value. The API will default to the EVALUATOR_VIEW_BRIEF. - EVALUATOR_VIEW_BRIEF: Brief view of the Evaluator, which doesn't include the long description, only the brief one. - EVALUATOR_VIEW_FULL: Full view of the evaluator, including brief and full description.
|
|
1111
|
+
:type view: str
|
|
1112
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1113
|
+
number provided, it will be total request
|
|
1114
|
+
timeout. It can also be a pair (tuple) of
|
|
1115
|
+
(connection, read) timeouts.
|
|
1116
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1117
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1118
|
+
request; this effectively ignores the
|
|
1119
|
+
authentication in the spec for a single request.
|
|
1120
|
+
:type _request_auth: dict, optional
|
|
1121
|
+
:param _content_type: force content-type for the request.
|
|
1122
|
+
:type _content_type: str, Optional
|
|
1123
|
+
:param _headers: set to override the headers for a single
|
|
1124
|
+
request; this effectively ignores the headers
|
|
1125
|
+
in the spec for a single request.
|
|
1126
|
+
:type _headers: dict, optional
|
|
1127
|
+
:param _host_index: set to override the host_index for a single
|
|
1128
|
+
request; this effectively ignores the host_index
|
|
1129
|
+
in the spec for a single request.
|
|
1130
|
+
:type _host_index: int, optional
|
|
1131
|
+
:return: Returns the result object.
|
|
1132
|
+
""" # noqa: E501
|
|
1133
|
+
|
|
1134
|
+
_param = self._evaluator_service_list_evaluators_serialize(
|
|
1135
|
+
view=view,
|
|
1136
|
+
_request_auth=_request_auth,
|
|
1137
|
+
_content_type=_content_type,
|
|
1138
|
+
_headers=_headers,
|
|
1139
|
+
_host_index=_host_index
|
|
1140
|
+
)
|
|
1141
|
+
|
|
1142
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1143
|
+
'200': "V1alphaListEvaluatorsResponse",
|
|
1144
|
+
}
|
|
1145
|
+
response_data = self.api_client.call_api(
|
|
1146
|
+
*_param,
|
|
1147
|
+
_request_timeout=_request_timeout
|
|
1148
|
+
)
|
|
1149
|
+
response_data.read()
|
|
1150
|
+
return self.api_client.response_deserialize(
|
|
1151
|
+
response_data=response_data,
|
|
1152
|
+
response_types_map=_response_types_map,
|
|
1153
|
+
).data
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
@validate_call
|
|
1157
|
+
def evaluator_service_list_evaluators_with_http_info(
|
|
1158
|
+
self,
|
|
1159
|
+
view: Annotated[Optional[StrictStr], Field(description="Optional. View specifies the amount of information included in the Evaluator's description. Brief view includes only short descriptions, which can significantly decrease the amount of data transferred. - EVALUATOR_VIEW_UNSPECIFIED: The default / unset value. The API will default to the EVALUATOR_VIEW_BRIEF. - EVALUATOR_VIEW_BRIEF: Brief view of the Evaluator, which doesn't include the long description, only the brief one. - EVALUATOR_VIEW_FULL: Full view of the evaluator, including brief and full description.")] = None,
|
|
1160
|
+
_request_timeout: Union[
|
|
1161
|
+
None,
|
|
1162
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1163
|
+
Tuple[
|
|
1164
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1165
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1166
|
+
]
|
|
1167
|
+
] = None,
|
|
1168
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1169
|
+
_content_type: Optional[StrictStr] = None,
|
|
1170
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1171
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1172
|
+
) -> ApiResponse[V1alphaListEvaluatorsResponse]:
|
|
1173
|
+
"""evaluator_service_list_evaluators
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
:param view: Optional. View specifies the amount of information included in the Evaluator's description. Brief view includes only short descriptions, which can significantly decrease the amount of data transferred. - EVALUATOR_VIEW_UNSPECIFIED: The default / unset value. The API will default to the EVALUATOR_VIEW_BRIEF. - EVALUATOR_VIEW_BRIEF: Brief view of the Evaluator, which doesn't include the long description, only the brief one. - EVALUATOR_VIEW_FULL: Full view of the evaluator, including brief and full description.
|
|
1177
|
+
:type view: str
|
|
1178
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1179
|
+
number provided, it will be total request
|
|
1180
|
+
timeout. It can also be a pair (tuple) of
|
|
1181
|
+
(connection, read) timeouts.
|
|
1182
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1183
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1184
|
+
request; this effectively ignores the
|
|
1185
|
+
authentication in the spec for a single request.
|
|
1186
|
+
:type _request_auth: dict, optional
|
|
1187
|
+
:param _content_type: force content-type for the request.
|
|
1188
|
+
:type _content_type: str, Optional
|
|
1189
|
+
:param _headers: set to override the headers for a single
|
|
1190
|
+
request; this effectively ignores the headers
|
|
1191
|
+
in the spec for a single request.
|
|
1192
|
+
:type _headers: dict, optional
|
|
1193
|
+
:param _host_index: set to override the host_index for a single
|
|
1194
|
+
request; this effectively ignores the host_index
|
|
1195
|
+
in the spec for a single request.
|
|
1196
|
+
:type _host_index: int, optional
|
|
1197
|
+
:return: Returns the result object.
|
|
1198
|
+
""" # noqa: E501
|
|
1199
|
+
|
|
1200
|
+
_param = self._evaluator_service_list_evaluators_serialize(
|
|
1201
|
+
view=view,
|
|
1202
|
+
_request_auth=_request_auth,
|
|
1203
|
+
_content_type=_content_type,
|
|
1204
|
+
_headers=_headers,
|
|
1205
|
+
_host_index=_host_index
|
|
1206
|
+
)
|
|
1207
|
+
|
|
1208
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1209
|
+
'200': "V1alphaListEvaluatorsResponse",
|
|
1210
|
+
}
|
|
1211
|
+
response_data = self.api_client.call_api(
|
|
1212
|
+
*_param,
|
|
1213
|
+
_request_timeout=_request_timeout
|
|
1214
|
+
)
|
|
1215
|
+
response_data.read()
|
|
1216
|
+
return self.api_client.response_deserialize(
|
|
1217
|
+
response_data=response_data,
|
|
1218
|
+
response_types_map=_response_types_map,
|
|
1219
|
+
)
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
@validate_call
|
|
1223
|
+
def evaluator_service_list_evaluators_without_preload_content(
|
|
1224
|
+
self,
|
|
1225
|
+
view: Annotated[Optional[StrictStr], Field(description="Optional. View specifies the amount of information included in the Evaluator's description. Brief view includes only short descriptions, which can significantly decrease the amount of data transferred. - EVALUATOR_VIEW_UNSPECIFIED: The default / unset value. The API will default to the EVALUATOR_VIEW_BRIEF. - EVALUATOR_VIEW_BRIEF: Brief view of the Evaluator, which doesn't include the long description, only the brief one. - EVALUATOR_VIEW_FULL: Full view of the evaluator, including brief and full description.")] = None,
|
|
1226
|
+
_request_timeout: Union[
|
|
1227
|
+
None,
|
|
1228
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1229
|
+
Tuple[
|
|
1230
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1231
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1232
|
+
]
|
|
1233
|
+
] = None,
|
|
1234
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1235
|
+
_content_type: Optional[StrictStr] = None,
|
|
1236
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1237
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1238
|
+
) -> RESTResponseType:
|
|
1239
|
+
"""evaluator_service_list_evaluators
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
:param view: Optional. View specifies the amount of information included in the Evaluator's description. Brief view includes only short descriptions, which can significantly decrease the amount of data transferred. - EVALUATOR_VIEW_UNSPECIFIED: The default / unset value. The API will default to the EVALUATOR_VIEW_BRIEF. - EVALUATOR_VIEW_BRIEF: Brief view of the Evaluator, which doesn't include the long description, only the brief one. - EVALUATOR_VIEW_FULL: Full view of the evaluator, including brief and full description.
|
|
1243
|
+
:type view: str
|
|
1244
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1245
|
+
number provided, it will be total request
|
|
1246
|
+
timeout. It can also be a pair (tuple) of
|
|
1247
|
+
(connection, read) timeouts.
|
|
1248
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1249
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1250
|
+
request; this effectively ignores the
|
|
1251
|
+
authentication in the spec for a single request.
|
|
1252
|
+
:type _request_auth: dict, optional
|
|
1253
|
+
:param _content_type: force content-type for the request.
|
|
1254
|
+
:type _content_type: str, Optional
|
|
1255
|
+
:param _headers: set to override the headers for a single
|
|
1256
|
+
request; this effectively ignores the headers
|
|
1257
|
+
in the spec for a single request.
|
|
1258
|
+
:type _headers: dict, optional
|
|
1259
|
+
:param _host_index: set to override the host_index for a single
|
|
1260
|
+
request; this effectively ignores the host_index
|
|
1261
|
+
in the spec for a single request.
|
|
1262
|
+
:type _host_index: int, optional
|
|
1263
|
+
:return: Returns the result object.
|
|
1264
|
+
""" # noqa: E501
|
|
1265
|
+
|
|
1266
|
+
_param = self._evaluator_service_list_evaluators_serialize(
|
|
1267
|
+
view=view,
|
|
1268
|
+
_request_auth=_request_auth,
|
|
1269
|
+
_content_type=_content_type,
|
|
1270
|
+
_headers=_headers,
|
|
1271
|
+
_host_index=_host_index
|
|
1272
|
+
)
|
|
1273
|
+
|
|
1274
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1275
|
+
'200': "V1alphaListEvaluatorsResponse",
|
|
1276
|
+
}
|
|
1277
|
+
response_data = self.api_client.call_api(
|
|
1278
|
+
*_param,
|
|
1279
|
+
_request_timeout=_request_timeout
|
|
1280
|
+
)
|
|
1281
|
+
return response_data.response
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
def _evaluator_service_list_evaluators_serialize(
|
|
1285
|
+
self,
|
|
1286
|
+
view,
|
|
1287
|
+
_request_auth,
|
|
1288
|
+
_content_type,
|
|
1289
|
+
_headers,
|
|
1290
|
+
_host_index,
|
|
1291
|
+
) -> RequestSerialized:
|
|
1292
|
+
|
|
1293
|
+
_host = None
|
|
1294
|
+
|
|
1295
|
+
_collection_formats: Dict[str, str] = {
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
_path_params: Dict[str, str] = {}
|
|
1299
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1300
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1301
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1302
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
1303
|
+
_body_params: Optional[bytes] = None
|
|
1304
|
+
|
|
1305
|
+
# process the path parameters
|
|
1306
|
+
# process the query parameters
|
|
1307
|
+
if view is not None:
|
|
1308
|
+
|
|
1309
|
+
_query_params.append(('view', view))
|
|
1310
|
+
|
|
1311
|
+
# process the header parameters
|
|
1312
|
+
# process the form parameters
|
|
1313
|
+
# process the body parameter
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
# set the HTTP header `Accept`
|
|
1317
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1318
|
+
[
|
|
1319
|
+
'application/json'
|
|
1320
|
+
]
|
|
1321
|
+
)
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
# authentication setting
|
|
1325
|
+
_auth_settings: List[str] = [
|
|
1326
|
+
]
|
|
1327
|
+
|
|
1328
|
+
return self.api_client.param_serialize(
|
|
1329
|
+
method='GET',
|
|
1330
|
+
resource_path='/v1alpha/evaluators',
|
|
1331
|
+
path_params=_path_params,
|
|
1332
|
+
query_params=_query_params,
|
|
1333
|
+
header_params=_header_params,
|
|
1334
|
+
body=_body_params,
|
|
1335
|
+
post_params=_form_params,
|
|
1336
|
+
files=_files,
|
|
1337
|
+
auth_settings=_auth_settings,
|
|
1338
|
+
collection_formats=_collection_formats,
|
|
1339
|
+
_host=_host,
|
|
1340
|
+
_request_auth=_request_auth
|
|
1341
|
+
)
|
|
1342
|
+
|
|
1343
|
+
|