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,1359 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1alpha/collection.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: version not set
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictStr, field_validator
|
|
20
|
+
from typing import List, Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from eval_studio_client.api.models.required_the_operation_to_finalize import RequiredTheOperationToFinalize
|
|
23
|
+
from eval_studio_client.api.models.required_the_operation_to_update import RequiredTheOperationToUpdate
|
|
24
|
+
from eval_studio_client.api.models.v1alpha_batch_get_operations_response import V1alphaBatchGetOperationsResponse
|
|
25
|
+
from eval_studio_client.api.models.v1alpha_finalize_operation_response import V1alphaFinalizeOperationResponse
|
|
26
|
+
from eval_studio_client.api.models.v1alpha_get_operation_response import V1alphaGetOperationResponse
|
|
27
|
+
from eval_studio_client.api.models.v1alpha_list_operations_response import V1alphaListOperationsResponse
|
|
28
|
+
from eval_studio_client.api.models.v1alpha_update_operation_response import V1alphaUpdateOperationResponse
|
|
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 OperationServiceApi:
|
|
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 operation_service_batch_get_operations(
|
|
50
|
+
self,
|
|
51
|
+
names: Annotated[Optional[List[StrictStr]], Field(description="The names of the Operations to retrieve. A maximum of 1000 can be specified.")] = None,
|
|
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
|
+
) -> V1alphaBatchGetOperationsResponse:
|
|
65
|
+
"""operation_service_batch_get_operations
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:param names: The names of the Operations to retrieve. A maximum of 1000 can be specified.
|
|
69
|
+
:type names: List[str]
|
|
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._operation_service_batch_get_operations_serialize(
|
|
93
|
+
names=names,
|
|
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': "V1alphaBatchGetOperationsResponse",
|
|
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 operation_service_batch_get_operations_with_http_info(
|
|
116
|
+
self,
|
|
117
|
+
names: Annotated[Optional[List[StrictStr]], Field(description="The names of the Operations to retrieve. A maximum of 1000 can be specified.")] = None,
|
|
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[V1alphaBatchGetOperationsResponse]:
|
|
131
|
+
"""operation_service_batch_get_operations
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param names: The names of the Operations to retrieve. A maximum of 1000 can be specified.
|
|
135
|
+
:type names: List[str]
|
|
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._operation_service_batch_get_operations_serialize(
|
|
159
|
+
names=names,
|
|
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': "V1alphaBatchGetOperationsResponse",
|
|
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 operation_service_batch_get_operations_without_preload_content(
|
|
182
|
+
self,
|
|
183
|
+
names: Annotated[Optional[List[StrictStr]], Field(description="The names of the Operations to retrieve. A maximum of 1000 can be specified.")] = None,
|
|
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
|
+
"""operation_service_batch_get_operations
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param names: The names of the Operations to retrieve. A maximum of 1000 can be specified.
|
|
201
|
+
:type names: List[str]
|
|
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._operation_service_batch_get_operations_serialize(
|
|
225
|
+
names=names,
|
|
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': "V1alphaBatchGetOperationsResponse",
|
|
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 _operation_service_batch_get_operations_serialize(
|
|
243
|
+
self,
|
|
244
|
+
names,
|
|
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
|
+
'names': 'multi',
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
_path_params: Dict[str, str] = {}
|
|
258
|
+
_query_params: List[Tuple[str, str]] = []
|
|
259
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
260
|
+
_form_params: List[Tuple[str, str]] = []
|
|
261
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
262
|
+
_body_params: Optional[bytes] = None
|
|
263
|
+
|
|
264
|
+
# process the path parameters
|
|
265
|
+
# process the query parameters
|
|
266
|
+
if names is not None:
|
|
267
|
+
|
|
268
|
+
_query_params.append(('names', names))
|
|
269
|
+
|
|
270
|
+
# process the header parameters
|
|
271
|
+
# process the form parameters
|
|
272
|
+
# process the body parameter
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
# set the HTTP header `Accept`
|
|
276
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
277
|
+
[
|
|
278
|
+
'application/json'
|
|
279
|
+
]
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
# authentication setting
|
|
284
|
+
_auth_settings: List[str] = [
|
|
285
|
+
]
|
|
286
|
+
|
|
287
|
+
return self.api_client.param_serialize(
|
|
288
|
+
method='GET',
|
|
289
|
+
resource_path='/v1alpha/operations:batchGet',
|
|
290
|
+
path_params=_path_params,
|
|
291
|
+
query_params=_query_params,
|
|
292
|
+
header_params=_header_params,
|
|
293
|
+
body=_body_params,
|
|
294
|
+
post_params=_form_params,
|
|
295
|
+
files=_files,
|
|
296
|
+
auth_settings=_auth_settings,
|
|
297
|
+
collection_formats=_collection_formats,
|
|
298
|
+
_host=_host,
|
|
299
|
+
_request_auth=_request_auth
|
|
300
|
+
)
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
@validate_call
|
|
306
|
+
def operation_service_finalize_operation(
|
|
307
|
+
self,
|
|
308
|
+
operation_name: Annotated[str, Field(strict=True, description="Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\"")],
|
|
309
|
+
operation: Annotated[RequiredTheOperationToFinalize, Field(description="Required. The Operation to finalize. The Operation's `name` field is used to identify the Operation to finalize. Format: operations/{operation}")],
|
|
310
|
+
_request_timeout: Union[
|
|
311
|
+
None,
|
|
312
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
313
|
+
Tuple[
|
|
314
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
315
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
316
|
+
]
|
|
317
|
+
] = None,
|
|
318
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
319
|
+
_content_type: Optional[StrictStr] = None,
|
|
320
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
321
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
322
|
+
) -> V1alphaFinalizeOperationResponse:
|
|
323
|
+
"""operation_service_finalize_operation
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
:param operation_name: Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\" (required)
|
|
327
|
+
:type operation_name: str
|
|
328
|
+
:param operation: Required. The Operation to finalize. The Operation's `name` field is used to identify the Operation to finalize. Format: operations/{operation} (required)
|
|
329
|
+
:type operation: RequiredTheOperationToFinalize
|
|
330
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
331
|
+
number provided, it will be total request
|
|
332
|
+
timeout. It can also be a pair (tuple) of
|
|
333
|
+
(connection, read) timeouts.
|
|
334
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
335
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
336
|
+
request; this effectively ignores the
|
|
337
|
+
authentication in the spec for a single request.
|
|
338
|
+
:type _request_auth: dict, optional
|
|
339
|
+
:param _content_type: force content-type for the request.
|
|
340
|
+
:type _content_type: str, Optional
|
|
341
|
+
:param _headers: set to override the headers for a single
|
|
342
|
+
request; this effectively ignores the headers
|
|
343
|
+
in the spec for a single request.
|
|
344
|
+
:type _headers: dict, optional
|
|
345
|
+
:param _host_index: set to override the host_index for a single
|
|
346
|
+
request; this effectively ignores the host_index
|
|
347
|
+
in the spec for a single request.
|
|
348
|
+
:type _host_index: int, optional
|
|
349
|
+
:return: Returns the result object.
|
|
350
|
+
""" # noqa: E501
|
|
351
|
+
|
|
352
|
+
_param = self._operation_service_finalize_operation_serialize(
|
|
353
|
+
operation_name=operation_name,
|
|
354
|
+
operation=operation,
|
|
355
|
+
_request_auth=_request_auth,
|
|
356
|
+
_content_type=_content_type,
|
|
357
|
+
_headers=_headers,
|
|
358
|
+
_host_index=_host_index
|
|
359
|
+
)
|
|
360
|
+
|
|
361
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
362
|
+
'200': "V1alphaFinalizeOperationResponse",
|
|
363
|
+
}
|
|
364
|
+
response_data = self.api_client.call_api(
|
|
365
|
+
*_param,
|
|
366
|
+
_request_timeout=_request_timeout
|
|
367
|
+
)
|
|
368
|
+
response_data.read()
|
|
369
|
+
return self.api_client.response_deserialize(
|
|
370
|
+
response_data=response_data,
|
|
371
|
+
response_types_map=_response_types_map,
|
|
372
|
+
).data
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
@validate_call
|
|
376
|
+
def operation_service_finalize_operation_with_http_info(
|
|
377
|
+
self,
|
|
378
|
+
operation_name: Annotated[str, Field(strict=True, description="Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\"")],
|
|
379
|
+
operation: Annotated[RequiredTheOperationToFinalize, Field(description="Required. The Operation to finalize. The Operation's `name` field is used to identify the Operation to finalize. Format: operations/{operation}")],
|
|
380
|
+
_request_timeout: Union[
|
|
381
|
+
None,
|
|
382
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
383
|
+
Tuple[
|
|
384
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
385
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
386
|
+
]
|
|
387
|
+
] = None,
|
|
388
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
389
|
+
_content_type: Optional[StrictStr] = None,
|
|
390
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
391
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
392
|
+
) -> ApiResponse[V1alphaFinalizeOperationResponse]:
|
|
393
|
+
"""operation_service_finalize_operation
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
:param operation_name: Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\" (required)
|
|
397
|
+
:type operation_name: str
|
|
398
|
+
:param operation: Required. The Operation to finalize. The Operation's `name` field is used to identify the Operation to finalize. Format: operations/{operation} (required)
|
|
399
|
+
:type operation: RequiredTheOperationToFinalize
|
|
400
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
401
|
+
number provided, it will be total request
|
|
402
|
+
timeout. It can also be a pair (tuple) of
|
|
403
|
+
(connection, read) timeouts.
|
|
404
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
405
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
406
|
+
request; this effectively ignores the
|
|
407
|
+
authentication in the spec for a single request.
|
|
408
|
+
:type _request_auth: dict, optional
|
|
409
|
+
:param _content_type: force content-type for the request.
|
|
410
|
+
:type _content_type: str, Optional
|
|
411
|
+
:param _headers: set to override the headers for a single
|
|
412
|
+
request; this effectively ignores the headers
|
|
413
|
+
in the spec for a single request.
|
|
414
|
+
:type _headers: dict, optional
|
|
415
|
+
:param _host_index: set to override the host_index for a single
|
|
416
|
+
request; this effectively ignores the host_index
|
|
417
|
+
in the spec for a single request.
|
|
418
|
+
:type _host_index: int, optional
|
|
419
|
+
:return: Returns the result object.
|
|
420
|
+
""" # noqa: E501
|
|
421
|
+
|
|
422
|
+
_param = self._operation_service_finalize_operation_serialize(
|
|
423
|
+
operation_name=operation_name,
|
|
424
|
+
operation=operation,
|
|
425
|
+
_request_auth=_request_auth,
|
|
426
|
+
_content_type=_content_type,
|
|
427
|
+
_headers=_headers,
|
|
428
|
+
_host_index=_host_index
|
|
429
|
+
)
|
|
430
|
+
|
|
431
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
432
|
+
'200': "V1alphaFinalizeOperationResponse",
|
|
433
|
+
}
|
|
434
|
+
response_data = self.api_client.call_api(
|
|
435
|
+
*_param,
|
|
436
|
+
_request_timeout=_request_timeout
|
|
437
|
+
)
|
|
438
|
+
response_data.read()
|
|
439
|
+
return self.api_client.response_deserialize(
|
|
440
|
+
response_data=response_data,
|
|
441
|
+
response_types_map=_response_types_map,
|
|
442
|
+
)
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
@validate_call
|
|
446
|
+
def operation_service_finalize_operation_without_preload_content(
|
|
447
|
+
self,
|
|
448
|
+
operation_name: Annotated[str, Field(strict=True, description="Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\"")],
|
|
449
|
+
operation: Annotated[RequiredTheOperationToFinalize, Field(description="Required. The Operation to finalize. The Operation's `name` field is used to identify the Operation to finalize. Format: operations/{operation}")],
|
|
450
|
+
_request_timeout: Union[
|
|
451
|
+
None,
|
|
452
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
453
|
+
Tuple[
|
|
454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
455
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
456
|
+
]
|
|
457
|
+
] = None,
|
|
458
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
459
|
+
_content_type: Optional[StrictStr] = None,
|
|
460
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
461
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
462
|
+
) -> RESTResponseType:
|
|
463
|
+
"""operation_service_finalize_operation
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
:param operation_name: Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\" (required)
|
|
467
|
+
:type operation_name: str
|
|
468
|
+
:param operation: Required. The Operation to finalize. The Operation's `name` field is used to identify the Operation to finalize. Format: operations/{operation} (required)
|
|
469
|
+
:type operation: RequiredTheOperationToFinalize
|
|
470
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
471
|
+
number provided, it will be total request
|
|
472
|
+
timeout. It can also be a pair (tuple) of
|
|
473
|
+
(connection, read) timeouts.
|
|
474
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
475
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
476
|
+
request; this effectively ignores the
|
|
477
|
+
authentication in the spec for a single request.
|
|
478
|
+
:type _request_auth: dict, optional
|
|
479
|
+
:param _content_type: force content-type for the request.
|
|
480
|
+
:type _content_type: str, Optional
|
|
481
|
+
:param _headers: set to override the headers for a single
|
|
482
|
+
request; this effectively ignores the headers
|
|
483
|
+
in the spec for a single request.
|
|
484
|
+
:type _headers: dict, optional
|
|
485
|
+
:param _host_index: set to override the host_index for a single
|
|
486
|
+
request; this effectively ignores the host_index
|
|
487
|
+
in the spec for a single request.
|
|
488
|
+
:type _host_index: int, optional
|
|
489
|
+
:return: Returns the result object.
|
|
490
|
+
""" # noqa: E501
|
|
491
|
+
|
|
492
|
+
_param = self._operation_service_finalize_operation_serialize(
|
|
493
|
+
operation_name=operation_name,
|
|
494
|
+
operation=operation,
|
|
495
|
+
_request_auth=_request_auth,
|
|
496
|
+
_content_type=_content_type,
|
|
497
|
+
_headers=_headers,
|
|
498
|
+
_host_index=_host_index
|
|
499
|
+
)
|
|
500
|
+
|
|
501
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
502
|
+
'200': "V1alphaFinalizeOperationResponse",
|
|
503
|
+
}
|
|
504
|
+
response_data = self.api_client.call_api(
|
|
505
|
+
*_param,
|
|
506
|
+
_request_timeout=_request_timeout
|
|
507
|
+
)
|
|
508
|
+
return response_data.response
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
def _operation_service_finalize_operation_serialize(
|
|
512
|
+
self,
|
|
513
|
+
operation_name,
|
|
514
|
+
operation,
|
|
515
|
+
_request_auth,
|
|
516
|
+
_content_type,
|
|
517
|
+
_headers,
|
|
518
|
+
_host_index,
|
|
519
|
+
) -> RequestSerialized:
|
|
520
|
+
|
|
521
|
+
_host = None
|
|
522
|
+
|
|
523
|
+
_collection_formats: Dict[str, str] = {
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
_path_params: Dict[str, str] = {}
|
|
527
|
+
_query_params: List[Tuple[str, str]] = []
|
|
528
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
529
|
+
_form_params: List[Tuple[str, str]] = []
|
|
530
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
531
|
+
_body_params: Optional[bytes] = None
|
|
532
|
+
|
|
533
|
+
# process the path parameters
|
|
534
|
+
if operation_name is not None:
|
|
535
|
+
_path_params['operation.name'] = operation_name
|
|
536
|
+
# process the query parameters
|
|
537
|
+
# process the header parameters
|
|
538
|
+
# process the form parameters
|
|
539
|
+
# process the body parameter
|
|
540
|
+
if operation is not None:
|
|
541
|
+
_body_params = operation
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
# set the HTTP header `Accept`
|
|
545
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
546
|
+
[
|
|
547
|
+
'application/json'
|
|
548
|
+
]
|
|
549
|
+
)
|
|
550
|
+
|
|
551
|
+
# set the HTTP header `Content-Type`
|
|
552
|
+
if _content_type:
|
|
553
|
+
_header_params['Content-Type'] = _content_type
|
|
554
|
+
else:
|
|
555
|
+
_default_content_type = (
|
|
556
|
+
self.api_client.select_header_content_type(
|
|
557
|
+
[
|
|
558
|
+
'application/json'
|
|
559
|
+
]
|
|
560
|
+
)
|
|
561
|
+
)
|
|
562
|
+
if _default_content_type is not None:
|
|
563
|
+
_header_params['Content-Type'] = _default_content_type
|
|
564
|
+
|
|
565
|
+
# authentication setting
|
|
566
|
+
_auth_settings: List[str] = [
|
|
567
|
+
]
|
|
568
|
+
|
|
569
|
+
return self.api_client.param_serialize(
|
|
570
|
+
method='PATCH',
|
|
571
|
+
resource_path='/v1alpha/{operation.name}:finalize',
|
|
572
|
+
path_params=_path_params,
|
|
573
|
+
query_params=_query_params,
|
|
574
|
+
header_params=_header_params,
|
|
575
|
+
body=_body_params,
|
|
576
|
+
post_params=_form_params,
|
|
577
|
+
files=_files,
|
|
578
|
+
auth_settings=_auth_settings,
|
|
579
|
+
collection_formats=_collection_formats,
|
|
580
|
+
_host=_host,
|
|
581
|
+
_request_auth=_request_auth
|
|
582
|
+
)
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
@validate_call
|
|
588
|
+
def operation_service_get_operation(
|
|
589
|
+
self,
|
|
590
|
+
name_5: Annotated[str, Field(strict=True, description="Required. The name of the Operation to retrieve.")],
|
|
591
|
+
_request_timeout: Union[
|
|
592
|
+
None,
|
|
593
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
594
|
+
Tuple[
|
|
595
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
596
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
597
|
+
]
|
|
598
|
+
] = None,
|
|
599
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
600
|
+
_content_type: Optional[StrictStr] = None,
|
|
601
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
602
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
603
|
+
) -> V1alphaGetOperationResponse:
|
|
604
|
+
"""operation_service_get_operation
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
:param name_5: Required. The name of the Operation to retrieve. (required)
|
|
608
|
+
:type name_5: str
|
|
609
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
610
|
+
number provided, it will be total request
|
|
611
|
+
timeout. It can also be a pair (tuple) of
|
|
612
|
+
(connection, read) timeouts.
|
|
613
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
614
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
615
|
+
request; this effectively ignores the
|
|
616
|
+
authentication in the spec for a single request.
|
|
617
|
+
:type _request_auth: dict, optional
|
|
618
|
+
:param _content_type: force content-type for the request.
|
|
619
|
+
:type _content_type: str, Optional
|
|
620
|
+
:param _headers: set to override the headers for a single
|
|
621
|
+
request; this effectively ignores the headers
|
|
622
|
+
in the spec for a single request.
|
|
623
|
+
:type _headers: dict, optional
|
|
624
|
+
:param _host_index: set to override the host_index for a single
|
|
625
|
+
request; this effectively ignores the host_index
|
|
626
|
+
in the spec for a single request.
|
|
627
|
+
:type _host_index: int, optional
|
|
628
|
+
:return: Returns the result object.
|
|
629
|
+
""" # noqa: E501
|
|
630
|
+
|
|
631
|
+
_param = self._operation_service_get_operation_serialize(
|
|
632
|
+
name_5=name_5,
|
|
633
|
+
_request_auth=_request_auth,
|
|
634
|
+
_content_type=_content_type,
|
|
635
|
+
_headers=_headers,
|
|
636
|
+
_host_index=_host_index
|
|
637
|
+
)
|
|
638
|
+
|
|
639
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
640
|
+
'200': "V1alphaGetOperationResponse",
|
|
641
|
+
}
|
|
642
|
+
response_data = self.api_client.call_api(
|
|
643
|
+
*_param,
|
|
644
|
+
_request_timeout=_request_timeout
|
|
645
|
+
)
|
|
646
|
+
response_data.read()
|
|
647
|
+
return self.api_client.response_deserialize(
|
|
648
|
+
response_data=response_data,
|
|
649
|
+
response_types_map=_response_types_map,
|
|
650
|
+
).data
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
@validate_call
|
|
654
|
+
def operation_service_get_operation_with_http_info(
|
|
655
|
+
self,
|
|
656
|
+
name_5: Annotated[str, Field(strict=True, description="Required. The name of the Operation to retrieve.")],
|
|
657
|
+
_request_timeout: Union[
|
|
658
|
+
None,
|
|
659
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
660
|
+
Tuple[
|
|
661
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
662
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
663
|
+
]
|
|
664
|
+
] = None,
|
|
665
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
666
|
+
_content_type: Optional[StrictStr] = None,
|
|
667
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
668
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
669
|
+
) -> ApiResponse[V1alphaGetOperationResponse]:
|
|
670
|
+
"""operation_service_get_operation
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
:param name_5: Required. The name of the Operation to retrieve. (required)
|
|
674
|
+
:type name_5: str
|
|
675
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
676
|
+
number provided, it will be total request
|
|
677
|
+
timeout. It can also be a pair (tuple) of
|
|
678
|
+
(connection, read) timeouts.
|
|
679
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
680
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
681
|
+
request; this effectively ignores the
|
|
682
|
+
authentication in the spec for a single request.
|
|
683
|
+
:type _request_auth: dict, optional
|
|
684
|
+
:param _content_type: force content-type for the request.
|
|
685
|
+
:type _content_type: str, Optional
|
|
686
|
+
:param _headers: set to override the headers for a single
|
|
687
|
+
request; this effectively ignores the headers
|
|
688
|
+
in the spec for a single request.
|
|
689
|
+
:type _headers: dict, optional
|
|
690
|
+
:param _host_index: set to override the host_index for a single
|
|
691
|
+
request; this effectively ignores the host_index
|
|
692
|
+
in the spec for a single request.
|
|
693
|
+
:type _host_index: int, optional
|
|
694
|
+
:return: Returns the result object.
|
|
695
|
+
""" # noqa: E501
|
|
696
|
+
|
|
697
|
+
_param = self._operation_service_get_operation_serialize(
|
|
698
|
+
name_5=name_5,
|
|
699
|
+
_request_auth=_request_auth,
|
|
700
|
+
_content_type=_content_type,
|
|
701
|
+
_headers=_headers,
|
|
702
|
+
_host_index=_host_index
|
|
703
|
+
)
|
|
704
|
+
|
|
705
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
706
|
+
'200': "V1alphaGetOperationResponse",
|
|
707
|
+
}
|
|
708
|
+
response_data = self.api_client.call_api(
|
|
709
|
+
*_param,
|
|
710
|
+
_request_timeout=_request_timeout
|
|
711
|
+
)
|
|
712
|
+
response_data.read()
|
|
713
|
+
return self.api_client.response_deserialize(
|
|
714
|
+
response_data=response_data,
|
|
715
|
+
response_types_map=_response_types_map,
|
|
716
|
+
)
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
@validate_call
|
|
720
|
+
def operation_service_get_operation_without_preload_content(
|
|
721
|
+
self,
|
|
722
|
+
name_5: Annotated[str, Field(strict=True, description="Required. The name of the Operation to retrieve.")],
|
|
723
|
+
_request_timeout: Union[
|
|
724
|
+
None,
|
|
725
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
726
|
+
Tuple[
|
|
727
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
728
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
729
|
+
]
|
|
730
|
+
] = None,
|
|
731
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
732
|
+
_content_type: Optional[StrictStr] = None,
|
|
733
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
734
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
735
|
+
) -> RESTResponseType:
|
|
736
|
+
"""operation_service_get_operation
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
:param name_5: Required. The name of the Operation to retrieve. (required)
|
|
740
|
+
:type name_5: str
|
|
741
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
742
|
+
number provided, it will be total request
|
|
743
|
+
timeout. It can also be a pair (tuple) of
|
|
744
|
+
(connection, read) timeouts.
|
|
745
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
746
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
747
|
+
request; this effectively ignores the
|
|
748
|
+
authentication in the spec for a single request.
|
|
749
|
+
:type _request_auth: dict, optional
|
|
750
|
+
:param _content_type: force content-type for the request.
|
|
751
|
+
:type _content_type: str, Optional
|
|
752
|
+
:param _headers: set to override the headers for a single
|
|
753
|
+
request; this effectively ignores the headers
|
|
754
|
+
in the spec for a single request.
|
|
755
|
+
:type _headers: dict, optional
|
|
756
|
+
:param _host_index: set to override the host_index for a single
|
|
757
|
+
request; this effectively ignores the host_index
|
|
758
|
+
in the spec for a single request.
|
|
759
|
+
:type _host_index: int, optional
|
|
760
|
+
:return: Returns the result object.
|
|
761
|
+
""" # noqa: E501
|
|
762
|
+
|
|
763
|
+
_param = self._operation_service_get_operation_serialize(
|
|
764
|
+
name_5=name_5,
|
|
765
|
+
_request_auth=_request_auth,
|
|
766
|
+
_content_type=_content_type,
|
|
767
|
+
_headers=_headers,
|
|
768
|
+
_host_index=_host_index
|
|
769
|
+
)
|
|
770
|
+
|
|
771
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
772
|
+
'200': "V1alphaGetOperationResponse",
|
|
773
|
+
}
|
|
774
|
+
response_data = self.api_client.call_api(
|
|
775
|
+
*_param,
|
|
776
|
+
_request_timeout=_request_timeout
|
|
777
|
+
)
|
|
778
|
+
return response_data.response
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
def _operation_service_get_operation_serialize(
|
|
782
|
+
self,
|
|
783
|
+
name_5,
|
|
784
|
+
_request_auth,
|
|
785
|
+
_content_type,
|
|
786
|
+
_headers,
|
|
787
|
+
_host_index,
|
|
788
|
+
) -> RequestSerialized:
|
|
789
|
+
|
|
790
|
+
_host = None
|
|
791
|
+
|
|
792
|
+
_collection_formats: Dict[str, str] = {
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
_path_params: Dict[str, str] = {}
|
|
796
|
+
_query_params: List[Tuple[str, str]] = []
|
|
797
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
798
|
+
_form_params: List[Tuple[str, str]] = []
|
|
799
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
800
|
+
_body_params: Optional[bytes] = None
|
|
801
|
+
|
|
802
|
+
# process the path parameters
|
|
803
|
+
if name_5 is not None:
|
|
804
|
+
_path_params['name_5'] = name_5
|
|
805
|
+
# process the query parameters
|
|
806
|
+
# process the header parameters
|
|
807
|
+
# process the form parameters
|
|
808
|
+
# process the body parameter
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
# set the HTTP header `Accept`
|
|
812
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
813
|
+
[
|
|
814
|
+
'application/json'
|
|
815
|
+
]
|
|
816
|
+
)
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
# authentication setting
|
|
820
|
+
_auth_settings: List[str] = [
|
|
821
|
+
]
|
|
822
|
+
|
|
823
|
+
return self.api_client.param_serialize(
|
|
824
|
+
method='GET',
|
|
825
|
+
resource_path='/v1alpha/{name_5}',
|
|
826
|
+
path_params=_path_params,
|
|
827
|
+
query_params=_query_params,
|
|
828
|
+
header_params=_header_params,
|
|
829
|
+
body=_body_params,
|
|
830
|
+
post_params=_form_params,
|
|
831
|
+
files=_files,
|
|
832
|
+
auth_settings=_auth_settings,
|
|
833
|
+
collection_formats=_collection_formats,
|
|
834
|
+
_host=_host,
|
|
835
|
+
_request_auth=_request_auth
|
|
836
|
+
)
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
@validate_call
|
|
842
|
+
def operation_service_list_operations(
|
|
843
|
+
self,
|
|
844
|
+
_request_timeout: Union[
|
|
845
|
+
None,
|
|
846
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
847
|
+
Tuple[
|
|
848
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
849
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
850
|
+
]
|
|
851
|
+
] = None,
|
|
852
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
853
|
+
_content_type: Optional[StrictStr] = None,
|
|
854
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
855
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
856
|
+
) -> V1alphaListOperationsResponse:
|
|
857
|
+
"""operation_service_list_operations
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
861
|
+
number provided, it will be total request
|
|
862
|
+
timeout. It can also be a pair (tuple) of
|
|
863
|
+
(connection, read) timeouts.
|
|
864
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
865
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
866
|
+
request; this effectively ignores the
|
|
867
|
+
authentication in the spec for a single request.
|
|
868
|
+
:type _request_auth: dict, optional
|
|
869
|
+
:param _content_type: force content-type for the request.
|
|
870
|
+
:type _content_type: str, Optional
|
|
871
|
+
:param _headers: set to override the headers for a single
|
|
872
|
+
request; this effectively ignores the headers
|
|
873
|
+
in the spec for a single request.
|
|
874
|
+
:type _headers: dict, optional
|
|
875
|
+
:param _host_index: set to override the host_index for a single
|
|
876
|
+
request; this effectively ignores the host_index
|
|
877
|
+
in the spec for a single request.
|
|
878
|
+
:type _host_index: int, optional
|
|
879
|
+
:return: Returns the result object.
|
|
880
|
+
""" # noqa: E501
|
|
881
|
+
|
|
882
|
+
_param = self._operation_service_list_operations_serialize(
|
|
883
|
+
_request_auth=_request_auth,
|
|
884
|
+
_content_type=_content_type,
|
|
885
|
+
_headers=_headers,
|
|
886
|
+
_host_index=_host_index
|
|
887
|
+
)
|
|
888
|
+
|
|
889
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
890
|
+
'200': "V1alphaListOperationsResponse",
|
|
891
|
+
}
|
|
892
|
+
response_data = self.api_client.call_api(
|
|
893
|
+
*_param,
|
|
894
|
+
_request_timeout=_request_timeout
|
|
895
|
+
)
|
|
896
|
+
response_data.read()
|
|
897
|
+
return self.api_client.response_deserialize(
|
|
898
|
+
response_data=response_data,
|
|
899
|
+
response_types_map=_response_types_map,
|
|
900
|
+
).data
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
@validate_call
|
|
904
|
+
def operation_service_list_operations_with_http_info(
|
|
905
|
+
self,
|
|
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[V1alphaListOperationsResponse]:
|
|
919
|
+
"""operation_service_list_operations
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
923
|
+
number provided, it will be total request
|
|
924
|
+
timeout. It can also be a pair (tuple) of
|
|
925
|
+
(connection, read) timeouts.
|
|
926
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
927
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
928
|
+
request; this effectively ignores the
|
|
929
|
+
authentication in the spec for a single request.
|
|
930
|
+
:type _request_auth: dict, optional
|
|
931
|
+
:param _content_type: force content-type for the request.
|
|
932
|
+
:type _content_type: str, Optional
|
|
933
|
+
:param _headers: set to override the headers for a single
|
|
934
|
+
request; this effectively ignores the headers
|
|
935
|
+
in the spec for a single request.
|
|
936
|
+
:type _headers: dict, optional
|
|
937
|
+
:param _host_index: set to override the host_index for a single
|
|
938
|
+
request; this effectively ignores the host_index
|
|
939
|
+
in the spec for a single request.
|
|
940
|
+
:type _host_index: int, optional
|
|
941
|
+
:return: Returns the result object.
|
|
942
|
+
""" # noqa: E501
|
|
943
|
+
|
|
944
|
+
_param = self._operation_service_list_operations_serialize(
|
|
945
|
+
_request_auth=_request_auth,
|
|
946
|
+
_content_type=_content_type,
|
|
947
|
+
_headers=_headers,
|
|
948
|
+
_host_index=_host_index
|
|
949
|
+
)
|
|
950
|
+
|
|
951
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
952
|
+
'200': "V1alphaListOperationsResponse",
|
|
953
|
+
}
|
|
954
|
+
response_data = self.api_client.call_api(
|
|
955
|
+
*_param,
|
|
956
|
+
_request_timeout=_request_timeout
|
|
957
|
+
)
|
|
958
|
+
response_data.read()
|
|
959
|
+
return self.api_client.response_deserialize(
|
|
960
|
+
response_data=response_data,
|
|
961
|
+
response_types_map=_response_types_map,
|
|
962
|
+
)
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
@validate_call
|
|
966
|
+
def operation_service_list_operations_without_preload_content(
|
|
967
|
+
self,
|
|
968
|
+
_request_timeout: Union[
|
|
969
|
+
None,
|
|
970
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
971
|
+
Tuple[
|
|
972
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
973
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
974
|
+
]
|
|
975
|
+
] = None,
|
|
976
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
977
|
+
_content_type: Optional[StrictStr] = None,
|
|
978
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
979
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
980
|
+
) -> RESTResponseType:
|
|
981
|
+
"""operation_service_list_operations
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
985
|
+
number provided, it will be total request
|
|
986
|
+
timeout. It can also be a pair (tuple) of
|
|
987
|
+
(connection, read) timeouts.
|
|
988
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
989
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
990
|
+
request; this effectively ignores the
|
|
991
|
+
authentication in the spec for a single request.
|
|
992
|
+
:type _request_auth: dict, optional
|
|
993
|
+
:param _content_type: force content-type for the request.
|
|
994
|
+
:type _content_type: str, Optional
|
|
995
|
+
:param _headers: set to override the headers for a single
|
|
996
|
+
request; this effectively ignores the headers
|
|
997
|
+
in the spec for a single request.
|
|
998
|
+
:type _headers: dict, optional
|
|
999
|
+
:param _host_index: set to override the host_index for a single
|
|
1000
|
+
request; this effectively ignores the host_index
|
|
1001
|
+
in the spec for a single request.
|
|
1002
|
+
:type _host_index: int, optional
|
|
1003
|
+
:return: Returns the result object.
|
|
1004
|
+
""" # noqa: E501
|
|
1005
|
+
|
|
1006
|
+
_param = self._operation_service_list_operations_serialize(
|
|
1007
|
+
_request_auth=_request_auth,
|
|
1008
|
+
_content_type=_content_type,
|
|
1009
|
+
_headers=_headers,
|
|
1010
|
+
_host_index=_host_index
|
|
1011
|
+
)
|
|
1012
|
+
|
|
1013
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1014
|
+
'200': "V1alphaListOperationsResponse",
|
|
1015
|
+
}
|
|
1016
|
+
response_data = self.api_client.call_api(
|
|
1017
|
+
*_param,
|
|
1018
|
+
_request_timeout=_request_timeout
|
|
1019
|
+
)
|
|
1020
|
+
return response_data.response
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
def _operation_service_list_operations_serialize(
|
|
1024
|
+
self,
|
|
1025
|
+
_request_auth,
|
|
1026
|
+
_content_type,
|
|
1027
|
+
_headers,
|
|
1028
|
+
_host_index,
|
|
1029
|
+
) -> RequestSerialized:
|
|
1030
|
+
|
|
1031
|
+
_host = None
|
|
1032
|
+
|
|
1033
|
+
_collection_formats: Dict[str, str] = {
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
_path_params: Dict[str, str] = {}
|
|
1037
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1038
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1039
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1040
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
1041
|
+
_body_params: Optional[bytes] = None
|
|
1042
|
+
|
|
1043
|
+
# process the path parameters
|
|
1044
|
+
# process the query parameters
|
|
1045
|
+
# process the header parameters
|
|
1046
|
+
# process the form parameters
|
|
1047
|
+
# process the body parameter
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
# set the HTTP header `Accept`
|
|
1051
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1052
|
+
[
|
|
1053
|
+
'application/json'
|
|
1054
|
+
]
|
|
1055
|
+
)
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
# authentication setting
|
|
1059
|
+
_auth_settings: List[str] = [
|
|
1060
|
+
]
|
|
1061
|
+
|
|
1062
|
+
return self.api_client.param_serialize(
|
|
1063
|
+
method='GET',
|
|
1064
|
+
resource_path='/v1alpha/operations',
|
|
1065
|
+
path_params=_path_params,
|
|
1066
|
+
query_params=_query_params,
|
|
1067
|
+
header_params=_header_params,
|
|
1068
|
+
body=_body_params,
|
|
1069
|
+
post_params=_form_params,
|
|
1070
|
+
files=_files,
|
|
1071
|
+
auth_settings=_auth_settings,
|
|
1072
|
+
collection_formats=_collection_formats,
|
|
1073
|
+
_host=_host,
|
|
1074
|
+
_request_auth=_request_auth
|
|
1075
|
+
)
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
@validate_call
|
|
1081
|
+
def operation_service_update_operation(
|
|
1082
|
+
self,
|
|
1083
|
+
operation_name: Annotated[str, Field(strict=True, description="Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\"")],
|
|
1084
|
+
operation: Annotated[RequiredTheOperationToUpdate, Field(description="Required. The Operation to update. The Operation's `name` field is used to identify the Operation to update. Format: operations/{operation}")],
|
|
1085
|
+
_request_timeout: Union[
|
|
1086
|
+
None,
|
|
1087
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1088
|
+
Tuple[
|
|
1089
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1090
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1091
|
+
]
|
|
1092
|
+
] = None,
|
|
1093
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1094
|
+
_content_type: Optional[StrictStr] = None,
|
|
1095
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1096
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1097
|
+
) -> V1alphaUpdateOperationResponse:
|
|
1098
|
+
"""operation_service_update_operation
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
:param operation_name: Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\" (required)
|
|
1102
|
+
:type operation_name: str
|
|
1103
|
+
:param operation: Required. The Operation to update. The Operation's `name` field is used to identify the Operation to update. Format: operations/{operation} (required)
|
|
1104
|
+
:type operation: RequiredTheOperationToUpdate
|
|
1105
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1106
|
+
number provided, it will be total request
|
|
1107
|
+
timeout. It can also be a pair (tuple) of
|
|
1108
|
+
(connection, read) timeouts.
|
|
1109
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1110
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1111
|
+
request; this effectively ignores the
|
|
1112
|
+
authentication in the spec for a single request.
|
|
1113
|
+
:type _request_auth: dict, optional
|
|
1114
|
+
:param _content_type: force content-type for the request.
|
|
1115
|
+
:type _content_type: str, Optional
|
|
1116
|
+
:param _headers: set to override the headers for a single
|
|
1117
|
+
request; this effectively ignores the headers
|
|
1118
|
+
in the spec for a single request.
|
|
1119
|
+
:type _headers: dict, optional
|
|
1120
|
+
:param _host_index: set to override the host_index for a single
|
|
1121
|
+
request; this effectively ignores the host_index
|
|
1122
|
+
in the spec for a single request.
|
|
1123
|
+
:type _host_index: int, optional
|
|
1124
|
+
:return: Returns the result object.
|
|
1125
|
+
""" # noqa: E501
|
|
1126
|
+
|
|
1127
|
+
_param = self._operation_service_update_operation_serialize(
|
|
1128
|
+
operation_name=operation_name,
|
|
1129
|
+
operation=operation,
|
|
1130
|
+
_request_auth=_request_auth,
|
|
1131
|
+
_content_type=_content_type,
|
|
1132
|
+
_headers=_headers,
|
|
1133
|
+
_host_index=_host_index
|
|
1134
|
+
)
|
|
1135
|
+
|
|
1136
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1137
|
+
'200': "V1alphaUpdateOperationResponse",
|
|
1138
|
+
}
|
|
1139
|
+
response_data = self.api_client.call_api(
|
|
1140
|
+
*_param,
|
|
1141
|
+
_request_timeout=_request_timeout
|
|
1142
|
+
)
|
|
1143
|
+
response_data.read()
|
|
1144
|
+
return self.api_client.response_deserialize(
|
|
1145
|
+
response_data=response_data,
|
|
1146
|
+
response_types_map=_response_types_map,
|
|
1147
|
+
).data
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
@validate_call
|
|
1151
|
+
def operation_service_update_operation_with_http_info(
|
|
1152
|
+
self,
|
|
1153
|
+
operation_name: Annotated[str, Field(strict=True, description="Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\"")],
|
|
1154
|
+
operation: Annotated[RequiredTheOperationToUpdate, Field(description="Required. The Operation to update. The Operation's `name` field is used to identify the Operation to update. Format: operations/{operation}")],
|
|
1155
|
+
_request_timeout: Union[
|
|
1156
|
+
None,
|
|
1157
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1158
|
+
Tuple[
|
|
1159
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1160
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1161
|
+
]
|
|
1162
|
+
] = None,
|
|
1163
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1164
|
+
_content_type: Optional[StrictStr] = None,
|
|
1165
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1166
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1167
|
+
) -> ApiResponse[V1alphaUpdateOperationResponse]:
|
|
1168
|
+
"""operation_service_update_operation
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
:param operation_name: Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\" (required)
|
|
1172
|
+
:type operation_name: str
|
|
1173
|
+
:param operation: Required. The Operation to update. The Operation's `name` field is used to identify the Operation to update. Format: operations/{operation} (required)
|
|
1174
|
+
:type operation: RequiredTheOperationToUpdate
|
|
1175
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1176
|
+
number provided, it will be total request
|
|
1177
|
+
timeout. It can also be a pair (tuple) of
|
|
1178
|
+
(connection, read) timeouts.
|
|
1179
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1180
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1181
|
+
request; this effectively ignores the
|
|
1182
|
+
authentication in the spec for a single request.
|
|
1183
|
+
:type _request_auth: dict, optional
|
|
1184
|
+
:param _content_type: force content-type for the request.
|
|
1185
|
+
:type _content_type: str, Optional
|
|
1186
|
+
:param _headers: set to override the headers for a single
|
|
1187
|
+
request; this effectively ignores the headers
|
|
1188
|
+
in the spec for a single request.
|
|
1189
|
+
:type _headers: dict, optional
|
|
1190
|
+
:param _host_index: set to override the host_index for a single
|
|
1191
|
+
request; this effectively ignores the host_index
|
|
1192
|
+
in the spec for a single request.
|
|
1193
|
+
:type _host_index: int, optional
|
|
1194
|
+
:return: Returns the result object.
|
|
1195
|
+
""" # noqa: E501
|
|
1196
|
+
|
|
1197
|
+
_param = self._operation_service_update_operation_serialize(
|
|
1198
|
+
operation_name=operation_name,
|
|
1199
|
+
operation=operation,
|
|
1200
|
+
_request_auth=_request_auth,
|
|
1201
|
+
_content_type=_content_type,
|
|
1202
|
+
_headers=_headers,
|
|
1203
|
+
_host_index=_host_index
|
|
1204
|
+
)
|
|
1205
|
+
|
|
1206
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1207
|
+
'200': "V1alphaUpdateOperationResponse",
|
|
1208
|
+
}
|
|
1209
|
+
response_data = self.api_client.call_api(
|
|
1210
|
+
*_param,
|
|
1211
|
+
_request_timeout=_request_timeout
|
|
1212
|
+
)
|
|
1213
|
+
response_data.read()
|
|
1214
|
+
return self.api_client.response_deserialize(
|
|
1215
|
+
response_data=response_data,
|
|
1216
|
+
response_types_map=_response_types_map,
|
|
1217
|
+
)
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
@validate_call
|
|
1221
|
+
def operation_service_update_operation_without_preload_content(
|
|
1222
|
+
self,
|
|
1223
|
+
operation_name: Annotated[str, Field(strict=True, description="Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\"")],
|
|
1224
|
+
operation: Annotated[RequiredTheOperationToUpdate, Field(description="Required. The Operation to update. The Operation's `name` field is used to identify the Operation to update. Format: operations/{operation}")],
|
|
1225
|
+
_request_timeout: Union[
|
|
1226
|
+
None,
|
|
1227
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1228
|
+
Tuple[
|
|
1229
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1230
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1231
|
+
]
|
|
1232
|
+
] = None,
|
|
1233
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1234
|
+
_content_type: Optional[StrictStr] = None,
|
|
1235
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1236
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1237
|
+
) -> RESTResponseType:
|
|
1238
|
+
"""operation_service_update_operation
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
:param operation_name: Output only. Name of the Operation resource. e.g.: \"operations/<UUID>\" (required)
|
|
1242
|
+
:type operation_name: str
|
|
1243
|
+
:param operation: Required. The Operation to update. The Operation's `name` field is used to identify the Operation to update. Format: operations/{operation} (required)
|
|
1244
|
+
:type operation: RequiredTheOperationToUpdate
|
|
1245
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1246
|
+
number provided, it will be total request
|
|
1247
|
+
timeout. It can also be a pair (tuple) of
|
|
1248
|
+
(connection, read) timeouts.
|
|
1249
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1250
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1251
|
+
request; this effectively ignores the
|
|
1252
|
+
authentication in the spec for a single request.
|
|
1253
|
+
:type _request_auth: dict, optional
|
|
1254
|
+
:param _content_type: force content-type for the request.
|
|
1255
|
+
:type _content_type: str, Optional
|
|
1256
|
+
:param _headers: set to override the headers for a single
|
|
1257
|
+
request; this effectively ignores the headers
|
|
1258
|
+
in the spec for a single request.
|
|
1259
|
+
:type _headers: dict, optional
|
|
1260
|
+
:param _host_index: set to override the host_index for a single
|
|
1261
|
+
request; this effectively ignores the host_index
|
|
1262
|
+
in the spec for a single request.
|
|
1263
|
+
:type _host_index: int, optional
|
|
1264
|
+
:return: Returns the result object.
|
|
1265
|
+
""" # noqa: E501
|
|
1266
|
+
|
|
1267
|
+
_param = self._operation_service_update_operation_serialize(
|
|
1268
|
+
operation_name=operation_name,
|
|
1269
|
+
operation=operation,
|
|
1270
|
+
_request_auth=_request_auth,
|
|
1271
|
+
_content_type=_content_type,
|
|
1272
|
+
_headers=_headers,
|
|
1273
|
+
_host_index=_host_index
|
|
1274
|
+
)
|
|
1275
|
+
|
|
1276
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1277
|
+
'200': "V1alphaUpdateOperationResponse",
|
|
1278
|
+
}
|
|
1279
|
+
response_data = self.api_client.call_api(
|
|
1280
|
+
*_param,
|
|
1281
|
+
_request_timeout=_request_timeout
|
|
1282
|
+
)
|
|
1283
|
+
return response_data.response
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
def _operation_service_update_operation_serialize(
|
|
1287
|
+
self,
|
|
1288
|
+
operation_name,
|
|
1289
|
+
operation,
|
|
1290
|
+
_request_auth,
|
|
1291
|
+
_content_type,
|
|
1292
|
+
_headers,
|
|
1293
|
+
_host_index,
|
|
1294
|
+
) -> RequestSerialized:
|
|
1295
|
+
|
|
1296
|
+
_host = None
|
|
1297
|
+
|
|
1298
|
+
_collection_formats: Dict[str, str] = {
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
_path_params: Dict[str, str] = {}
|
|
1302
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1303
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1304
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1305
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
1306
|
+
_body_params: Optional[bytes] = None
|
|
1307
|
+
|
|
1308
|
+
# process the path parameters
|
|
1309
|
+
if operation_name is not None:
|
|
1310
|
+
_path_params['operation.name'] = operation_name
|
|
1311
|
+
# process the query parameters
|
|
1312
|
+
# process the header parameters
|
|
1313
|
+
# process the form parameters
|
|
1314
|
+
# process the body parameter
|
|
1315
|
+
if operation is not None:
|
|
1316
|
+
_body_params = operation
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
# set the HTTP header `Accept`
|
|
1320
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1321
|
+
[
|
|
1322
|
+
'application/json'
|
|
1323
|
+
]
|
|
1324
|
+
)
|
|
1325
|
+
|
|
1326
|
+
# set the HTTP header `Content-Type`
|
|
1327
|
+
if _content_type:
|
|
1328
|
+
_header_params['Content-Type'] = _content_type
|
|
1329
|
+
else:
|
|
1330
|
+
_default_content_type = (
|
|
1331
|
+
self.api_client.select_header_content_type(
|
|
1332
|
+
[
|
|
1333
|
+
'application/json'
|
|
1334
|
+
]
|
|
1335
|
+
)
|
|
1336
|
+
)
|
|
1337
|
+
if _default_content_type is not None:
|
|
1338
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1339
|
+
|
|
1340
|
+
# authentication setting
|
|
1341
|
+
_auth_settings: List[str] = [
|
|
1342
|
+
]
|
|
1343
|
+
|
|
1344
|
+
return self.api_client.param_serialize(
|
|
1345
|
+
method='PATCH',
|
|
1346
|
+
resource_path='/v1alpha/{operation.name}',
|
|
1347
|
+
path_params=_path_params,
|
|
1348
|
+
query_params=_query_params,
|
|
1349
|
+
header_params=_header_params,
|
|
1350
|
+
body=_body_params,
|
|
1351
|
+
post_params=_form_params,
|
|
1352
|
+
files=_files,
|
|
1353
|
+
auth_settings=_auth_settings,
|
|
1354
|
+
collection_formats=_collection_formats,
|
|
1355
|
+
_host=_host,
|
|
1356
|
+
_request_auth=_request_auth
|
|
1357
|
+
)
|
|
1358
|
+
|
|
1359
|
+
|