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