From 6760301902a6082a261af99cc3559a381fe38c02 Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 11:55:01 +0800 Subject: [PATCH 01/10] Generate python client package into repo using kfp_api_single_file.swagger.json --- backend/api/build_kfp_server_api_python_package.sh | 12 ++---------- backend/api/swagger/kfp_api_single_file.swagger.json | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/backend/api/build_kfp_server_api_python_package.sh b/backend/api/build_kfp_server_api_python_package.sh index 44f73c704f1..300dc49df6f 100755 --- a/backend/api/build_kfp_server_api_python_package.sh +++ b/backend/api/build_kfp_server_api_python_package.sh @@ -43,16 +43,8 @@ fi pushd "$(dirname "$0")" -DIR=$(mktemp -d) - -swagger_file=$(mktemp) - -echo "Merging all Swagger API definitions to $swagger_file." -jq -s ' - reduce .[] as $item ({}; . * $item) | - .info.title = "KF Pipelines API" | - .info.description = "Generated python client for the KF Pipelines server API" -' ./swagger/{run,job,pipeline,experiment,pipeline.upload}.swagger.json > "$swagger_file" +DIR="$(pwd)/python_http_client/kfp_server_api" +swagger_file="$(pwd)/swagger/kfp_api_single_file.swagger.json" echo "Generating python code from swagger json in $DIR." java -jar "$codegen_file" generate -l python -i "$swagger_file" -o "$DIR" -c <(echo '{ diff --git a/backend/api/swagger/kfp_api_single_file.swagger.json b/backend/api/swagger/kfp_api_single_file.swagger.json index 86f1df96fbf..b8cfcbcbdf1 100644 --- a/backend/api/swagger/kfp_api_single_file.swagger.json +++ b/backend/api/swagger/kfp_api_single_file.swagger.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Kubeflow Pipelines API", - "version": "0.1.38", + "version": "1.0.0-dev.1", "description": "This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition." }, "schemes": [ From c008e57422eac8c0b2f035311988ae055ae22ea1 Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 11:57:33 +0800 Subject: [PATCH 02/10] Commit python client generated by swagger --- .../kfp_server_api/.gitignore | 64 + .../kfp_server_api/.swagger-codegen-ignore | 23 + .../kfp_server_api/.swagger-codegen/VERSION | 1 + .../kfp_server_api/.travis.yml | 14 + .../kfp_server_api/README.md | 167 +++ .../kfp_server_api/docs/ApiCronSchedule.md | 12 + .../kfp_server_api/docs/ApiExperiment.md | 15 + .../docs/ApiGetTemplateResponse.md | 10 + .../kfp_server_api/docs/ApiJob.md | 24 + .../docs/ApiListExperimentsResponse.md | 12 + .../docs/ApiListJobsResponse.md | 12 + .../docs/ApiListPipelineVersionsResponse.md | 12 + .../docs/ApiListPipelinesResponse.md | 12 + .../docs/ApiListRunsResponse.md | 12 + .../kfp_server_api/docs/ApiParameter.md | 11 + .../docs/ApiPeriodicSchedule.md | 12 + .../kfp_server_api/docs/ApiPipeline.md | 17 + .../kfp_server_api/docs/ApiPipelineRuntime.md | 11 + .../kfp_server_api/docs/ApiPipelineSpec.md | 14 + .../kfp_server_api/docs/ApiPipelineVersion.md | 16 + .../docs/ApiReadArtifactResponse.md | 10 + .../kfp_server_api/docs/ApiRelationship.md | 9 + .../docs/ApiReportRunMetricsRequest.md | 11 + .../docs/ApiReportRunMetricsResponse.md | 10 + .../kfp_server_api/docs/ApiResourceKey.md | 11 + .../docs/ApiResourceReference.md | 12 + .../kfp_server_api/docs/ApiResourceType.md | 9 + .../kfp_server_api/docs/ApiRun.md | 22 + .../kfp_server_api/docs/ApiRunDetail.md | 11 + .../kfp_server_api/docs/ApiRunMetric.md | 13 + .../kfp_server_api/docs/ApiStatus.md | 12 + .../kfp_server_api/docs/ApiTrigger.md | 11 + .../kfp_server_api/docs/ApiUrl.md | 10 + .../docs/ExperimentServiceApi.md | 336 ++++++ .../docs/ExperimentStorageState.md | 9 + .../kfp_server_api/docs/JobMode.md | 9 + .../kfp_server_api/docs/JobServiceApi.md | 336 ++++++ .../kfp_server_api/docs/PipelineServiceApi.md | 549 +++++++++ .../docs/PipelineUploadServiceApi.md | 120 ++ .../kfp_server_api/docs/ProtobufAny.md | 11 + ...RunMetricsResponseReportRunMetricResult.md | 13 + ...ricsResponseReportRunMetricResultStatus.md | 9 + .../kfp_server_api/docs/RunMetricFormat.md | 9 + .../kfp_server_api/docs/RunServiceApi.md | 554 +++++++++ .../kfp_server_api/docs/RunStorageState.md | 9 + .../kfp_server_api/git_push.sh | 52 + .../kfp_server_api/kfp_server_api/__init__.py | 63 + .../kfp_server_api/api/__init__.py | 10 + .../api/experiment_service_api.py | 632 ++++++++++ .../kfp_server_api/api/job_service_api.py | 632 ++++++++++ .../api/pipeline_service_api.py | 1028 ++++++++++++++++ .../api/pipeline_upload_service_api.py | 244 ++++ .../kfp_server_api/api/run_service_api.py | 1044 +++++++++++++++++ .../kfp_server_api/api_client.py | 638 ++++++++++ .../kfp_server_api/configuration.py | 244 ++++ .../kfp_server_api/models/__init__.py | 52 + .../models/api_cron_schedule.py | 167 +++ .../kfp_server_api/models/api_experiment.py | 256 ++++ .../models/api_get_template_response.py | 115 ++ .../kfp_server_api/models/api_job.py | 506 ++++++++ .../models/api_list_experiments_response.py | 175 +++ .../models/api_list_jobs_response.py | 171 +++ .../api_list_pipeline_versions_response.py | 169 +++ .../models/api_list_pipelines_response.py | 169 +++ .../models/api_list_runs_response.py | 169 +++ .../kfp_server_api/models/api_parameter.py | 141 +++ .../models/api_periodic_schedule.py | 167 +++ .../kfp_server_api/models/api_pipeline.py | 315 +++++ .../models/api_pipeline_runtime.py | 145 +++ .../models/api_pipeline_spec.py | 231 ++++ .../models/api_pipeline_version.py | 289 +++++ .../models/api_read_artifact_response.py | 119 ++ .../kfp_server_api/models/api_relationship.py | 94 ++ .../models/api_report_run_metrics_request.py | 147 +++ .../models/api_report_run_metrics_response.py | 117 ++ .../kfp_server_api/models/api_resource_key.py | 147 +++ .../models/api_resource_reference.py | 174 +++ .../models/api_resource_type.py | 97 ++ .../kfp_server_api/models/api_run.py | 452 +++++++ .../kfp_server_api/models/api_run_detail.py | 144 +++ .../kfp_server_api/models/api_run_metric.py | 203 ++++ .../kfp_server_api/models/api_status.py | 169 +++ .../kfp_server_api/models/api_trigger.py | 144 +++ .../kfp_server_api/models/api_url.py | 115 ++ .../models/experiment_storage_state.py | 94 ++ .../kfp_server_api/models/job_mode.py | 94 ++ .../kfp_server_api/models/protobuf_any.py | 147 +++ ...trics_response_report_run_metric_result.py | 203 ++++ ...esponse_report_run_metric_result_status.py | 96 ++ .../models/run_metric_format.py | 94 ++ .../models/run_storage_state.py | 93 ++ .../kfp_server_api/kfp_server_api/rest.py | 323 +++++ .../kfp_server_api/requirements.txt | 5 + .../kfp_server_api/setup.py | 46 + .../kfp_server_api/test-requirements.txt | 5 + .../kfp_server_api/test/__init__.py | 0 .../test/test_api_cron_schedule.py | 40 + .../test/test_api_experiment.py | 40 + .../test/test_api_get_template_response.py | 40 + .../kfp_server_api/test/test_api_job.py | 40 + .../test_api_list_experiments_response.py | 40 + .../test/test_api_list_jobs_response.py | 40 + ...est_api_list_pipeline_versions_response.py | 40 + .../test/test_api_list_pipelines_response.py | 40 + .../test/test_api_list_runs_response.py | 40 + .../kfp_server_api/test/test_api_parameter.py | 40 + .../test/test_api_periodic_schedule.py | 40 + .../kfp_server_api/test/test_api_pipeline.py | 40 + .../test/test_api_pipeline_runtime.py | 40 + .../test/test_api_pipeline_spec.py | 40 + .../test/test_api_pipeline_version.py | 40 + .../test/test_api_read_artifact_response.py | 40 + .../test/test_api_relationship.py | 40 + .../test_api_report_run_metrics_request.py | 40 + .../test_api_report_run_metrics_response.py | 40 + .../test/test_api_resource_key.py | 40 + .../test/test_api_resource_reference.py | 40 + .../test/test_api_resource_type.py | 40 + .../kfp_server_api/test/test_api_run.py | 40 + .../test/test_api_run_detail.py | 40 + .../test/test_api_run_metric.py | 40 + .../kfp_server_api/test/test_api_status.py | 40 + .../kfp_server_api/test/test_api_trigger.py | 40 + .../kfp_server_api/test/test_api_url.py | 40 + .../test/test_experiment_service_api.py | 76 ++ .../test/test_experiment_storage_state.py | 40 + .../kfp_server_api/test/test_job_mode.py | 40 + .../test/test_job_service_api.py | 76 ++ .../test/test_pipeline_service_api.py | 99 ++ .../test/test_pipeline_upload_service_api.py | 46 + .../kfp_server_api/test/test_protobuf_any.py | 40 + ...trics_response_report_run_metric_result.py | 40 + ...esponse_report_run_metric_result_status.py | 40 + .../test/test_run_metric_format.py | 40 + .../test/test_run_service_api.py | 104 ++ .../test/test_run_storage_state.py | 40 + .../python_http_client/kfp_server_api/tox.ini | 10 + 137 files changed, 15543 insertions(+) create mode 100644 backend/api/python_http_client/kfp_server_api/.gitignore create mode 100644 backend/api/python_http_client/kfp_server_api/.swagger-codegen-ignore create mode 100644 backend/api/python_http_client/kfp_server_api/.swagger-codegen/VERSION create mode 100644 backend/api/python_http_client/kfp_server_api/.travis.yml create mode 100644 backend/api/python_http_client/kfp_server_api/README.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiCronSchedule.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiExperiment.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiGetTemplateResponse.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiJob.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiListExperimentsResponse.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiListJobsResponse.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiListPipelineVersionsResponse.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiListPipelinesResponse.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiListRunsResponse.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiParameter.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiPeriodicSchedule.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiPipelineRuntime.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiPipelineSpec.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiReadArtifactResponse.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiRelationship.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsRequest.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsResponse.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiResourceType.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiRun.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiRunDetail.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiStatus.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ApiUrl.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ExperimentStorageState.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/JobMode.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md create mode 100644 backend/api/python_http_client/kfp_server_api/docs/RunStorageState.md create mode 100644 backend/api/python_http_client/kfp_server_api/git_push.sh create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/api/__init__.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py create mode 100644 backend/api/python_http_client/kfp_server_api/requirements.txt create mode 100644 backend/api/python_http_client/kfp_server_api/setup.py create mode 100644 backend/api/python_http_client/kfp_server_api/test-requirements.txt create mode 100644 backend/api/python_http_client/kfp_server_api/test/__init__.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_job.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_run.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_status.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_api_url.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_job_mode.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py create mode 100644 backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py create mode 100644 backend/api/python_http_client/kfp_server_api/tox.ini diff --git a/backend/api/python_http_client/kfp_server_api/.gitignore b/backend/api/python_http_client/kfp_server_api/.gitignore new file mode 100644 index 00000000000..a655050c263 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/.gitignore @@ -0,0 +1,64 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.python-version + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/backend/api/python_http_client/kfp_server_api/.swagger-codegen-ignore b/backend/api/python_http_client/kfp_server_api/.swagger-codegen-ignore new file mode 100644 index 00000000000..c5fa491b4c5 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/backend/api/python_http_client/kfp_server_api/.swagger-codegen/VERSION b/backend/api/python_http_client/kfp_server_api/.swagger-codegen/VERSION new file mode 100644 index 00000000000..48a6b508dc9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.4.7 \ No newline at end of file diff --git a/backend/api/python_http_client/kfp_server_api/.travis.yml b/backend/api/python_http_client/kfp_server_api/.travis.yml new file mode 100644 index 00000000000..86211e2d4a2 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/.travis.yml @@ -0,0 +1,14 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + #- "3.5-dev" # 3.5 development branch + #- "nightly" # points to the latest development branch e.g. 3.6-dev +# command to install dependencies +install: "pip install -r requirements.txt" +# command to run tests +script: nosetests diff --git a/backend/api/python_http_client/kfp_server_api/README.md b/backend/api/python_http_client/kfp_server_api/README.md new file mode 100644 index 00000000000..08d8656f813 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/README.md @@ -0,0 +1,167 @@ +# kfp-server-api +This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. + +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: + +- API version: 1.0.0-dev.1 +- Package version: 1.0.0-dev.1 +- Build package: io.swagger.codegen.languages.PythonClientCodegen + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation & Usage +### pip install + +If the python package is hosted on Github, you can install directly from Github + +```sh +pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) + +Then import the package: +```python +import kfp_server_api +``` + +### Setuptools + +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import kfp_server_api +``` + +## Getting Started + +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Archive an experiment. + api_response = api_instance.archive_experiment(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExperimentServiceApi->archive_experiment: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ExperimentServiceApi* | [**archive_experiment**](docs/ExperimentServiceApi.md#archive_experiment) | **POST** /apis/v1beta1/experiments/{id}:archive | Archive an experiment. +*ExperimentServiceApi* | [**create_experiment**](docs/ExperimentServiceApi.md#create_experiment) | **POST** /apis/v1beta1/experiments | Create a new experiment. +*ExperimentServiceApi* | [**delete_experiment**](docs/ExperimentServiceApi.md#delete_experiment) | **DELETE** /apis/v1beta1/experiments/{id} | Delete an experiment. +*ExperimentServiceApi* | [**get_experiment**](docs/ExperimentServiceApi.md#get_experiment) | **GET** /apis/v1beta1/experiments/{id} | Find a specific experiment by ID. +*ExperimentServiceApi* | [**list_experiment**](docs/ExperimentServiceApi.md#list_experiment) | **GET** /apis/v1beta1/experiments | Find all experiments. +*ExperimentServiceApi* | [**unarchive_experiment**](docs/ExperimentServiceApi.md#unarchive_experiment) | **POST** /apis/v1beta1/experiments/{id}:unarchive | Restore an archived experiment. +*JobServiceApi* | [**create_job**](docs/JobServiceApi.md#create_job) | **POST** /apis/v1beta1/jobs | Create a new job. +*JobServiceApi* | [**delete_job**](docs/JobServiceApi.md#delete_job) | **DELETE** /apis/v1beta1/jobs/{id} | Delete a job. +*JobServiceApi* | [**disable_job**](docs/JobServiceApi.md#disable_job) | **POST** /apis/v1beta1/jobs/{id}/disable | Stops a job and all its associated runs. The job is not deleted. +*JobServiceApi* | [**enable_job**](docs/JobServiceApi.md#enable_job) | **POST** /apis/v1beta1/jobs/{id}/enable | Restarts a job that was previously stopped. All runs associated with the job will continue. +*JobServiceApi* | [**get_job**](docs/JobServiceApi.md#get_job) | **GET** /apis/v1beta1/jobs/{id} | Find a specific job by ID. +*JobServiceApi* | [**list_jobs**](docs/JobServiceApi.md#list_jobs) | **GET** /apis/v1beta1/jobs | Find all jobs. +*PipelineServiceApi* | [**create_pipeline**](docs/PipelineServiceApi.md#create_pipeline) | **POST** /apis/v1beta1/pipelines | Add a pipeline. +*PipelineServiceApi* | [**create_pipeline_version**](docs/PipelineServiceApi.md#create_pipeline_version) | **POST** /apis/v1beta1/pipeline_versions | +*PipelineServiceApi* | [**delete_pipeline**](docs/PipelineServiceApi.md#delete_pipeline) | **DELETE** /apis/v1beta1/pipelines/{id} | Delete a pipeline. +*PipelineServiceApi* | [**delete_pipeline_version**](docs/PipelineServiceApi.md#delete_pipeline_version) | **DELETE** /apis/v1beta1/pipeline_versions/{version_id} | +*PipelineServiceApi* | [**get_pipeline**](docs/PipelineServiceApi.md#get_pipeline) | **GET** /apis/v1beta1/pipelines/{id} | Find a specific pipeline by ID. +*PipelineServiceApi* | [**get_pipeline_version**](docs/PipelineServiceApi.md#get_pipeline_version) | **GET** /apis/v1beta1/pipeline_versions/{version_id} | +*PipelineServiceApi* | [**get_pipeline_version_template**](docs/PipelineServiceApi.md#get_pipeline_version_template) | **GET** /apis/v1beta1/pipeline_versions/{version_id}/templates | +*PipelineServiceApi* | [**get_template**](docs/PipelineServiceApi.md#get_template) | **GET** /apis/v1beta1/pipelines/{id}/templates | Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. +*PipelineServiceApi* | [**list_pipeline_versions**](docs/PipelineServiceApi.md#list_pipeline_versions) | **GET** /apis/v1beta1/pipeline_versions | +*PipelineServiceApi* | [**list_pipelines**](docs/PipelineServiceApi.md#list_pipelines) | **GET** /apis/v1beta1/pipelines | Find all pipelines. +*PipelineUploadServiceApi* | [**upload_pipeline**](docs/PipelineUploadServiceApi.md#upload_pipeline) | **POST** /apis/v1beta1/pipelines/upload | +*PipelineUploadServiceApi* | [**upload_pipeline_version**](docs/PipelineUploadServiceApi.md#upload_pipeline_version) | **POST** /apis/v1beta1/pipelines/upload_version | +*RunServiceApi* | [**archive_run**](docs/RunServiceApi.md#archive_run) | **POST** /apis/v1beta1/runs/{id}:archive | Archive a run. +*RunServiceApi* | [**create_run**](docs/RunServiceApi.md#create_run) | **POST** /apis/v1beta1/runs | Create a new run. +*RunServiceApi* | [**delete_run**](docs/RunServiceApi.md#delete_run) | **DELETE** /apis/v1beta1/runs/{id} | Delete a run. +*RunServiceApi* | [**get_run**](docs/RunServiceApi.md#get_run) | **GET** /apis/v1beta1/runs/{run_id} | Find a specific run by ID. +*RunServiceApi* | [**list_runs**](docs/RunServiceApi.md#list_runs) | **GET** /apis/v1beta1/runs | Find all runs. +*RunServiceApi* | [**read_artifact**](docs/RunServiceApi.md#read_artifact) | **GET** /apis/v1beta1/runs/{run_id}/nodes/{node_id}/artifacts/{artifact_name}:read | Find a run's artifact data. +*RunServiceApi* | [**report_run_metrics**](docs/RunServiceApi.md#report_run_metrics) | **POST** /apis/v1beta1/runs/{run_id}:reportMetrics | ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. +*RunServiceApi* | [**retry_run**](docs/RunServiceApi.md#retry_run) | **POST** /apis/v1beta1/runs/{run_id}/retry | Re-initiate a failed or terminated run. +*RunServiceApi* | [**terminate_run**](docs/RunServiceApi.md#terminate_run) | **POST** /apis/v1beta1/runs/{run_id}/terminate | Terminate an active run. +*RunServiceApi* | [**unarchive_run**](docs/RunServiceApi.md#unarchive_run) | **POST** /apis/v1beta1/runs/{id}:unarchive | Restore an archived run. + + +## Documentation For Models + + - [ApiCronSchedule](docs/ApiCronSchedule.md) + - [ApiExperiment](docs/ApiExperiment.md) + - [ApiGetTemplateResponse](docs/ApiGetTemplateResponse.md) + - [ApiJob](docs/ApiJob.md) + - [ApiListExperimentsResponse](docs/ApiListExperimentsResponse.md) + - [ApiListJobsResponse](docs/ApiListJobsResponse.md) + - [ApiListPipelineVersionsResponse](docs/ApiListPipelineVersionsResponse.md) + - [ApiListPipelinesResponse](docs/ApiListPipelinesResponse.md) + - [ApiListRunsResponse](docs/ApiListRunsResponse.md) + - [ApiParameter](docs/ApiParameter.md) + - [ApiPeriodicSchedule](docs/ApiPeriodicSchedule.md) + - [ApiPipeline](docs/ApiPipeline.md) + - [ApiPipelineRuntime](docs/ApiPipelineRuntime.md) + - [ApiPipelineSpec](docs/ApiPipelineSpec.md) + - [ApiPipelineVersion](docs/ApiPipelineVersion.md) + - [ApiReadArtifactResponse](docs/ApiReadArtifactResponse.md) + - [ApiRelationship](docs/ApiRelationship.md) + - [ApiReportRunMetricsRequest](docs/ApiReportRunMetricsRequest.md) + - [ApiReportRunMetricsResponse](docs/ApiReportRunMetricsResponse.md) + - [ApiResourceKey](docs/ApiResourceKey.md) + - [ApiResourceReference](docs/ApiResourceReference.md) + - [ApiResourceType](docs/ApiResourceType.md) + - [ApiRun](docs/ApiRun.md) + - [ApiRunDetail](docs/ApiRunDetail.md) + - [ApiRunMetric](docs/ApiRunMetric.md) + - [ApiStatus](docs/ApiStatus.md) + - [ApiTrigger](docs/ApiTrigger.md) + - [ApiUrl](docs/ApiUrl.md) + - [ExperimentStorageState](docs/ExperimentStorageState.md) + - [JobMode](docs/JobMode.md) + - [ProtobufAny](docs/ProtobufAny.md) + - [ReportRunMetricsResponseReportRunMetricResult](docs/ReportRunMetricsResponseReportRunMetricResult.md) + - [ReportRunMetricsResponseReportRunMetricResultStatus](docs/ReportRunMetricsResponseReportRunMetricResultStatus.md) + - [RunMetricFormat](docs/RunMetricFormat.md) + - [RunStorageState](docs/RunStorageState.md) + + +## Documentation For Authorization + + +## Bearer + +- **Type**: API key +- **API key parameter name**: authorization +- **Location**: HTTP header + + +## Author + + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiCronSchedule.md b/backend/api/python_http_client/kfp_server_api/docs/ApiCronSchedule.md new file mode 100644 index 00000000000..140139b4784 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiCronSchedule.md @@ -0,0 +1,12 @@ +# ApiCronSchedule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_time** | **datetime** | | [optional] +**end_time** | **datetime** | | [optional] +**cron** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiExperiment.md b/backend/api/python_http_client/kfp_server_api/docs/ApiExperiment.md new file mode 100644 index 00000000000..c481c73cc66 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiExperiment.md @@ -0,0 +1,15 @@ +# ApiExperiment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Output. Unique experiment ID. Generated by API server. | [optional] +**name** | **str** | Required input field. Unique experiment name provided by user. | [optional] +**description** | **str** | | [optional] +**created_at** | **datetime** | Output. The time that the experiment created. | [optional] +**resource_references** | [**list[ApiResourceReference]**](ApiResourceReference.md) | Optional input field. Specify which resource this run belongs to. For Experiment, the only valid resource reference is a single Namespace. | [optional] +**storage_state** | [**ExperimentStorageState**](ExperimentStorageState.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiGetTemplateResponse.md b/backend/api/python_http_client/kfp_server_api/docs/ApiGetTemplateResponse.md new file mode 100644 index 00000000000..1ac68e05439 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiGetTemplateResponse.md @@ -0,0 +1,10 @@ +# ApiGetTemplateResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**template** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiJob.md b/backend/api/python_http_client/kfp_server_api/docs/ApiJob.md new file mode 100644 index 00000000000..4669ab72da4 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiJob.md @@ -0,0 +1,24 @@ +# ApiJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Output. Unique run ID. Generated by API server. | [optional] +**name** | **str** | Required input field. Job name provided by user. Not unique. | [optional] +**description** | **str** | | [optional] +**pipeline_spec** | [**ApiPipelineSpec**](ApiPipelineSpec.md) | Required input field. Describing what the pipeline manifest and parameters to use for the scheduled job. | [optional] +**resource_references** | [**list[ApiResourceReference]**](ApiResourceReference.md) | Optional input field. Specify which resource this job belongs to. | [optional] +**service_account** | **str** | Optional input field. Specify which Kubernetes service account this job uses. | [optional] +**max_concurrency** | **str** | | [optional] +**trigger** | [**ApiTrigger**](ApiTrigger.md) | Required input field. Specify how a run is triggered. Support cron mode or periodic mode. | [optional] +**mode** | [**JobMode**](JobMode.md) | | [optional] +**created_at** | **datetime** | Output. The time this job is created. | [optional] +**updated_at** | **datetime** | Output. The last time this job is updated. | [optional] +**status** | **str** | | [optional] +**error** | **str** | In case any error happens retrieving a job field, only job ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. | [optional] +**enabled** | **bool** | Input. Whether the job is enabled or not. | [optional] +**no_catchup** | **bool** | Optional input field. Whether the job should catch up if behind schedule. If true, the job will only schedule the latest interval if behind schedule. If false, the job will catch up on each past interval. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListExperimentsResponse.md b/backend/api/python_http_client/kfp_server_api/docs/ApiListExperimentsResponse.md new file mode 100644 index 00000000000..0f6529e36c6 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiListExperimentsResponse.md @@ -0,0 +1,12 @@ +# ApiListExperimentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**experiments** | [**list[ApiExperiment]**](ApiExperiment.md) | A list of experiments returned. | [optional] +**total_size** | **int** | The total number of experiments for the given query. | [optional] +**next_page_token** | **str** | The token to list the next page of experiments. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListJobsResponse.md b/backend/api/python_http_client/kfp_server_api/docs/ApiListJobsResponse.md new file mode 100644 index 00000000000..c12024d8606 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiListJobsResponse.md @@ -0,0 +1,12 @@ +# ApiListJobsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**list[ApiJob]**](ApiJob.md) | A list of jobs returned. | [optional] +**total_size** | **int** | | [optional] +**next_page_token** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListPipelineVersionsResponse.md b/backend/api/python_http_client/kfp_server_api/docs/ApiListPipelineVersionsResponse.md new file mode 100644 index 00000000000..06dd53786a6 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiListPipelineVersionsResponse.md @@ -0,0 +1,12 @@ +# ApiListPipelineVersionsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**versions** | [**list[ApiPipelineVersion]**](ApiPipelineVersion.md) | | [optional] +**next_page_token** | **str** | | [optional] +**total_size** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListPipelinesResponse.md b/backend/api/python_http_client/kfp_server_api/docs/ApiListPipelinesResponse.md new file mode 100644 index 00000000000..f59d27a184a --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiListPipelinesResponse.md @@ -0,0 +1,12 @@ +# ApiListPipelinesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pipelines** | [**list[ApiPipeline]**](ApiPipeline.md) | | [optional] +**total_size** | **int** | | [optional] +**next_page_token** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListRunsResponse.md b/backend/api/python_http_client/kfp_server_api/docs/ApiListRunsResponse.md new file mode 100644 index 00000000000..26d19e1f3eb --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiListRunsResponse.md @@ -0,0 +1,12 @@ +# ApiListRunsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**runs** | [**list[ApiRun]**](ApiRun.md) | | [optional] +**total_size** | **int** | | [optional] +**next_page_token** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiParameter.md b/backend/api/python_http_client/kfp_server_api/docs/ApiParameter.md new file mode 100644 index 00000000000..c13ddecead6 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiParameter.md @@ -0,0 +1,11 @@ +# ApiParameter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**value** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPeriodicSchedule.md b/backend/api/python_http_client/kfp_server_api/docs/ApiPeriodicSchedule.md new file mode 100644 index 00000000000..0c382cbd87c --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiPeriodicSchedule.md @@ -0,0 +1,12 @@ +# ApiPeriodicSchedule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_time** | **datetime** | | [optional] +**end_time** | **datetime** | | [optional] +**interval_second** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md b/backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md new file mode 100644 index 00000000000..53df26953ae --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md @@ -0,0 +1,17 @@ +# ApiPipeline + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Output. Unique pipeline ID. Generated by API server. | [optional] +**created_at** | **datetime** | Output. The time this pipeline is created. | [optional] +**name** | **str** | Optional input field. Pipeline name provided by user. If not specified, file name is used as pipeline name. | [optional] +**description** | **str** | Optional input field. Describing the purpose of the job. | [optional] +**parameters** | [**list[ApiParameter]**](ApiParameter.md) | Output. The input parameters for this pipeline. TODO(jingzhang36): replace this parameters field with the parameters field inside PipelineVersion when all usage of the former has been changed to use the latter. | [optional] +**url** | [**ApiUrl**](ApiUrl.md) | The URL to the source of the pipeline. This is required when creating the pipeine through CreatePipeline API. TODO(jingzhang36): replace this url field with the code_source_urls field inside PipelineVersion when all usage of the former has been changed to use the latter. | [optional] +**error** | **str** | In case any error happens retrieving a pipeline field, only pipeline ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. | [optional] +**default_version** | [**ApiPipelineVersion**](ApiPipelineVersion.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineRuntime.md b/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineRuntime.md new file mode 100644 index 00000000000..c32e26cee52 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineRuntime.md @@ -0,0 +1,11 @@ +# ApiPipelineRuntime + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pipeline_manifest** | **str** | Output. The runtime JSON manifest of the pipeline, including the status of pipeline steps and fields need for UI visualization etc. | [optional] +**workflow_manifest** | **str** | Output. The runtime JSON manifest of the argo workflow. This is deprecated after pipeline_runtime_manifest is in use. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineSpec.md b/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineSpec.md new file mode 100644 index 00000000000..b0e2f2c4df3 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineSpec.md @@ -0,0 +1,14 @@ +# ApiPipelineSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pipeline_id** | **str** | Optional input field. The ID of the pipeline user uploaded before. | [optional] +**pipeline_name** | **str** | Optional output field. The name of the pipeline. Not empty if the pipeline id is not empty. | [optional] +**workflow_manifest** | **str** | Optional input field. The marshalled raw argo JSON workflow. This will be deprecated when pipeline_manifest is in use. | [optional] +**pipeline_manifest** | **str** | Optional input field. The raw pipeline JSON spec. | [optional] +**parameters** | [**list[ApiParameter]**](ApiParameter.md) | The parameter user provide to inject to the pipeline JSON. If a default value of a parameter exist in the JSON, the value user provided here will replace. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md b/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md new file mode 100644 index 00000000000..80447320bd3 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md @@ -0,0 +1,16 @@ +# ApiPipelineVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Output. Unique version ID. Generated by API server. | [optional] +**name** | **str** | Optional input field. Version name provided by user. | [optional] +**created_at** | **datetime** | Output. The time this pipeline version is created. | [optional] +**parameters** | [**list[ApiParameter]**](ApiParameter.md) | Output. The input parameters for this pipeline. | [optional] +**code_source_url** | **str** | Input. Optional. Pipeline version code source. | [optional] +**package_url** | [**ApiUrl**](ApiUrl.md) | Input. Required. Pipeline version package url. Whe calling CreatePipelineVersion API method, need to provide one package file location. | [optional] +**resource_references** | [**list[ApiResourceReference]**](ApiResourceReference.md) | Input. Required. E.g., specify which pipeline this pipeline version belongs to. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiReadArtifactResponse.md b/backend/api/python_http_client/kfp_server_api/docs/ApiReadArtifactResponse.md new file mode 100644 index 00000000000..f2e187c4b5e --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiReadArtifactResponse.md @@ -0,0 +1,10 @@ +# ApiReadArtifactResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **str** | The bytes of the artifact content. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRelationship.md b/backend/api/python_http_client/kfp_server_api/docs/ApiRelationship.md new file mode 100644 index 00000000000..3e6ef677702 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiRelationship.md @@ -0,0 +1,9 @@ +# ApiRelationship + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsRequest.md b/backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsRequest.md new file mode 100644 index 00000000000..2a7027ebaee --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsRequest.md @@ -0,0 +1,11 @@ +# ApiReportRunMetricsRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**run_id** | **str** | Required. The parent run ID of the metric. | [optional] +**metrics** | [**list[ApiRunMetric]**](ApiRunMetric.md) | List of metrics to report. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsResponse.md b/backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsResponse.md new file mode 100644 index 00000000000..b1b7e188b0a --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsResponse.md @@ -0,0 +1,10 @@ +# ApiReportRunMetricsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**list[ReportRunMetricsResponseReportRunMetricResult]**](ReportRunMetricsResponseReportRunMetricResult.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md new file mode 100644 index 00000000000..aa7b6a86821 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md @@ -0,0 +1,11 @@ +# ApiResourceKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**ApiResourceType**](ApiResourceType.md) | The type of the resource that referred to. | [optional] +**id** | **str** | The ID of the resource that referred to. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md new file mode 100644 index 00000000000..65c390fa384 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md @@ -0,0 +1,12 @@ +# ApiResourceReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | [**ApiResourceKey**](ApiResourceKey.md) | | [optional] +**name** | **str** | The name of the resource that referred to. | [optional] +**relationship** | [**ApiRelationship**](ApiRelationship.md) | Required field. The relationship from referred resource to the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceType.md b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceType.md new file mode 100644 index 00000000000..0d3f7688726 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceType.md @@ -0,0 +1,9 @@ +# ApiResourceType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRun.md b/backend/api/python_http_client/kfp_server_api/docs/ApiRun.md new file mode 100644 index 00000000000..838f02fd2b9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiRun.md @@ -0,0 +1,22 @@ +# ApiRun + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Output. Unique run ID. Generated by API server. | [optional] +**name** | **str** | Required input field. Name provided by user, or auto generated if run is created by scheduled job. Not unique. | [optional] +**storage_state** | [**RunStorageState**](RunStorageState.md) | | [optional] +**description** | **str** | | [optional] +**pipeline_spec** | [**ApiPipelineSpec**](ApiPipelineSpec.md) | Required input field. Describing what the pipeline manifest and parameters to use for the run. | [optional] +**resource_references** | [**list[ApiResourceReference]**](ApiResourceReference.md) | Optional input field. Specify which resource this run belongs to. | [optional] +**service_account** | **str** | Optional input field. Specify which Kubernetes service account this run uses. | [optional] +**created_at** | **datetime** | Output. The time that the run created. | [optional] +**scheduled_at** | **datetime** | Output. When this run is scheduled to run. This could be different from created_at. For example, if a run is from a backfilling job that was supposed to run 2 month ago, the scheduled_at is 2 month ago, v.s. created_at is the current time. | [optional] +**finished_at** | **datetime** | Output. The time this run is finished. | [optional] +**status** | **str** | | [optional] +**error** | **str** | In case any error happens retrieving a run field, only run ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. | [optional] +**metrics** | [**list[ApiRunMetric]**](ApiRunMetric.md) | Output. The metrics of the run. The metrics are reported by ReportMetrics API. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRunDetail.md b/backend/api/python_http_client/kfp_server_api/docs/ApiRunDetail.md new file mode 100644 index 00000000000..2d4be03b170 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiRunDetail.md @@ -0,0 +1,11 @@ +# ApiRunDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**run** | [**ApiRun**](ApiRun.md) | | [optional] +**pipeline_runtime** | [**ApiPipelineRuntime**](ApiPipelineRuntime.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md b/backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md new file mode 100644 index 00000000000..87b915e22e9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md @@ -0,0 +1,13 @@ +# ApiRunMetric + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Required. The user defined name of the metric. It must between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. | [optional] +**node_id** | **str** | Required. The runtime node ID which reports the metric. The node ID can be found in the RunDetail.workflow.Status. Metric with same (node_id, name) are considerd as duplicate. Only the first reporting will be recorded. Max length is 128. | [optional] +**number_value** | **float** | The number value of the metric. | [optional] +**format** | [**RunMetricFormat**](RunMetricFormat.md) | The display format of metric. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiStatus.md b/backend/api/python_http_client/kfp_server_api/docs/ApiStatus.md new file mode 100644 index 00000000000..6a3feb57f30 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiStatus.md @@ -0,0 +1,12 @@ +# ApiStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | | [optional] +**code** | **int** | | [optional] +**details** | [**list[ProtobufAny]**](ProtobufAny.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md b/backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md new file mode 100644 index 00000000000..07b8802d8e1 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md @@ -0,0 +1,11 @@ +# ApiTrigger + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cron_schedule** | [**ApiCronSchedule**](ApiCronSchedule.md) | | [optional] +**periodic_schedule** | [**ApiPeriodicSchedule**](ApiPeriodicSchedule.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiUrl.md b/backend/api/python_http_client/kfp_server_api/docs/ApiUrl.md new file mode 100644 index 00000000000..a098f68fba5 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiUrl.md @@ -0,0 +1,10 @@ +# ApiUrl + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pipeline_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md new file mode 100644 index 00000000000..a933bf3e061 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md @@ -0,0 +1,336 @@ +# kfp_server_api.ExperimentServiceApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**archive_experiment**](ExperimentServiceApi.md#archive_experiment) | **POST** /apis/v1beta1/experiments/{id}:archive | Archive an experiment. +[**create_experiment**](ExperimentServiceApi.md#create_experiment) | **POST** /apis/v1beta1/experiments | Create a new experiment. +[**delete_experiment**](ExperimentServiceApi.md#delete_experiment) | **DELETE** /apis/v1beta1/experiments/{id} | Delete an experiment. +[**get_experiment**](ExperimentServiceApi.md#get_experiment) | **GET** /apis/v1beta1/experiments/{id} | Find a specific experiment by ID. +[**list_experiment**](ExperimentServiceApi.md#list_experiment) | **GET** /apis/v1beta1/experiments | Find all experiments. +[**unarchive_experiment**](ExperimentServiceApi.md#unarchive_experiment) | **POST** /apis/v1beta1/experiments/{id}:unarchive | Restore an archived experiment. + + +# **archive_experiment** +> object archive_experiment(id) + +Archive an experiment. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Archive an experiment. + api_response = api_instance.archive_experiment(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExperimentServiceApi->archive_experiment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_experiment** +> ApiExperiment create_experiment(body) + +Create a new experiment. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) +body = kfp_server_api.ApiExperiment() # ApiExperiment | The experiment to be created. + +try: + # Create a new experiment. + api_response = api_instance.create_experiment(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExperimentServiceApi->create_experiment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ApiExperiment**](ApiExperiment.md)| The experiment to be created. | + +### Return type + +[**ApiExperiment**](ApiExperiment.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_experiment** +> object delete_experiment(id) + +Delete an experiment. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | The ID of the experiment to be deleted. + +try: + # Delete an experiment. + api_response = api_instance.delete_experiment(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExperimentServiceApi->delete_experiment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the experiment to be deleted. | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_experiment** +> ApiExperiment get_experiment(id) + +Find a specific experiment by ID. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | The ID of the experiment to be retrieved. + +try: + # Find a specific experiment by ID. + api_response = api_instance.get_experiment(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExperimentServiceApi->get_experiment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the experiment to be retrieved. | + +### Return type + +[**ApiExperiment**](ApiExperiment.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_experiment** +> ApiListExperimentsResponse list_experiment(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id) + +Find all experiments. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) +page_token = 'page_token_example' # str | (optional) +page_size = 56 # int | (optional) +sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. (optional) +filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) +resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to UNKNOWN_RESOURCE_TYPE) +resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID of the resource that referred to. (optional) + +try: + # Find all experiments. + api_response = api_instance.list_experiment(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExperimentServiceApi->list_experiment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page_token** | **str**| | [optional] + **page_size** | **int**| | [optional] + **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. | [optional] + **filter** | **str**| A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). | [optional] + **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to UNKNOWN_RESOURCE_TYPE] + **resource_reference_key_id** | **str**| The ID of the resource that referred to. | [optional] + +### Return type + +[**ApiListExperimentsResponse**](ApiListExperimentsResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **unarchive_experiment** +> object unarchive_experiment(id) + +Restore an archived experiment. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Restore an archived experiment. + api_response = api_instance.unarchive_experiment(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExperimentServiceApi->unarchive_experiment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ExperimentStorageState.md b/backend/api/python_http_client/kfp_server_api/docs/ExperimentStorageState.md new file mode 100644 index 00000000000..ffb7e705bca --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ExperimentStorageState.md @@ -0,0 +1,9 @@ +# ExperimentStorageState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/JobMode.md b/backend/api/python_http_client/kfp_server_api/docs/JobMode.md new file mode 100644 index 00000000000..da17e18c8d7 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/JobMode.md @@ -0,0 +1,9 @@ +# JobMode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md new file mode 100644 index 00000000000..7bf65bdb3de --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md @@ -0,0 +1,336 @@ +# kfp_server_api.JobServiceApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_job**](JobServiceApi.md#create_job) | **POST** /apis/v1beta1/jobs | Create a new job. +[**delete_job**](JobServiceApi.md#delete_job) | **DELETE** /apis/v1beta1/jobs/{id} | Delete a job. +[**disable_job**](JobServiceApi.md#disable_job) | **POST** /apis/v1beta1/jobs/{id}/disable | Stops a job and all its associated runs. The job is not deleted. +[**enable_job**](JobServiceApi.md#enable_job) | **POST** /apis/v1beta1/jobs/{id}/enable | Restarts a job that was previously stopped. All runs associated with the job will continue. +[**get_job**](JobServiceApi.md#get_job) | **GET** /apis/v1beta1/jobs/{id} | Find a specific job by ID. +[**list_jobs**](JobServiceApi.md#list_jobs) | **GET** /apis/v1beta1/jobs | Find all jobs. + + +# **create_job** +> ApiJob create_job(body) + +Create a new job. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) +body = kfp_server_api.ApiJob() # ApiJob | The job to be created + +try: + # Create a new job. + api_response = api_instance.create_job(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling JobServiceApi->create_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ApiJob**](ApiJob.md)| The job to be created | + +### Return type + +[**ApiJob**](ApiJob.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_job** +> object delete_job(id) + +Delete a job. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | The ID of the job to be deleted + +try: + # Delete a job. + api_response = api_instance.delete_job(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling JobServiceApi->delete_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the job to be deleted | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **disable_job** +> object disable_job(id) + +Stops a job and all its associated runs. The job is not deleted. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | The ID of the job to be disabled + +try: + # Stops a job and all its associated runs. The job is not deleted. + api_response = api_instance.disable_job(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling JobServiceApi->disable_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the job to be disabled | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **enable_job** +> object enable_job(id) + +Restarts a job that was previously stopped. All runs associated with the job will continue. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | The ID of the job to be enabled + +try: + # Restarts a job that was previously stopped. All runs associated with the job will continue. + api_response = api_instance.enable_job(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling JobServiceApi->enable_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the job to be enabled | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job** +> ApiJob get_job(id) + +Find a specific job by ID. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | The ID of the job to be retrieved + +try: + # Find a specific job by ID. + api_response = api_instance.get_job(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling JobServiceApi->get_job: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the job to be retrieved | + +### Return type + +[**ApiJob**](ApiJob.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_jobs** +> ApiListJobsResponse list_jobs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) + +Find all jobs. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) +page_token = 'page_token_example' # str | (optional) +page_size = 56 # int | (optional) +sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. (optional) +resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to UNKNOWN_RESOURCE_TYPE) +resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID of the resource that referred to. (optional) +filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) + +try: + # Find all jobs. + api_response = api_instance.list_jobs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) + pprint(api_response) +except ApiException as e: + print("Exception when calling JobServiceApi->list_jobs: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page_token** | **str**| | [optional] + **page_size** | **int**| | [optional] + **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. | [optional] + **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to UNKNOWN_RESOURCE_TYPE] + **resource_reference_key_id** | **str**| The ID of the resource that referred to. | [optional] + **filter** | **str**| A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). | [optional] + +### Return type + +[**ApiListJobsResponse**](ApiListJobsResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md new file mode 100644 index 00000000000..02ba18052c9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md @@ -0,0 +1,549 @@ +# kfp_server_api.PipelineServiceApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_pipeline**](PipelineServiceApi.md#create_pipeline) | **POST** /apis/v1beta1/pipelines | Add a pipeline. +[**create_pipeline_version**](PipelineServiceApi.md#create_pipeline_version) | **POST** /apis/v1beta1/pipeline_versions | +[**delete_pipeline**](PipelineServiceApi.md#delete_pipeline) | **DELETE** /apis/v1beta1/pipelines/{id} | Delete a pipeline. +[**delete_pipeline_version**](PipelineServiceApi.md#delete_pipeline_version) | **DELETE** /apis/v1beta1/pipeline_versions/{version_id} | +[**get_pipeline**](PipelineServiceApi.md#get_pipeline) | **GET** /apis/v1beta1/pipelines/{id} | Find a specific pipeline by ID. +[**get_pipeline_version**](PipelineServiceApi.md#get_pipeline_version) | **GET** /apis/v1beta1/pipeline_versions/{version_id} | +[**get_pipeline_version_template**](PipelineServiceApi.md#get_pipeline_version_template) | **GET** /apis/v1beta1/pipeline_versions/{version_id}/templates | +[**get_template**](PipelineServiceApi.md#get_template) | **GET** /apis/v1beta1/pipelines/{id}/templates | Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. +[**list_pipeline_versions**](PipelineServiceApi.md#list_pipeline_versions) | **GET** /apis/v1beta1/pipeline_versions | +[**list_pipelines**](PipelineServiceApi.md#list_pipelines) | **GET** /apis/v1beta1/pipelines | Find all pipelines. + + +# **create_pipeline** +> ApiPipeline create_pipeline(body) + +Add a pipeline. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +body = kfp_server_api.ApiPipeline() # ApiPipeline | + +try: + # Add a pipeline. + api_response = api_instance.create_pipeline(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->create_pipeline: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ApiPipeline**](ApiPipeline.md)| | + +### Return type + +[**ApiPipeline**](ApiPipeline.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pipeline_version** +> ApiPipelineVersion create_pipeline_version(body) + + + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +body = kfp_server_api.ApiPipelineVersion() # ApiPipelineVersion | ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. + +try: + api_response = api_instance.create_pipeline_version(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->create_pipeline_version: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ApiPipelineVersion**](ApiPipelineVersion.md)| ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. | + +### Return type + +[**ApiPipelineVersion**](ApiPipelineVersion.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_pipeline** +> object delete_pipeline(id) + +Delete a pipeline. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Delete a pipeline. + api_response = api_instance.delete_pipeline(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->delete_pipeline: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_pipeline_version** +> object delete_pipeline_version(version_id) + + + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +version_id = 'version_id_example' # str | + +try: + api_response = api_instance.delete_pipeline_version(version_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->delete_pipeline_version: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **version_id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pipeline** +> ApiPipeline get_pipeline(id) + +Find a specific pipeline by ID. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Find a specific pipeline by ID. + api_response = api_instance.get_pipeline(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->get_pipeline: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**ApiPipeline**](ApiPipeline.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pipeline_version** +> ApiPipelineVersion get_pipeline_version(version_id) + + + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +version_id = 'version_id_example' # str | + +try: + api_response = api_instance.get_pipeline_version(version_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->get_pipeline_version: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **version_id** | **str**| | + +### Return type + +[**ApiPipelineVersion**](ApiPipelineVersion.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pipeline_version_template** +> ApiGetTemplateResponse get_pipeline_version_template(version_id) + + + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +version_id = 'version_id_example' # str | + +try: + api_response = api_instance.get_pipeline_version_template(version_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->get_pipeline_version_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **version_id** | **str**| | + +### Return type + +[**ApiGetTemplateResponse**](ApiGetTemplateResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_template** +> ApiGetTemplateResponse get_template(id) + +Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. + api_response = api_instance.get_template(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->get_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**ApiGetTemplateResponse**](ApiGetTemplateResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_pipeline_versions** +> ApiListPipelineVersionsResponse list_pipeline_versions(resource_key_type=resource_key_type, resource_key_id=resource_key_id, page_size=page_size, page_token=page_token, sort_by=sort_by, filter=filter) + + + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +resource_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to UNKNOWN_RESOURCE_TYPE) +resource_key_id = 'resource_key_id_example' # str | The ID of the resource that referred to. (optional) +page_size = 56 # int | (optional) +page_token = 'page_token_example' # str | (optional) +sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. (optional) +filter = 'filter_example' # str | A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). (optional) + +try: + api_response = api_instance.list_pipeline_versions(resource_key_type=resource_key_type, resource_key_id=resource_key_id, page_size=page_size, page_token=page_token, sort_by=sort_by, filter=filter) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->list_pipeline_versions: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resource_key_type** | **str**| The type of the resource that referred to. | [optional] [default to UNKNOWN_RESOURCE_TYPE] + **resource_key_id** | **str**| The ID of the resource that referred to. | [optional] + **page_size** | **int**| | [optional] + **page_token** | **str**| | [optional] + **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. | [optional] + **filter** | **str**| A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). | [optional] + +### Return type + +[**ApiListPipelineVersionsResponse**](ApiListPipelineVersionsResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_pipelines** +> ApiListPipelinesResponse list_pipelines(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter) + +Find all pipelines. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) +page_token = 'page_token_example' # str | (optional) +page_size = 56 # int | (optional) +sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. (optional) +filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) + +try: + # Find all pipelines. + api_response = api_instance.list_pipelines(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineServiceApi->list_pipelines: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page_token** | **str**| | [optional] + **page_size** | **int**| | [optional] + **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. | [optional] + **filter** | **str**| A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). | [optional] + +### Return type + +[**ApiListPipelinesResponse**](ApiListPipelinesResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md new file mode 100644 index 00000000000..01547dd34a9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md @@ -0,0 +1,120 @@ +# kfp_server_api.PipelineUploadServiceApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**upload_pipeline**](PipelineUploadServiceApi.md#upload_pipeline) | **POST** /apis/v1beta1/pipelines/upload | +[**upload_pipeline_version**](PipelineUploadServiceApi.md#upload_pipeline_version) | **POST** /apis/v1beta1/pipelines/upload_version | + + +# **upload_pipeline** +> ApiPipeline upload_pipeline(uploadfile, name=name, description=description) + + + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineUploadServiceApi(kfp_server_api.ApiClient(configuration)) +uploadfile = '/path/to/file.txt' # file | The pipeline to upload. Maximum size of 32MB is supported. +name = 'name_example' # str | (optional) +description = 'description_example' # str | (optional) + +try: + api_response = api_instance.upload_pipeline(uploadfile, name=name, description=description) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineUploadServiceApi->upload_pipeline: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uploadfile** | **file**| The pipeline to upload. Maximum size of 32MB is supported. | + **name** | **str**| | [optional] + **description** | **str**| | [optional] + +### Return type + +[**ApiPipeline**](ApiPipeline.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **upload_pipeline_version** +> ApiPipelineVersion upload_pipeline_version(uploadfile, name=name, pipelineid=pipelineid) + + + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.PipelineUploadServiceApi(kfp_server_api.ApiClient(configuration)) +uploadfile = '/path/to/file.txt' # file | The pipeline to upload. Maximum size of 32MB is supported. +name = 'name_example' # str | (optional) +pipelineid = 'pipelineid_example' # str | (optional) + +try: + api_response = api_instance.upload_pipeline_version(uploadfile, name=name, pipelineid=pipelineid) + pprint(api_response) +except ApiException as e: + print("Exception when calling PipelineUploadServiceApi->upload_pipeline_version: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uploadfile** | **file**| The pipeline to upload. Maximum size of 32MB is supported. | + **name** | **str**| | [optional] + **pipelineid** | **str**| | [optional] + +### Return type + +[**ApiPipelineVersion**](ApiPipelineVersion.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md b/backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md new file mode 100644 index 00000000000..10f6c09c093 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md @@ -0,0 +1,11 @@ +# ProtobufAny + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_url** | **str** | A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. | [optional] +**value** | **str** | Must be a valid serialized protocol buffer of the above specified type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md b/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md new file mode 100644 index 00000000000..6d53974b9d5 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md @@ -0,0 +1,13 @@ +# ReportRunMetricsResponseReportRunMetricResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metric_name** | **str** | Output. The name of the metric. | [optional] +**metric_node_id** | **str** | Output. The ID of the node which reports the metric. | [optional] +**status** | [**ReportRunMetricsResponseReportRunMetricResultStatus**](ReportRunMetricsResponseReportRunMetricResultStatus.md) | Output. The status of the metric reporting. | [optional] +**message** | **str** | Output. The detailed message of the error of the reporting. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md b/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md new file mode 100644 index 00000000000..b3d612c76ac --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md @@ -0,0 +1,9 @@ +# ReportRunMetricsResponseReportRunMetricResultStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md b/backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md new file mode 100644 index 00000000000..818566391c8 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md @@ -0,0 +1,9 @@ +# RunMetricFormat + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md new file mode 100644 index 00000000000..8b2854d67ef --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md @@ -0,0 +1,554 @@ +# kfp_server_api.RunServiceApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**archive_run**](RunServiceApi.md#archive_run) | **POST** /apis/v1beta1/runs/{id}:archive | Archive a run. +[**create_run**](RunServiceApi.md#create_run) | **POST** /apis/v1beta1/runs | Create a new run. +[**delete_run**](RunServiceApi.md#delete_run) | **DELETE** /apis/v1beta1/runs/{id} | Delete a run. +[**get_run**](RunServiceApi.md#get_run) | **GET** /apis/v1beta1/runs/{run_id} | Find a specific run by ID. +[**list_runs**](RunServiceApi.md#list_runs) | **GET** /apis/v1beta1/runs | Find all runs. +[**read_artifact**](RunServiceApi.md#read_artifact) | **GET** /apis/v1beta1/runs/{run_id}/nodes/{node_id}/artifacts/{artifact_name}:read | Find a run's artifact data. +[**report_run_metrics**](RunServiceApi.md#report_run_metrics) | **POST** /apis/v1beta1/runs/{run_id}:reportMetrics | ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. +[**retry_run**](RunServiceApi.md#retry_run) | **POST** /apis/v1beta1/runs/{run_id}/retry | Re-initiate a failed or terminated run. +[**terminate_run**](RunServiceApi.md#terminate_run) | **POST** /apis/v1beta1/runs/{run_id}/terminate | Terminate an active run. +[**unarchive_run**](RunServiceApi.md#unarchive_run) | **POST** /apis/v1beta1/runs/{id}:unarchive | Restore an archived run. + + +# **archive_run** +> object archive_run(id) + +Archive a run. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Archive a run. + api_response = api_instance.archive_run(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->archive_run: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_run** +> ApiRunDetail create_run(body) + +Create a new run. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +body = kfp_server_api.ApiRun() # ApiRun | + +try: + # Create a new run. + api_response = api_instance.create_run(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->create_run: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ApiRun**](ApiRun.md)| | + +### Return type + +[**ApiRunDetail**](ApiRunDetail.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_run** +> object delete_run(id) + +Delete a run. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Delete a run. + api_response = api_instance.delete_run(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->delete_run: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_run** +> ApiRunDetail get_run(run_id) + +Find a specific run by ID. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +run_id = 'run_id_example' # str | + +try: + # Find a specific run by ID. + api_response = api_instance.get_run(run_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->get_run: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **run_id** | **str**| | + +### Return type + +[**ApiRunDetail**](ApiRunDetail.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_runs** +> ApiListRunsResponse list_runs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) + +Find all runs. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +page_token = 'page_token_example' # str | (optional) +page_size = 56 # int | (optional) +sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. (optional) +resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to UNKNOWN_RESOURCE_TYPE) +resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID of the resource that referred to. (optional) +filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) + +try: + # Find all runs. + api_response = api_instance.list_runs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->list_runs: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page_token** | **str**| | [optional] + **page_size** | **int**| | [optional] + **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. | [optional] + **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to UNKNOWN_RESOURCE_TYPE] + **resource_reference_key_id** | **str**| The ID of the resource that referred to. | [optional] + **filter** | **str**| A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). | [optional] + +### Return type + +[**ApiListRunsResponse**](ApiListRunsResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_artifact** +> ApiReadArtifactResponse read_artifact(run_id, node_id, artifact_name) + +Find a run's artifact data. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +run_id = 'run_id_example' # str | The ID of the run. +node_id = 'node_id_example' # str | The ID of the running node. +artifact_name = 'artifact_name_example' # str | The name of the artifact. + +try: + # Find a run's artifact data. + api_response = api_instance.read_artifact(run_id, node_id, artifact_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->read_artifact: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **run_id** | **str**| The ID of the run. | + **node_id** | **str**| The ID of the running node. | + **artifact_name** | **str**| The name of the artifact. | + +### Return type + +[**ApiReadArtifactResponse**](ApiReadArtifactResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **report_run_metrics** +> ApiReportRunMetricsResponse report_run_metrics(run_id, body) + +ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +run_id = 'run_id_example' # str | Required. The parent run ID of the metric. +body = kfp_server_api.ApiReportRunMetricsRequest() # ApiReportRunMetricsRequest | + +try: + # ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. + api_response = api_instance.report_run_metrics(run_id, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->report_run_metrics: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **run_id** | **str**| Required. The parent run ID of the metric. | + **body** | [**ApiReportRunMetricsRequest**](ApiReportRunMetricsRequest.md)| | + +### Return type + +[**ApiReportRunMetricsResponse**](ApiReportRunMetricsResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **retry_run** +> object retry_run(run_id) + +Re-initiate a failed or terminated run. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +run_id = 'run_id_example' # str | + +try: + # Re-initiate a failed or terminated run. + api_response = api_instance.retry_run(run_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->retry_run: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **run_id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **terminate_run** +> object terminate_run(run_id) + +Terminate an active run. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +run_id = 'run_id_example' # str | + +try: + # Terminate an active run. + api_response = api_instance.terminate_run(run_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->terminate_run: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **run_id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **unarchive_run** +> object unarchive_run(id) + +Restore an archived run. + +### Example +```python +from __future__ import print_function +import time +import kfp_server_api +from kfp_server_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: Bearer +configuration = kfp_server_api.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Restore an archived run. + api_response = api_instance.unarchive_run(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling RunServiceApi->unarchive_run: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/backend/api/python_http_client/kfp_server_api/docs/RunStorageState.md b/backend/api/python_http_client/kfp_server_api/docs/RunStorageState.md new file mode 100644 index 00000000000..958cd0142f9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/docs/RunStorageState.md @@ -0,0 +1,9 @@ +# RunStorageState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/backend/api/python_http_client/kfp_server_api/git_push.sh b/backend/api/python_http_client/kfp_server_api/git_push.sh new file mode 100644 index 00000000000..ae01b182ae9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py new file mode 100644 index 00000000000..305af5e181e --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import apis into sdk package +from kfp_server_api.api.experiment_service_api import ExperimentServiceApi +from kfp_server_api.api.job_service_api import JobServiceApi +from kfp_server_api.api.pipeline_service_api import PipelineServiceApi +from kfp_server_api.api.pipeline_upload_service_api import PipelineUploadServiceApi +from kfp_server_api.api.run_service_api import RunServiceApi + +# import ApiClient +from kfp_server_api.api_client import ApiClient +from kfp_server_api.configuration import Configuration +# import models into sdk package +from kfp_server_api.models.api_cron_schedule import ApiCronSchedule +from kfp_server_api.models.api_experiment import ApiExperiment +from kfp_server_api.models.api_get_template_response import ApiGetTemplateResponse +from kfp_server_api.models.api_job import ApiJob +from kfp_server_api.models.api_list_experiments_response import ApiListExperimentsResponse +from kfp_server_api.models.api_list_jobs_response import ApiListJobsResponse +from kfp_server_api.models.api_list_pipeline_versions_response import ApiListPipelineVersionsResponse +from kfp_server_api.models.api_list_pipelines_response import ApiListPipelinesResponse +from kfp_server_api.models.api_list_runs_response import ApiListRunsResponse +from kfp_server_api.models.api_parameter import ApiParameter +from kfp_server_api.models.api_periodic_schedule import ApiPeriodicSchedule +from kfp_server_api.models.api_pipeline import ApiPipeline +from kfp_server_api.models.api_pipeline_runtime import ApiPipelineRuntime +from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec +from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion +from kfp_server_api.models.api_read_artifact_response import ApiReadArtifactResponse +from kfp_server_api.models.api_relationship import ApiRelationship +from kfp_server_api.models.api_report_run_metrics_request import ApiReportRunMetricsRequest +from kfp_server_api.models.api_report_run_metrics_response import ApiReportRunMetricsResponse +from kfp_server_api.models.api_resource_key import ApiResourceKey +from kfp_server_api.models.api_resource_reference import ApiResourceReference +from kfp_server_api.models.api_resource_type import ApiResourceType +from kfp_server_api.models.api_run import ApiRun +from kfp_server_api.models.api_run_detail import ApiRunDetail +from kfp_server_api.models.api_run_metric import ApiRunMetric +from kfp_server_api.models.api_status import ApiStatus +from kfp_server_api.models.api_trigger import ApiTrigger +from kfp_server_api.models.api_url import ApiUrl +from kfp_server_api.models.experiment_storage_state import ExperimentStorageState +from kfp_server_api.models.job_mode import JobMode +from kfp_server_api.models.protobuf_any import ProtobufAny +from kfp_server_api.models.report_run_metrics_response_report_run_metric_result import ReportRunMetricsResponseReportRunMetricResult +from kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status import ReportRunMetricsResponseReportRunMetricResultStatus +from kfp_server_api.models.run_metric_format import RunMetricFormat +from kfp_server_api.models.run_storage_state import RunStorageState diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/__init__.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/__init__.py new file mode 100644 index 00000000000..2c1228a2f7d --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/__init__.py @@ -0,0 +1,10 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from kfp_server_api.api.experiment_service_api import ExperimentServiceApi +from kfp_server_api.api.job_service_api import JobServiceApi +from kfp_server_api.api.pipeline_service_api import PipelineServiceApi +from kfp_server_api.api.pipeline_upload_service_api import PipelineUploadServiceApi +from kfp_server_api.api.run_service_api import RunServiceApi diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py new file mode 100644 index 00000000000..2aa4c27faa2 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py @@ -0,0 +1,632 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kfp_server_api.api_client import ApiClient + + +class ExperimentServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def archive_experiment(self, id, **kwargs): # noqa: E501 + """Archive an experiment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.archive_experiment(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.archive_experiment_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.archive_experiment_with_http_info(id, **kwargs) # noqa: E501 + return data + + def archive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 + """Archive an experiment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.archive_experiment_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method archive_experiment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `archive_experiment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/experiments/{id}:archive', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_experiment(self, body, **kwargs): # noqa: E501 + """Create a new experiment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_experiment(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiExperiment body: The experiment to be created. (required) + :return: ApiExperiment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_experiment_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_experiment_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_experiment_with_http_info(self, body, **kwargs): # noqa: E501 + """Create a new experiment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_experiment_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiExperiment body: The experiment to be created. (required) + :return: ApiExperiment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_experiment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_experiment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/experiments', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiExperiment', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_experiment(self, id, **kwargs): # noqa: E501 + """Delete an experiment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_experiment(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the experiment to be deleted. (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_experiment_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.delete_experiment_with_http_info(id, **kwargs) # noqa: E501 + return data + + def delete_experiment_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete an experiment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_experiment_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the experiment to be deleted. (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_experiment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `delete_experiment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/experiments/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_experiment(self, id, **kwargs): # noqa: E501 + """Find a specific experiment by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_experiment(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the experiment to be retrieved. (required) + :return: ApiExperiment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_experiment_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_experiment_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_experiment_with_http_info(self, id, **kwargs): # noqa: E501 + """Find a specific experiment by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_experiment_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the experiment to be retrieved. (required) + :return: ApiExperiment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_experiment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_experiment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/experiments/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiExperiment', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_experiment(self, **kwargs): # noqa: E501 + """Find all experiments. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_experiment(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str page_token: + :param int page_size: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. + :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :param str resource_reference_key_type: The type of the resource that referred to. + :param str resource_reference_key_id: The ID of the resource that referred to. + :return: ApiListExperimentsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_experiment_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_experiment_with_http_info(**kwargs) # noqa: E501 + return data + + def list_experiment_with_http_info(self, **kwargs): # noqa: E501 + """Find all experiments. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_experiment_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str page_token: + :param int page_size: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. + :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :param str resource_reference_key_type: The type of the resource that referred to. + :param str resource_reference_key_id: The ID of the resource that referred to. + :return: ApiListExperimentsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['page_token', 'page_size', 'sort_by', 'filter', 'resource_reference_key_type', 'resource_reference_key_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_experiment" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page_token' in params: + query_params.append(('page_token', params['page_token'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'sort_by' in params: + query_params.append(('sort_by', params['sort_by'])) # noqa: E501 + if 'filter' in params: + query_params.append(('filter', params['filter'])) # noqa: E501 + if 'resource_reference_key_type' in params: + query_params.append(('resource_reference_key.type', params['resource_reference_key_type'])) # noqa: E501 + if 'resource_reference_key_id' in params: + query_params.append(('resource_reference_key.id', params['resource_reference_key_id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/experiments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiListExperimentsResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def unarchive_experiment(self, id, **kwargs): # noqa: E501 + """Restore an archived experiment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.unarchive_experiment(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.unarchive_experiment_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.unarchive_experiment_with_http_info(id, **kwargs) # noqa: E501 + return data + + def unarchive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 + """Restore an archived experiment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.unarchive_experiment_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method unarchive_experiment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `unarchive_experiment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/experiments/{id}:unarchive', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py new file mode 100644 index 00000000000..6e810b6a44d --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py @@ -0,0 +1,632 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kfp_server_api.api_client import ApiClient + + +class JobServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_job(self, body, **kwargs): # noqa: E501 + """Create a new job. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_job(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiJob body: The job to be created (required) + :return: ApiJob + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_job_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_job_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_job_with_http_info(self, body, **kwargs): # noqa: E501 + """Create a new job. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_job_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiJob body: The job to be created (required) + :return: ApiJob + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_job`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/jobs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiJob', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_job(self, id, **kwargs): # noqa: E501 + """Delete a job. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_job(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the job to be deleted (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_job_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.delete_job_with_http_info(id, **kwargs) # noqa: E501 + return data + + def delete_job_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete a job. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_job_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the job to be deleted (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `delete_job`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/jobs/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def disable_job(self, id, **kwargs): # noqa: E501 + """Stops a job and all its associated runs. The job is not deleted. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.disable_job(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the job to be disabled (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.disable_job_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.disable_job_with_http_info(id, **kwargs) # noqa: E501 + return data + + def disable_job_with_http_info(self, id, **kwargs): # noqa: E501 + """Stops a job and all its associated runs. The job is not deleted. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.disable_job_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the job to be disabled (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method disable_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `disable_job`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/jobs/{id}/disable', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def enable_job(self, id, **kwargs): # noqa: E501 + """Restarts a job that was previously stopped. All runs associated with the job will continue. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.enable_job(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the job to be enabled (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.enable_job_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.enable_job_with_http_info(id, **kwargs) # noqa: E501 + return data + + def enable_job_with_http_info(self, id, **kwargs): # noqa: E501 + """Restarts a job that was previously stopped. All runs associated with the job will continue. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.enable_job_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the job to be enabled (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method enable_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `enable_job`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/jobs/{id}/enable', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_job(self, id, **kwargs): # noqa: E501 + """Find a specific job by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_job(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the job to be retrieved (required) + :return: ApiJob + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_job_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_job_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_job_with_http_info(self, id, **kwargs): # noqa: E501 + """Find a specific job by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_job_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: The ID of the job to be retrieved (required) + :return: ApiJob + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_job" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_job`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/jobs/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiJob', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_jobs(self, **kwargs): # noqa: E501 + """Find all jobs. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_jobs(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str page_token: + :param int page_size: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. + :param str resource_reference_key_type: The type of the resource that referred to. + :param str resource_reference_key_id: The ID of the resource that referred to. + :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :return: ApiListJobsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_jobs_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_jobs_with_http_info(**kwargs) # noqa: E501 + return data + + def list_jobs_with_http_info(self, **kwargs): # noqa: E501 + """Find all jobs. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_jobs_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str page_token: + :param int page_size: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. + :param str resource_reference_key_type: The type of the resource that referred to. + :param str resource_reference_key_id: The ID of the resource that referred to. + :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :return: ApiListJobsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['page_token', 'page_size', 'sort_by', 'resource_reference_key_type', 'resource_reference_key_id', 'filter'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_jobs" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page_token' in params: + query_params.append(('page_token', params['page_token'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'sort_by' in params: + query_params.append(('sort_by', params['sort_by'])) # noqa: E501 + if 'resource_reference_key_type' in params: + query_params.append(('resource_reference_key.type', params['resource_reference_key_type'])) # noqa: E501 + if 'resource_reference_key_id' in params: + query_params.append(('resource_reference_key.id', params['resource_reference_key_id'])) # noqa: E501 + if 'filter' in params: + query_params.append(('filter', params['filter'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/jobs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiListJobsResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py new file mode 100644 index 00000000000..b3a60f775d8 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py @@ -0,0 +1,1028 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kfp_server_api.api_client import ApiClient + + +class PipelineServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_pipeline(self, body, **kwargs): # noqa: E501 + """Add a pipeline. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_pipeline(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiPipeline body: (required) + :return: ApiPipeline + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_pipeline_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_pipeline_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_pipeline_with_http_info(self, body, **kwargs): # noqa: E501 + """Add a pipeline. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_pipeline_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiPipeline body: (required) + :return: ApiPipeline + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pipeline" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pipeline`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipelines', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiPipeline', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_pipeline_version(self, body, **kwargs): # noqa: E501 + """create_pipeline_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_pipeline_version(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiPipelineVersion body: ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. (required) + :return: ApiPipelineVersion + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_pipeline_version_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_pipeline_version_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_pipeline_version_with_http_info(self, body, **kwargs): # noqa: E501 + """create_pipeline_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_pipeline_version_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiPipelineVersion body: ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. (required) + :return: ApiPipelineVersion + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pipeline_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pipeline_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipeline_versions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiPipelineVersion', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_pipeline(self, id, **kwargs): # noqa: E501 + """Delete a pipeline. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_pipeline(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_pipeline_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.delete_pipeline_with_http_info(id, **kwargs) # noqa: E501 + return data + + def delete_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete a pipeline. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_pipeline_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_pipeline" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `delete_pipeline`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipelines/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_pipeline_version(self, version_id, **kwargs): # noqa: E501 + """delete_pipeline_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_pipeline_version(version_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str version_id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 + return data + + def delete_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E501 + """delete_pipeline_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_pipeline_version_with_http_info(version_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str version_id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['version_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_pipeline_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'version_id' is set + if ('version_id' not in params or + params['version_id'] is None): + raise ValueError("Missing the required parameter `version_id` when calling `delete_pipeline_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'version_id' in params: + path_params['version_id'] = params['version_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipeline_versions/{version_id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_pipeline(self, id, **kwargs): # noqa: E501 + """Find a specific pipeline by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pipeline(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ApiPipeline + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_pipeline_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_pipeline_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 + """Find a specific pipeline by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pipeline_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ApiPipeline + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pipeline" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_pipeline`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipelines/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiPipeline', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_pipeline_version(self, version_id, **kwargs): # noqa: E501 + """get_pipeline_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pipeline_version(version_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str version_id: (required) + :return: ApiPipelineVersion + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 + else: + (data) = self.get_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 + return data + + def get_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E501 + """get_pipeline_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pipeline_version_with_http_info(version_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str version_id: (required) + :return: ApiPipelineVersion + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['version_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pipeline_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'version_id' is set + if ('version_id' not in params or + params['version_id'] is None): + raise ValueError("Missing the required parameter `version_id` when calling `get_pipeline_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'version_id' in params: + path_params['version_id'] = params['version_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipeline_versions/{version_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiPipelineVersion', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_pipeline_version_template(self, version_id, **kwargs): # noqa: E501 + """get_pipeline_version_template # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pipeline_version_template(version_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str version_id: (required) + :return: ApiGetTemplateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_pipeline_version_template_with_http_info(version_id, **kwargs) # noqa: E501 + else: + (data) = self.get_pipeline_version_template_with_http_info(version_id, **kwargs) # noqa: E501 + return data + + def get_pipeline_version_template_with_http_info(self, version_id, **kwargs): # noqa: E501 + """get_pipeline_version_template # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pipeline_version_template_with_http_info(version_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str version_id: (required) + :return: ApiGetTemplateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['version_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pipeline_version_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'version_id' is set + if ('version_id' not in params or + params['version_id'] is None): + raise ValueError("Missing the required parameter `version_id` when calling `get_pipeline_version_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'version_id' in params: + path_params['version_id'] = params['version_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipeline_versions/{version_id}/templates', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiGetTemplateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_template(self, id, **kwargs): # noqa: E501 + """Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_template(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ApiGetTemplateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_template_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_template_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_template_with_http_info(self, id, **kwargs): # noqa: E501 + """Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_template_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: ApiGetTemplateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipelines/{id}/templates', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiGetTemplateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pipeline_versions(self, **kwargs): # noqa: E501 + """list_pipeline_versions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_pipeline_versions(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_key_type: The type of the resource that referred to. + :param str resource_key_id: The ID of the resource that referred to. + :param int page_size: + :param str page_token: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. + :param str filter: A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). + :return: ApiListPipelineVersionsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_pipeline_versions_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_pipeline_versions_with_http_info(**kwargs) # noqa: E501 + return data + + def list_pipeline_versions_with_http_info(self, **kwargs): # noqa: E501 + """list_pipeline_versions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_pipeline_versions_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_key_type: The type of the resource that referred to. + :param str resource_key_id: The ID of the resource that referred to. + :param int page_size: + :param str page_token: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. + :param str filter: A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). + :return: ApiListPipelineVersionsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['resource_key_type', 'resource_key_id', 'page_size', 'page_token', 'sort_by', 'filter'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_pipeline_versions" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'resource_key_type' in params: + query_params.append(('resource_key.type', params['resource_key_type'])) # noqa: E501 + if 'resource_key_id' in params: + query_params.append(('resource_key.id', params['resource_key_id'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'page_token' in params: + query_params.append(('page_token', params['page_token'])) # noqa: E501 + if 'sort_by' in params: + query_params.append(('sort_by', params['sort_by'])) # noqa: E501 + if 'filter' in params: + query_params.append(('filter', params['filter'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipeline_versions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiListPipelineVersionsResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pipelines(self, **kwargs): # noqa: E501 + """Find all pipelines. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_pipelines(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str page_token: + :param int page_size: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. + :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :return: ApiListPipelinesResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_pipelines_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_pipelines_with_http_info(**kwargs) # noqa: E501 + return data + + def list_pipelines_with_http_info(self, **kwargs): # noqa: E501 + """Find all pipelines. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_pipelines_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str page_token: + :param int page_size: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. + :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :return: ApiListPipelinesResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['page_token', 'page_size', 'sort_by', 'filter'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_pipelines" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page_token' in params: + query_params.append(('page_token', params['page_token'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'sort_by' in params: + query_params.append(('sort_by', params['sort_by'])) # noqa: E501 + if 'filter' in params: + query_params.append(('filter', params['filter'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipelines', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiListPipelinesResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py new file mode 100644 index 00000000000..4718d69464d --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kfp_server_api.api_client import ApiClient + + +class PipelineUploadServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def upload_pipeline(self, uploadfile, **kwargs): # noqa: E501 + """upload_pipeline # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_pipeline(uploadfile, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file uploadfile: The pipeline to upload. Maximum size of 32MB is supported. (required) + :param str name: + :param str description: + :return: ApiPipeline + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.upload_pipeline_with_http_info(uploadfile, **kwargs) # noqa: E501 + else: + (data) = self.upload_pipeline_with_http_info(uploadfile, **kwargs) # noqa: E501 + return data + + def upload_pipeline_with_http_info(self, uploadfile, **kwargs): # noqa: E501 + """upload_pipeline # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_pipeline_with_http_info(uploadfile, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file uploadfile: The pipeline to upload. Maximum size of 32MB is supported. (required) + :param str name: + :param str description: + :return: ApiPipeline + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['uploadfile', 'name', 'description'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method upload_pipeline" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'uploadfile' is set + if ('uploadfile' not in params or + params['uploadfile'] is None): + raise ValueError("Missing the required parameter `uploadfile` when calling `upload_pipeline`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'name' in params: + query_params.append(('name', params['name'])) # noqa: E501 + if 'description' in params: + query_params.append(('description', params['description'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + if 'uploadfile' in params: + local_var_files['uploadfile'] = params['uploadfile'] # noqa: E501 + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['multipart/form-data']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipelines/upload', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiPipeline', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def upload_pipeline_version(self, uploadfile, **kwargs): # noqa: E501 + """upload_pipeline_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_pipeline_version(uploadfile, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file uploadfile: The pipeline to upload. Maximum size of 32MB is supported. (required) + :param str name: + :param str pipelineid: + :return: ApiPipelineVersion + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.upload_pipeline_version_with_http_info(uploadfile, **kwargs) # noqa: E501 + else: + (data) = self.upload_pipeline_version_with_http_info(uploadfile, **kwargs) # noqa: E501 + return data + + def upload_pipeline_version_with_http_info(self, uploadfile, **kwargs): # noqa: E501 + """upload_pipeline_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_pipeline_version_with_http_info(uploadfile, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file uploadfile: The pipeline to upload. Maximum size of 32MB is supported. (required) + :param str name: + :param str pipelineid: + :return: ApiPipelineVersion + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['uploadfile', 'name', 'pipelineid'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method upload_pipeline_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'uploadfile' is set + if ('uploadfile' not in params or + params['uploadfile'] is None): + raise ValueError("Missing the required parameter `uploadfile` when calling `upload_pipeline_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'name' in params: + query_params.append(('name', params['name'])) # noqa: E501 + if 'pipelineid' in params: + query_params.append(('pipelineid', params['pipelineid'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + if 'uploadfile' in params: + local_var_files['uploadfile'] = params['uploadfile'] # noqa: E501 + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['multipart/form-data']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/pipelines/upload_version', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiPipelineVersion', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py new file mode 100644 index 00000000000..731848fd3e8 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py @@ -0,0 +1,1044 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kfp_server_api.api_client import ApiClient + + +class RunServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def archive_run(self, id, **kwargs): # noqa: E501 + """Archive a run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.archive_run(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.archive_run_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.archive_run_with_http_info(id, **kwargs) # noqa: E501 + return data + + def archive_run_with_http_info(self, id, **kwargs): # noqa: E501 + """Archive a run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.archive_run_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method archive_run" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `archive_run`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs/{id}:archive', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_run(self, body, **kwargs): # noqa: E501 + """Create a new run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_run(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiRun body: (required) + :return: ApiRunDetail + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_run_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_run_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_run_with_http_info(self, body, **kwargs): # noqa: E501 + """Create a new run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_run_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ApiRun body: (required) + :return: ApiRunDetail + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_run" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_run`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiRunDetail', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_run(self, id, **kwargs): # noqa: E501 + """Delete a run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_run(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_run_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.delete_run_with_http_info(id, **kwargs) # noqa: E501 + return data + + def delete_run_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete a run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_run_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_run" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `delete_run`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_run(self, run_id, **kwargs): # noqa: E501 + """Find a specific run by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_run(run_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: (required) + :return: ApiRunDetail + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_run_with_http_info(run_id, **kwargs) # noqa: E501 + else: + (data) = self.get_run_with_http_info(run_id, **kwargs) # noqa: E501 + return data + + def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501 + """Find a specific run by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_run_with_http_info(run_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: (required) + :return: ApiRunDetail + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['run_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_run" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'run_id' is set + if ('run_id' not in params or + params['run_id'] is None): + raise ValueError("Missing the required parameter `run_id` when calling `get_run`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'run_id' in params: + path_params['run_id'] = params['run_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs/{run_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiRunDetail', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_runs(self, **kwargs): # noqa: E501 + """Find all runs. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_runs(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str page_token: + :param int page_size: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. + :param str resource_reference_key_type: The type of the resource that referred to. + :param str resource_reference_key_id: The ID of the resource that referred to. + :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :return: ApiListRunsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_runs_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_runs_with_http_info(**kwargs) # noqa: E501 + return data + + def list_runs_with_http_info(self, **kwargs): # noqa: E501 + """Find all runs. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_runs_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str page_token: + :param int page_size: + :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. + :param str resource_reference_key_type: The type of the resource that referred to. + :param str resource_reference_key_id: The ID of the resource that referred to. + :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :return: ApiListRunsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['page_token', 'page_size', 'sort_by', 'resource_reference_key_type', 'resource_reference_key_id', 'filter'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_runs" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page_token' in params: + query_params.append(('page_token', params['page_token'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'sort_by' in params: + query_params.append(('sort_by', params['sort_by'])) # noqa: E501 + if 'resource_reference_key_type' in params: + query_params.append(('resource_reference_key.type', params['resource_reference_key_type'])) # noqa: E501 + if 'resource_reference_key_id' in params: + query_params.append(('resource_reference_key.id', params['resource_reference_key_id'])) # noqa: E501 + if 'filter' in params: + query_params.append(('filter', params['filter'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiListRunsResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_artifact(self, run_id, node_id, artifact_name, **kwargs): # noqa: E501 + """Find a run's artifact data. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_artifact(run_id, node_id, artifact_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: The ID of the run. (required) + :param str node_id: The ID of the running node. (required) + :param str artifact_name: The name of the artifact. (required) + :return: ApiReadArtifactResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.read_artifact_with_http_info(run_id, node_id, artifact_name, **kwargs) # noqa: E501 + else: + (data) = self.read_artifact_with_http_info(run_id, node_id, artifact_name, **kwargs) # noqa: E501 + return data + + def read_artifact_with_http_info(self, run_id, node_id, artifact_name, **kwargs): # noqa: E501 + """Find a run's artifact data. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.read_artifact_with_http_info(run_id, node_id, artifact_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: The ID of the run. (required) + :param str node_id: The ID of the running node. (required) + :param str artifact_name: The name of the artifact. (required) + :return: ApiReadArtifactResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['run_id', 'node_id', 'artifact_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method read_artifact" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'run_id' is set + if ('run_id' not in params or + params['run_id'] is None): + raise ValueError("Missing the required parameter `run_id` when calling `read_artifact`") # noqa: E501 + # verify the required parameter 'node_id' is set + if ('node_id' not in params or + params['node_id'] is None): + raise ValueError("Missing the required parameter `node_id` when calling `read_artifact`") # noqa: E501 + # verify the required parameter 'artifact_name' is set + if ('artifact_name' not in params or + params['artifact_name'] is None): + raise ValueError("Missing the required parameter `artifact_name` when calling `read_artifact`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'run_id' in params: + path_params['run_id'] = params['run_id'] # noqa: E501 + if 'node_id' in params: + path_params['node_id'] = params['node_id'] # noqa: E501 + if 'artifact_name' in params: + path_params['artifact_name'] = params['artifact_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs/{run_id}/nodes/{node_id}/artifacts/{artifact_name}:read', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiReadArtifactResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def report_run_metrics(self, run_id, body, **kwargs): # noqa: E501 + """ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.report_run_metrics(run_id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: Required. The parent run ID of the metric. (required) + :param ApiReportRunMetricsRequest body: (required) + :return: ApiReportRunMetricsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.report_run_metrics_with_http_info(run_id, body, **kwargs) # noqa: E501 + else: + (data) = self.report_run_metrics_with_http_info(run_id, body, **kwargs) # noqa: E501 + return data + + def report_run_metrics_with_http_info(self, run_id, body, **kwargs): # noqa: E501 + """ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.report_run_metrics_with_http_info(run_id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: Required. The parent run ID of the metric. (required) + :param ApiReportRunMetricsRequest body: (required) + :return: ApiReportRunMetricsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['run_id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method report_run_metrics" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'run_id' is set + if ('run_id' not in params or + params['run_id'] is None): + raise ValueError("Missing the required parameter `run_id` when calling `report_run_metrics`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `report_run_metrics`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'run_id' in params: + path_params['run_id'] = params['run_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs/{run_id}:reportMetrics', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ApiReportRunMetricsResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def retry_run(self, run_id, **kwargs): # noqa: E501 + """Re-initiate a failed or terminated run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.retry_run(run_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.retry_run_with_http_info(run_id, **kwargs) # noqa: E501 + else: + (data) = self.retry_run_with_http_info(run_id, **kwargs) # noqa: E501 + return data + + def retry_run_with_http_info(self, run_id, **kwargs): # noqa: E501 + """Re-initiate a failed or terminated run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.retry_run_with_http_info(run_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['run_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method retry_run" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'run_id' is set + if ('run_id' not in params or + params['run_id'] is None): + raise ValueError("Missing the required parameter `run_id` when calling `retry_run`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'run_id' in params: + path_params['run_id'] = params['run_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs/{run_id}/retry', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def terminate_run(self, run_id, **kwargs): # noqa: E501 + """Terminate an active run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.terminate_run(run_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.terminate_run_with_http_info(run_id, **kwargs) # noqa: E501 + else: + (data) = self.terminate_run_with_http_info(run_id, **kwargs) # noqa: E501 + return data + + def terminate_run_with_http_info(self, run_id, **kwargs): # noqa: E501 + """Terminate an active run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.terminate_run_with_http_info(run_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str run_id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['run_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method terminate_run" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'run_id' is set + if ('run_id' not in params or + params['run_id'] is None): + raise ValueError("Missing the required parameter `run_id` when calling `terminate_run`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'run_id' in params: + path_params['run_id'] = params['run_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs/{run_id}/terminate', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def unarchive_run(self, id, **kwargs): # noqa: E501 + """Restore an archived run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.unarchive_run(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.unarchive_run_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.unarchive_run_with_http_info(id, **kwargs) # noqa: E501 + return data + + def unarchive_run_with_http_info(self, id, **kwargs): # noqa: E501 + """Restore an archived run. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.unarchive_run_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method unarchive_run" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `unarchive_run`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/runs/{id}:unarchive', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py new file mode 100644 index 00000000000..a55241091f1 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py @@ -0,0 +1,638 @@ +# coding: utf-8 +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import datetime +import json +import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re +import tempfile + +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import quote + +from kfp_server_api.configuration import Configuration +import kfp_server_api.models +from kfp_server_api import rest + + +class ApiClient(object): + """Generic API client for Swagger client library builds. + + Swagger generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the Swagger + templates. + + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, # noqa: F821 + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + + # Use the pool property to lazily initialize the ThreadPool. + self._pool = None + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'Swagger-Codegen/1.0.0-dev.1/python' + + def __del__(self): + if self._pool is not None: + self._pool.close() + self._pool.join() + + @property + def pool(self): + if self._pool is None: + self._pool = ThreadPool() + return self._pool + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.configuration.host + resource_path + + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is swagger model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `swagger_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in six.iteritems(obj.swagger_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in six.iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in six.iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(kfp_server_api.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, async_req=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout) + else: + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, _request_timeout)) + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def prepare_post_parameters(self, post_params=None, files=None): + """Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if post_params: + params = post_params + + if files: + for k, v in six.iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return six.text_type(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return a original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datatime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __hasattr(self, object, name): + return name in object.__class__.__dict__ + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + if (not klass.swagger_types and + not self.__hasattr(klass, 'get_real_child_model')): + return data + + kwargs = {} + if klass.swagger_types is not None: + for attr, attr_type in six.iteritems(klass.swagger_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if (isinstance(instance, dict) and + klass.swagger_types is not None and + isinstance(data, dict)): + for key, value in data.items(): + if key not in klass.swagger_types: + instance[key] = value + if self.__hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) + return instance diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py new file mode 100644 index 00000000000..9ef0c536676 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +import six +from six.moves import http_client as httplib + + +class Configuration(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + """ + + _default = None + + def __init__(self): + """Constructor""" + if self._default: + for key in self._default.__dict__.keys(): + self.__dict__[key] = copy.copy(self._default.__dict__[key]) + return + + # Default Base url + self.host = "http://localhost" + # Temp file folder for downloading files + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + + # Logging Settings + self.logger = {} + self.logger["package_logger"] = logging.getLogger("kfp_server_api") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + # Log format + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + # Log stream handler + self.logger_stream_handler = None + # Log file handler + self.logger_file_handler = None + # Debug file location + self.logger_file = None + # Debug switch + self.debug = False + + # SSL/TLS verification + # Set this to false to skip verifying SSL certificate when calling API + # from https server. + self.verify_ssl = True + # Set this to customize the certificate file to verify the peer. + self.ssl_ca_cert = None + # client certificate file + self.cert_file = None + # client key file + self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + + # Proxy URL + self.proxy = None + # Safe chars for path_param + self.safe_chars_for_path_param = '' + + @classmethod + def set_default(cls, default): + cls._default = default + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + if self.logger_stream_handler: + logger.removeHandler(self.logger_stream_handler) + else: + # If not set logging file, + # then add stream handler and remove file handler. + self.logger_stream_handler = logging.StreamHandler() + self.logger_stream_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_stream_handler) + if self.logger_file_handler: + logger.removeHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if (self.api_key.get(identifier) and + self.api_key_prefix.get(identifier)): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 + elif self.api_key.get(identifier): + return self.api_key[identifier] + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + 'Bearer': + { + 'type': 'api_key', + 'in': 'header', + 'key': 'authorization', + 'value': self.get_api_key_with_prefix('authorization') + }, + + } + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 1.0.0-dev.1\n"\ + "SDK Package Version: 1.0.0-dev.1".\ + format(env=sys.platform, pyversion=sys.version) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py new file mode 100644 index 00000000000..8a1e9aeefb9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +# flake8: noqa +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import models into model package +from kfp_server_api.models.api_cron_schedule import ApiCronSchedule +from kfp_server_api.models.api_experiment import ApiExperiment +from kfp_server_api.models.api_get_template_response import ApiGetTemplateResponse +from kfp_server_api.models.api_job import ApiJob +from kfp_server_api.models.api_list_experiments_response import ApiListExperimentsResponse +from kfp_server_api.models.api_list_jobs_response import ApiListJobsResponse +from kfp_server_api.models.api_list_pipeline_versions_response import ApiListPipelineVersionsResponse +from kfp_server_api.models.api_list_pipelines_response import ApiListPipelinesResponse +from kfp_server_api.models.api_list_runs_response import ApiListRunsResponse +from kfp_server_api.models.api_parameter import ApiParameter +from kfp_server_api.models.api_periodic_schedule import ApiPeriodicSchedule +from kfp_server_api.models.api_pipeline import ApiPipeline +from kfp_server_api.models.api_pipeline_runtime import ApiPipelineRuntime +from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec +from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion +from kfp_server_api.models.api_read_artifact_response import ApiReadArtifactResponse +from kfp_server_api.models.api_relationship import ApiRelationship +from kfp_server_api.models.api_report_run_metrics_request import ApiReportRunMetricsRequest +from kfp_server_api.models.api_report_run_metrics_response import ApiReportRunMetricsResponse +from kfp_server_api.models.api_resource_key import ApiResourceKey +from kfp_server_api.models.api_resource_reference import ApiResourceReference +from kfp_server_api.models.api_resource_type import ApiResourceType +from kfp_server_api.models.api_run import ApiRun +from kfp_server_api.models.api_run_detail import ApiRunDetail +from kfp_server_api.models.api_run_metric import ApiRunMetric +from kfp_server_api.models.api_status import ApiStatus +from kfp_server_api.models.api_trigger import ApiTrigger +from kfp_server_api.models.api_url import ApiUrl +from kfp_server_api.models.experiment_storage_state import ExperimentStorageState +from kfp_server_api.models.job_mode import JobMode +from kfp_server_api.models.protobuf_any import ProtobufAny +from kfp_server_api.models.report_run_metrics_response_report_run_metric_result import ReportRunMetricsResponseReportRunMetricResult +from kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status import ReportRunMetricsResponseReportRunMetricResultStatus +from kfp_server_api.models.run_metric_format import RunMetricFormat +from kfp_server_api.models.run_storage_state import RunStorageState diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py new file mode 100644 index 00000000000..2308eacdd36 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiCronSchedule(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'start_time': 'datetime', + 'end_time': 'datetime', + 'cron': 'str' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'cron': 'cron' + } + + def __init__(self, start_time=None, end_time=None, cron=None): # noqa: E501 + """ApiCronSchedule - a model defined in Swagger""" # noqa: E501 + + self._start_time = None + self._end_time = None + self._cron = None + self.discriminator = None + + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if cron is not None: + self.cron = cron + + @property + def start_time(self): + """Gets the start_time of this ApiCronSchedule. # noqa: E501 + + + :return: The start_time of this ApiCronSchedule. # noqa: E501 + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ApiCronSchedule. + + + :param start_time: The start_time of this ApiCronSchedule. # noqa: E501 + :type: datetime + """ + + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ApiCronSchedule. # noqa: E501 + + + :return: The end_time of this ApiCronSchedule. # noqa: E501 + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ApiCronSchedule. + + + :param end_time: The end_time of this ApiCronSchedule. # noqa: E501 + :type: datetime + """ + + self._end_time = end_time + + @property + def cron(self): + """Gets the cron of this ApiCronSchedule. # noqa: E501 + + + :return: The cron of this ApiCronSchedule. # noqa: E501 + :rtype: str + """ + return self._cron + + @cron.setter + def cron(self, cron): + """Sets the cron of this ApiCronSchedule. + + + :param cron: The cron of this ApiCronSchedule. # noqa: E501 + :type: str + """ + + self._cron = cron + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiCronSchedule, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiCronSchedule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py new file mode 100644 index 00000000000..d143cf42874 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: F401,E501 +from kfp_server_api.models.experiment_storage_state import ExperimentStorageState # noqa: F401,E501 + + +class ApiExperiment(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'created_at': 'datetime', + 'resource_references': 'list[ApiResourceReference]', + 'storage_state': 'ExperimentStorageState' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'created_at': 'created_at', + 'resource_references': 'resource_references', + 'storage_state': 'storage_state' + } + + def __init__(self, id=None, name=None, description=None, created_at=None, resource_references=None, storage_state=None): # noqa: E501 + """ApiExperiment - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._description = None + self._created_at = None + self._resource_references = None + self._storage_state = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if created_at is not None: + self.created_at = created_at + if resource_references is not None: + self.resource_references = resource_references + if storage_state is not None: + self.storage_state = storage_state + + @property + def id(self): + """Gets the id of this ApiExperiment. # noqa: E501 + + Output. Unique experiment ID. Generated by API server. # noqa: E501 + + :return: The id of this ApiExperiment. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApiExperiment. + + Output. Unique experiment ID. Generated by API server. # noqa: E501 + + :param id: The id of this ApiExperiment. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this ApiExperiment. # noqa: E501 + + Required input field. Unique experiment name provided by user. # noqa: E501 + + :return: The name of this ApiExperiment. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApiExperiment. + + Required input field. Unique experiment name provided by user. # noqa: E501 + + :param name: The name of this ApiExperiment. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def description(self): + """Gets the description of this ApiExperiment. # noqa: E501 + + + :return: The description of this ApiExperiment. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ApiExperiment. + + + :param description: The description of this ApiExperiment. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def created_at(self): + """Gets the created_at of this ApiExperiment. # noqa: E501 + + Output. The time that the experiment created. # noqa: E501 + + :return: The created_at of this ApiExperiment. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ApiExperiment. + + Output. The time that the experiment created. # noqa: E501 + + :param created_at: The created_at of this ApiExperiment. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def resource_references(self): + """Gets the resource_references of this ApiExperiment. # noqa: E501 + + Optional input field. Specify which resource this run belongs to. For Experiment, the only valid resource reference is a single Namespace. # noqa: E501 + + :return: The resource_references of this ApiExperiment. # noqa: E501 + :rtype: list[ApiResourceReference] + """ + return self._resource_references + + @resource_references.setter + def resource_references(self, resource_references): + """Sets the resource_references of this ApiExperiment. + + Optional input field. Specify which resource this run belongs to. For Experiment, the only valid resource reference is a single Namespace. # noqa: E501 + + :param resource_references: The resource_references of this ApiExperiment. # noqa: E501 + :type: list[ApiResourceReference] + """ + + self._resource_references = resource_references + + @property + def storage_state(self): + """Gets the storage_state of this ApiExperiment. # noqa: E501 + + + :return: The storage_state of this ApiExperiment. # noqa: E501 + :rtype: ExperimentStorageState + """ + return self._storage_state + + @storage_state.setter + def storage_state(self, storage_state): + """Sets the storage_state of this ApiExperiment. + + + :param storage_state: The storage_state of this ApiExperiment. # noqa: E501 + :type: ExperimentStorageState + """ + + self._storage_state = storage_state + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiExperiment, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiExperiment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py new file mode 100644 index 00000000000..20a662b59c3 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiGetTemplateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template': 'str' + } + + attribute_map = { + 'template': 'template' + } + + def __init__(self, template=None): # noqa: E501 + """ApiGetTemplateResponse - a model defined in Swagger""" # noqa: E501 + + self._template = None + self.discriminator = None + + if template is not None: + self.template = template + + @property + def template(self): + """Gets the template of this ApiGetTemplateResponse. # noqa: E501 + + + :return: The template of this ApiGetTemplateResponse. # noqa: E501 + :rtype: str + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this ApiGetTemplateResponse. + + + :param template: The template of this ApiGetTemplateResponse. # noqa: E501 + :type: str + """ + + self._template = template + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiGetTemplateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiGetTemplateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py new file mode 100644 index 00000000000..f7c8a2f5dd9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py @@ -0,0 +1,506 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec # noqa: F401,E501 +from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: F401,E501 +from kfp_server_api.models.api_trigger import ApiTrigger # noqa: F401,E501 +from kfp_server_api.models.job_mode import JobMode # noqa: F401,E501 + + +class ApiJob(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'pipeline_spec': 'ApiPipelineSpec', + 'resource_references': 'list[ApiResourceReference]', + 'service_account': 'str', + 'max_concurrency': 'str', + 'trigger': 'ApiTrigger', + 'mode': 'JobMode', + 'created_at': 'datetime', + 'updated_at': 'datetime', + 'status': 'str', + 'error': 'str', + 'enabled': 'bool', + 'no_catchup': 'bool' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'pipeline_spec': 'pipeline_spec', + 'resource_references': 'resource_references', + 'service_account': 'service_account', + 'max_concurrency': 'max_concurrency', + 'trigger': 'trigger', + 'mode': 'mode', + 'created_at': 'created_at', + 'updated_at': 'updated_at', + 'status': 'status', + 'error': 'error', + 'enabled': 'enabled', + 'no_catchup': 'no_catchup' + } + + def __init__(self, id=None, name=None, description=None, pipeline_spec=None, resource_references=None, service_account=None, max_concurrency=None, trigger=None, mode=None, created_at=None, updated_at=None, status=None, error=None, enabled=None, no_catchup=None): # noqa: E501 + """ApiJob - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._description = None + self._pipeline_spec = None + self._resource_references = None + self._service_account = None + self._max_concurrency = None + self._trigger = None + self._mode = None + self._created_at = None + self._updated_at = None + self._status = None + self._error = None + self._enabled = None + self._no_catchup = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if pipeline_spec is not None: + self.pipeline_spec = pipeline_spec + if resource_references is not None: + self.resource_references = resource_references + if service_account is not None: + self.service_account = service_account + if max_concurrency is not None: + self.max_concurrency = max_concurrency + if trigger is not None: + self.trigger = trigger + if mode is not None: + self.mode = mode + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + if status is not None: + self.status = status + if error is not None: + self.error = error + if enabled is not None: + self.enabled = enabled + if no_catchup is not None: + self.no_catchup = no_catchup + + @property + def id(self): + """Gets the id of this ApiJob. # noqa: E501 + + Output. Unique run ID. Generated by API server. # noqa: E501 + + :return: The id of this ApiJob. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApiJob. + + Output. Unique run ID. Generated by API server. # noqa: E501 + + :param id: The id of this ApiJob. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this ApiJob. # noqa: E501 + + Required input field. Job name provided by user. Not unique. # noqa: E501 + + :return: The name of this ApiJob. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApiJob. + + Required input field. Job name provided by user. Not unique. # noqa: E501 + + :param name: The name of this ApiJob. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def description(self): + """Gets the description of this ApiJob. # noqa: E501 + + + :return: The description of this ApiJob. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ApiJob. + + + :param description: The description of this ApiJob. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def pipeline_spec(self): + """Gets the pipeline_spec of this ApiJob. # noqa: E501 + + Required input field. Describing what the pipeline manifest and parameters to use for the scheduled job. # noqa: E501 + + :return: The pipeline_spec of this ApiJob. # noqa: E501 + :rtype: ApiPipelineSpec + """ + return self._pipeline_spec + + @pipeline_spec.setter + def pipeline_spec(self, pipeline_spec): + """Sets the pipeline_spec of this ApiJob. + + Required input field. Describing what the pipeline manifest and parameters to use for the scheduled job. # noqa: E501 + + :param pipeline_spec: The pipeline_spec of this ApiJob. # noqa: E501 + :type: ApiPipelineSpec + """ + + self._pipeline_spec = pipeline_spec + + @property + def resource_references(self): + """Gets the resource_references of this ApiJob. # noqa: E501 + + Optional input field. Specify which resource this job belongs to. # noqa: E501 + + :return: The resource_references of this ApiJob. # noqa: E501 + :rtype: list[ApiResourceReference] + """ + return self._resource_references + + @resource_references.setter + def resource_references(self, resource_references): + """Sets the resource_references of this ApiJob. + + Optional input field. Specify which resource this job belongs to. # noqa: E501 + + :param resource_references: The resource_references of this ApiJob. # noqa: E501 + :type: list[ApiResourceReference] + """ + + self._resource_references = resource_references + + @property + def service_account(self): + """Gets the service_account of this ApiJob. # noqa: E501 + + Optional input field. Specify which Kubernetes service account this job uses. # noqa: E501 + + :return: The service_account of this ApiJob. # noqa: E501 + :rtype: str + """ + return self._service_account + + @service_account.setter + def service_account(self, service_account): + """Sets the service_account of this ApiJob. + + Optional input field. Specify which Kubernetes service account this job uses. # noqa: E501 + + :param service_account: The service_account of this ApiJob. # noqa: E501 + :type: str + """ + + self._service_account = service_account + + @property + def max_concurrency(self): + """Gets the max_concurrency of this ApiJob. # noqa: E501 + + + :return: The max_concurrency of this ApiJob. # noqa: E501 + :rtype: str + """ + return self._max_concurrency + + @max_concurrency.setter + def max_concurrency(self, max_concurrency): + """Sets the max_concurrency of this ApiJob. + + + :param max_concurrency: The max_concurrency of this ApiJob. # noqa: E501 + :type: str + """ + + self._max_concurrency = max_concurrency + + @property + def trigger(self): + """Gets the trigger of this ApiJob. # noqa: E501 + + Required input field. Specify how a run is triggered. Support cron mode or periodic mode. # noqa: E501 + + :return: The trigger of this ApiJob. # noqa: E501 + :rtype: ApiTrigger + """ + return self._trigger + + @trigger.setter + def trigger(self, trigger): + """Sets the trigger of this ApiJob. + + Required input field. Specify how a run is triggered. Support cron mode or periodic mode. # noqa: E501 + + :param trigger: The trigger of this ApiJob. # noqa: E501 + :type: ApiTrigger + """ + + self._trigger = trigger + + @property + def mode(self): + """Gets the mode of this ApiJob. # noqa: E501 + + + :return: The mode of this ApiJob. # noqa: E501 + :rtype: JobMode + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this ApiJob. + + + :param mode: The mode of this ApiJob. # noqa: E501 + :type: JobMode + """ + + self._mode = mode + + @property + def created_at(self): + """Gets the created_at of this ApiJob. # noqa: E501 + + Output. The time this job is created. # noqa: E501 + + :return: The created_at of this ApiJob. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ApiJob. + + Output. The time this job is created. # noqa: E501 + + :param created_at: The created_at of this ApiJob. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this ApiJob. # noqa: E501 + + Output. The last time this job is updated. # noqa: E501 + + :return: The updated_at of this ApiJob. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this ApiJob. + + Output. The last time this job is updated. # noqa: E501 + + :param updated_at: The updated_at of this ApiJob. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + @property + def status(self): + """Gets the status of this ApiJob. # noqa: E501 + + + :return: The status of this ApiJob. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ApiJob. + + + :param status: The status of this ApiJob. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def error(self): + """Gets the error of this ApiJob. # noqa: E501 + + In case any error happens retrieving a job field, only job ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. # noqa: E501 + + :return: The error of this ApiJob. # noqa: E501 + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this ApiJob. + + In case any error happens retrieving a job field, only job ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. # noqa: E501 + + :param error: The error of this ApiJob. # noqa: E501 + :type: str + """ + + self._error = error + + @property + def enabled(self): + """Gets the enabled of this ApiJob. # noqa: E501 + + Input. Whether the job is enabled or not. # noqa: E501 + + :return: The enabled of this ApiJob. # noqa: E501 + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this ApiJob. + + Input. Whether the job is enabled or not. # noqa: E501 + + :param enabled: The enabled of this ApiJob. # noqa: E501 + :type: bool + """ + + self._enabled = enabled + + @property + def no_catchup(self): + """Gets the no_catchup of this ApiJob. # noqa: E501 + + Optional input field. Whether the job should catch up if behind schedule. If true, the job will only schedule the latest interval if behind schedule. If false, the job will catch up on each past interval. # noqa: E501 + + :return: The no_catchup of this ApiJob. # noqa: E501 + :rtype: bool + """ + return self._no_catchup + + @no_catchup.setter + def no_catchup(self, no_catchup): + """Sets the no_catchup of this ApiJob. + + Optional input field. Whether the job should catch up if behind schedule. If true, the job will only schedule the latest interval if behind schedule. If false, the job will catch up on each past interval. # noqa: E501 + + :param no_catchup: The no_catchup of this ApiJob. # noqa: E501 + :type: bool + """ + + self._no_catchup = no_catchup + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiJob, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiJob): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py new file mode 100644 index 00000000000..26e7e0cfc15 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_experiment import ApiExperiment # noqa: F401,E501 + + +class ApiListExperimentsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'experiments': 'list[ApiExperiment]', + 'total_size': 'int', + 'next_page_token': 'str' + } + + attribute_map = { + 'experiments': 'experiments', + 'total_size': 'total_size', + 'next_page_token': 'next_page_token' + } + + def __init__(self, experiments=None, total_size=None, next_page_token=None): # noqa: E501 + """ApiListExperimentsResponse - a model defined in Swagger""" # noqa: E501 + + self._experiments = None + self._total_size = None + self._next_page_token = None + self.discriminator = None + + if experiments is not None: + self.experiments = experiments + if total_size is not None: + self.total_size = total_size + if next_page_token is not None: + self.next_page_token = next_page_token + + @property + def experiments(self): + """Gets the experiments of this ApiListExperimentsResponse. # noqa: E501 + + A list of experiments returned. # noqa: E501 + + :return: The experiments of this ApiListExperimentsResponse. # noqa: E501 + :rtype: list[ApiExperiment] + """ + return self._experiments + + @experiments.setter + def experiments(self, experiments): + """Sets the experiments of this ApiListExperimentsResponse. + + A list of experiments returned. # noqa: E501 + + :param experiments: The experiments of this ApiListExperimentsResponse. # noqa: E501 + :type: list[ApiExperiment] + """ + + self._experiments = experiments + + @property + def total_size(self): + """Gets the total_size of this ApiListExperimentsResponse. # noqa: E501 + + The total number of experiments for the given query. # noqa: E501 + + :return: The total_size of this ApiListExperimentsResponse. # noqa: E501 + :rtype: int + """ + return self._total_size + + @total_size.setter + def total_size(self, total_size): + """Sets the total_size of this ApiListExperimentsResponse. + + The total number of experiments for the given query. # noqa: E501 + + :param total_size: The total_size of this ApiListExperimentsResponse. # noqa: E501 + :type: int + """ + + self._total_size = total_size + + @property + def next_page_token(self): + """Gets the next_page_token of this ApiListExperimentsResponse. # noqa: E501 + + The token to list the next page of experiments. # noqa: E501 + + :return: The next_page_token of this ApiListExperimentsResponse. # noqa: E501 + :rtype: str + """ + return self._next_page_token + + @next_page_token.setter + def next_page_token(self, next_page_token): + """Sets the next_page_token of this ApiListExperimentsResponse. + + The token to list the next page of experiments. # noqa: E501 + + :param next_page_token: The next_page_token of this ApiListExperimentsResponse. # noqa: E501 + :type: str + """ + + self._next_page_token = next_page_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiListExperimentsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiListExperimentsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py new file mode 100644 index 00000000000..66ed6bea4b5 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_job import ApiJob # noqa: F401,E501 + + +class ApiListJobsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'jobs': 'list[ApiJob]', + 'total_size': 'int', + 'next_page_token': 'str' + } + + attribute_map = { + 'jobs': 'jobs', + 'total_size': 'total_size', + 'next_page_token': 'next_page_token' + } + + def __init__(self, jobs=None, total_size=None, next_page_token=None): # noqa: E501 + """ApiListJobsResponse - a model defined in Swagger""" # noqa: E501 + + self._jobs = None + self._total_size = None + self._next_page_token = None + self.discriminator = None + + if jobs is not None: + self.jobs = jobs + if total_size is not None: + self.total_size = total_size + if next_page_token is not None: + self.next_page_token = next_page_token + + @property + def jobs(self): + """Gets the jobs of this ApiListJobsResponse. # noqa: E501 + + A list of jobs returned. # noqa: E501 + + :return: The jobs of this ApiListJobsResponse. # noqa: E501 + :rtype: list[ApiJob] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """Sets the jobs of this ApiListJobsResponse. + + A list of jobs returned. # noqa: E501 + + :param jobs: The jobs of this ApiListJobsResponse. # noqa: E501 + :type: list[ApiJob] + """ + + self._jobs = jobs + + @property + def total_size(self): + """Gets the total_size of this ApiListJobsResponse. # noqa: E501 + + + :return: The total_size of this ApiListJobsResponse. # noqa: E501 + :rtype: int + """ + return self._total_size + + @total_size.setter + def total_size(self, total_size): + """Sets the total_size of this ApiListJobsResponse. + + + :param total_size: The total_size of this ApiListJobsResponse. # noqa: E501 + :type: int + """ + + self._total_size = total_size + + @property + def next_page_token(self): + """Gets the next_page_token of this ApiListJobsResponse. # noqa: E501 + + + :return: The next_page_token of this ApiListJobsResponse. # noqa: E501 + :rtype: str + """ + return self._next_page_token + + @next_page_token.setter + def next_page_token(self, next_page_token): + """Sets the next_page_token of this ApiListJobsResponse. + + + :param next_page_token: The next_page_token of this ApiListJobsResponse. # noqa: E501 + :type: str + """ + + self._next_page_token = next_page_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiListJobsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiListJobsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py new file mode 100644 index 00000000000..e8adfa518c4 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion # noqa: F401,E501 + + +class ApiListPipelineVersionsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'versions': 'list[ApiPipelineVersion]', + 'next_page_token': 'str', + 'total_size': 'int' + } + + attribute_map = { + 'versions': 'versions', + 'next_page_token': 'next_page_token', + 'total_size': 'total_size' + } + + def __init__(self, versions=None, next_page_token=None, total_size=None): # noqa: E501 + """ApiListPipelineVersionsResponse - a model defined in Swagger""" # noqa: E501 + + self._versions = None + self._next_page_token = None + self._total_size = None + self.discriminator = None + + if versions is not None: + self.versions = versions + if next_page_token is not None: + self.next_page_token = next_page_token + if total_size is not None: + self.total_size = total_size + + @property + def versions(self): + """Gets the versions of this ApiListPipelineVersionsResponse. # noqa: E501 + + + :return: The versions of this ApiListPipelineVersionsResponse. # noqa: E501 + :rtype: list[ApiPipelineVersion] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """Sets the versions of this ApiListPipelineVersionsResponse. + + + :param versions: The versions of this ApiListPipelineVersionsResponse. # noqa: E501 + :type: list[ApiPipelineVersion] + """ + + self._versions = versions + + @property + def next_page_token(self): + """Gets the next_page_token of this ApiListPipelineVersionsResponse. # noqa: E501 + + + :return: The next_page_token of this ApiListPipelineVersionsResponse. # noqa: E501 + :rtype: str + """ + return self._next_page_token + + @next_page_token.setter + def next_page_token(self, next_page_token): + """Sets the next_page_token of this ApiListPipelineVersionsResponse. + + + :param next_page_token: The next_page_token of this ApiListPipelineVersionsResponse. # noqa: E501 + :type: str + """ + + self._next_page_token = next_page_token + + @property + def total_size(self): + """Gets the total_size of this ApiListPipelineVersionsResponse. # noqa: E501 + + + :return: The total_size of this ApiListPipelineVersionsResponse. # noqa: E501 + :rtype: int + """ + return self._total_size + + @total_size.setter + def total_size(self, total_size): + """Sets the total_size of this ApiListPipelineVersionsResponse. + + + :param total_size: The total_size of this ApiListPipelineVersionsResponse. # noqa: E501 + :type: int + """ + + self._total_size = total_size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiListPipelineVersionsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiListPipelineVersionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py new file mode 100644 index 00000000000..70967d59337 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_pipeline import ApiPipeline # noqa: F401,E501 + + +class ApiListPipelinesResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'pipelines': 'list[ApiPipeline]', + 'total_size': 'int', + 'next_page_token': 'str' + } + + attribute_map = { + 'pipelines': 'pipelines', + 'total_size': 'total_size', + 'next_page_token': 'next_page_token' + } + + def __init__(self, pipelines=None, total_size=None, next_page_token=None): # noqa: E501 + """ApiListPipelinesResponse - a model defined in Swagger""" # noqa: E501 + + self._pipelines = None + self._total_size = None + self._next_page_token = None + self.discriminator = None + + if pipelines is not None: + self.pipelines = pipelines + if total_size is not None: + self.total_size = total_size + if next_page_token is not None: + self.next_page_token = next_page_token + + @property + def pipelines(self): + """Gets the pipelines of this ApiListPipelinesResponse. # noqa: E501 + + + :return: The pipelines of this ApiListPipelinesResponse. # noqa: E501 + :rtype: list[ApiPipeline] + """ + return self._pipelines + + @pipelines.setter + def pipelines(self, pipelines): + """Sets the pipelines of this ApiListPipelinesResponse. + + + :param pipelines: The pipelines of this ApiListPipelinesResponse. # noqa: E501 + :type: list[ApiPipeline] + """ + + self._pipelines = pipelines + + @property + def total_size(self): + """Gets the total_size of this ApiListPipelinesResponse. # noqa: E501 + + + :return: The total_size of this ApiListPipelinesResponse. # noqa: E501 + :rtype: int + """ + return self._total_size + + @total_size.setter + def total_size(self, total_size): + """Sets the total_size of this ApiListPipelinesResponse. + + + :param total_size: The total_size of this ApiListPipelinesResponse. # noqa: E501 + :type: int + """ + + self._total_size = total_size + + @property + def next_page_token(self): + """Gets the next_page_token of this ApiListPipelinesResponse. # noqa: E501 + + + :return: The next_page_token of this ApiListPipelinesResponse. # noqa: E501 + :rtype: str + """ + return self._next_page_token + + @next_page_token.setter + def next_page_token(self, next_page_token): + """Sets the next_page_token of this ApiListPipelinesResponse. + + + :param next_page_token: The next_page_token of this ApiListPipelinesResponse. # noqa: E501 + :type: str + """ + + self._next_page_token = next_page_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiListPipelinesResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiListPipelinesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py new file mode 100644 index 00000000000..afa60e2f6d3 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_run import ApiRun # noqa: F401,E501 + + +class ApiListRunsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'runs': 'list[ApiRun]', + 'total_size': 'int', + 'next_page_token': 'str' + } + + attribute_map = { + 'runs': 'runs', + 'total_size': 'total_size', + 'next_page_token': 'next_page_token' + } + + def __init__(self, runs=None, total_size=None, next_page_token=None): # noqa: E501 + """ApiListRunsResponse - a model defined in Swagger""" # noqa: E501 + + self._runs = None + self._total_size = None + self._next_page_token = None + self.discriminator = None + + if runs is not None: + self.runs = runs + if total_size is not None: + self.total_size = total_size + if next_page_token is not None: + self.next_page_token = next_page_token + + @property + def runs(self): + """Gets the runs of this ApiListRunsResponse. # noqa: E501 + + + :return: The runs of this ApiListRunsResponse. # noqa: E501 + :rtype: list[ApiRun] + """ + return self._runs + + @runs.setter + def runs(self, runs): + """Sets the runs of this ApiListRunsResponse. + + + :param runs: The runs of this ApiListRunsResponse. # noqa: E501 + :type: list[ApiRun] + """ + + self._runs = runs + + @property + def total_size(self): + """Gets the total_size of this ApiListRunsResponse. # noqa: E501 + + + :return: The total_size of this ApiListRunsResponse. # noqa: E501 + :rtype: int + """ + return self._total_size + + @total_size.setter + def total_size(self, total_size): + """Sets the total_size of this ApiListRunsResponse. + + + :param total_size: The total_size of this ApiListRunsResponse. # noqa: E501 + :type: int + """ + + self._total_size = total_size + + @property + def next_page_token(self): + """Gets the next_page_token of this ApiListRunsResponse. # noqa: E501 + + + :return: The next_page_token of this ApiListRunsResponse. # noqa: E501 + :rtype: str + """ + return self._next_page_token + + @next_page_token.setter + def next_page_token(self, next_page_token): + """Sets the next_page_token of this ApiListRunsResponse. + + + :param next_page_token: The next_page_token of this ApiListRunsResponse. # noqa: E501 + :type: str + """ + + self._next_page_token = next_page_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiListRunsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiListRunsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py new file mode 100644 index 00000000000..359fdd9a1dc --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiParameter(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None): # noqa: E501 + """ApiParameter - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this ApiParameter. # noqa: E501 + + + :return: The name of this ApiParameter. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApiParameter. + + + :param name: The name of this ApiParameter. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def value(self): + """Gets the value of this ApiParameter. # noqa: E501 + + + :return: The value of this ApiParameter. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ApiParameter. + + + :param value: The value of this ApiParameter. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiParameter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiParameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py new file mode 100644 index 00000000000..a07c261b6b7 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiPeriodicSchedule(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'start_time': 'datetime', + 'end_time': 'datetime', + 'interval_second': 'str' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'interval_second': 'interval_second' + } + + def __init__(self, start_time=None, end_time=None, interval_second=None): # noqa: E501 + """ApiPeriodicSchedule - a model defined in Swagger""" # noqa: E501 + + self._start_time = None + self._end_time = None + self._interval_second = None + self.discriminator = None + + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if interval_second is not None: + self.interval_second = interval_second + + @property + def start_time(self): + """Gets the start_time of this ApiPeriodicSchedule. # noqa: E501 + + + :return: The start_time of this ApiPeriodicSchedule. # noqa: E501 + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ApiPeriodicSchedule. + + + :param start_time: The start_time of this ApiPeriodicSchedule. # noqa: E501 + :type: datetime + """ + + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ApiPeriodicSchedule. # noqa: E501 + + + :return: The end_time of this ApiPeriodicSchedule. # noqa: E501 + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ApiPeriodicSchedule. + + + :param end_time: The end_time of this ApiPeriodicSchedule. # noqa: E501 + :type: datetime + """ + + self._end_time = end_time + + @property + def interval_second(self): + """Gets the interval_second of this ApiPeriodicSchedule. # noqa: E501 + + + :return: The interval_second of this ApiPeriodicSchedule. # noqa: E501 + :rtype: str + """ + return self._interval_second + + @interval_second.setter + def interval_second(self, interval_second): + """Sets the interval_second of this ApiPeriodicSchedule. + + + :param interval_second: The interval_second of this ApiPeriodicSchedule. # noqa: E501 + :type: str + """ + + self._interval_second = interval_second + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiPeriodicSchedule, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiPeriodicSchedule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py new file mode 100644 index 00000000000..f122f5e38bd --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py @@ -0,0 +1,315 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_parameter import ApiParameter # noqa: F401,E501 +from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion # noqa: F401,E501 +from kfp_server_api.models.api_url import ApiUrl # noqa: F401,E501 + + +class ApiPipeline(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'created_at': 'datetime', + 'name': 'str', + 'description': 'str', + 'parameters': 'list[ApiParameter]', + 'url': 'ApiUrl', + 'error': 'str', + 'default_version': 'ApiPipelineVersion' + } + + attribute_map = { + 'id': 'id', + 'created_at': 'created_at', + 'name': 'name', + 'description': 'description', + 'parameters': 'parameters', + 'url': 'url', + 'error': 'error', + 'default_version': 'default_version' + } + + def __init__(self, id=None, created_at=None, name=None, description=None, parameters=None, url=None, error=None, default_version=None): # noqa: E501 + """ApiPipeline - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._created_at = None + self._name = None + self._description = None + self._parameters = None + self._url = None + self._error = None + self._default_version = None + self.discriminator = None + + if id is not None: + self.id = id + if created_at is not None: + self.created_at = created_at + if name is not None: + self.name = name + if description is not None: + self.description = description + if parameters is not None: + self.parameters = parameters + if url is not None: + self.url = url + if error is not None: + self.error = error + if default_version is not None: + self.default_version = default_version + + @property + def id(self): + """Gets the id of this ApiPipeline. # noqa: E501 + + Output. Unique pipeline ID. Generated by API server. # noqa: E501 + + :return: The id of this ApiPipeline. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApiPipeline. + + Output. Unique pipeline ID. Generated by API server. # noqa: E501 + + :param id: The id of this ApiPipeline. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def created_at(self): + """Gets the created_at of this ApiPipeline. # noqa: E501 + + Output. The time this pipeline is created. # noqa: E501 + + :return: The created_at of this ApiPipeline. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ApiPipeline. + + Output. The time this pipeline is created. # noqa: E501 + + :param created_at: The created_at of this ApiPipeline. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def name(self): + """Gets the name of this ApiPipeline. # noqa: E501 + + Optional input field. Pipeline name provided by user. If not specified, file name is used as pipeline name. # noqa: E501 + + :return: The name of this ApiPipeline. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApiPipeline. + + Optional input field. Pipeline name provided by user. If not specified, file name is used as pipeline name. # noqa: E501 + + :param name: The name of this ApiPipeline. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def description(self): + """Gets the description of this ApiPipeline. # noqa: E501 + + Optional input field. Describing the purpose of the job. # noqa: E501 + + :return: The description of this ApiPipeline. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ApiPipeline. + + Optional input field. Describing the purpose of the job. # noqa: E501 + + :param description: The description of this ApiPipeline. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def parameters(self): + """Gets the parameters of this ApiPipeline. # noqa: E501 + + Output. The input parameters for this pipeline. TODO(jingzhang36): replace this parameters field with the parameters field inside PipelineVersion when all usage of the former has been changed to use the latter. # noqa: E501 + + :return: The parameters of this ApiPipeline. # noqa: E501 + :rtype: list[ApiParameter] + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this ApiPipeline. + + Output. The input parameters for this pipeline. TODO(jingzhang36): replace this parameters field with the parameters field inside PipelineVersion when all usage of the former has been changed to use the latter. # noqa: E501 + + :param parameters: The parameters of this ApiPipeline. # noqa: E501 + :type: list[ApiParameter] + """ + + self._parameters = parameters + + @property + def url(self): + """Gets the url of this ApiPipeline. # noqa: E501 + + The URL to the source of the pipeline. This is required when creating the pipeine through CreatePipeline API. TODO(jingzhang36): replace this url field with the code_source_urls field inside PipelineVersion when all usage of the former has been changed to use the latter. # noqa: E501 + + :return: The url of this ApiPipeline. # noqa: E501 + :rtype: ApiUrl + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ApiPipeline. + + The URL to the source of the pipeline. This is required when creating the pipeine through CreatePipeline API. TODO(jingzhang36): replace this url field with the code_source_urls field inside PipelineVersion when all usage of the former has been changed to use the latter. # noqa: E501 + + :param url: The url of this ApiPipeline. # noqa: E501 + :type: ApiUrl + """ + + self._url = url + + @property + def error(self): + """Gets the error of this ApiPipeline. # noqa: E501 + + In case any error happens retrieving a pipeline field, only pipeline ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. # noqa: E501 + + :return: The error of this ApiPipeline. # noqa: E501 + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this ApiPipeline. + + In case any error happens retrieving a pipeline field, only pipeline ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. # noqa: E501 + + :param error: The error of this ApiPipeline. # noqa: E501 + :type: str + """ + + self._error = error + + @property + def default_version(self): + """Gets the default_version of this ApiPipeline. # noqa: E501 + + + :return: The default_version of this ApiPipeline. # noqa: E501 + :rtype: ApiPipelineVersion + """ + return self._default_version + + @default_version.setter + def default_version(self, default_version): + """Sets the default_version of this ApiPipeline. + + + :param default_version: The default_version of this ApiPipeline. # noqa: E501 + :type: ApiPipelineVersion + """ + + self._default_version = default_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiPipeline, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiPipeline): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py new file mode 100644 index 00000000000..6a7ecc603a6 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiPipelineRuntime(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'pipeline_manifest': 'str', + 'workflow_manifest': 'str' + } + + attribute_map = { + 'pipeline_manifest': 'pipeline_manifest', + 'workflow_manifest': 'workflow_manifest' + } + + def __init__(self, pipeline_manifest=None, workflow_manifest=None): # noqa: E501 + """ApiPipelineRuntime - a model defined in Swagger""" # noqa: E501 + + self._pipeline_manifest = None + self._workflow_manifest = None + self.discriminator = None + + if pipeline_manifest is not None: + self.pipeline_manifest = pipeline_manifest + if workflow_manifest is not None: + self.workflow_manifest = workflow_manifest + + @property + def pipeline_manifest(self): + """Gets the pipeline_manifest of this ApiPipelineRuntime. # noqa: E501 + + Output. The runtime JSON manifest of the pipeline, including the status of pipeline steps and fields need for UI visualization etc. # noqa: E501 + + :return: The pipeline_manifest of this ApiPipelineRuntime. # noqa: E501 + :rtype: str + """ + return self._pipeline_manifest + + @pipeline_manifest.setter + def pipeline_manifest(self, pipeline_manifest): + """Sets the pipeline_manifest of this ApiPipelineRuntime. + + Output. The runtime JSON manifest of the pipeline, including the status of pipeline steps and fields need for UI visualization etc. # noqa: E501 + + :param pipeline_manifest: The pipeline_manifest of this ApiPipelineRuntime. # noqa: E501 + :type: str + """ + + self._pipeline_manifest = pipeline_manifest + + @property + def workflow_manifest(self): + """Gets the workflow_manifest of this ApiPipelineRuntime. # noqa: E501 + + Output. The runtime JSON manifest of the argo workflow. This is deprecated after pipeline_runtime_manifest is in use. # noqa: E501 + + :return: The workflow_manifest of this ApiPipelineRuntime. # noqa: E501 + :rtype: str + """ + return self._workflow_manifest + + @workflow_manifest.setter + def workflow_manifest(self, workflow_manifest): + """Sets the workflow_manifest of this ApiPipelineRuntime. + + Output. The runtime JSON manifest of the argo workflow. This is deprecated after pipeline_runtime_manifest is in use. # noqa: E501 + + :param workflow_manifest: The workflow_manifest of this ApiPipelineRuntime. # noqa: E501 + :type: str + """ + + self._workflow_manifest = workflow_manifest + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiPipelineRuntime, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiPipelineRuntime): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py new file mode 100644 index 00000000000..1013cf3ccea --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_parameter import ApiParameter # noqa: F401,E501 + + +class ApiPipelineSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'pipeline_id': 'str', + 'pipeline_name': 'str', + 'workflow_manifest': 'str', + 'pipeline_manifest': 'str', + 'parameters': 'list[ApiParameter]' + } + + attribute_map = { + 'pipeline_id': 'pipeline_id', + 'pipeline_name': 'pipeline_name', + 'workflow_manifest': 'workflow_manifest', + 'pipeline_manifest': 'pipeline_manifest', + 'parameters': 'parameters' + } + + def __init__(self, pipeline_id=None, pipeline_name=None, workflow_manifest=None, pipeline_manifest=None, parameters=None): # noqa: E501 + """ApiPipelineSpec - a model defined in Swagger""" # noqa: E501 + + self._pipeline_id = None + self._pipeline_name = None + self._workflow_manifest = None + self._pipeline_manifest = None + self._parameters = None + self.discriminator = None + + if pipeline_id is not None: + self.pipeline_id = pipeline_id + if pipeline_name is not None: + self.pipeline_name = pipeline_name + if workflow_manifest is not None: + self.workflow_manifest = workflow_manifest + if pipeline_manifest is not None: + self.pipeline_manifest = pipeline_manifest + if parameters is not None: + self.parameters = parameters + + @property + def pipeline_id(self): + """Gets the pipeline_id of this ApiPipelineSpec. # noqa: E501 + + Optional input field. The ID of the pipeline user uploaded before. # noqa: E501 + + :return: The pipeline_id of this ApiPipelineSpec. # noqa: E501 + :rtype: str + """ + return self._pipeline_id + + @pipeline_id.setter + def pipeline_id(self, pipeline_id): + """Sets the pipeline_id of this ApiPipelineSpec. + + Optional input field. The ID of the pipeline user uploaded before. # noqa: E501 + + :param pipeline_id: The pipeline_id of this ApiPipelineSpec. # noqa: E501 + :type: str + """ + + self._pipeline_id = pipeline_id + + @property + def pipeline_name(self): + """Gets the pipeline_name of this ApiPipelineSpec. # noqa: E501 + + Optional output field. The name of the pipeline. Not empty if the pipeline id is not empty. # noqa: E501 + + :return: The pipeline_name of this ApiPipelineSpec. # noqa: E501 + :rtype: str + """ + return self._pipeline_name + + @pipeline_name.setter + def pipeline_name(self, pipeline_name): + """Sets the pipeline_name of this ApiPipelineSpec. + + Optional output field. The name of the pipeline. Not empty if the pipeline id is not empty. # noqa: E501 + + :param pipeline_name: The pipeline_name of this ApiPipelineSpec. # noqa: E501 + :type: str + """ + + self._pipeline_name = pipeline_name + + @property + def workflow_manifest(self): + """Gets the workflow_manifest of this ApiPipelineSpec. # noqa: E501 + + Optional input field. The marshalled raw argo JSON workflow. This will be deprecated when pipeline_manifest is in use. # noqa: E501 + + :return: The workflow_manifest of this ApiPipelineSpec. # noqa: E501 + :rtype: str + """ + return self._workflow_manifest + + @workflow_manifest.setter + def workflow_manifest(self, workflow_manifest): + """Sets the workflow_manifest of this ApiPipelineSpec. + + Optional input field. The marshalled raw argo JSON workflow. This will be deprecated when pipeline_manifest is in use. # noqa: E501 + + :param workflow_manifest: The workflow_manifest of this ApiPipelineSpec. # noqa: E501 + :type: str + """ + + self._workflow_manifest = workflow_manifest + + @property + def pipeline_manifest(self): + """Gets the pipeline_manifest of this ApiPipelineSpec. # noqa: E501 + + Optional input field. The raw pipeline JSON spec. # noqa: E501 + + :return: The pipeline_manifest of this ApiPipelineSpec. # noqa: E501 + :rtype: str + """ + return self._pipeline_manifest + + @pipeline_manifest.setter + def pipeline_manifest(self, pipeline_manifest): + """Sets the pipeline_manifest of this ApiPipelineSpec. + + Optional input field. The raw pipeline JSON spec. # noqa: E501 + + :param pipeline_manifest: The pipeline_manifest of this ApiPipelineSpec. # noqa: E501 + :type: str + """ + + self._pipeline_manifest = pipeline_manifest + + @property + def parameters(self): + """Gets the parameters of this ApiPipelineSpec. # noqa: E501 + + The parameter user provide to inject to the pipeline JSON. If a default value of a parameter exist in the JSON, the value user provided here will replace. # noqa: E501 + + :return: The parameters of this ApiPipelineSpec. # noqa: E501 + :rtype: list[ApiParameter] + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this ApiPipelineSpec. + + The parameter user provide to inject to the pipeline JSON. If a default value of a parameter exist in the JSON, the value user provided here will replace. # noqa: E501 + + :param parameters: The parameters of this ApiPipelineSpec. # noqa: E501 + :type: list[ApiParameter] + """ + + self._parameters = parameters + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiPipelineSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiPipelineSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py new file mode 100644 index 00000000000..627b009d81b --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_parameter import ApiParameter # noqa: F401,E501 +from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: F401,E501 +from kfp_server_api.models.api_url import ApiUrl # noqa: F401,E501 + + +class ApiPipelineVersion(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'created_at': 'datetime', + 'parameters': 'list[ApiParameter]', + 'code_source_url': 'str', + 'package_url': 'ApiUrl', + 'resource_references': 'list[ApiResourceReference]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'created_at': 'created_at', + 'parameters': 'parameters', + 'code_source_url': 'code_source_url', + 'package_url': 'package_url', + 'resource_references': 'resource_references' + } + + def __init__(self, id=None, name=None, created_at=None, parameters=None, code_source_url=None, package_url=None, resource_references=None): # noqa: E501 + """ApiPipelineVersion - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._created_at = None + self._parameters = None + self._code_source_url = None + self._package_url = None + self._resource_references = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if created_at is not None: + self.created_at = created_at + if parameters is not None: + self.parameters = parameters + if code_source_url is not None: + self.code_source_url = code_source_url + if package_url is not None: + self.package_url = package_url + if resource_references is not None: + self.resource_references = resource_references + + @property + def id(self): + """Gets the id of this ApiPipelineVersion. # noqa: E501 + + Output. Unique version ID. Generated by API server. # noqa: E501 + + :return: The id of this ApiPipelineVersion. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApiPipelineVersion. + + Output. Unique version ID. Generated by API server. # noqa: E501 + + :param id: The id of this ApiPipelineVersion. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this ApiPipelineVersion. # noqa: E501 + + Optional input field. Version name provided by user. # noqa: E501 + + :return: The name of this ApiPipelineVersion. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApiPipelineVersion. + + Optional input field. Version name provided by user. # noqa: E501 + + :param name: The name of this ApiPipelineVersion. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def created_at(self): + """Gets the created_at of this ApiPipelineVersion. # noqa: E501 + + Output. The time this pipeline version is created. # noqa: E501 + + :return: The created_at of this ApiPipelineVersion. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ApiPipelineVersion. + + Output. The time this pipeline version is created. # noqa: E501 + + :param created_at: The created_at of this ApiPipelineVersion. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def parameters(self): + """Gets the parameters of this ApiPipelineVersion. # noqa: E501 + + Output. The input parameters for this pipeline. # noqa: E501 + + :return: The parameters of this ApiPipelineVersion. # noqa: E501 + :rtype: list[ApiParameter] + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this ApiPipelineVersion. + + Output. The input parameters for this pipeline. # noqa: E501 + + :param parameters: The parameters of this ApiPipelineVersion. # noqa: E501 + :type: list[ApiParameter] + """ + + self._parameters = parameters + + @property + def code_source_url(self): + """Gets the code_source_url of this ApiPipelineVersion. # noqa: E501 + + Input. Optional. Pipeline version code source. # noqa: E501 + + :return: The code_source_url of this ApiPipelineVersion. # noqa: E501 + :rtype: str + """ + return self._code_source_url + + @code_source_url.setter + def code_source_url(self, code_source_url): + """Sets the code_source_url of this ApiPipelineVersion. + + Input. Optional. Pipeline version code source. # noqa: E501 + + :param code_source_url: The code_source_url of this ApiPipelineVersion. # noqa: E501 + :type: str + """ + + self._code_source_url = code_source_url + + @property + def package_url(self): + """Gets the package_url of this ApiPipelineVersion. # noqa: E501 + + Input. Required. Pipeline version package url. Whe calling CreatePipelineVersion API method, need to provide one package file location. # noqa: E501 + + :return: The package_url of this ApiPipelineVersion. # noqa: E501 + :rtype: ApiUrl + """ + return self._package_url + + @package_url.setter + def package_url(self, package_url): + """Sets the package_url of this ApiPipelineVersion. + + Input. Required. Pipeline version package url. Whe calling CreatePipelineVersion API method, need to provide one package file location. # noqa: E501 + + :param package_url: The package_url of this ApiPipelineVersion. # noqa: E501 + :type: ApiUrl + """ + + self._package_url = package_url + + @property + def resource_references(self): + """Gets the resource_references of this ApiPipelineVersion. # noqa: E501 + + Input. Required. E.g., specify which pipeline this pipeline version belongs to. # noqa: E501 + + :return: The resource_references of this ApiPipelineVersion. # noqa: E501 + :rtype: list[ApiResourceReference] + """ + return self._resource_references + + @resource_references.setter + def resource_references(self, resource_references): + """Sets the resource_references of this ApiPipelineVersion. + + Input. Required. E.g., specify which pipeline this pipeline version belongs to. # noqa: E501 + + :param resource_references: The resource_references of this ApiPipelineVersion. # noqa: E501 + :type: list[ApiResourceReference] + """ + + self._resource_references = resource_references + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiPipelineVersion, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiPipelineVersion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py new file mode 100644 index 00000000000..6b8bf905600 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiReadArtifactResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'str' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): # noqa: E501 + """ApiReadArtifactResponse - a model defined in Swagger""" # noqa: E501 + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """Gets the data of this ApiReadArtifactResponse. # noqa: E501 + + The bytes of the artifact content. # noqa: E501 + + :return: The data of this ApiReadArtifactResponse. # noqa: E501 + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ApiReadArtifactResponse. + + The bytes of the artifact content. # noqa: E501 + + :param data: The data of this ApiReadArtifactResponse. # noqa: E501 + :type: str + """ + if data is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', data): # noqa: E501 + raise ValueError(r"Invalid value for `data`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiReadArtifactResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiReadArtifactResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py new file mode 100644 index 00000000000..cee4ff9ebd7 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiRelationship(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN_RELATIONSHIP = "UNKNOWN_RELATIONSHIP" + OWNER = "OWNER" + CREATOR = "CREATOR" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ApiRelationship - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiRelationship, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiRelationship): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py new file mode 100644 index 00000000000..f78425c39f5 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_run_metric import ApiRunMetric # noqa: F401,E501 + + +class ApiReportRunMetricsRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'run_id': 'str', + 'metrics': 'list[ApiRunMetric]' + } + + attribute_map = { + 'run_id': 'run_id', + 'metrics': 'metrics' + } + + def __init__(self, run_id=None, metrics=None): # noqa: E501 + """ApiReportRunMetricsRequest - a model defined in Swagger""" # noqa: E501 + + self._run_id = None + self._metrics = None + self.discriminator = None + + if run_id is not None: + self.run_id = run_id + if metrics is not None: + self.metrics = metrics + + @property + def run_id(self): + """Gets the run_id of this ApiReportRunMetricsRequest. # noqa: E501 + + Required. The parent run ID of the metric. # noqa: E501 + + :return: The run_id of this ApiReportRunMetricsRequest. # noqa: E501 + :rtype: str + """ + return self._run_id + + @run_id.setter + def run_id(self, run_id): + """Sets the run_id of this ApiReportRunMetricsRequest. + + Required. The parent run ID of the metric. # noqa: E501 + + :param run_id: The run_id of this ApiReportRunMetricsRequest. # noqa: E501 + :type: str + """ + + self._run_id = run_id + + @property + def metrics(self): + """Gets the metrics of this ApiReportRunMetricsRequest. # noqa: E501 + + List of metrics to report. # noqa: E501 + + :return: The metrics of this ApiReportRunMetricsRequest. # noqa: E501 + :rtype: list[ApiRunMetric] + """ + return self._metrics + + @metrics.setter + def metrics(self, metrics): + """Sets the metrics of this ApiReportRunMetricsRequest. + + List of metrics to report. # noqa: E501 + + :param metrics: The metrics of this ApiReportRunMetricsRequest. # noqa: E501 + :type: list[ApiRunMetric] + """ + + self._metrics = metrics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiReportRunMetricsRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiReportRunMetricsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py new file mode 100644 index 00000000000..78785e99e69 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.report_run_metrics_response_report_run_metric_result import ReportRunMetricsResponseReportRunMetricResult # noqa: F401,E501 + + +class ApiReportRunMetricsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'results': 'list[ReportRunMetricsResponseReportRunMetricResult]' + } + + attribute_map = { + 'results': 'results' + } + + def __init__(self, results=None): # noqa: E501 + """ApiReportRunMetricsResponse - a model defined in Swagger""" # noqa: E501 + + self._results = None + self.discriminator = None + + if results is not None: + self.results = results + + @property + def results(self): + """Gets the results of this ApiReportRunMetricsResponse. # noqa: E501 + + + :return: The results of this ApiReportRunMetricsResponse. # noqa: E501 + :rtype: list[ReportRunMetricsResponseReportRunMetricResult] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this ApiReportRunMetricsResponse. + + + :param results: The results of this ApiReportRunMetricsResponse. # noqa: E501 + :type: list[ReportRunMetricsResponseReportRunMetricResult] + """ + + self._results = results + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiReportRunMetricsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiReportRunMetricsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py new file mode 100644 index 00000000000..6ac806c3d33 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_resource_type import ApiResourceType # noqa: F401,E501 + + +class ApiResourceKey(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'ApiResourceType', + 'id': 'str' + } + + attribute_map = { + 'type': 'type', + 'id': 'id' + } + + def __init__(self, type=None, id=None): # noqa: E501 + """ApiResourceKey - a model defined in Swagger""" # noqa: E501 + + self._type = None + self._id = None + self.discriminator = None + + if type is not None: + self.type = type + if id is not None: + self.id = id + + @property + def type(self): + """Gets the type of this ApiResourceKey. # noqa: E501 + + The type of the resource that referred to. # noqa: E501 + + :return: The type of this ApiResourceKey. # noqa: E501 + :rtype: ApiResourceType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ApiResourceKey. + + The type of the resource that referred to. # noqa: E501 + + :param type: The type of this ApiResourceKey. # noqa: E501 + :type: ApiResourceType + """ + + self._type = type + + @property + def id(self): + """Gets the id of this ApiResourceKey. # noqa: E501 + + The ID of the resource that referred to. # noqa: E501 + + :return: The id of this ApiResourceKey. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApiResourceKey. + + The ID of the resource that referred to. # noqa: E501 + + :param id: The id of this ApiResourceKey. # noqa: E501 + :type: str + """ + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiResourceKey, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiResourceKey): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py new file mode 100644 index 00000000000..dcf3ec0945d --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_relationship import ApiRelationship # noqa: F401,E501 +from kfp_server_api.models.api_resource_key import ApiResourceKey # noqa: F401,E501 + + +class ApiResourceReference(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key': 'ApiResourceKey', + 'name': 'str', + 'relationship': 'ApiRelationship' + } + + attribute_map = { + 'key': 'key', + 'name': 'name', + 'relationship': 'relationship' + } + + def __init__(self, key=None, name=None, relationship=None): # noqa: E501 + """ApiResourceReference - a model defined in Swagger""" # noqa: E501 + + self._key = None + self._name = None + self._relationship = None + self.discriminator = None + + if key is not None: + self.key = key + if name is not None: + self.name = name + if relationship is not None: + self.relationship = relationship + + @property + def key(self): + """Gets the key of this ApiResourceReference. # noqa: E501 + + + :return: The key of this ApiResourceReference. # noqa: E501 + :rtype: ApiResourceKey + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this ApiResourceReference. + + + :param key: The key of this ApiResourceReference. # noqa: E501 + :type: ApiResourceKey + """ + + self._key = key + + @property + def name(self): + """Gets the name of this ApiResourceReference. # noqa: E501 + + The name of the resource that referred to. # noqa: E501 + + :return: The name of this ApiResourceReference. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApiResourceReference. + + The name of the resource that referred to. # noqa: E501 + + :param name: The name of this ApiResourceReference. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def relationship(self): + """Gets the relationship of this ApiResourceReference. # noqa: E501 + + Required field. The relationship from referred resource to the object. # noqa: E501 + + :return: The relationship of this ApiResourceReference. # noqa: E501 + :rtype: ApiRelationship + """ + return self._relationship + + @relationship.setter + def relationship(self, relationship): + """Sets the relationship of this ApiResourceReference. + + Required field. The relationship from referred resource to the object. # noqa: E501 + + :param relationship: The relationship of this ApiResourceReference. # noqa: E501 + :type: ApiRelationship + """ + + self._relationship = relationship + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiResourceReference, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiResourceReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py new file mode 100644 index 00000000000..8fe61a0fa93 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiResourceType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN_RESOURCE_TYPE = "UNKNOWN_RESOURCE_TYPE" + EXPERIMENT = "EXPERIMENT" + JOB = "JOB" + PIPELINE = "PIPELINE" + PIPELINE_VERSION = "PIPELINE_VERSION" + NAMESPACE = "NAMESPACE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ApiResourceType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiResourceType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiResourceType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py new file mode 100644 index 00000000000..2010c1a3e9b --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py @@ -0,0 +1,452 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec # noqa: F401,E501 +from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: F401,E501 +from kfp_server_api.models.api_run_metric import ApiRunMetric # noqa: F401,E501 +from kfp_server_api.models.run_storage_state import RunStorageState # noqa: F401,E501 + + +class ApiRun(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'storage_state': 'RunStorageState', + 'description': 'str', + 'pipeline_spec': 'ApiPipelineSpec', + 'resource_references': 'list[ApiResourceReference]', + 'service_account': 'str', + 'created_at': 'datetime', + 'scheduled_at': 'datetime', + 'finished_at': 'datetime', + 'status': 'str', + 'error': 'str', + 'metrics': 'list[ApiRunMetric]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'storage_state': 'storage_state', + 'description': 'description', + 'pipeline_spec': 'pipeline_spec', + 'resource_references': 'resource_references', + 'service_account': 'service_account', + 'created_at': 'created_at', + 'scheduled_at': 'scheduled_at', + 'finished_at': 'finished_at', + 'status': 'status', + 'error': 'error', + 'metrics': 'metrics' + } + + def __init__(self, id=None, name=None, storage_state=None, description=None, pipeline_spec=None, resource_references=None, service_account=None, created_at=None, scheduled_at=None, finished_at=None, status=None, error=None, metrics=None): # noqa: E501 + """ApiRun - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._storage_state = None + self._description = None + self._pipeline_spec = None + self._resource_references = None + self._service_account = None + self._created_at = None + self._scheduled_at = None + self._finished_at = None + self._status = None + self._error = None + self._metrics = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if storage_state is not None: + self.storage_state = storage_state + if description is not None: + self.description = description + if pipeline_spec is not None: + self.pipeline_spec = pipeline_spec + if resource_references is not None: + self.resource_references = resource_references + if service_account is not None: + self.service_account = service_account + if created_at is not None: + self.created_at = created_at + if scheduled_at is not None: + self.scheduled_at = scheduled_at + if finished_at is not None: + self.finished_at = finished_at + if status is not None: + self.status = status + if error is not None: + self.error = error + if metrics is not None: + self.metrics = metrics + + @property + def id(self): + """Gets the id of this ApiRun. # noqa: E501 + + Output. Unique run ID. Generated by API server. # noqa: E501 + + :return: The id of this ApiRun. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApiRun. + + Output. Unique run ID. Generated by API server. # noqa: E501 + + :param id: The id of this ApiRun. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this ApiRun. # noqa: E501 + + Required input field. Name provided by user, or auto generated if run is created by scheduled job. Not unique. # noqa: E501 + + :return: The name of this ApiRun. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApiRun. + + Required input field. Name provided by user, or auto generated if run is created by scheduled job. Not unique. # noqa: E501 + + :param name: The name of this ApiRun. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def storage_state(self): + """Gets the storage_state of this ApiRun. # noqa: E501 + + + :return: The storage_state of this ApiRun. # noqa: E501 + :rtype: RunStorageState + """ + return self._storage_state + + @storage_state.setter + def storage_state(self, storage_state): + """Sets the storage_state of this ApiRun. + + + :param storage_state: The storage_state of this ApiRun. # noqa: E501 + :type: RunStorageState + """ + + self._storage_state = storage_state + + @property + def description(self): + """Gets the description of this ApiRun. # noqa: E501 + + + :return: The description of this ApiRun. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ApiRun. + + + :param description: The description of this ApiRun. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def pipeline_spec(self): + """Gets the pipeline_spec of this ApiRun. # noqa: E501 + + Required input field. Describing what the pipeline manifest and parameters to use for the run. # noqa: E501 + + :return: The pipeline_spec of this ApiRun. # noqa: E501 + :rtype: ApiPipelineSpec + """ + return self._pipeline_spec + + @pipeline_spec.setter + def pipeline_spec(self, pipeline_spec): + """Sets the pipeline_spec of this ApiRun. + + Required input field. Describing what the pipeline manifest and parameters to use for the run. # noqa: E501 + + :param pipeline_spec: The pipeline_spec of this ApiRun. # noqa: E501 + :type: ApiPipelineSpec + """ + + self._pipeline_spec = pipeline_spec + + @property + def resource_references(self): + """Gets the resource_references of this ApiRun. # noqa: E501 + + Optional input field. Specify which resource this run belongs to. # noqa: E501 + + :return: The resource_references of this ApiRun. # noqa: E501 + :rtype: list[ApiResourceReference] + """ + return self._resource_references + + @resource_references.setter + def resource_references(self, resource_references): + """Sets the resource_references of this ApiRun. + + Optional input field. Specify which resource this run belongs to. # noqa: E501 + + :param resource_references: The resource_references of this ApiRun. # noqa: E501 + :type: list[ApiResourceReference] + """ + + self._resource_references = resource_references + + @property + def service_account(self): + """Gets the service_account of this ApiRun. # noqa: E501 + + Optional input field. Specify which Kubernetes service account this run uses. # noqa: E501 + + :return: The service_account of this ApiRun. # noqa: E501 + :rtype: str + """ + return self._service_account + + @service_account.setter + def service_account(self, service_account): + """Sets the service_account of this ApiRun. + + Optional input field. Specify which Kubernetes service account this run uses. # noqa: E501 + + :param service_account: The service_account of this ApiRun. # noqa: E501 + :type: str + """ + + self._service_account = service_account + + @property + def created_at(self): + """Gets the created_at of this ApiRun. # noqa: E501 + + Output. The time that the run created. # noqa: E501 + + :return: The created_at of this ApiRun. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ApiRun. + + Output. The time that the run created. # noqa: E501 + + :param created_at: The created_at of this ApiRun. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def scheduled_at(self): + """Gets the scheduled_at of this ApiRun. # noqa: E501 + + Output. When this run is scheduled to run. This could be different from created_at. For example, if a run is from a backfilling job that was supposed to run 2 month ago, the scheduled_at is 2 month ago, v.s. created_at is the current time. # noqa: E501 + + :return: The scheduled_at of this ApiRun. # noqa: E501 + :rtype: datetime + """ + return self._scheduled_at + + @scheduled_at.setter + def scheduled_at(self, scheduled_at): + """Sets the scheduled_at of this ApiRun. + + Output. When this run is scheduled to run. This could be different from created_at. For example, if a run is from a backfilling job that was supposed to run 2 month ago, the scheduled_at is 2 month ago, v.s. created_at is the current time. # noqa: E501 + + :param scheduled_at: The scheduled_at of this ApiRun. # noqa: E501 + :type: datetime + """ + + self._scheduled_at = scheduled_at + + @property + def finished_at(self): + """Gets the finished_at of this ApiRun. # noqa: E501 + + Output. The time this run is finished. # noqa: E501 + + :return: The finished_at of this ApiRun. # noqa: E501 + :rtype: datetime + """ + return self._finished_at + + @finished_at.setter + def finished_at(self, finished_at): + """Sets the finished_at of this ApiRun. + + Output. The time this run is finished. # noqa: E501 + + :param finished_at: The finished_at of this ApiRun. # noqa: E501 + :type: datetime + """ + + self._finished_at = finished_at + + @property + def status(self): + """Gets the status of this ApiRun. # noqa: E501 + + + :return: The status of this ApiRun. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ApiRun. + + + :param status: The status of this ApiRun. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def error(self): + """Gets the error of this ApiRun. # noqa: E501 + + In case any error happens retrieving a run field, only run ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. # noqa: E501 + + :return: The error of this ApiRun. # noqa: E501 + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this ApiRun. + + In case any error happens retrieving a run field, only run ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. # noqa: E501 + + :param error: The error of this ApiRun. # noqa: E501 + :type: str + """ + + self._error = error + + @property + def metrics(self): + """Gets the metrics of this ApiRun. # noqa: E501 + + Output. The metrics of the run. The metrics are reported by ReportMetrics API. # noqa: E501 + + :return: The metrics of this ApiRun. # noqa: E501 + :rtype: list[ApiRunMetric] + """ + return self._metrics + + @metrics.setter + def metrics(self, metrics): + """Sets the metrics of this ApiRun. + + Output. The metrics of the run. The metrics are reported by ReportMetrics API. # noqa: E501 + + :param metrics: The metrics of this ApiRun. # noqa: E501 + :type: list[ApiRunMetric] + """ + + self._metrics = metrics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiRun, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiRun): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py new file mode 100644 index 00000000000..00fbb8b3cd9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_pipeline_runtime import ApiPipelineRuntime # noqa: F401,E501 +from kfp_server_api.models.api_run import ApiRun # noqa: F401,E501 + + +class ApiRunDetail(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'run': 'ApiRun', + 'pipeline_runtime': 'ApiPipelineRuntime' + } + + attribute_map = { + 'run': 'run', + 'pipeline_runtime': 'pipeline_runtime' + } + + def __init__(self, run=None, pipeline_runtime=None): # noqa: E501 + """ApiRunDetail - a model defined in Swagger""" # noqa: E501 + + self._run = None + self._pipeline_runtime = None + self.discriminator = None + + if run is not None: + self.run = run + if pipeline_runtime is not None: + self.pipeline_runtime = pipeline_runtime + + @property + def run(self): + """Gets the run of this ApiRunDetail. # noqa: E501 + + + :return: The run of this ApiRunDetail. # noqa: E501 + :rtype: ApiRun + """ + return self._run + + @run.setter + def run(self, run): + """Sets the run of this ApiRunDetail. + + + :param run: The run of this ApiRunDetail. # noqa: E501 + :type: ApiRun + """ + + self._run = run + + @property + def pipeline_runtime(self): + """Gets the pipeline_runtime of this ApiRunDetail. # noqa: E501 + + + :return: The pipeline_runtime of this ApiRunDetail. # noqa: E501 + :rtype: ApiPipelineRuntime + """ + return self._pipeline_runtime + + @pipeline_runtime.setter + def pipeline_runtime(self, pipeline_runtime): + """Sets the pipeline_runtime of this ApiRunDetail. + + + :param pipeline_runtime: The pipeline_runtime of this ApiRunDetail. # noqa: E501 + :type: ApiPipelineRuntime + """ + + self._pipeline_runtime = pipeline_runtime + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiRunDetail, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiRunDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py new file mode 100644 index 00000000000..f8454826c4d --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.run_metric_format import RunMetricFormat # noqa: F401,E501 + + +class ApiRunMetric(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'node_id': 'str', + 'number_value': 'float', + 'format': 'RunMetricFormat' + } + + attribute_map = { + 'name': 'name', + 'node_id': 'node_id', + 'number_value': 'number_value', + 'format': 'format' + } + + def __init__(self, name=None, node_id=None, number_value=None, format=None): # noqa: E501 + """ApiRunMetric - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._node_id = None + self._number_value = None + self._format = None + self.discriminator = None + + if name is not None: + self.name = name + if node_id is not None: + self.node_id = node_id + if number_value is not None: + self.number_value = number_value + if format is not None: + self.format = format + + @property + def name(self): + """Gets the name of this ApiRunMetric. # noqa: E501 + + Required. The user defined name of the metric. It must between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. # noqa: E501 + + :return: The name of this ApiRunMetric. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApiRunMetric. + + Required. The user defined name of the metric. It must between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. # noqa: E501 + + :param name: The name of this ApiRunMetric. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def node_id(self): + """Gets the node_id of this ApiRunMetric. # noqa: E501 + + Required. The runtime node ID which reports the metric. The node ID can be found in the RunDetail.workflow.Status. Metric with same (node_id, name) are considerd as duplicate. Only the first reporting will be recorded. Max length is 128. # noqa: E501 + + :return: The node_id of this ApiRunMetric. # noqa: E501 + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this ApiRunMetric. + + Required. The runtime node ID which reports the metric. The node ID can be found in the RunDetail.workflow.Status. Metric with same (node_id, name) are considerd as duplicate. Only the first reporting will be recorded. Max length is 128. # noqa: E501 + + :param node_id: The node_id of this ApiRunMetric. # noqa: E501 + :type: str + """ + + self._node_id = node_id + + @property + def number_value(self): + """Gets the number_value of this ApiRunMetric. # noqa: E501 + + The number value of the metric. # noqa: E501 + + :return: The number_value of this ApiRunMetric. # noqa: E501 + :rtype: float + """ + return self._number_value + + @number_value.setter + def number_value(self, number_value): + """Sets the number_value of this ApiRunMetric. + + The number value of the metric. # noqa: E501 + + :param number_value: The number_value of this ApiRunMetric. # noqa: E501 + :type: float + """ + + self._number_value = number_value + + @property + def format(self): + """Gets the format of this ApiRunMetric. # noqa: E501 + + The display format of metric. # noqa: E501 + + :return: The format of this ApiRunMetric. # noqa: E501 + :rtype: RunMetricFormat + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this ApiRunMetric. + + The display format of metric. # noqa: E501 + + :param format: The format of this ApiRunMetric. # noqa: E501 + :type: RunMetricFormat + """ + + self._format = format + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiRunMetric, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiRunMetric): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py new file mode 100644 index 00000000000..bf9541b929c --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.protobuf_any import ProtobufAny # noqa: F401,E501 + + +class ApiStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'error': 'str', + 'code': 'int', + 'details': 'list[ProtobufAny]' + } + + attribute_map = { + 'error': 'error', + 'code': 'code', + 'details': 'details' + } + + def __init__(self, error=None, code=None, details=None): # noqa: E501 + """ApiStatus - a model defined in Swagger""" # noqa: E501 + + self._error = None + self._code = None + self._details = None + self.discriminator = None + + if error is not None: + self.error = error + if code is not None: + self.code = code + if details is not None: + self.details = details + + @property + def error(self): + """Gets the error of this ApiStatus. # noqa: E501 + + + :return: The error of this ApiStatus. # noqa: E501 + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this ApiStatus. + + + :param error: The error of this ApiStatus. # noqa: E501 + :type: str + """ + + self._error = error + + @property + def code(self): + """Gets the code of this ApiStatus. # noqa: E501 + + + :return: The code of this ApiStatus. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ApiStatus. + + + :param code: The code of this ApiStatus. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def details(self): + """Gets the details of this ApiStatus. # noqa: E501 + + + :return: The details of this ApiStatus. # noqa: E501 + :rtype: list[ProtobufAny] + """ + return self._details + + @details.setter + def details(self, details): + """Sets the details of this ApiStatus. + + + :param details: The details of this ApiStatus. # noqa: E501 + :type: list[ProtobufAny] + """ + + self._details = details + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py new file mode 100644 index 00000000000..889a9313fdb --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.api_cron_schedule import ApiCronSchedule # noqa: F401,E501 +from kfp_server_api.models.api_periodic_schedule import ApiPeriodicSchedule # noqa: F401,E501 + + +class ApiTrigger(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cron_schedule': 'ApiCronSchedule', + 'periodic_schedule': 'ApiPeriodicSchedule' + } + + attribute_map = { + 'cron_schedule': 'cron_schedule', + 'periodic_schedule': 'periodic_schedule' + } + + def __init__(self, cron_schedule=None, periodic_schedule=None): # noqa: E501 + """ApiTrigger - a model defined in Swagger""" # noqa: E501 + + self._cron_schedule = None + self._periodic_schedule = None + self.discriminator = None + + if cron_schedule is not None: + self.cron_schedule = cron_schedule + if periodic_schedule is not None: + self.periodic_schedule = periodic_schedule + + @property + def cron_schedule(self): + """Gets the cron_schedule of this ApiTrigger. # noqa: E501 + + + :return: The cron_schedule of this ApiTrigger. # noqa: E501 + :rtype: ApiCronSchedule + """ + return self._cron_schedule + + @cron_schedule.setter + def cron_schedule(self, cron_schedule): + """Sets the cron_schedule of this ApiTrigger. + + + :param cron_schedule: The cron_schedule of this ApiTrigger. # noqa: E501 + :type: ApiCronSchedule + """ + + self._cron_schedule = cron_schedule + + @property + def periodic_schedule(self): + """Gets the periodic_schedule of this ApiTrigger. # noqa: E501 + + + :return: The periodic_schedule of this ApiTrigger. # noqa: E501 + :rtype: ApiPeriodicSchedule + """ + return self._periodic_schedule + + @periodic_schedule.setter + def periodic_schedule(self, periodic_schedule): + """Sets the periodic_schedule of this ApiTrigger. + + + :param periodic_schedule: The periodic_schedule of this ApiTrigger. # noqa: E501 + :type: ApiPeriodicSchedule + """ + + self._periodic_schedule = periodic_schedule + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiTrigger, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiTrigger): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py new file mode 100644 index 00000000000..8b7dd0dd71d --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiUrl(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'pipeline_url': 'str' + } + + attribute_map = { + 'pipeline_url': 'pipeline_url' + } + + def __init__(self, pipeline_url=None): # noqa: E501 + """ApiUrl - a model defined in Swagger""" # noqa: E501 + + self._pipeline_url = None + self.discriminator = None + + if pipeline_url is not None: + self.pipeline_url = pipeline_url + + @property + def pipeline_url(self): + """Gets the pipeline_url of this ApiUrl. # noqa: E501 + + + :return: The pipeline_url of this ApiUrl. # noqa: E501 + :rtype: str + """ + return self._pipeline_url + + @pipeline_url.setter + def pipeline_url(self, pipeline_url): + """Sets the pipeline_url of this ApiUrl. + + + :param pipeline_url: The pipeline_url of this ApiUrl. # noqa: E501 + :type: str + """ + + self._pipeline_url = pipeline_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApiUrl, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiUrl): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py new file mode 100644 index 00000000000..6aecadda18f --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ExperimentStorageState(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNSPECIFIED = "STORAGESTATE_UNSPECIFIED" + AVAILABLE = "STORAGESTATE_AVAILABLE" + ARCHIVED = "STORAGESTATE_ARCHIVED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ExperimentStorageState - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ExperimentStorageState, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentStorageState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py new file mode 100644 index 00000000000..0bc0530e4b9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class JobMode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN_MODE = "UNKNOWN_MODE" + ENABLED = "ENABLED" + DISABLED = "DISABLED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """JobMode - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(JobMode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobMode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py new file mode 100644 index 00000000000..11a942224ac --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ProtobufAny(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type_url': 'str', + 'value': 'str' + } + + attribute_map = { + 'type_url': 'type_url', + 'value': 'value' + } + + def __init__(self, type_url=None, value=None): # noqa: E501 + """ProtobufAny - a model defined in Swagger""" # noqa: E501 + + self._type_url = None + self._value = None + self.discriminator = None + + if type_url is not None: + self.type_url = type_url + if value is not None: + self.value = value + + @property + def type_url(self): + """Gets the type_url of this ProtobufAny. # noqa: E501 + + A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. # noqa: E501 + + :return: The type_url of this ProtobufAny. # noqa: E501 + :rtype: str + """ + return self._type_url + + @type_url.setter + def type_url(self, type_url): + """Sets the type_url of this ProtobufAny. + + A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. # noqa: E501 + + :param type_url: The type_url of this ProtobufAny. # noqa: E501 + :type: str + """ + + self._type_url = type_url + + @property + def value(self): + """Gets the value of this ProtobufAny. # noqa: E501 + + Must be a valid serialized protocol buffer of the above specified type. # noqa: E501 + + :return: The value of this ProtobufAny. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ProtobufAny. + + Must be a valid serialized protocol buffer of the above specified type. # noqa: E501 + + :param value: The value of this ProtobufAny. # noqa: E501 + :type: str + """ + if value is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', value): # noqa: E501 + raise ValueError(r"Invalid value for `value`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProtobufAny, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProtobufAny): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py new file mode 100644 index 00000000000..479c2db0509 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status import ReportRunMetricsResponseReportRunMetricResultStatus # noqa: F401,E501 + + +class ReportRunMetricsResponseReportRunMetricResult(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'metric_name': 'str', + 'metric_node_id': 'str', + 'status': 'ReportRunMetricsResponseReportRunMetricResultStatus', + 'message': 'str' + } + + attribute_map = { + 'metric_name': 'metric_name', + 'metric_node_id': 'metric_node_id', + 'status': 'status', + 'message': 'message' + } + + def __init__(self, metric_name=None, metric_node_id=None, status=None, message=None): # noqa: E501 + """ReportRunMetricsResponseReportRunMetricResult - a model defined in Swagger""" # noqa: E501 + + self._metric_name = None + self._metric_node_id = None + self._status = None + self._message = None + self.discriminator = None + + if metric_name is not None: + self.metric_name = metric_name + if metric_node_id is not None: + self.metric_node_id = metric_node_id + if status is not None: + self.status = status + if message is not None: + self.message = message + + @property + def metric_name(self): + """Gets the metric_name of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + + Output. The name of the metric. # noqa: E501 + + :return: The metric_name of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + :rtype: str + """ + return self._metric_name + + @metric_name.setter + def metric_name(self, metric_name): + """Sets the metric_name of this ReportRunMetricsResponseReportRunMetricResult. + + Output. The name of the metric. # noqa: E501 + + :param metric_name: The metric_name of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + :type: str + """ + + self._metric_name = metric_name + + @property + def metric_node_id(self): + """Gets the metric_node_id of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + + Output. The ID of the node which reports the metric. # noqa: E501 + + :return: The metric_node_id of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + :rtype: str + """ + return self._metric_node_id + + @metric_node_id.setter + def metric_node_id(self, metric_node_id): + """Sets the metric_node_id of this ReportRunMetricsResponseReportRunMetricResult. + + Output. The ID of the node which reports the metric. # noqa: E501 + + :param metric_node_id: The metric_node_id of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + :type: str + """ + + self._metric_node_id = metric_node_id + + @property + def status(self): + """Gets the status of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + + Output. The status of the metric reporting. # noqa: E501 + + :return: The status of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + :rtype: ReportRunMetricsResponseReportRunMetricResultStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ReportRunMetricsResponseReportRunMetricResult. + + Output. The status of the metric reporting. # noqa: E501 + + :param status: The status of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + :type: ReportRunMetricsResponseReportRunMetricResultStatus + """ + + self._status = status + + @property + def message(self): + """Gets the message of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + + Output. The detailed message of the error of the reporting. # noqa: E501 + + :return: The message of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ReportRunMetricsResponseReportRunMetricResult. + + Output. The detailed message of the error of the reporting. # noqa: E501 + + :param message: The message of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 + :type: str + """ + + self._message = message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ReportRunMetricsResponseReportRunMetricResult, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReportRunMetricsResponseReportRunMetricResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py new file mode 100644 index 00000000000..a6406651f32 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ReportRunMetricsResponseReportRunMetricResultStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNSPECIFIED = "UNSPECIFIED" + OK = "OK" + INVALID_ARGUMENT = "INVALID_ARGUMENT" + DUPLICATE_REPORTING = "DUPLICATE_REPORTING" + INTERNAL_ERROR = "INTERNAL_ERROR" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ReportRunMetricsResponseReportRunMetricResultStatus - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ReportRunMetricsResponseReportRunMetricResultStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReportRunMetricsResponseReportRunMetricResultStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py new file mode 100644 index 00000000000..b85f7d0b76e --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RunMetricFormat(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNSPECIFIED = "UNSPECIFIED" + RAW = "RAW" + PERCENTAGE = "PERCENTAGE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """RunMetricFormat - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RunMetricFormat, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunMetricFormat): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py new file mode 100644 index 00000000000..10b3feb2318 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RunStorageState(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + AVAILABLE = "STORAGESTATE_AVAILABLE" + ARCHIVED = "STORAGESTATE_ARCHIVED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """RunStorageState - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RunStorageState, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunStorageState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py new file mode 100644 index 00000000000..907c60c57fe --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import io +import json +import logging +import re +import ssl + +import certifi +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import urlencode + +try: + import urllib3 +except ImportError: + raise ImportError('Swagger python client requires urllib3.') + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if six.PY3: + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + +class ApiException(Exception): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message diff --git a/backend/api/python_http_client/kfp_server_api/requirements.txt b/backend/api/python_http_client/kfp_server_api/requirements.txt new file mode 100644 index 00000000000..bafdc07532f --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/requirements.txt @@ -0,0 +1,5 @@ +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/backend/api/python_http_client/kfp_server_api/setup.py b/backend/api/python_http_client/kfp_server_api/setup.py new file mode 100644 index 00000000000..30360189ffd --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/setup.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "kfp-server-api" +VERSION = "1.0.0-dev.1" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = [ + "certifi>=2017.4.17", + "python-dateutil>=2.1", + "six>=1.10", + "urllib3>=1.23" +] + + +setup( + name=NAME, + version=VERSION, + description="Kubeflow Pipelines API", + author_email="", + url="https://github.com/kubeflow/pipelines", + keywords=["Swagger", "Kubeflow Pipelines API"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + """ +) diff --git a/backend/api/python_http_client/kfp_server_api/test-requirements.txt b/backend/api/python_http_client/kfp_server_api/test-requirements.txt new file mode 100644 index 00000000000..2702246c0e6 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/backend/api/python_http_client/kfp_server_api/test/__init__.py b/backend/api/python_http_client/kfp_server_api/test/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py b/backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py new file mode 100644 index 00000000000..e628a906f1d --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_cron_schedule import ApiCronSchedule # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiCronSchedule(unittest.TestCase): + """ApiCronSchedule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiCronSchedule(self): + """Test ApiCronSchedule""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_cron_schedule.ApiCronSchedule() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py b/backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py new file mode 100644 index 00000000000..b3327bf9df2 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_experiment import ApiExperiment # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiExperiment(unittest.TestCase): + """ApiExperiment unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiExperiment(self): + """Test ApiExperiment""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_experiment.ApiExperiment() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py new file mode 100644 index 00000000000..5b22aa8c899 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_get_template_response import ApiGetTemplateResponse # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiGetTemplateResponse(unittest.TestCase): + """ApiGetTemplateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiGetTemplateResponse(self): + """Test ApiGetTemplateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_get_template_response.ApiGetTemplateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_job.py b/backend/api/python_http_client/kfp_server_api/test/test_api_job.py new file mode 100644 index 00000000000..19cf4ea43c9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_job.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_job import ApiJob # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiJob(unittest.TestCase): + """ApiJob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiJob(self): + """Test ApiJob""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_job.ApiJob() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py new file mode 100644 index 00000000000..89364043d35 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_list_experiments_response import ApiListExperimentsResponse # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiListExperimentsResponse(unittest.TestCase): + """ApiListExperimentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiListExperimentsResponse(self): + """Test ApiListExperimentsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_list_experiments_response.ApiListExperimentsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py new file mode 100644 index 00000000000..9cdd8c88a07 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_list_jobs_response import ApiListJobsResponse # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiListJobsResponse(unittest.TestCase): + """ApiListJobsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiListJobsResponse(self): + """Test ApiListJobsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_list_jobs_response.ApiListJobsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py new file mode 100644 index 00000000000..3901a68450c --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_list_pipeline_versions_response import ApiListPipelineVersionsResponse # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiListPipelineVersionsResponse(unittest.TestCase): + """ApiListPipelineVersionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiListPipelineVersionsResponse(self): + """Test ApiListPipelineVersionsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_list_pipeline_versions_response.ApiListPipelineVersionsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py new file mode 100644 index 00000000000..b98138117c5 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_list_pipelines_response import ApiListPipelinesResponse # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiListPipelinesResponse(unittest.TestCase): + """ApiListPipelinesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiListPipelinesResponse(self): + """Test ApiListPipelinesResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_list_pipelines_response.ApiListPipelinesResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py new file mode 100644 index 00000000000..1a57ee6253c --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_list_runs_response import ApiListRunsResponse # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiListRunsResponse(unittest.TestCase): + """ApiListRunsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiListRunsResponse(self): + """Test ApiListRunsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_list_runs_response.ApiListRunsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py b/backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py new file mode 100644 index 00000000000..9d15dd384ab --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_parameter import ApiParameter # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiParameter(unittest.TestCase): + """ApiParameter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiParameter(self): + """Test ApiParameter""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_parameter.ApiParameter() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py b/backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py new file mode 100644 index 00000000000..142ed44ccb9 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_periodic_schedule import ApiPeriodicSchedule # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiPeriodicSchedule(unittest.TestCase): + """ApiPeriodicSchedule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiPeriodicSchedule(self): + """Test ApiPeriodicSchedule""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_periodic_schedule.ApiPeriodicSchedule() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py new file mode 100644 index 00000000000..e075dd8588a --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_pipeline import ApiPipeline # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiPipeline(unittest.TestCase): + """ApiPipeline unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiPipeline(self): + """Test ApiPipeline""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_pipeline.ApiPipeline() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py new file mode 100644 index 00000000000..7f01d6697c0 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_pipeline_runtime import ApiPipelineRuntime # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiPipelineRuntime(unittest.TestCase): + """ApiPipelineRuntime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiPipelineRuntime(self): + """Test ApiPipelineRuntime""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_pipeline_runtime.ApiPipelineRuntime() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py new file mode 100644 index 00000000000..ff79a1dd482 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiPipelineSpec(unittest.TestCase): + """ApiPipelineSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiPipelineSpec(self): + """Test ApiPipelineSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_pipeline_spec.ApiPipelineSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py new file mode 100644 index 00000000000..39f1a44e096 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiPipelineVersion(unittest.TestCase): + """ApiPipelineVersion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiPipelineVersion(self): + """Test ApiPipelineVersion""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_pipeline_version.ApiPipelineVersion() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py new file mode 100644 index 00000000000..0cd547a793e --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_read_artifact_response import ApiReadArtifactResponse # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiReadArtifactResponse(unittest.TestCase): + """ApiReadArtifactResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiReadArtifactResponse(self): + """Test ApiReadArtifactResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_read_artifact_response.ApiReadArtifactResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py b/backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py new file mode 100644 index 00000000000..b8557e624b7 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_relationship import ApiRelationship # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiRelationship(unittest.TestCase): + """ApiRelationship unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiRelationship(self): + """Test ApiRelationship""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_relationship.ApiRelationship() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py b/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py new file mode 100644 index 00000000000..f6fd1a4dd12 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_report_run_metrics_request import ApiReportRunMetricsRequest # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiReportRunMetricsRequest(unittest.TestCase): + """ApiReportRunMetricsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiReportRunMetricsRequest(self): + """Test ApiReportRunMetricsRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_report_run_metrics_request.ApiReportRunMetricsRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py new file mode 100644 index 00000000000..3849fb40d60 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_report_run_metrics_response import ApiReportRunMetricsResponse # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiReportRunMetricsResponse(unittest.TestCase): + """ApiReportRunMetricsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiReportRunMetricsResponse(self): + """Test ApiReportRunMetricsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_report_run_metrics_response.ApiReportRunMetricsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py new file mode 100644 index 00000000000..d3cdf2e3c95 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_resource_key import ApiResourceKey # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiResourceKey(unittest.TestCase): + """ApiResourceKey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiResourceKey(self): + """Test ApiResourceKey""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_resource_key.ApiResourceKey() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py new file mode 100644 index 00000000000..c03ed079520 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiResourceReference(unittest.TestCase): + """ApiResourceReference unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiResourceReference(self): + """Test ApiResourceReference""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_resource_reference.ApiResourceReference() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py new file mode 100644 index 00000000000..28c0b3fe33b --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_resource_type import ApiResourceType # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiResourceType(unittest.TestCase): + """ApiResourceType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiResourceType(self): + """Test ApiResourceType""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_resource_type.ApiResourceType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_run.py b/backend/api/python_http_client/kfp_server_api/test/test_api_run.py new file mode 100644 index 00000000000..5b00f66602c --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_run.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_run import ApiRun # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiRun(unittest.TestCase): + """ApiRun unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiRun(self): + """Test ApiRun""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_run.ApiRun() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py b/backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py new file mode 100644 index 00000000000..06fec627820 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_run_detail import ApiRunDetail # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiRunDetail(unittest.TestCase): + """ApiRunDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiRunDetail(self): + """Test ApiRunDetail""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_run_detail.ApiRunDetail() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py b/backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py new file mode 100644 index 00000000000..0759825cec3 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_run_metric import ApiRunMetric # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiRunMetric(unittest.TestCase): + """ApiRunMetric unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiRunMetric(self): + """Test ApiRunMetric""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_run_metric.ApiRunMetric() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_status.py b/backend/api/python_http_client/kfp_server_api/test/test_api_status.py new file mode 100644 index 00000000000..f0782d61b0a --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_status import ApiStatus # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiStatus(unittest.TestCase): + """ApiStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiStatus(self): + """Test ApiStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_status.ApiStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py b/backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py new file mode 100644 index 00000000000..520c17e8043 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_trigger import ApiTrigger # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiTrigger(unittest.TestCase): + """ApiTrigger unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiTrigger(self): + """Test ApiTrigger""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_trigger.ApiTrigger() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_url.py b/backend/api/python_http_client/kfp_server_api/test/test_api_url.py new file mode 100644 index 00000000000..b8e9cc24ce1 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_url.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.api_url import ApiUrl # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestApiUrl(unittest.TestCase): + """ApiUrl unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiUrl(self): + """Test ApiUrl""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.api_url.ApiUrl() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py new file mode 100644 index 00000000000..dedb0f1115d --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.api.experiment_service_api import ExperimentServiceApi # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestExperimentServiceApi(unittest.TestCase): + """ExperimentServiceApi unit test stubs""" + + def setUp(self): + self.api = kfp_server_api.api.experiment_service_api.ExperimentServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_archive_experiment(self): + """Test case for archive_experiment + + Archive an experiment. # noqa: E501 + """ + pass + + def test_create_experiment(self): + """Test case for create_experiment + + Create a new experiment. # noqa: E501 + """ + pass + + def test_delete_experiment(self): + """Test case for delete_experiment + + Delete an experiment. # noqa: E501 + """ + pass + + def test_get_experiment(self): + """Test case for get_experiment + + Find a specific experiment by ID. # noqa: E501 + """ + pass + + def test_list_experiment(self): + """Test case for list_experiment + + Find all experiments. # noqa: E501 + """ + pass + + def test_unarchive_experiment(self): + """Test case for unarchive_experiment + + Restore an archived experiment. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py b/backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py new file mode 100644 index 00000000000..b09ea7275cf --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.experiment_storage_state import ExperimentStorageState # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestExperimentStorageState(unittest.TestCase): + """ExperimentStorageState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExperimentStorageState(self): + """Test ExperimentStorageState""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.experiment_storage_state.ExperimentStorageState() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_job_mode.py b/backend/api/python_http_client/kfp_server_api/test/test_job_mode.py new file mode 100644 index 00000000000..fe0d246139a --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_job_mode.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.job_mode import JobMode # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestJobMode(unittest.TestCase): + """JobMode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobMode(self): + """Test JobMode""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.job_mode.JobMode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py new file mode 100644 index 00000000000..fe775fe8366 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.api.job_service_api import JobServiceApi # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestJobServiceApi(unittest.TestCase): + """JobServiceApi unit test stubs""" + + def setUp(self): + self.api = kfp_server_api.api.job_service_api.JobServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_job(self): + """Test case for create_job + + Create a new job. # noqa: E501 + """ + pass + + def test_delete_job(self): + """Test case for delete_job + + Delete a job. # noqa: E501 + """ + pass + + def test_disable_job(self): + """Test case for disable_job + + Stops a job and all its associated runs. The job is not deleted. # noqa: E501 + """ + pass + + def test_enable_job(self): + """Test case for enable_job + + Restarts a job that was previously stopped. All runs associated with the job will continue. # noqa: E501 + """ + pass + + def test_get_job(self): + """Test case for get_job + + Find a specific job by ID. # noqa: E501 + """ + pass + + def test_list_jobs(self): + """Test case for list_jobs + + Find all jobs. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py new file mode 100644 index 00000000000..97064bcc58e --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.api.pipeline_service_api import PipelineServiceApi # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestPipelineServiceApi(unittest.TestCase): + """PipelineServiceApi unit test stubs""" + + def setUp(self): + self.api = kfp_server_api.api.pipeline_service_api.PipelineServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_pipeline(self): + """Test case for create_pipeline + + Add a pipeline. # noqa: E501 + """ + pass + + def test_create_pipeline_version(self): + """Test case for create_pipeline_version + + """ + pass + + def test_delete_pipeline(self): + """Test case for delete_pipeline + + Delete a pipeline. # noqa: E501 + """ + pass + + def test_delete_pipeline_version(self): + """Test case for delete_pipeline_version + + """ + pass + + def test_get_pipeline(self): + """Test case for get_pipeline + + Find a specific pipeline by ID. # noqa: E501 + """ + pass + + def test_get_pipeline_version(self): + """Test case for get_pipeline_version + + """ + pass + + def test_get_pipeline_version_template(self): + """Test case for get_pipeline_version_template + + """ + pass + + def test_get_template(self): + """Test case for get_template + + Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. # noqa: E501 + """ + pass + + def test_list_pipeline_versions(self): + """Test case for list_pipeline_versions + + """ + pass + + def test_list_pipelines(self): + """Test case for list_pipelines + + Find all pipelines. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py new file mode 100644 index 00000000000..6f13039c5ff --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.api.pipeline_upload_service_api import PipelineUploadServiceApi # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestPipelineUploadServiceApi(unittest.TestCase): + """PipelineUploadServiceApi unit test stubs""" + + def setUp(self): + self.api = kfp_server_api.api.pipeline_upload_service_api.PipelineUploadServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_upload_pipeline(self): + """Test case for upload_pipeline + + """ + pass + + def test_upload_pipeline_version(self): + """Test case for upload_pipeline_version + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py b/backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py new file mode 100644 index 00000000000..3858f391461 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.protobuf_any import ProtobufAny # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestProtobufAny(unittest.TestCase): + """ProtobufAny unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufAny(self): + """Test ProtobufAny""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.protobuf_any.ProtobufAny() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py b/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py new file mode 100644 index 00000000000..d41b4113912 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.report_run_metrics_response_report_run_metric_result import ReportRunMetricsResponseReportRunMetricResult # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestReportRunMetricsResponseReportRunMetricResult(unittest.TestCase): + """ReportRunMetricsResponseReportRunMetricResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportRunMetricsResponseReportRunMetricResult(self): + """Test ReportRunMetricsResponseReportRunMetricResult""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.report_run_metrics_response_report_run_metric_result.ReportRunMetricsResponseReportRunMetricResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py b/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py new file mode 100644 index 00000000000..aa8864f3071 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status import ReportRunMetricsResponseReportRunMetricResultStatus # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestReportRunMetricsResponseReportRunMetricResultStatus(unittest.TestCase): + """ReportRunMetricsResponseReportRunMetricResultStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportRunMetricsResponseReportRunMetricResultStatus(self): + """Test ReportRunMetricsResponseReportRunMetricResultStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status.ReportRunMetricsResponseReportRunMetricResultStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py b/backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py new file mode 100644 index 00000000000..05af2bfc1e8 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.run_metric_format import RunMetricFormat # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestRunMetricFormat(unittest.TestCase): + """RunMetricFormat unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRunMetricFormat(self): + """Test RunMetricFormat""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.run_metric_format.RunMetricFormat() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py new file mode 100644 index 00000000000..7b97a1f24ea --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.api.run_service_api import RunServiceApi # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestRunServiceApi(unittest.TestCase): + """RunServiceApi unit test stubs""" + + def setUp(self): + self.api = kfp_server_api.api.run_service_api.RunServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_archive_run(self): + """Test case for archive_run + + Archive a run. # noqa: E501 + """ + pass + + def test_create_run(self): + """Test case for create_run + + Create a new run. # noqa: E501 + """ + pass + + def test_delete_run(self): + """Test case for delete_run + + Delete a run. # noqa: E501 + """ + pass + + def test_get_run(self): + """Test case for get_run + + Find a specific run by ID. # noqa: E501 + """ + pass + + def test_list_runs(self): + """Test case for list_runs + + Find all runs. # noqa: E501 + """ + pass + + def test_read_artifact(self): + """Test case for read_artifact + + Find a run's artifact data. # noqa: E501 + """ + pass + + def test_report_run_metrics(self): + """Test case for report_run_metrics + + ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. # noqa: E501 + """ + pass + + def test_retry_run(self): + """Test case for retry_run + + Re-initiate a failed or terminated run. # noqa: E501 + """ + pass + + def test_terminate_run(self): + """Test case for terminate_run + + Terminate an active run. # noqa: E501 + """ + pass + + def test_unarchive_run(self): + """Test case for unarchive_run + + Restore an archived run. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py b/backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py new file mode 100644 index 00000000000..94dc43b54fe --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + OpenAPI spec version: 1.0.0-dev.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import kfp_server_api +from kfp_server_api.models.run_storage_state import RunStorageState # noqa: E501 +from kfp_server_api.rest import ApiException + + +class TestRunStorageState(unittest.TestCase): + """RunStorageState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRunStorageState(self): + """Test RunStorageState""" + # FIXME: construct object with mandatory attributes with example values + # model = kfp_server_api.models.run_storage_state.RunStorageState() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/backend/api/python_http_client/kfp_server_api/tox.ini b/backend/api/python_http_client/kfp_server_api/tox.ini new file mode 100644 index 00000000000..3d0be613cfc --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + [] From 823fdf569f48f39e3698c74ffc1b191e251a553c Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 11:59:39 +0800 Subject: [PATCH 03/10] Use openapi-generator instead --- backend/api/build_kfp_server_api_python_package.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/api/build_kfp_server_api_python_package.sh b/backend/api/build_kfp_server_api_python_package.sh index 300dc49df6f..3add4df83a8 100755 --- a/backend/api/build_kfp_server_api_python_package.sh +++ b/backend/api/build_kfp_server_api_python_package.sh @@ -34,11 +34,11 @@ if [ -z "$VERSION" ]; then exit 1 fi -codegen_file=/tmp/swagger-codegen-cli.jar -# Browse all versions in: https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.7/ -codegen_uri=https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.7/swagger-codegen-cli-2.4.7.jar +codegen_file=/tmp/openapi-generator-cli.jar +# Browse all versions in: https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/ +codegen_uri="https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.1/openapi-generator-cli-4.3.1.jar" if ! [ -f "$codegen_file" ]; then - wget --no-verbose "$codegen_uri" -O "$codegen_file" + curl -L "$codegen_uri" -o "$codegen_file" fi pushd "$(dirname "$0")" @@ -47,7 +47,7 @@ DIR="$(pwd)/python_http_client/kfp_server_api" swagger_file="$(pwd)/swagger/kfp_api_single_file.swagger.json" echo "Generating python code from swagger json in $DIR." -java -jar "$codegen_file" generate -l python -i "$swagger_file" -o "$DIR" -c <(echo '{ +java -jar "$codegen_file" generate -g python -i "$swagger_file" -o "$DIR" -c <(echo '{ "packageName": "kfp_server_api", "projectName": "kfp-server-api", "packageVersion": "'"$VERSION"'", From 92dc587dd611a541f38473a415b0acfceaa121fc Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 12:00:11 +0800 Subject: [PATCH 04/10] Regenerate using openapi-generator --- .../kfp_server_api/.gitignore | 2 + .../kfp_server_api/.gitlab-ci.yml | 33 + ...degen-ignore => .openapi-generator-ignore} | 6 +- .../kfp_server_api/.openapi-generator/VERSION | 1 + .../kfp_server_api/.swagger-codegen/VERSION | 1 - .../kfp_server_api/.travis.yml | 11 +- .../kfp_server_api/README.md | 50 +- .../kfp_server_api/docs/ApiJob.md | 4 +- .../kfp_server_api/docs/ApiPipeline.md | 2 +- .../kfp_server_api/docs/ApiPipelineVersion.md | 2 +- .../kfp_server_api/docs/ApiResourceKey.md | 2 +- .../docs/ApiResourceReference.md | 2 +- .../kfp_server_api/docs/ApiRun.md | 2 +- .../kfp_server_api/docs/ApiRunMetric.md | 2 +- .../kfp_server_api/docs/ApiTrigger.md | 1 + .../docs/ExperimentServiceApi.md | 300 +++++-- .../kfp_server_api/docs/JobMode.md | 1 + .../kfp_server_api/docs/JobServiceApi.md | 300 +++++-- .../kfp_server_api/docs/PipelineServiceApi.md | 484 +++++++--- .../docs/PipelineUploadServiceApi.md | 88 +- .../kfp_server_api/docs/ProtobufAny.md | 1 + ...RunMetricsResponseReportRunMetricResult.md | 2 +- ...ricsResponseReportRunMetricResultStatus.md | 1 + .../kfp_server_api/docs/RunMetricFormat.md | 1 + .../kfp_server_api/docs/RunServiceApi.md | 494 +++++++--- .../kfp_server_api/git_push.sh | 16 +- .../kfp_server_api/kfp_server_api/__init__.py | 13 +- .../api/experiment_service_api.py | 502 ++++++----- .../kfp_server_api/api/job_service_api.py | 502 ++++++----- .../api/pipeline_service_api.py | 823 ++++++++++------- .../api/pipeline_upload_service_api.py | 183 ++-- .../kfp_server_api/api/run_service_api.py | 847 +++++++++++------- .../kfp_server_api/api_client.py | 190 ++-- .../kfp_server_api/configuration.py | 301 +++++-- .../kfp_server_api/exceptions.py | 120 +++ .../kfp_server_api/models/__init__.py | 5 +- .../models/api_cron_schedule.py | 33 +- .../kfp_server_api/models/api_experiment.py | 34 +- .../models/api_get_template_response.py | 33 +- .../kfp_server_api/models/api_job.py | 40 +- .../models/api_list_experiments_response.py | 33 +- .../models/api_list_jobs_response.py | 33 +- .../api_list_pipeline_versions_response.py | 33 +- .../models/api_list_pipelines_response.py | 33 +- .../models/api_list_runs_response.py | 33 +- .../kfp_server_api/models/api_parameter.py | 33 +- .../models/api_periodic_schedule.py | 33 +- .../kfp_server_api/models/api_pipeline.py | 37 +- .../models/api_pipeline_runtime.py | 33 +- .../models/api_pipeline_spec.py | 33 +- .../models/api_pipeline_version.py | 37 +- .../models/api_read_artifact_response.py | 36 +- .../kfp_server_api/models/api_relationship.py | 35 +- .../models/api_report_run_metrics_request.py | 33 +- .../models/api_report_run_metrics_response.py | 33 +- .../kfp_server_api/models/api_resource_key.py | 35 +- .../models/api_resource_reference.py | 36 +- .../models/api_resource_type.py | 35 +- .../kfp_server_api/models/api_run.py | 38 +- .../kfp_server_api/models/api_run_detail.py | 34 +- .../kfp_server_api/models/api_run_metric.py | 35 +- .../kfp_server_api/models/api_status.py | 33 +- .../kfp_server_api/models/api_trigger.py | 34 +- .../kfp_server_api/models/api_url.py | 33 +- .../models/experiment_storage_state.py | 35 +- .../kfp_server_api/models/job_mode.py | 35 +- .../kfp_server_api/models/protobuf_any.py | 36 +- ...trics_response_report_run_metric_result.py | 35 +- ...esponse_report_run_metric_result_status.py | 35 +- .../models/run_metric_format.py | 35 +- .../models/run_storage_state.py | 35 +- .../kfp_server_api/kfp_server_api/rest.py | 52 +- .../kfp_server_api/requirements.txt | 1 + .../kfp_server_api/setup.cfg | 2 + .../kfp_server_api/setup.py | 20 +- .../kfp_server_api/test-requirements.txt | 8 +- .../test/test_api_cron_schedule.py | 28 +- .../test/test_api_experiment.py | 38 +- .../test/test_api_get_template_response.py | 26 +- .../kfp_server_api/test/test_api_job.py | 64 +- .../test_api_list_experiments_response.py | 43 +- .../test/test_api_list_jobs_response.py | 69 +- ...est_api_list_pipeline_versions_response.py | 49 +- .../test/test_api_list_pipelines_response.py | 57 +- .../test/test_api_list_runs_response.py | 65 +- .../kfp_server_api/test/test_api_parameter.py | 27 +- .../test/test_api_periodic_schedule.py | 28 +- .../kfp_server_api/test/test_api_pipeline.py | 57 +- .../test/test_api_pipeline_runtime.py | 27 +- .../test/test_api_pipeline_spec.py | 34 +- .../test/test_api_pipeline_version.py | 44 +- .../test/test_api_read_artifact_response.py | 26 +- .../test/test_api_relationship.py | 25 +- .../test_api_report_run_metrics_request.py | 33 +- .../test_api_report_run_metrics_response.py | 32 +- .../test/test_api_resource_key.py | 27 +- .../test/test_api_resource_reference.py | 30 +- .../test/test_api_resource_type.py | 25 +- .../kfp_server_api/test/test_api_run.py | 60 +- .../test/test_api_run_detail.py | 64 +- .../test/test_api_run_metric.py | 29 +- .../kfp_server_api/test/test_api_status.py | 32 +- .../kfp_server_api/test/test_api_trigger.py | 33 +- .../kfp_server_api/test/test_api_url.py | 26 +- .../test/test_experiment_service_api.py | 5 +- .../test/test_experiment_storage_state.py | 25 +- .../kfp_server_api/test/test_job_mode.py | 25 +- .../test/test_job_service_api.py | 5 +- .../test/test_pipeline_service_api.py | 5 +- .../test/test_pipeline_upload_service_api.py | 5 +- .../kfp_server_api/test/test_protobuf_any.py | 27 +- ...trics_response_report_run_metric_result.py | 29 +- ...esponse_report_run_metric_result_status.py | 25 +- .../test/test_run_metric_format.py | 25 +- .../test/test_run_service_api.py | 5 +- .../test/test_run_storage_state.py | 25 +- .../python_http_client/kfp_server_api/tox.ini | 3 +- 117 files changed, 5271 insertions(+), 2621 deletions(-) create mode 100644 backend/api/python_http_client/kfp_server_api/.gitlab-ci.yml rename backend/api/python_http_client/kfp_server_api/{.swagger-codegen-ignore => .openapi-generator-ignore} (78%) create mode 100644 backend/api/python_http_client/kfp_server_api/.openapi-generator/VERSION delete mode 100644 backend/api/python_http_client/kfp_server_api/.swagger-codegen/VERSION create mode 100644 backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py create mode 100644 backend/api/python_http_client/kfp_server_api/setup.cfg diff --git a/backend/api/python_http_client/kfp_server_api/.gitignore b/backend/api/python_http_client/kfp_server_api/.gitignore index a655050c263..43995bd42fa 100644 --- a/backend/api/python_http_client/kfp_server_api/.gitignore +++ b/backend/api/python_http_client/kfp_server_api/.gitignore @@ -45,7 +45,9 @@ coverage.xml *,cover .hypothesis/ venv/ +.venv/ .python-version +.pytest_cache # Translations *.mo diff --git a/backend/api/python_http_client/kfp_server_api/.gitlab-ci.yml b/backend/api/python_http_client/kfp_server_api/.gitlab-ci.yml new file mode 100644 index 00000000000..1098a4acf21 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/.gitlab-ci.yml @@ -0,0 +1,33 @@ +# ref: https://docs.gitlab.com/ee/ci/README.html + +stages: + - test + +.nosetest: + stage: test + script: + - pip install -r requirements.txt + - pip install -r test-requirements.txt + - pytest --cov=kfp_server_api + +nosetest-2.7: + extends: .nosetest + image: python:2.7-alpine +nosetest-3.3: + extends: .nosetest + image: python:3.3-alpine +nosetest-3.4: + extends: .nosetest + image: python:3.4-alpine +nosetest-3.5: + extends: .nosetest + image: python:3.5-alpine +nosetest-3.6: + extends: .nosetest + image: python:3.6-alpine +nosetest-3.7: + extends: .nosetest + image: python:3.7-alpine +nosetest-3.8: + extends: .nosetest + image: python:3.8-alpine diff --git a/backend/api/python_http_client/kfp_server_api/.swagger-codegen-ignore b/backend/api/python_http_client/kfp_server_api/.openapi-generator-ignore similarity index 78% rename from backend/api/python_http_client/kfp_server_api/.swagger-codegen-ignore rename to backend/api/python_http_client/kfp_server_api/.openapi-generator-ignore index c5fa491b4c5..7484ee590a3 100644 --- a/backend/api/python_http_client/kfp_server_api/.swagger-codegen-ignore +++ b/backend/api/python_http_client/kfp_server_api/.openapi-generator-ignore @@ -1,11 +1,11 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. # As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: #ApiClient.cs # You can match any string of characters against a directory, file or extension with a single asterisk (*): diff --git a/backend/api/python_http_client/kfp_server_api/.openapi-generator/VERSION b/backend/api/python_http_client/kfp_server_api/.openapi-generator/VERSION new file mode 100644 index 00000000000..ecedc98d1d5 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/backend/api/python_http_client/kfp_server_api/.swagger-codegen/VERSION b/backend/api/python_http_client/kfp_server_api/.swagger-codegen/VERSION deleted file mode 100644 index 48a6b508dc9..00000000000 --- a/backend/api/python_http_client/kfp_server_api/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -2.4.7 \ No newline at end of file diff --git a/backend/api/python_http_client/kfp_server_api/.travis.yml b/backend/api/python_http_client/kfp_server_api/.travis.yml index 86211e2d4a2..7f278fb3d11 100644 --- a/backend/api/python_http_client/kfp_server_api/.travis.yml +++ b/backend/api/python_http_client/kfp_server_api/.travis.yml @@ -6,9 +6,12 @@ python: - "3.3" - "3.4" - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev + - "3.6" + - "3.7" + - "3.8" # command to install dependencies -install: "pip install -r requirements.txt" +install: + - "pip install -r requirements.txt" + - "pip install -r test-requirements.txt" # command to run tests -script: nosetests +script: pytest --cov=kfp_server_api diff --git a/backend/api/python_http_client/kfp_server_api/README.md b/backend/api/python_http_client/kfp_server_api/README.md index 08d8656f813..d017d6c1166 100644 --- a/backend/api/python_http_client/kfp_server_api/README.md +++ b/backend/api/python_http_client/kfp_server_api/README.md @@ -1,11 +1,11 @@ # kfp-server-api This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0-dev.1 - Package version: 1.0.0-dev.1 -- Build package: io.swagger.codegen.languages.PythonClientCodegen +- Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -14,7 +14,7 @@ Python 2.7 and 3.4+ ## Installation & Usage ### pip install -If the python package is hosted on Github, you can install directly from Github +If the python package is hosted on a repository, you can install directly using: ```sh pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git @@ -23,7 +23,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git Then import the package: ```python -import kfp_server_api +import kfp_server_api ``` ### Setuptools @@ -46,28 +46,47 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python from __future__ import print_function + import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | -try: - # Archive an experiment. - api_response = api_instance.archive_experiment(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExperimentServiceApi->archive_experiment: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.ExperimentServiceApi(api_client) + id = 'id_example' # str | + try: + # Archive an experiment. + api_response = api_instance.archive_experiment(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExperimentServiceApi->archive_experiment: %s\n" % e) + ``` ## Documentation for API Endpoints @@ -165,3 +184,4 @@ Class | Method | HTTP request | Description + diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiJob.md b/backend/api/python_http_client/kfp_server_api/docs/ApiJob.md index 4669ab72da4..6f4b0cbd488 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ApiJob.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiJob.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes **id** | **str** | Output. Unique run ID. Generated by API server. | [optional] **name** | **str** | Required input field. Job name provided by user. Not unique. | [optional] **description** | **str** | | [optional] -**pipeline_spec** | [**ApiPipelineSpec**](ApiPipelineSpec.md) | Required input field. Describing what the pipeline manifest and parameters to use for the scheduled job. | [optional] +**pipeline_spec** | [**ApiPipelineSpec**](ApiPipelineSpec.md) | | [optional] **resource_references** | [**list[ApiResourceReference]**](ApiResourceReference.md) | Optional input field. Specify which resource this job belongs to. | [optional] **service_account** | **str** | Optional input field. Specify which Kubernetes service account this job uses. | [optional] **max_concurrency** | **str** | | [optional] -**trigger** | [**ApiTrigger**](ApiTrigger.md) | Required input field. Specify how a run is triggered. Support cron mode or periodic mode. | [optional] +**trigger** | [**ApiTrigger**](ApiTrigger.md) | | [optional] **mode** | [**JobMode**](JobMode.md) | | [optional] **created_at** | **datetime** | Output. The time this job is created. | [optional] **updated_at** | **datetime** | Output. The last time this job is updated. | [optional] diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md b/backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md index 53df26953ae..00495bcaf07 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **str** | Optional input field. Pipeline name provided by user. If not specified, file name is used as pipeline name. | [optional] **description** | **str** | Optional input field. Describing the purpose of the job. | [optional] **parameters** | [**list[ApiParameter]**](ApiParameter.md) | Output. The input parameters for this pipeline. TODO(jingzhang36): replace this parameters field with the parameters field inside PipelineVersion when all usage of the former has been changed to use the latter. | [optional] -**url** | [**ApiUrl**](ApiUrl.md) | The URL to the source of the pipeline. This is required when creating the pipeine through CreatePipeline API. TODO(jingzhang36): replace this url field with the code_source_urls field inside PipelineVersion when all usage of the former has been changed to use the latter. | [optional] +**url** | [**ApiUrl**](ApiUrl.md) | | [optional] **error** | **str** | In case any error happens retrieving a pipeline field, only pipeline ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call. | [optional] **default_version** | [**ApiPipelineVersion**](ApiPipelineVersion.md) | | [optional] diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md b/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md index 80447320bd3..fea8886aad8 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **created_at** | **datetime** | Output. The time this pipeline version is created. | [optional] **parameters** | [**list[ApiParameter]**](ApiParameter.md) | Output. The input parameters for this pipeline. | [optional] **code_source_url** | **str** | Input. Optional. Pipeline version code source. | [optional] -**package_url** | [**ApiUrl**](ApiUrl.md) | Input. Required. Pipeline version package url. Whe calling CreatePipelineVersion API method, need to provide one package file location. | [optional] +**package_url** | [**ApiUrl**](ApiUrl.md) | | [optional] **resource_references** | [**list[ApiResourceReference]**](ApiResourceReference.md) | Input. Required. E.g., specify which pipeline this pipeline version belongs to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md index aa7b6a86821..f9ea3dd7b48 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | [**ApiResourceType**](ApiResourceType.md) | The type of the resource that referred to. | [optional] +**type** | [**ApiResourceType**](ApiResourceType.md) | | [optional] **id** | **str** | The ID of the resource that referred to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md index 65c390fa384..acbb24ed2dd 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | [**ApiResourceKey**](ApiResourceKey.md) | | [optional] **name** | **str** | The name of the resource that referred to. | [optional] -**relationship** | [**ApiRelationship**](ApiRelationship.md) | Required field. The relationship from referred resource to the object. | [optional] +**relationship** | [**ApiRelationship**](ApiRelationship.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRun.md b/backend/api/python_http_client/kfp_server_api/docs/ApiRun.md index 838f02fd2b9..bf67737b5f3 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ApiRun.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiRun.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **name** | **str** | Required input field. Name provided by user, or auto generated if run is created by scheduled job. Not unique. | [optional] **storage_state** | [**RunStorageState**](RunStorageState.md) | | [optional] **description** | **str** | | [optional] -**pipeline_spec** | [**ApiPipelineSpec**](ApiPipelineSpec.md) | Required input field. Describing what the pipeline manifest and parameters to use for the run. | [optional] +**pipeline_spec** | [**ApiPipelineSpec**](ApiPipelineSpec.md) | | [optional] **resource_references** | [**list[ApiResourceReference]**](ApiResourceReference.md) | Optional input field. Specify which resource this run belongs to. | [optional] **service_account** | **str** | Optional input field. Specify which Kubernetes service account this run uses. | [optional] **created_at** | **datetime** | Output. The time that the run created. | [optional] diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md b/backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md index 87b915e22e9..03f6e5e1a41 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **name** | **str** | Required. The user defined name of the metric. It must between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. | [optional] **node_id** | **str** | Required. The runtime node ID which reports the metric. The node ID can be found in the RunDetail.workflow.Status. Metric with same (node_id, name) are considerd as duplicate. Only the first reporting will be recorded. Max length is 128. | [optional] **number_value** | **float** | The number value of the metric. | [optional] -**format** | [**RunMetricFormat**](RunMetricFormat.md) | The display format of metric. | [optional] +**format** | [**RunMetricFormat**](RunMetricFormat.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md b/backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md index 07b8802d8e1..ff6b3c27164 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md @@ -1,5 +1,6 @@ # ApiTrigger +Trigger defines what starts a pipeline run. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md index a933bf3e061..bca90051df9 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md @@ -18,29 +18,47 @@ Method | HTTP request | Description Archive an experiment. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Archive an experiment. - api_response = api_instance.archive_experiment(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExperimentServiceApi->archive_experiment: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.ExperimentServiceApi(api_client) + id = 'id_example' # str | + + try: + # Archive an experiment. + api_response = api_instance.archive_experiment(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExperimentServiceApi->archive_experiment: %s\n" % e) ``` ### Parameters @@ -59,9 +77,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_experiment** @@ -70,29 +94,47 @@ Name | Type | Description | Notes Create a new experiment. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) -body = kfp_server_api.ApiExperiment() # ApiExperiment | The experiment to be created. - -try: - # Create a new experiment. - api_response = api_instance.create_experiment(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExperimentServiceApi->create_experiment: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.ExperimentServiceApi(api_client) + body = kfp_server_api.ApiExperiment() # ApiExperiment | The experiment to be created. + + try: + # Create a new experiment. + api_response = api_instance.create_experiment(body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExperimentServiceApi->create_experiment: %s\n" % e) ``` ### Parameters @@ -114,6 +156,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_experiment** @@ -122,29 +170,47 @@ Name | Type | Description | Notes Delete an experiment. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | The ID of the experiment to be deleted. - -try: - # Delete an experiment. - api_response = api_instance.delete_experiment(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExperimentServiceApi->delete_experiment: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.ExperimentServiceApi(api_client) + id = 'id_example' # str | The ID of the experiment to be deleted. + + try: + # Delete an experiment. + api_response = api_instance.delete_experiment(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExperimentServiceApi->delete_experiment: %s\n" % e) ``` ### Parameters @@ -163,9 +229,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_experiment** @@ -174,29 +246,47 @@ Name | Type | Description | Notes Find a specific experiment by ID. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | The ID of the experiment to be retrieved. - -try: - # Find a specific experiment by ID. - api_response = api_instance.get_experiment(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExperimentServiceApi->get_experiment: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.ExperimentServiceApi(api_client) + id = 'id_example' # str | The ID of the experiment to be retrieved. + + try: + # Find a specific experiment by ID. + api_response = api_instance.get_experiment(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExperimentServiceApi->get_experiment: %s\n" % e) ``` ### Parameters @@ -215,9 +305,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_experiment** @@ -226,34 +322,52 @@ Name | Type | Description | Notes Find all experiments. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) -page_token = 'page_token_example' # str | (optional) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.ExperimentServiceApi(api_client) + page_token = 'page_token_example' # str | (optional) page_size = 56 # int | (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. (optional) filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) -resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to UNKNOWN_RESOURCE_TYPE) +resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to 'UNKNOWN_RESOURCE_TYPE') resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID of the resource that referred to. (optional) -try: - # Find all experiments. - api_response = api_instance.list_experiment(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExperimentServiceApi->list_experiment: %s\n" % e) + try: + # Find all experiments. + api_response = api_instance.list_experiment(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExperimentServiceApi->list_experiment: %s\n" % e) ``` ### Parameters @@ -264,7 +378,7 @@ Name | Type | Description | Notes **page_size** | **int**| | [optional] **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. | [optional] **filter** | **str**| A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). | [optional] - **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to UNKNOWN_RESOURCE_TYPE] + **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to 'UNKNOWN_RESOURCE_TYPE'] **resource_reference_key_id** | **str**| The ID of the resource that referred to. | [optional] ### Return type @@ -277,9 +391,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unarchive_experiment** @@ -288,29 +408,47 @@ Name | Type | Description | Notes Restore an archived experiment. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.ExperimentServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Restore an archived experiment. - api_response = api_instance.unarchive_experiment(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExperimentServiceApi->unarchive_experiment: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.ExperimentServiceApi(api_client) + id = 'id_example' # str | + + try: + # Restore an archived experiment. + api_response = api_instance.unarchive_experiment(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExperimentServiceApi->unarchive_experiment: %s\n" % e) ``` ### Parameters @@ -329,8 +467,14 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/docs/JobMode.md b/backend/api/python_http_client/kfp_server_api/docs/JobMode.md index da17e18c8d7..b2e238c19a0 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/JobMode.md +++ b/backend/api/python_http_client/kfp_server_api/docs/JobMode.md @@ -1,5 +1,6 @@ # JobMode +Required input. - DISABLED: The job won't schedule any run if disabled. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md index 7bf65bdb3de..2e4a6469587 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md +++ b/backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md @@ -18,29 +18,47 @@ Method | HTTP request | Description Create a new job. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) -body = kfp_server_api.ApiJob() # ApiJob | The job to be created - -try: - # Create a new job. - api_response = api_instance.create_job(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling JobServiceApi->create_job: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.JobServiceApi(api_client) + body = kfp_server_api.ApiJob() # ApiJob | The job to be created + + try: + # Create a new job. + api_response = api_instance.create_job(body) + pprint(api_response) + except ApiException as e: + print("Exception when calling JobServiceApi->create_job: %s\n" % e) ``` ### Parameters @@ -62,6 +80,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_job** @@ -70,29 +94,47 @@ Name | Type | Description | Notes Delete a job. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | The ID of the job to be deleted - -try: - # Delete a job. - api_response = api_instance.delete_job(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling JobServiceApi->delete_job: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.JobServiceApi(api_client) + id = 'id_example' # str | The ID of the job to be deleted + + try: + # Delete a job. + api_response = api_instance.delete_job(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling JobServiceApi->delete_job: %s\n" % e) ``` ### Parameters @@ -111,9 +153,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **disable_job** @@ -122,29 +170,47 @@ Name | Type | Description | Notes Stops a job and all its associated runs. The job is not deleted. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | The ID of the job to be disabled - -try: - # Stops a job and all its associated runs. The job is not deleted. - api_response = api_instance.disable_job(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling JobServiceApi->disable_job: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.JobServiceApi(api_client) + id = 'id_example' # str | The ID of the job to be disabled + + try: + # Stops a job and all its associated runs. The job is not deleted. + api_response = api_instance.disable_job(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling JobServiceApi->disable_job: %s\n" % e) ``` ### Parameters @@ -163,9 +229,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **enable_job** @@ -174,29 +246,47 @@ Name | Type | Description | Notes Restarts a job that was previously stopped. All runs associated with the job will continue. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | The ID of the job to be enabled - -try: - # Restarts a job that was previously stopped. All runs associated with the job will continue. - api_response = api_instance.enable_job(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling JobServiceApi->enable_job: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.JobServiceApi(api_client) + id = 'id_example' # str | The ID of the job to be enabled + + try: + # Restarts a job that was previously stopped. All runs associated with the job will continue. + api_response = api_instance.enable_job(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling JobServiceApi->enable_job: %s\n" % e) ``` ### Parameters @@ -215,9 +305,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_job** @@ -226,29 +322,47 @@ Name | Type | Description | Notes Find a specific job by ID. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | The ID of the job to be retrieved - -try: - # Find a specific job by ID. - api_response = api_instance.get_job(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling JobServiceApi->get_job: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.JobServiceApi(api_client) + id = 'id_example' # str | The ID of the job to be retrieved + + try: + # Find a specific job by ID. + api_response = api_instance.get_job(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling JobServiceApi->get_job: %s\n" % e) ``` ### Parameters @@ -267,9 +381,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_jobs** @@ -278,34 +398,52 @@ Name | Type | Description | Notes Find all jobs. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.JobServiceApi(kfp_server_api.ApiClient(configuration)) -page_token = 'page_token_example' # str | (optional) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.JobServiceApi(api_client) + page_token = 'page_token_example' # str | (optional) page_size = 56 # int | (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. (optional) -resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to UNKNOWN_RESOURCE_TYPE) +resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to 'UNKNOWN_RESOURCE_TYPE') resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID of the resource that referred to. (optional) filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) -try: - # Find all jobs. - api_response = api_instance.list_jobs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) - pprint(api_response) -except ApiException as e: - print("Exception when calling JobServiceApi->list_jobs: %s\n" % e) + try: + # Find all jobs. + api_response = api_instance.list_jobs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) + pprint(api_response) + except ApiException as e: + print("Exception when calling JobServiceApi->list_jobs: %s\n" % e) ``` ### Parameters @@ -315,7 +453,7 @@ Name | Type | Description | Notes **page_token** | **str**| | [optional] **page_size** | **int**| | [optional] **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. | [optional] - **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to UNKNOWN_RESOURCE_TYPE] + **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to 'UNKNOWN_RESOURCE_TYPE'] **resource_reference_key_id** | **str**| The ID of the resource that referred to. | [optional] **filter** | **str**| A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). | [optional] @@ -329,8 +467,14 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md index 02ba18052c9..f35c65ac192 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md +++ b/backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md @@ -22,29 +22,47 @@ Method | HTTP request | Description Add a pipeline. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -body = kfp_server_api.ApiPipeline() # ApiPipeline | - -try: - # Add a pipeline. - api_response = api_instance.create_pipeline(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->create_pipeline: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + body = kfp_server_api.ApiPipeline() # ApiPipeline | + + try: + # Add a pipeline. + api_response = api_instance.create_pipeline(body) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->create_pipeline: %s\n" % e) ``` ### Parameters @@ -66,6 +84,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_pipeline_version** @@ -74,28 +98,46 @@ Name | Type | Description | Notes ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -body = kfp_server_api.ApiPipelineVersion() # ApiPipelineVersion | ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. - -try: - api_response = api_instance.create_pipeline_version(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->create_pipeline_version: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + body = kfp_server_api.ApiPipelineVersion() # ApiPipelineVersion | ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. + + try: + api_response = api_instance.create_pipeline_version(body) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->create_pipeline_version: %s\n" % e) ``` ### Parameters @@ -117,6 +159,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_pipeline** @@ -125,29 +173,47 @@ Name | Type | Description | Notes Delete a pipeline. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Delete a pipeline. - api_response = api_instance.delete_pipeline(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->delete_pipeline: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + id = 'id_example' # str | + + try: + # Delete a pipeline. + api_response = api_instance.delete_pipeline(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->delete_pipeline: %s\n" % e) ``` ### Parameters @@ -166,9 +232,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_pipeline_version** @@ -177,28 +249,46 @@ Name | Type | Description | Notes ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -version_id = 'version_id_example' # str | - -try: - api_response = api_instance.delete_pipeline_version(version_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->delete_pipeline_version: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + version_id = 'version_id_example' # str | + + try: + api_response = api_instance.delete_pipeline_version(version_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->delete_pipeline_version: %s\n" % e) ``` ### Parameters @@ -217,9 +307,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_pipeline** @@ -228,29 +324,47 @@ Name | Type | Description | Notes Find a specific pipeline by ID. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Find a specific pipeline by ID. - api_response = api_instance.get_pipeline(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->get_pipeline: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + id = 'id_example' # str | + + try: + # Find a specific pipeline by ID. + api_response = api_instance.get_pipeline(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->get_pipeline: %s\n" % e) ``` ### Parameters @@ -269,9 +383,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_pipeline_version** @@ -280,28 +400,46 @@ Name | Type | Description | Notes ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -version_id = 'version_id_example' # str | - -try: - api_response = api_instance.get_pipeline_version(version_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->get_pipeline_version: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + version_id = 'version_id_example' # str | + + try: + api_response = api_instance.get_pipeline_version(version_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->get_pipeline_version: %s\n" % e) ``` ### Parameters @@ -320,9 +458,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_pipeline_version_template** @@ -331,28 +475,46 @@ Name | Type | Description | Notes ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -version_id = 'version_id_example' # str | - -try: - api_response = api_instance.get_pipeline_version_template(version_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->get_pipeline_version_template: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + version_id = 'version_id_example' # str | + + try: + api_response = api_instance.get_pipeline_version_template(version_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->get_pipeline_version_template: %s\n" % e) ``` ### Parameters @@ -371,9 +533,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_template** @@ -382,29 +550,47 @@ Name | Type | Description | Notes Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. - api_response = api_instance.get_template(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->get_template: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + id = 'id_example' # str | + + try: + # Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. + api_response = api_instance.get_template(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->get_template: %s\n" % e) ``` ### Parameters @@ -423,9 +609,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pipeline_versions** @@ -434,40 +626,58 @@ Name | Type | Description | Notes ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -resource_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to UNKNOWN_RESOURCE_TYPE) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + resource_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to 'UNKNOWN_RESOURCE_TYPE') resource_key_id = 'resource_key_id_example' # str | The ID of the resource that referred to. (optional) page_size = 56 # int | (optional) page_token = 'page_token_example' # str | (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. (optional) filter = 'filter_example' # str | A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). (optional) -try: - api_response = api_instance.list_pipeline_versions(resource_key_type=resource_key_type, resource_key_id=resource_key_id, page_size=page_size, page_token=page_token, sort_by=sort_by, filter=filter) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->list_pipeline_versions: %s\n" % e) + try: + api_response = api_instance.list_pipeline_versions(resource_key_type=resource_key_type, resource_key_id=resource_key_id, page_size=page_size, page_token=page_token, sort_by=sort_by, filter=filter) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->list_pipeline_versions: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **resource_key_type** | **str**| The type of the resource that referred to. | [optional] [default to UNKNOWN_RESOURCE_TYPE] + **resource_key_type** | **str**| The type of the resource that referred to. | [optional] [default to 'UNKNOWN_RESOURCE_TYPE'] **resource_key_id** | **str**| The ID of the resource that referred to. | [optional] **page_size** | **int**| | [optional] **page_token** | **str**| | [optional] @@ -484,9 +694,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pipelines** @@ -495,32 +711,50 @@ Name | Type | Description | Notes Find all pipelines. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineServiceApi(kfp_server_api.ApiClient(configuration)) -page_token = 'page_token_example' # str | (optional) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineServiceApi(api_client) + page_token = 'page_token_example' # str | (optional) page_size = 56 # int | (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. (optional) filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) -try: - # Find all pipelines. - api_response = api_instance.list_pipelines(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineServiceApi->list_pipelines: %s\n" % e) + try: + # Find all pipelines. + api_response = api_instance.list_pipelines(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineServiceApi->list_pipelines: %s\n" % e) ``` ### Parameters @@ -542,8 +776,14 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md index 01547dd34a9..634d39f9114 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md +++ b/backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md @@ -14,30 +14,48 @@ Method | HTTP request | Description ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineUploadServiceApi(kfp_server_api.ApiClient(configuration)) -uploadfile = '/path/to/file.txt' # file | The pipeline to upload. Maximum size of 32MB is supported. +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineUploadServiceApi(api_client) + uploadfile = '/path/to/file' # file | The pipeline to upload. Maximum size of 32MB is supported. name = 'name_example' # str | (optional) description = 'description_example' # str | (optional) -try: - api_response = api_instance.upload_pipeline(uploadfile, name=name, description=description) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineUploadServiceApi->upload_pipeline: %s\n" % e) + try: + api_response = api_instance.upload_pipeline(uploadfile, name=name, description=description) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineUploadServiceApi->upload_pipeline: %s\n" % e) ``` ### Parameters @@ -61,6 +79,12 @@ Name | Type | Description | Notes - **Content-Type**: multipart/form-data - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upload_pipeline_version** @@ -69,30 +93,48 @@ Name | Type | Description | Notes ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.PipelineUploadServiceApi(kfp_server_api.ApiClient(configuration)) -uploadfile = '/path/to/file.txt' # file | The pipeline to upload. Maximum size of 32MB is supported. +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.PipelineUploadServiceApi(api_client) + uploadfile = '/path/to/file' # file | The pipeline to upload. Maximum size of 32MB is supported. name = 'name_example' # str | (optional) pipelineid = 'pipelineid_example' # str | (optional) -try: - api_response = api_instance.upload_pipeline_version(uploadfile, name=name, pipelineid=pipelineid) - pprint(api_response) -except ApiException as e: - print("Exception when calling PipelineUploadServiceApi->upload_pipeline_version: %s\n" % e) + try: + api_response = api_instance.upload_pipeline_version(uploadfile, name=name, pipelineid=pipelineid) + pprint(api_response) + except ApiException as e: + print("Exception when calling PipelineUploadServiceApi->upload_pipeline_version: %s\n" % e) ``` ### Parameters @@ -116,5 +158,11 @@ Name | Type | Description | Notes - **Content-Type**: multipart/form-data - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md b/backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md index 10f6c09c093..463a60dcf30 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md @@ -1,5 +1,6 @@ # ProtobufAny +`Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := ptypes.MarshalAny(foo) ... foo := &pb.Foo{} if err := ptypes.UnmarshalAny(any, foo); err != nil { ... } The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example \"foo.bar.com/x/y.z\" will yield type name \"y.z\". JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { \"@type\": \"type.googleapis.com/google.profile.Person\", \"firstName\": , \"lastName\": } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { \"@type\": \"type.googleapis.com/google.protobuf.Duration\", \"value\": \"1.212s\" } ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md b/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md index 6d53974b9d5..cf376f68719 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metric_name** | **str** | Output. The name of the metric. | [optional] **metric_node_id** | **str** | Output. The ID of the node which reports the metric. | [optional] -**status** | [**ReportRunMetricsResponseReportRunMetricResultStatus**](ReportRunMetricsResponseReportRunMetricResultStatus.md) | Output. The status of the metric reporting. | [optional] +**status** | [**ReportRunMetricsResponseReportRunMetricResultStatus**](ReportRunMetricsResponseReportRunMetricResultStatus.md) | | [optional] **message** | **str** | Output. The detailed message of the error of the reporting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md b/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md index b3d612c76ac..843f3b818e3 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md +++ b/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md @@ -1,5 +1,6 @@ # ReportRunMetricsResponseReportRunMetricResultStatus + - UNSPECIFIED: Default value if not present. - OK: Indicates successful reporting. - INVALID_ARGUMENT: Indicates that the payload of the metric is invalid. - DUPLICATE_REPORTING: Indicates that the metric has been reported before. - INTERNAL_ERROR: Indicates that something went wrong in the server. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md b/backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md index 818566391c8..deef5e06cd1 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md +++ b/backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md @@ -1,5 +1,6 @@ # RunMetricFormat + - UNSPECIFIED: Default value if not present. - RAW: Display value as its raw format. - PERCENTAGE: Display value in percentage format. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md b/backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md index 8b2854d67ef..9268be3d6b4 100644 --- a/backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md +++ b/backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md @@ -22,29 +22,47 @@ Method | HTTP request | Description Archive a run. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Archive a run. - api_response = api_instance.archive_run(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->archive_run: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + id = 'id_example' # str | + + try: + # Archive a run. + api_response = api_instance.archive_run(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->archive_run: %s\n" % e) ``` ### Parameters @@ -63,9 +81,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_run** @@ -74,29 +98,47 @@ Name | Type | Description | Notes Create a new run. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -body = kfp_server_api.ApiRun() # ApiRun | - -try: - # Create a new run. - api_response = api_instance.create_run(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->create_run: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + body = kfp_server_api.ApiRun() # ApiRun | + + try: + # Create a new run. + api_response = api_instance.create_run(body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->create_run: %s\n" % e) ``` ### Parameters @@ -118,6 +160,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_run** @@ -126,29 +174,47 @@ Name | Type | Description | Notes Delete a run. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Delete a run. - api_response = api_instance.delete_run(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->delete_run: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + id = 'id_example' # str | + + try: + # Delete a run. + api_response = api_instance.delete_run(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->delete_run: %s\n" % e) ``` ### Parameters @@ -167,9 +233,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_run** @@ -178,29 +250,47 @@ Name | Type | Description | Notes Find a specific run by ID. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -run_id = 'run_id_example' # str | - -try: - # Find a specific run by ID. - api_response = api_instance.get_run(run_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->get_run: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + run_id = 'run_id_example' # str | + + try: + # Find a specific run by ID. + api_response = api_instance.get_run(run_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->get_run: %s\n" % e) ``` ### Parameters @@ -219,9 +309,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_runs** @@ -230,34 +326,52 @@ Name | Type | Description | Notes Find all runs. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -page_token = 'page_token_example' # str | (optional) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + page_token = 'page_token_example' # str | (optional) page_size = 56 # int | (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. (optional) -resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to UNKNOWN_RESOURCE_TYPE) +resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to 'UNKNOWN_RESOURCE_TYPE') resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID of the resource that referred to. (optional) filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) -try: - # Find all runs. - api_response = api_instance.list_runs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->list_runs: %s\n" % e) + try: + # Find all runs. + api_response = api_instance.list_runs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->list_runs: %s\n" % e) ``` ### Parameters @@ -267,7 +381,7 @@ Name | Type | Description | Notes **page_token** | **str**| | [optional] **page_size** | **int**| | [optional] **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. | [optional] - **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to UNKNOWN_RESOURCE_TYPE] + **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to 'UNKNOWN_RESOURCE_TYPE'] **resource_reference_key_id** | **str**| The ID of the resource that referred to. | [optional] **filter** | **str**| A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). | [optional] @@ -281,9 +395,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_artifact** @@ -292,31 +412,49 @@ Name | Type | Description | Notes Find a run's artifact data. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -run_id = 'run_id_example' # str | The ID of the run. +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + run_id = 'run_id_example' # str | The ID of the run. node_id = 'node_id_example' # str | The ID of the running node. artifact_name = 'artifact_name_example' # str | The name of the artifact. -try: - # Find a run's artifact data. - api_response = api_instance.read_artifact(run_id, node_id, artifact_name) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->read_artifact: %s\n" % e) + try: + # Find a run's artifact data. + api_response = api_instance.read_artifact(run_id, node_id, artifact_name) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->read_artifact: %s\n" % e) ``` ### Parameters @@ -337,9 +475,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **report_run_metrics** @@ -348,30 +492,48 @@ Name | Type | Description | Notes ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -run_id = 'run_id_example' # str | Required. The parent run ID of the metric. +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + run_id = 'run_id_example' # str | Required. The parent run ID of the metric. body = kfp_server_api.ApiReportRunMetricsRequest() # ApiReportRunMetricsRequest | -try: - # ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. - api_response = api_instance.report_run_metrics(run_id, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->report_run_metrics: %s\n" % e) + try: + # ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. + api_response = api_instance.report_run_metrics(run_id, body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->report_run_metrics: %s\n" % e) ``` ### Parameters @@ -394,6 +556,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **retry_run** @@ -402,29 +570,47 @@ Name | Type | Description | Notes Re-initiate a failed or terminated run. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -run_id = 'run_id_example' # str | - -try: - # Re-initiate a failed or terminated run. - api_response = api_instance.retry_run(run_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->retry_run: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + run_id = 'run_id_example' # str | + + try: + # Re-initiate a failed or terminated run. + api_response = api_instance.retry_run(run_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->retry_run: %s\n" % e) ``` ### Parameters @@ -443,9 +629,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **terminate_run** @@ -454,29 +646,47 @@ Name | Type | Description | Notes Terminate an active run. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -run_id = 'run_id_example' # str | - -try: - # Terminate an active run. - api_response = api_instance.terminate_run(run_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->terminate_run: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + run_id = 'run_id_example' # str | + + try: + # Terminate an active run. + api_response = api_instance.terminate_run(run_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->terminate_run: %s\n" % e) ``` ### Parameters @@ -495,9 +705,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unarchive_run** @@ -506,29 +722,47 @@ Name | Type | Description | Notes Restore an archived run. ### Example + +* Api Key Authentication (Bearer): ```python from __future__ import print_function import time import kfp_server_api from kfp_server_api.rest import ApiException from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kfp_server_api.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. # Configure API key authorization: Bearer -configuration = kfp_server_api.Configuration() -configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kfp_server_api.Configuration( + host = "http://localhost", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kfp_server_api.RunServiceApi(kfp_server_api.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Restore an archived run. - api_response = api_instance.unarchive_run(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling RunServiceApi->unarchive_run: %s\n" % e) +# Enter a context with an instance of the API client +with kfp_server_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kfp_server_api.RunServiceApi(api_client) + id = 'id_example' # str | + + try: + # Restore an archived run. + api_response = api_instance.unarchive_run(id) + pprint(api_response) + except ApiException as e: + print("Exception when calling RunServiceApi->unarchive_run: %s\n" % e) ``` ### Parameters @@ -547,8 +781,14 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/kfp_server_api/git_push.sh b/backend/api/python_http_client/kfp_server_api/git_push.sh index ae01b182ae9..ced3be2b0c7 100644 --- a/backend/api/python_http_client/kfp_server_api/git_push.sh +++ b/backend/api/python_http_client/kfp_server_api/git_push.sh @@ -1,11 +1,17 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi if [ "$git_user_id" = "" ]; then git_user_id="GIT_USER_ID" @@ -28,7 +34,7 @@ git init # Adds the files in the local repository and stages them for commit. git add . -# Commits the tracked changes and prepares them to be pushed to a remote repository. +# Commits the tracked changes and prepares them to be pushed to a remote repository. git commit -m "$release_note" # Sets the new remote @@ -37,9 +43,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -47,6 +53,6 @@ fi git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py index 305af5e181e..23db90bd4fa 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py @@ -7,14 +7,15 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import +__version__ = "1.0.0-dev.1" + # import apis into sdk package from kfp_server_api.api.experiment_service_api import ExperimentServiceApi from kfp_server_api.api.job_service_api import JobServiceApi @@ -25,6 +26,11 @@ # import ApiClient from kfp_server_api.api_client import ApiClient from kfp_server_api.configuration import Configuration +from kfp_server_api.exceptions import OpenApiException +from kfp_server_api.exceptions import ApiTypeError +from kfp_server_api.exceptions import ApiValueError +from kfp_server_api.exceptions import ApiKeyError +from kfp_server_api.exceptions import ApiException # import models into sdk package from kfp_server_api.models.api_cron_schedule import ApiCronSchedule from kfp_server_api.models.api_experiment import ApiExperiment @@ -61,3 +67,4 @@ from kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status import ReportRunMetricsResponseReportRunMetricResultStatus from kfp_server_api.models.run_metric_format import RunMetricFormat from kfp_server_api.models.run_storage_state import RunStorageState + diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py index 2aa4c27faa2..0e091a8d391 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -19,13 +18,17 @@ import six from kfp_server_api.api_client import ApiClient +from kfp_server_api.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ExperimentServiceApi(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -41,18 +44,21 @@ def archive_experiment(self, id, **kwargs): # noqa: E501 >>> thread = api.archive_experiment(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.archive_experiment_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.archive_experiment_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.archive_experiment_with_http_info(id, **kwargs) # noqa: E501 def archive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 """Archive an experiment. # noqa: E501 @@ -62,38 +68,54 @@ def archive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.archive_experiment_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method archive_experiment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `archive_experiment`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `archive_experiment`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -107,10 +129,6 @@ def archive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -124,10 +142,10 @@ def archive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def create_experiment(self, body, **kwargs): # noqa: E501 @@ -138,18 +156,21 @@ def create_experiment(self, body, **kwargs): # noqa: E501 >>> thread = api.create_experiment(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiExperiment body: The experiment to be created. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiExperiment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_experiment_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_experiment_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_experiment_with_http_info(body, **kwargs) # noqa: E501 def create_experiment_with_http_info(self, body, **kwargs): # noqa: E501 """Create a new experiment. # noqa: E501 @@ -159,32 +180,48 @@ def create_experiment_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_experiment_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiExperiment body: The experiment to be created. (required) - :return: ApiExperiment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiExperiment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_experiment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_experiment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_experiment`") # noqa: E501 collection_formats = {} @@ -198,8 +235,8 @@ def create_experiment_with_http_info(self, body, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -221,10 +258,10 @@ def create_experiment_with_http_info(self, body, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiExperiment', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def delete_experiment(self, id, **kwargs): # noqa: E501 @@ -235,18 +272,21 @@ def delete_experiment(self, id, **kwargs): # noqa: E501 >>> thread = api.delete_experiment(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the experiment to be deleted. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_experiment_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.delete_experiment_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.delete_experiment_with_http_info(id, **kwargs) # noqa: E501 def delete_experiment_with_http_info(self, id, **kwargs): # noqa: E501 """Delete an experiment. # noqa: E501 @@ -256,38 +296,54 @@ def delete_experiment_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.delete_experiment_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the experiment to be deleted. (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_experiment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_experiment`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `delete_experiment`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -301,10 +357,6 @@ def delete_experiment_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -318,10 +370,10 @@ def delete_experiment_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_experiment(self, id, **kwargs): # noqa: E501 @@ -332,18 +384,21 @@ def get_experiment(self, id, **kwargs): # noqa: E501 >>> thread = api.get_experiment(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the experiment to be retrieved. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiExperiment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_experiment_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.get_experiment_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.get_experiment_with_http_info(id, **kwargs) # noqa: E501 def get_experiment_with_http_info(self, id, **kwargs): # noqa: E501 """Find a specific experiment by ID. # noqa: E501 @@ -353,38 +408,54 @@ def get_experiment_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.get_experiment_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the experiment to be retrieved. (required) - :return: ApiExperiment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiExperiment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_experiment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_experiment`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `get_experiment`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -398,10 +469,6 @@ def get_experiment_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -415,10 +482,10 @@ def get_experiment_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiExperiment', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def list_experiment(self, **kwargs): # noqa: E501 @@ -429,23 +496,26 @@ def list_experiment(self, **kwargs): # noqa: E501 >>> thread = api.list_experiment(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiListExperimentsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_experiment_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_experiment_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_experiment_with_http_info(**kwargs) # noqa: E501 def list_experiment_with_http_info(self, **kwargs): # noqa: E501 """Find all experiments. # noqa: E501 @@ -455,51 +525,72 @@ def list_experiment_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_experiment_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. - :return: ApiListExperimentsResponse + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiListExperimentsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['page_token', 'page_size', 'sort_by', 'filter', 'resource_reference_key_type', 'resource_reference_key_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'page_token', + 'page_size', + 'sort_by', + 'filter', + 'resource_reference_key_type', + 'resource_reference_key_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_experiment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'page_token' in params: - query_params.append(('page_token', params['page_token'])) # noqa: E501 - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) # noqa: E501 - if 'sort_by' in params: - query_params.append(('sort_by', params['sort_by'])) # noqa: E501 - if 'filter' in params: - query_params.append(('filter', params['filter'])) # noqa: E501 - if 'resource_reference_key_type' in params: - query_params.append(('resource_reference_key.type', params['resource_reference_key_type'])) # noqa: E501 - if 'resource_reference_key_id' in params: - query_params.append(('resource_reference_key.id', params['resource_reference_key_id'])) # noqa: E501 + if 'page_token' in local_var_params and local_var_params['page_token'] is not None: # noqa: E501 + query_params.append(('page_token', local_var_params['page_token'])) # noqa: E501 + if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 + query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501 + if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501 + query_params.append(('sort_by', local_var_params['sort_by'])) # noqa: E501 + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'resource_reference_key_type' in local_var_params and local_var_params['resource_reference_key_type'] is not None: # noqa: E501 + query_params.append(('resource_reference_key.type', local_var_params['resource_reference_key_type'])) # noqa: E501 + if 'resource_reference_key_id' in local_var_params and local_var_params['resource_reference_key_id'] is not None: # noqa: E501 + query_params.append(('resource_reference_key.id', local_var_params['resource_reference_key_id'])) # noqa: E501 header_params = {} @@ -511,10 +602,6 @@ def list_experiment_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -528,10 +615,10 @@ def list_experiment_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiListExperimentsResponse', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def unarchive_experiment(self, id, **kwargs): # noqa: E501 @@ -542,18 +629,21 @@ def unarchive_experiment(self, id, **kwargs): # noqa: E501 >>> thread = api.unarchive_experiment(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.unarchive_experiment_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.unarchive_experiment_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.unarchive_experiment_with_http_info(id, **kwargs) # noqa: E501 def unarchive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 """Restore an archived experiment. # noqa: E501 @@ -563,38 +653,54 @@ def unarchive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.unarchive_experiment_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method unarchive_experiment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `unarchive_experiment`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `unarchive_experiment`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -608,10 +714,6 @@ def unarchive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -625,8 +727,8 @@ def unarchive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py index 6e810b6a44d..7c4844c65f1 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -19,13 +18,17 @@ import six from kfp_server_api.api_client import ApiClient +from kfp_server_api.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class JobServiceApi(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -41,18 +44,21 @@ def create_job(self, body, **kwargs): # noqa: E501 >>> thread = api.create_job(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiJob body: The job to be created (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_job_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_job_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_job_with_http_info(body, **kwargs) # noqa: E501 def create_job_with_http_info(self, body, **kwargs): # noqa: E501 """Create a new job. # noqa: E501 @@ -62,32 +68,48 @@ def create_job_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_job_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiJob body: The job to be created (required) - :return: ApiJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_job`") # noqa: E501 collection_formats = {} @@ -101,8 +123,8 @@ def create_job_with_http_info(self, body, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -124,10 +146,10 @@ def create_job_with_http_info(self, body, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiJob', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def delete_job(self, id, **kwargs): # noqa: E501 @@ -138,18 +160,21 @@ def delete_job(self, id, **kwargs): # noqa: E501 >>> thread = api.delete_job(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the job to be deleted (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_job_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.delete_job_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.delete_job_with_http_info(id, **kwargs) # noqa: E501 def delete_job_with_http_info(self, id, **kwargs): # noqa: E501 """Delete a job. # noqa: E501 @@ -159,38 +184,54 @@ def delete_job_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.delete_job_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the job to be deleted (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_job`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `delete_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -204,10 +245,6 @@ def delete_job_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -221,10 +258,10 @@ def delete_job_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def disable_job(self, id, **kwargs): # noqa: E501 @@ -235,18 +272,21 @@ def disable_job(self, id, **kwargs): # noqa: E501 >>> thread = api.disable_job(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the job to be disabled (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.disable_job_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.disable_job_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.disable_job_with_http_info(id, **kwargs) # noqa: E501 def disable_job_with_http_info(self, id, **kwargs): # noqa: E501 """Stops a job and all its associated runs. The job is not deleted. # noqa: E501 @@ -256,38 +296,54 @@ def disable_job_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.disable_job_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the job to be disabled (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method disable_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `disable_job`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `disable_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -301,10 +357,6 @@ def disable_job_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -318,10 +370,10 @@ def disable_job_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def enable_job(self, id, **kwargs): # noqa: E501 @@ -332,18 +384,21 @@ def enable_job(self, id, **kwargs): # noqa: E501 >>> thread = api.enable_job(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the job to be enabled (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.enable_job_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.enable_job_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.enable_job_with_http_info(id, **kwargs) # noqa: E501 def enable_job_with_http_info(self, id, **kwargs): # noqa: E501 """Restarts a job that was previously stopped. All runs associated with the job will continue. # noqa: E501 @@ -353,38 +408,54 @@ def enable_job_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.enable_job_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the job to be enabled (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method enable_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `enable_job`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `enable_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -398,10 +469,6 @@ def enable_job_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -415,10 +482,10 @@ def enable_job_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_job(self, id, **kwargs): # noqa: E501 @@ -429,18 +496,21 @@ def get_job(self, id, **kwargs): # noqa: E501 >>> thread = api.get_job(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the job to be retrieved (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_job_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.get_job_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.get_job_with_http_info(id, **kwargs) # noqa: E501 def get_job_with_http_info(self, id, **kwargs): # noqa: E501 """Find a specific job by ID. # noqa: E501 @@ -450,38 +520,54 @@ def get_job_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.get_job_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: The ID of the job to be retrieved (required) - :return: ApiJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_job`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `get_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -495,10 +581,6 @@ def get_job_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -512,10 +594,10 @@ def get_job_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiJob', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def list_jobs(self, **kwargs): # noqa: E501 @@ -526,23 +608,26 @@ def list_jobs(self, **kwargs): # noqa: E501 >>> thread = api.list_jobs(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiListJobsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_jobs_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_jobs_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_jobs_with_http_info(**kwargs) # noqa: E501 def list_jobs_with_http_info(self, **kwargs): # noqa: E501 """Find all jobs. # noqa: E501 @@ -552,51 +637,72 @@ def list_jobs_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_jobs_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). - :return: ApiListJobsResponse + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiListJobsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['page_token', 'page_size', 'sort_by', 'resource_reference_key_type', 'resource_reference_key_id', 'filter'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'page_token', + 'page_size', + 'sort_by', + 'resource_reference_key_type', + 'resource_reference_key_id', + 'filter' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_jobs" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'page_token' in params: - query_params.append(('page_token', params['page_token'])) # noqa: E501 - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) # noqa: E501 - if 'sort_by' in params: - query_params.append(('sort_by', params['sort_by'])) # noqa: E501 - if 'resource_reference_key_type' in params: - query_params.append(('resource_reference_key.type', params['resource_reference_key_type'])) # noqa: E501 - if 'resource_reference_key_id' in params: - query_params.append(('resource_reference_key.id', params['resource_reference_key_id'])) # noqa: E501 - if 'filter' in params: - query_params.append(('filter', params['filter'])) # noqa: E501 + if 'page_token' in local_var_params and local_var_params['page_token'] is not None: # noqa: E501 + query_params.append(('page_token', local_var_params['page_token'])) # noqa: E501 + if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 + query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501 + if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501 + query_params.append(('sort_by', local_var_params['sort_by'])) # noqa: E501 + if 'resource_reference_key_type' in local_var_params and local_var_params['resource_reference_key_type'] is not None: # noqa: E501 + query_params.append(('resource_reference_key.type', local_var_params['resource_reference_key_type'])) # noqa: E501 + if 'resource_reference_key_id' in local_var_params and local_var_params['resource_reference_key_id'] is not None: # noqa: E501 + query_params.append(('resource_reference_key.id', local_var_params['resource_reference_key_id'])) # noqa: E501 + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 header_params = {} @@ -608,10 +714,6 @@ def list_jobs_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -625,8 +727,8 @@ def list_jobs_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiListJobsResponse', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py index b3a60f775d8..e8609794d1d 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -19,13 +18,17 @@ import six from kfp_server_api.api_client import ApiClient +from kfp_server_api.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class PipelineServiceApi(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -41,18 +44,21 @@ def create_pipeline(self, body, **kwargs): # noqa: E501 >>> thread = api.create_pipeline(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiPipeline body: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiPipeline If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_pipeline_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_pipeline_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_pipeline_with_http_info(body, **kwargs) # noqa: E501 def create_pipeline_with_http_info(self, body, **kwargs): # noqa: E501 """Add a pipeline. # noqa: E501 @@ -62,32 +68,48 @@ def create_pipeline_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_pipeline_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiPipeline body: (required) - :return: ApiPipeline + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiPipeline, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_pipeline" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_pipeline`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_pipeline`") # noqa: E501 collection_formats = {} @@ -101,8 +123,8 @@ def create_pipeline_with_http_info(self, body, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -124,10 +146,10 @@ def create_pipeline_with_http_info(self, body, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiPipeline', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def create_pipeline_version(self, body, **kwargs): # noqa: E501 @@ -138,18 +160,21 @@ def create_pipeline_version(self, body, **kwargs): # noqa: E501 >>> thread = api.create_pipeline_version(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiPipelineVersion body: ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiPipelineVersion If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_pipeline_version_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_pipeline_version_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_pipeline_version_with_http_info(body, **kwargs) # noqa: E501 def create_pipeline_version_with_http_info(self, body, **kwargs): # noqa: E501 """create_pipeline_version # noqa: E501 @@ -159,32 +184,48 @@ def create_pipeline_version_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_pipeline_version_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiPipelineVersion body: ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. (required) - :return: ApiPipelineVersion + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiPipelineVersion, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_pipeline_version" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_pipeline_version`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_pipeline_version`") # noqa: E501 collection_formats = {} @@ -198,8 +239,8 @@ def create_pipeline_version_with_http_info(self, body, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -221,10 +262,10 @@ def create_pipeline_version_with_http_info(self, body, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiPipelineVersion', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def delete_pipeline(self, id, **kwargs): # noqa: E501 @@ -235,18 +276,21 @@ def delete_pipeline(self, id, **kwargs): # noqa: E501 >>> thread = api.delete_pipeline(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_pipeline_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.delete_pipeline_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.delete_pipeline_with_http_info(id, **kwargs) # noqa: E501 def delete_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 """Delete a pipeline. # noqa: E501 @@ -256,38 +300,54 @@ def delete_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.delete_pipeline_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_pipeline" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_pipeline`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `delete_pipeline`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -301,10 +361,6 @@ def delete_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -318,10 +374,10 @@ def delete_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def delete_pipeline_version(self, version_id, **kwargs): # noqa: E501 @@ -332,18 +388,21 @@ def delete_pipeline_version(self, version_id, **kwargs): # noqa: E501 >>> thread = api.delete_pipeline_version(version_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str version_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 - return data + return self.delete_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 def delete_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E501 """delete_pipeline_version # noqa: E501 @@ -353,38 +412,54 @@ def delete_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: >>> thread = api.delete_pipeline_version_with_http_info(version_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str version_id: (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['version_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'version_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_pipeline_version" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'version_id' is set - if ('version_id' not in params or - params['version_id'] is None): - raise ValueError("Missing the required parameter `version_id` when calling `delete_pipeline_version`") # noqa: E501 + if self.api_client.client_side_validation and ('version_id' not in local_var_params or # noqa: E501 + local_var_params['version_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version_id` when calling `delete_pipeline_version`") # noqa: E501 collection_formats = {} path_params = {} - if 'version_id' in params: - path_params['version_id'] = params['version_id'] # noqa: E501 + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] # noqa: E501 query_params = [] @@ -398,10 +473,6 @@ def delete_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -415,10 +486,10 @@ def delete_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_pipeline(self, id, **kwargs): # noqa: E501 @@ -429,18 +500,21 @@ def get_pipeline(self, id, **kwargs): # noqa: E501 >>> thread = api.get_pipeline(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiPipeline If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_pipeline_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.get_pipeline_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.get_pipeline_with_http_info(id, **kwargs) # noqa: E501 def get_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 """Find a specific pipeline by ID. # noqa: E501 @@ -450,38 +524,54 @@ def get_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.get_pipeline_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) - :return: ApiPipeline + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiPipeline, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_pipeline" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_pipeline`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `get_pipeline`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -495,10 +585,6 @@ def get_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -512,10 +598,10 @@ def get_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiPipeline', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_pipeline_version(self, version_id, **kwargs): # noqa: E501 @@ -526,18 +612,21 @@ def get_pipeline_version(self, version_id, **kwargs): # noqa: E501 >>> thread = api.get_pipeline_version(version_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str version_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiPipelineVersion If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 - else: - (data) = self.get_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 - return data + return self.get_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 def get_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E501 """get_pipeline_version # noqa: E501 @@ -547,38 +636,54 @@ def get_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E5 >>> thread = api.get_pipeline_version_with_http_info(version_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str version_id: (required) - :return: ApiPipelineVersion + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiPipelineVersion, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['version_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'version_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_pipeline_version" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'version_id' is set - if ('version_id' not in params or - params['version_id'] is None): - raise ValueError("Missing the required parameter `version_id` when calling `get_pipeline_version`") # noqa: E501 + if self.api_client.client_side_validation and ('version_id' not in local_var_params or # noqa: E501 + local_var_params['version_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version_id` when calling `get_pipeline_version`") # noqa: E501 collection_formats = {} path_params = {} - if 'version_id' in params: - path_params['version_id'] = params['version_id'] # noqa: E501 + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] # noqa: E501 query_params = [] @@ -592,10 +697,6 @@ def get_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E5 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -609,10 +710,10 @@ def get_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E5 files=local_var_files, response_type='ApiPipelineVersion', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_pipeline_version_template(self, version_id, **kwargs): # noqa: E501 @@ -623,18 +724,21 @@ def get_pipeline_version_template(self, version_id, **kwargs): # noqa: E501 >>> thread = api.get_pipeline_version_template(version_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str version_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiGetTemplateResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_pipeline_version_template_with_http_info(version_id, **kwargs) # noqa: E501 - else: - (data) = self.get_pipeline_version_template_with_http_info(version_id, **kwargs) # noqa: E501 - return data + return self.get_pipeline_version_template_with_http_info(version_id, **kwargs) # noqa: E501 def get_pipeline_version_template_with_http_info(self, version_id, **kwargs): # noqa: E501 """get_pipeline_version_template # noqa: E501 @@ -644,38 +748,54 @@ def get_pipeline_version_template_with_http_info(self, version_id, **kwargs): # >>> thread = api.get_pipeline_version_template_with_http_info(version_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str version_id: (required) - :return: ApiGetTemplateResponse + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiGetTemplateResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['version_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'version_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_pipeline_version_template" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'version_id' is set - if ('version_id' not in params or - params['version_id'] is None): - raise ValueError("Missing the required parameter `version_id` when calling `get_pipeline_version_template`") # noqa: E501 + if self.api_client.client_side_validation and ('version_id' not in local_var_params or # noqa: E501 + local_var_params['version_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version_id` when calling `get_pipeline_version_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'version_id' in params: - path_params['version_id'] = params['version_id'] # noqa: E501 + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] # noqa: E501 query_params = [] @@ -689,10 +809,6 @@ def get_pipeline_version_template_with_http_info(self, version_id, **kwargs): # header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -706,10 +822,10 @@ def get_pipeline_version_template_with_http_info(self, version_id, **kwargs): # files=local_var_files, response_type='ApiGetTemplateResponse', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_template(self, id, **kwargs): # noqa: E501 @@ -720,18 +836,21 @@ def get_template(self, id, **kwargs): # noqa: E501 >>> thread = api.get_template(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiGetTemplateResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_template_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.get_template_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.get_template_with_http_info(id, **kwargs) # noqa: E501 def get_template_with_http_info(self, id, **kwargs): # noqa: E501 """Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. # noqa: E501 @@ -741,38 +860,54 @@ def get_template_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.get_template_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) - :return: ApiGetTemplateResponse + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiGetTemplateResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_template" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_template`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `get_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -786,10 +921,6 @@ def get_template_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -803,10 +934,10 @@ def get_template_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiGetTemplateResponse', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def list_pipeline_versions(self, **kwargs): # noqa: E501 @@ -817,23 +948,26 @@ def list_pipeline_versions(self, **kwargs): # noqa: E501 >>> thread = api.list_pipeline_versions(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str resource_key_type: The type of the resource that referred to. :param str resource_key_id: The ID of the resource that referred to. :param int page_size: :param str page_token: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiListPipelineVersionsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_pipeline_versions_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_pipeline_versions_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_pipeline_versions_with_http_info(**kwargs) # noqa: E501 def list_pipeline_versions_with_http_info(self, **kwargs): # noqa: E501 """list_pipeline_versions # noqa: E501 @@ -843,51 +977,72 @@ def list_pipeline_versions_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_pipeline_versions_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str resource_key_type: The type of the resource that referred to. :param str resource_key_id: The ID of the resource that referred to. :param int page_size: :param str page_token: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). - :return: ApiListPipelineVersionsResponse + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiListPipelineVersionsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['resource_key_type', 'resource_key_id', 'page_size', 'page_token', 'sort_by', 'filter'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'resource_key_type', + 'resource_key_id', + 'page_size', + 'page_token', + 'sort_by', + 'filter' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_pipeline_versions" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'resource_key_type' in params: - query_params.append(('resource_key.type', params['resource_key_type'])) # noqa: E501 - if 'resource_key_id' in params: - query_params.append(('resource_key.id', params['resource_key_id'])) # noqa: E501 - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) # noqa: E501 - if 'page_token' in params: - query_params.append(('page_token', params['page_token'])) # noqa: E501 - if 'sort_by' in params: - query_params.append(('sort_by', params['sort_by'])) # noqa: E501 - if 'filter' in params: - query_params.append(('filter', params['filter'])) # noqa: E501 + if 'resource_key_type' in local_var_params and local_var_params['resource_key_type'] is not None: # noqa: E501 + query_params.append(('resource_key.type', local_var_params['resource_key_type'])) # noqa: E501 + if 'resource_key_id' in local_var_params and local_var_params['resource_key_id'] is not None: # noqa: E501 + query_params.append(('resource_key.id', local_var_params['resource_key_id'])) # noqa: E501 + if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 + query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501 + if 'page_token' in local_var_params and local_var_params['page_token'] is not None: # noqa: E501 + query_params.append(('page_token', local_var_params['page_token'])) # noqa: E501 + if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501 + query_params.append(('sort_by', local_var_params['sort_by'])) # noqa: E501 + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 header_params = {} @@ -899,10 +1054,6 @@ def list_pipeline_versions_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -916,10 +1067,10 @@ def list_pipeline_versions_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiListPipelineVersionsResponse', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def list_pipelines(self, **kwargs): # noqa: E501 @@ -930,21 +1081,24 @@ def list_pipelines(self, **kwargs): # noqa: E501 >>> thread = api.list_pipelines(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiListPipelinesResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_pipelines_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_pipelines_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_pipelines_with_http_info(**kwargs) # noqa: E501 def list_pipelines_with_http_info(self, **kwargs): # noqa: E501 """Find all pipelines. # noqa: E501 @@ -954,45 +1108,64 @@ def list_pipelines_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_pipelines_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). - :return: ApiListPipelinesResponse + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiListPipelinesResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['page_token', 'page_size', 'sort_by', 'filter'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'page_token', + 'page_size', + 'sort_by', + 'filter' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_pipelines" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'page_token' in params: - query_params.append(('page_token', params['page_token'])) # noqa: E501 - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) # noqa: E501 - if 'sort_by' in params: - query_params.append(('sort_by', params['sort_by'])) # noqa: E501 - if 'filter' in params: - query_params.append(('filter', params['filter'])) # noqa: E501 + if 'page_token' in local_var_params and local_var_params['page_token'] is not None: # noqa: E501 + query_params.append(('page_token', local_var_params['page_token'])) # noqa: E501 + if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 + query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501 + if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501 + query_params.append(('sort_by', local_var_params['sort_by'])) # noqa: E501 + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 header_params = {} @@ -1004,10 +1177,6 @@ def list_pipelines_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -1021,8 +1190,8 @@ def list_pipelines_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiListPipelinesResponse', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py index 4718d69464d..ebd2873c33e 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -19,13 +18,17 @@ import six from kfp_server_api.api_client import ApiClient +from kfp_server_api.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class PipelineUploadServiceApi(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -41,20 +44,23 @@ def upload_pipeline(self, uploadfile, **kwargs): # noqa: E501 >>> thread = api.upload_pipeline(uploadfile, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param file uploadfile: The pipeline to upload. Maximum size of 32MB is supported. (required) :param str name: :param str description: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiPipeline If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.upload_pipeline_with_http_info(uploadfile, **kwargs) # noqa: E501 - else: - (data) = self.upload_pipeline_with_http_info(uploadfile, **kwargs) # noqa: E501 - return data + return self.upload_pipeline_with_http_info(uploadfile, **kwargs) # noqa: E501 def upload_pipeline_with_http_info(self, uploadfile, **kwargs): # noqa: E501 """upload_pipeline # noqa: E501 @@ -64,51 +70,69 @@ def upload_pipeline_with_http_info(self, uploadfile, **kwargs): # noqa: E501 >>> thread = api.upload_pipeline_with_http_info(uploadfile, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param file uploadfile: The pipeline to upload. Maximum size of 32MB is supported. (required) :param str name: :param str description: - :return: ApiPipeline + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiPipeline, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['uploadfile', 'name', 'description'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'uploadfile', + 'name', + 'description' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method upload_pipeline" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'uploadfile' is set - if ('uploadfile' not in params or - params['uploadfile'] is None): - raise ValueError("Missing the required parameter `uploadfile` when calling `upload_pipeline`") # noqa: E501 + if self.api_client.client_side_validation and ('uploadfile' not in local_var_params or # noqa: E501 + local_var_params['uploadfile'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uploadfile` when calling `upload_pipeline`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'name' in params: - query_params.append(('name', params['name'])) # noqa: E501 - if 'description' in params: - query_params.append(('description', params['description'])) # noqa: E501 + if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501 + query_params.append(('name', local_var_params['name'])) # noqa: E501 + if 'description' in local_var_params and local_var_params['description'] is not None: # noqa: E501 + query_params.append(('description', local_var_params['description'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} - if 'uploadfile' in params: - local_var_files['uploadfile'] = params['uploadfile'] # noqa: E501 + if 'uploadfile' in local_var_params: + local_var_files['uploadfile'] = local_var_params['uploadfile'] # noqa: E501 body_params = None # HTTP header `Accept` @@ -132,10 +156,10 @@ def upload_pipeline_with_http_info(self, uploadfile, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiPipeline', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def upload_pipeline_version(self, uploadfile, **kwargs): # noqa: E501 @@ -146,20 +170,23 @@ def upload_pipeline_version(self, uploadfile, **kwargs): # noqa: E501 >>> thread = api.upload_pipeline_version(uploadfile, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param file uploadfile: The pipeline to upload. Maximum size of 32MB is supported. (required) :param str name: :param str pipelineid: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiPipelineVersion If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.upload_pipeline_version_with_http_info(uploadfile, **kwargs) # noqa: E501 - else: - (data) = self.upload_pipeline_version_with_http_info(uploadfile, **kwargs) # noqa: E501 - return data + return self.upload_pipeline_version_with_http_info(uploadfile, **kwargs) # noqa: E501 def upload_pipeline_version_with_http_info(self, uploadfile, **kwargs): # noqa: E501 """upload_pipeline_version # noqa: E501 @@ -169,51 +196,69 @@ def upload_pipeline_version_with_http_info(self, uploadfile, **kwargs): # noqa: >>> thread = api.upload_pipeline_version_with_http_info(uploadfile, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param file uploadfile: The pipeline to upload. Maximum size of 32MB is supported. (required) :param str name: :param str pipelineid: - :return: ApiPipelineVersion + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiPipelineVersion, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['uploadfile', 'name', 'pipelineid'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'uploadfile', + 'name', + 'pipelineid' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method upload_pipeline_version" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'uploadfile' is set - if ('uploadfile' not in params or - params['uploadfile'] is None): - raise ValueError("Missing the required parameter `uploadfile` when calling `upload_pipeline_version`") # noqa: E501 + if self.api_client.client_side_validation and ('uploadfile' not in local_var_params or # noqa: E501 + local_var_params['uploadfile'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uploadfile` when calling `upload_pipeline_version`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'name' in params: - query_params.append(('name', params['name'])) # noqa: E501 - if 'pipelineid' in params: - query_params.append(('pipelineid', params['pipelineid'])) # noqa: E501 + if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501 + query_params.append(('name', local_var_params['name'])) # noqa: E501 + if 'pipelineid' in local_var_params and local_var_params['pipelineid'] is not None: # noqa: E501 + query_params.append(('pipelineid', local_var_params['pipelineid'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} - if 'uploadfile' in params: - local_var_files['uploadfile'] = params['uploadfile'] # noqa: E501 + if 'uploadfile' in local_var_params: + local_var_files['uploadfile'] = local_var_params['uploadfile'] # noqa: E501 body_params = None # HTTP header `Accept` @@ -237,8 +282,8 @@ def upload_pipeline_version_with_http_info(self, uploadfile, **kwargs): # noqa: files=local_var_files, response_type='ApiPipelineVersion', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py index 731848fd3e8..1c4e846913d 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -19,13 +18,17 @@ import six from kfp_server_api.api_client import ApiClient +from kfp_server_api.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class RunServiceApi(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -41,18 +44,21 @@ def archive_run(self, id, **kwargs): # noqa: E501 >>> thread = api.archive_run(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.archive_run_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.archive_run_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.archive_run_with_http_info(id, **kwargs) # noqa: E501 def archive_run_with_http_info(self, id, **kwargs): # noqa: E501 """Archive a run. # noqa: E501 @@ -62,38 +68,54 @@ def archive_run_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.archive_run_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method archive_run" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `archive_run`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `archive_run`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -107,10 +129,6 @@ def archive_run_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -124,10 +142,10 @@ def archive_run_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def create_run(self, body, **kwargs): # noqa: E501 @@ -138,18 +156,21 @@ def create_run(self, body, **kwargs): # noqa: E501 >>> thread = api.create_run(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiRun body: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiRunDetail If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_run_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_run_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_run_with_http_info(body, **kwargs) # noqa: E501 def create_run_with_http_info(self, body, **kwargs): # noqa: E501 """Create a new run. # noqa: E501 @@ -159,32 +180,48 @@ def create_run_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_run_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ApiRun body: (required) - :return: ApiRunDetail + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiRunDetail, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_run" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_run`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_run`") # noqa: E501 collection_formats = {} @@ -198,8 +235,8 @@ def create_run_with_http_info(self, body, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -221,10 +258,10 @@ def create_run_with_http_info(self, body, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiRunDetail', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def delete_run(self, id, **kwargs): # noqa: E501 @@ -235,18 +272,21 @@ def delete_run(self, id, **kwargs): # noqa: E501 >>> thread = api.delete_run(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_run_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.delete_run_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.delete_run_with_http_info(id, **kwargs) # noqa: E501 def delete_run_with_http_info(self, id, **kwargs): # noqa: E501 """Delete a run. # noqa: E501 @@ -256,38 +296,54 @@ def delete_run_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.delete_run_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_run" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_run`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `delete_run`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -301,10 +357,6 @@ def delete_run_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -318,10 +370,10 @@ def delete_run_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_run(self, run_id, **kwargs): # noqa: E501 @@ -332,18 +384,21 @@ def get_run(self, run_id, **kwargs): # noqa: E501 >>> thread = api.get_run(run_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiRunDetail If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_run_with_http_info(run_id, **kwargs) # noqa: E501 - else: - (data) = self.get_run_with_http_info(run_id, **kwargs) # noqa: E501 - return data + return self.get_run_with_http_info(run_id, **kwargs) # noqa: E501 def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501 """Find a specific run by ID. # noqa: E501 @@ -353,38 +408,54 @@ def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501 >>> thread = api.get_run_with_http_info(run_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: (required) - :return: ApiRunDetail + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiRunDetail, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['run_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'run_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_run" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'run_id' is set - if ('run_id' not in params or - params['run_id'] is None): - raise ValueError("Missing the required parameter `run_id` when calling `get_run`") # noqa: E501 + if self.api_client.client_side_validation and ('run_id' not in local_var_params or # noqa: E501 + local_var_params['run_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `run_id` when calling `get_run`") # noqa: E501 collection_formats = {} path_params = {} - if 'run_id' in params: - path_params['run_id'] = params['run_id'] # noqa: E501 + if 'run_id' in local_var_params: + path_params['run_id'] = local_var_params['run_id'] # noqa: E501 query_params = [] @@ -398,10 +469,6 @@ def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -415,10 +482,10 @@ def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiRunDetail', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def list_runs(self, **kwargs): # noqa: E501 @@ -429,23 +496,26 @@ def list_runs(self, **kwargs): # noqa: E501 >>> thread = api.list_runs(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiListRunsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_runs_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_runs_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_runs_with_http_info(**kwargs) # noqa: E501 def list_runs_with_http_info(self, **kwargs): # noqa: E501 """Find all runs. # noqa: E501 @@ -455,51 +525,72 @@ def list_runs_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_runs_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). - :return: ApiListRunsResponse + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiListRunsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['page_token', 'page_size', 'sort_by', 'resource_reference_key_type', 'resource_reference_key_id', 'filter'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'page_token', + 'page_size', + 'sort_by', + 'resource_reference_key_type', + 'resource_reference_key_id', + 'filter' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_runs" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'page_token' in params: - query_params.append(('page_token', params['page_token'])) # noqa: E501 - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) # noqa: E501 - if 'sort_by' in params: - query_params.append(('sort_by', params['sort_by'])) # noqa: E501 - if 'resource_reference_key_type' in params: - query_params.append(('resource_reference_key.type', params['resource_reference_key_type'])) # noqa: E501 - if 'resource_reference_key_id' in params: - query_params.append(('resource_reference_key.id', params['resource_reference_key_id'])) # noqa: E501 - if 'filter' in params: - query_params.append(('filter', params['filter'])) # noqa: E501 + if 'page_token' in local_var_params and local_var_params['page_token'] is not None: # noqa: E501 + query_params.append(('page_token', local_var_params['page_token'])) # noqa: E501 + if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 + query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501 + if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501 + query_params.append(('sort_by', local_var_params['sort_by'])) # noqa: E501 + if 'resource_reference_key_type' in local_var_params and local_var_params['resource_reference_key_type'] is not None: # noqa: E501 + query_params.append(('resource_reference_key.type', local_var_params['resource_reference_key_type'])) # noqa: E501 + if 'resource_reference_key_id' in local_var_params and local_var_params['resource_reference_key_id'] is not None: # noqa: E501 + query_params.append(('resource_reference_key.id', local_var_params['resource_reference_key_id'])) # noqa: E501 + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 header_params = {} @@ -511,10 +602,6 @@ def list_runs_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -528,10 +615,10 @@ def list_runs_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='ApiListRunsResponse', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def read_artifact(self, run_id, node_id, artifact_name, **kwargs): # noqa: E501 @@ -542,20 +629,23 @@ def read_artifact(self, run_id, node_id, artifact_name, **kwargs): # noqa: E501 >>> thread = api.read_artifact(run_id, node_id, artifact_name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: The ID of the run. (required) :param str node_id: The ID of the running node. (required) :param str artifact_name: The name of the artifact. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiReadArtifactResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_artifact_with_http_info(run_id, node_id, artifact_name, **kwargs) # noqa: E501 - else: - (data) = self.read_artifact_with_http_info(run_id, node_id, artifact_name, **kwargs) # noqa: E501 - return data + return self.read_artifact_with_http_info(run_id, node_id, artifact_name, **kwargs) # noqa: E501 def read_artifact_with_http_info(self, run_id, node_id, artifact_name, **kwargs): # noqa: E501 """Find a run's artifact data. # noqa: E501 @@ -565,52 +655,70 @@ def read_artifact_with_http_info(self, run_id, node_id, artifact_name, **kwargs) >>> thread = api.read_artifact_with_http_info(run_id, node_id, artifact_name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: The ID of the run. (required) :param str node_id: The ID of the running node. (required) :param str artifact_name: The name of the artifact. (required) - :return: ApiReadArtifactResponse + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiReadArtifactResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['run_id', 'node_id', 'artifact_name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'run_id', + 'node_id', + 'artifact_name' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_artifact" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'run_id' is set - if ('run_id' not in params or - params['run_id'] is None): - raise ValueError("Missing the required parameter `run_id` when calling `read_artifact`") # noqa: E501 + if self.api_client.client_side_validation and ('run_id' not in local_var_params or # noqa: E501 + local_var_params['run_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `run_id` when calling `read_artifact`") # noqa: E501 # verify the required parameter 'node_id' is set - if ('node_id' not in params or - params['node_id'] is None): - raise ValueError("Missing the required parameter `node_id` when calling `read_artifact`") # noqa: E501 + if self.api_client.client_side_validation and ('node_id' not in local_var_params or # noqa: E501 + local_var_params['node_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_id` when calling `read_artifact`") # noqa: E501 # verify the required parameter 'artifact_name' is set - if ('artifact_name' not in params or - params['artifact_name'] is None): - raise ValueError("Missing the required parameter `artifact_name` when calling `read_artifact`") # noqa: E501 + if self.api_client.client_side_validation and ('artifact_name' not in local_var_params or # noqa: E501 + local_var_params['artifact_name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `artifact_name` when calling `read_artifact`") # noqa: E501 collection_formats = {} path_params = {} - if 'run_id' in params: - path_params['run_id'] = params['run_id'] # noqa: E501 - if 'node_id' in params: - path_params['node_id'] = params['node_id'] # noqa: E501 - if 'artifact_name' in params: - path_params['artifact_name'] = params['artifact_name'] # noqa: E501 + if 'run_id' in local_var_params: + path_params['run_id'] = local_var_params['run_id'] # noqa: E501 + if 'node_id' in local_var_params: + path_params['node_id'] = local_var_params['node_id'] # noqa: E501 + if 'artifact_name' in local_var_params: + path_params['artifact_name'] = local_var_params['artifact_name'] # noqa: E501 query_params = [] @@ -624,10 +732,6 @@ def read_artifact_with_http_info(self, run_id, node_id, artifact_name, **kwargs) header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -641,10 +745,10 @@ def read_artifact_with_http_info(self, run_id, node_id, artifact_name, **kwargs) files=local_var_files, response_type='ApiReadArtifactResponse', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def report_run_metrics(self, run_id, body, **kwargs): # noqa: E501 @@ -655,19 +759,22 @@ def report_run_metrics(self, run_id, body, **kwargs): # noqa: E501 >>> thread = api.report_run_metrics(run_id, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: Required. The parent run ID of the metric. (required) :param ApiReportRunMetricsRequest body: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ApiReportRunMetricsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.report_run_metrics_with_http_info(run_id, body, **kwargs) # noqa: E501 - else: - (data) = self.report_run_metrics_with_http_info(run_id, body, **kwargs) # noqa: E501 - return data + return self.report_run_metrics_with_http_info(run_id, body, **kwargs) # noqa: E501 def report_run_metrics_with_http_info(self, run_id, body, **kwargs): # noqa: E501 """ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. # noqa: E501 @@ -677,43 +784,60 @@ def report_run_metrics_with_http_info(self, run_id, body, **kwargs): # noqa: E5 >>> thread = api.report_run_metrics_with_http_info(run_id, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: Required. The parent run ID of the metric. (required) :param ApiReportRunMetricsRequest body: (required) - :return: ApiReportRunMetricsResponse + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ApiReportRunMetricsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['run_id', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'run_id', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method report_run_metrics" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'run_id' is set - if ('run_id' not in params or - params['run_id'] is None): - raise ValueError("Missing the required parameter `run_id` when calling `report_run_metrics`") # noqa: E501 + if self.api_client.client_side_validation and ('run_id' not in local_var_params or # noqa: E501 + local_var_params['run_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `run_id` when calling `report_run_metrics`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `report_run_metrics`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `report_run_metrics`") # noqa: E501 collection_formats = {} path_params = {} - if 'run_id' in params: - path_params['run_id'] = params['run_id'] # noqa: E501 + if 'run_id' in local_var_params: + path_params['run_id'] = local_var_params['run_id'] # noqa: E501 query_params = [] @@ -723,8 +847,8 @@ def report_run_metrics_with_http_info(self, run_id, body, **kwargs): # noqa: E5 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -746,10 +870,10 @@ def report_run_metrics_with_http_info(self, run_id, body, **kwargs): # noqa: E5 files=local_var_files, response_type='ApiReportRunMetricsResponse', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def retry_run(self, run_id, **kwargs): # noqa: E501 @@ -760,18 +884,21 @@ def retry_run(self, run_id, **kwargs): # noqa: E501 >>> thread = api.retry_run(run_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.retry_run_with_http_info(run_id, **kwargs) # noqa: E501 - else: - (data) = self.retry_run_with_http_info(run_id, **kwargs) # noqa: E501 - return data + return self.retry_run_with_http_info(run_id, **kwargs) # noqa: E501 def retry_run_with_http_info(self, run_id, **kwargs): # noqa: E501 """Re-initiate a failed or terminated run. # noqa: E501 @@ -781,38 +908,54 @@ def retry_run_with_http_info(self, run_id, **kwargs): # noqa: E501 >>> thread = api.retry_run_with_http_info(run_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['run_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'run_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method retry_run" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'run_id' is set - if ('run_id' not in params or - params['run_id'] is None): - raise ValueError("Missing the required parameter `run_id` when calling `retry_run`") # noqa: E501 + if self.api_client.client_side_validation and ('run_id' not in local_var_params or # noqa: E501 + local_var_params['run_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `run_id` when calling `retry_run`") # noqa: E501 collection_formats = {} path_params = {} - if 'run_id' in params: - path_params['run_id'] = params['run_id'] # noqa: E501 + if 'run_id' in local_var_params: + path_params['run_id'] = local_var_params['run_id'] # noqa: E501 query_params = [] @@ -826,10 +969,6 @@ def retry_run_with_http_info(self, run_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -843,10 +982,10 @@ def retry_run_with_http_info(self, run_id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def terminate_run(self, run_id, **kwargs): # noqa: E501 @@ -857,18 +996,21 @@ def terminate_run(self, run_id, **kwargs): # noqa: E501 >>> thread = api.terminate_run(run_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.terminate_run_with_http_info(run_id, **kwargs) # noqa: E501 - else: - (data) = self.terminate_run_with_http_info(run_id, **kwargs) # noqa: E501 - return data + return self.terminate_run_with_http_info(run_id, **kwargs) # noqa: E501 def terminate_run_with_http_info(self, run_id, **kwargs): # noqa: E501 """Terminate an active run. # noqa: E501 @@ -878,38 +1020,54 @@ def terminate_run_with_http_info(self, run_id, **kwargs): # noqa: E501 >>> thread = api.terminate_run_with_http_info(run_id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str run_id: (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['run_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'run_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method terminate_run" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'run_id' is set - if ('run_id' not in params or - params['run_id'] is None): - raise ValueError("Missing the required parameter `run_id` when calling `terminate_run`") # noqa: E501 + if self.api_client.client_side_validation and ('run_id' not in local_var_params or # noqa: E501 + local_var_params['run_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `run_id` when calling `terminate_run`") # noqa: E501 collection_formats = {} path_params = {} - if 'run_id' in params: - path_params['run_id'] = params['run_id'] # noqa: E501 + if 'run_id' in local_var_params: + path_params['run_id'] = local_var_params['run_id'] # noqa: E501 query_params = [] @@ -923,10 +1081,6 @@ def terminate_run_with_http_info(self, run_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -940,10 +1094,10 @@ def terminate_run_with_http_info(self, run_id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def unarchive_run(self, id, **kwargs): # noqa: E501 @@ -954,18 +1108,21 @@ def unarchive_run(self, id, **kwargs): # noqa: E501 >>> thread = api.unarchive_run(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.unarchive_run_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.unarchive_run_with_http_info(id, **kwargs) # noqa: E501 - return data + return self.unarchive_run_with_http_info(id, **kwargs) # noqa: E501 def unarchive_run_with_http_info(self, id, **kwargs): # noqa: E501 """Restore an archived run. # noqa: E501 @@ -975,38 +1132,54 @@ def unarchive_run_with_http_info(self, id, **kwargs): # noqa: E501 >>> thread = api.unarchive_run_with_http_info(id, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str id: (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): + local_var_params = locals() + + all_params = [ + 'id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method unarchive_run" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `unarchive_run`") # noqa: E501 + if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501 + local_var_params['id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `id` when calling `unarchive_run`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] @@ -1020,10 +1193,6 @@ def unarchive_run_with_http_info(self, id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['Bearer'] # noqa: E501 @@ -1037,8 +1206,8 @@ def unarchive_run_with_http_info(self, id, **kwargs): # noqa: E501 files=local_var_files, response_type='object', # noqa: E501 auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py index a55241091f1..ba89f35091a 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py @@ -4,14 +4,15 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import +import atexit import datetime +from dateutil.parser import parse import json import mimetypes from multiprocessing.pool import ThreadPool @@ -26,18 +27,19 @@ from kfp_server_api.configuration import Configuration import kfp_server_api.models from kfp_server_api import rest +from kfp_server_api.exceptions import ApiValueError, ApiException class ApiClient(object): - """Generic API client for Swagger client library builds. + """Generic API client for OpenAPI client library builds. - Swagger generic API client. This client handles the client- + OpenAPI generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger + the methods and models for each application are generated from the OpenAPI templates. - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen + NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. :param configuration: .Configuration object for this client @@ -46,6 +48,8 @@ class ApiClient(object): the API. :param cookie: a cookie to include in the header when making calls to the API + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. """ PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types @@ -59,32 +63,46 @@ class ApiClient(object): 'datetime': datetime.datetime, 'object': object, } + _pool = None def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): + cookie=None, pool_threads=1): if configuration is None: - configuration = Configuration() + configuration = Configuration.get_default_copy() self.configuration = configuration + self.pool_threads = pool_threads - # Use the pool property to lazily initialize the ThreadPool. - self._pool = None self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0-dev.1/python' + self.user_agent = 'OpenAPI-Generator/1.0.0-dev.1/python' + self.client_side_validation = configuration.client_side_validation - def __del__(self): - if self._pool is not None: + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.close() + + def close(self): + if self._pool: self._pool.close() self._pool.join() + self._pool = None + if hasattr(atexit, 'unregister'): + atexit.unregister(self.close) @property def pool(self): + """Create thread pool on first request + avoids instantiating unused threadpool for blocking clients. + """ if self._pool is None: - self._pool = ThreadPool() + atexit.register(self.close) + self._pool = ThreadPool(self.pool_threads) return self._pool @property @@ -104,7 +122,7 @@ def __call_api( query_params=None, header_params=None, body=None, post_params=None, files=None, response_type=None, auth_settings=None, _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): + _preload_content=True, _request_timeout=None, _host=None): config = self.configuration @@ -138,10 +156,11 @@ def __call_api( # post parameters if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) + post_params = post_params if post_params else [] post_params = self.sanitize_for_serialization(post_params) post_params = self.parameters_to_tuples(post_params, collection_formats) + post_params.extend(self.files_parameters(files)) # auth setting self.update_params_for_auth(header_params, query_params, auth_settings) @@ -151,24 +170,44 @@ def __call_api( body = self.sanitize_for_serialization(body) # request url - url = self.configuration.host + resource_path + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) + try: + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + except ApiException as e: + e.body = e.body.decode('utf-8') if six.PY3 else e.body + raise e + + content_type = response_data.getheader('content-type') self.last_response = response_data return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None + + if not _preload_content: + return return_data + + if six.PY3 and response_type not in ["file", "bytes"]: + match = None + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s\;]?", content_type) + encoding = match.group(1) if match else "utf-8" + response_data.data = response_data.data.decode(encoding) + + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None if _return_http_data_only: return (return_data) @@ -185,7 +224,7 @@ def sanitize_for_serialization(self, obj): convert to string in iso8601 format. If obj is list, sanitize each element in the list. If obj is dict, return the dict. - If obj is swagger model, return the properties dict. + If obj is OpenAPI model, return the properties dict. :param obj: The data to serialize. :return: The serialized form of data. @@ -207,12 +246,12 @@ def sanitize_for_serialization(self, obj): obj_dict = obj else: # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` + # attributes `openapi_types`, `attribute_map` # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) + for attr, _ in six.iteritems(obj.openapi_types) if getattr(obj, attr) is not None} return {key: self.sanitize_for_serialization(val) @@ -275,7 +314,7 @@ def __deserialize(self, data, klass): elif klass == datetime.date: return self.__deserialize_date(data) elif klass == datetime.datetime: - return self.__deserialize_datatime(data) + return self.__deserialize_datetime(data) else: return self.__deserialize_model(data, klass) @@ -284,10 +323,10 @@ def call_api(self, resource_path, method, body=None, post_params=None, files=None, response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): + _preload_content=True, _request_timeout=None, _host=None): """Makes the HTTP request (synchronous) and returns deserialized data. - To make an async request, set the async_req parameter. + To make an async_req request, set the async_req parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -327,17 +366,20 @@ def call_api(self, resource_path, method, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread + _preload_content, _request_timeout, _host) + + return self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, + query_params, + header_params, body, + post_params, files, + response_type, + auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, + _request_timeout, + _host)) def request(self, method, url, query_params=None, headers=None, post_params=None, body=None, _preload_content=True, @@ -359,10 +401,8 @@ def request(self, method, url, query_params=None, headers=None, return self.rest_client.OPTIONS(url, query_params=query_params, headers=headers, - post_params=post_params, _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) + _request_timeout=_request_timeout) elif method == "POST": return self.rest_client.POST(url, query_params=query_params, @@ -395,7 +435,7 @@ def request(self, method, url, query_params=None, headers=None, _request_timeout=_request_timeout, body=body) else: - raise ValueError( + raise ApiValueError( "http method must be `GET`, `HEAD`, `OPTIONS`," " `POST`, `PATCH`, `PUT` or `DELETE`." ) @@ -430,18 +470,14 @@ def parameters_to_tuples(self, params, collection_formats): new_params.append((k, v)) return new_params - def prepare_post_parameters(self, post_params=None, files=None): + def files_parameters(self, files=None): """Builds form parameters. - :param post_params: Normal form parameters. :param files: File parameters. :return: Form parameters with files. """ params = [] - if post_params: - params = post_params - if files: for k, v in six.iteritems(files): if not v: @@ -503,14 +539,14 @@ def update_params_for_auth(self, headers, querys, auth_settings): for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: - if not auth_setting['value']: - continue + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] elif auth_setting['in'] == 'header': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': querys.append((auth_setting['key'], auth_setting['value'])) else: - raise ValueError( + raise ApiValueError( 'Authentication token must be in `query` or `header`' ) @@ -554,7 +590,7 @@ def __deserialize_primitive(self, data, klass): return data def __deserialize_object(self, value): - """Return a original value. + """Return an original value. :return: object. """ @@ -567,7 +603,6 @@ def __deserialize_date(self, string): :return: date. """ try: - from dateutil.parser import parse return parse(string).date() except ImportError: return string @@ -577,7 +612,7 @@ def __deserialize_date(self, string): reason="Failed to parse `{0}` as date object".format(string) ) - def __deserialize_datatime(self, string): + def __deserialize_datetime(self, string): """Deserializes string to datetime. The string should be in iso8601 datetime format. @@ -586,7 +621,6 @@ def __deserialize_datatime(self, string): :return: datetime. """ try: - from dateutil.parser import parse return parse(string) except ImportError: return string @@ -599,9 +633,6 @@ def __deserialize_datatime(self, string): ) ) - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - def __deserialize_model(self, data, klass): """Deserializes list or dict to model. @@ -609,29 +640,26 @@ def __deserialize_model(self, data, klass): :param klass: class literal. :return: model object. """ + has_discriminator = False + if (hasattr(klass, 'get_real_child_model') + and klass.discriminator_value_class_map): + has_discriminator = True - if (not klass.swagger_types and - not self.__hasattr(klass, 'get_real_child_model')): + if not klass.openapi_types and has_discriminator is False: return data kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): + if (data is not None and + klass.openapi_types is not None and + isinstance(data, (list, dict))): + for attr, attr_type in six.iteritems(klass.openapi_types): + if klass.attribute_map[attr] in data: value = data[klass.attribute_map[attr]] kwargs[attr] = self.__deserialize(value, attr_type) instance = klass(**kwargs) - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): + if has_discriminator: klass_name = instance.get_real_child_model(data) if klass_name: instance = self.__deserialize(data, klass_name) diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py index 9ef0c536676..9d4475c9af2 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -24,79 +23,194 @@ class Configuration(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://github.com/swagger-api/swagger-codegen + Ref: https://openapi-generator.tech Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + :param discard_unknown_keys: Boolean value indicating whether to discard + unknown properties. A server may send a response that includes additional + properties that are not known by the client in the following scenarios: + 1. The OpenAPI document is incomplete, i.e. it does not match the server + implementation. + 2. The client was generated using an older version of the OpenAPI document + and the server has been upgraded since then. + If a schema in the OpenAPI document defines the additionalProperties attribute, + then all undeclared properties received by the server are injected into the + additional properties map. In that case, there are undeclared properties, and + nothing to discard. + + :Example: + + API Key Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + cookieAuth: # name for the security scheme + type: apiKey + in: cookie + name: JSESSIONID # cookie name + + You can programmatically set the cookie: + +conf = kfp_server_api.Configuration( + api_key={'cookieAuth': 'abc123'} + api_key_prefix={'cookieAuth': 'JSESSIONID'} +) + + The following cookie will be added to the HTTP request: + Cookie: JSESSIONID abc123 """ _default = None - def __init__(self): - """Constructor""" - if self._default: - for key in self._default.__dict__.keys(): - self.__dict__[key] = copy.copy(self._default.__dict__[key]) - return - - # Default Base url - self.host = "http://localhost" - # Temp file folder for downloading files + def __init__(self, host="http://localhost", + api_key=None, api_key_prefix=None, + username=None, password=None, + discard_unknown_keys=False, + ): + """Constructor + """ + self.host = host + """Default Base url + """ self.temp_folder_path = None - + """Temp file folder for downloading files + """ # Authentication Settings - # dict to store API key(s) self.api_key = {} - # dict to store API prefix (e.g. Bearer) + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ self.api_key_prefix = {} - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - - # Logging Settings + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.discard_unknown_keys = discard_unknown_keys self.logger = {} + """Logging Settings + """ self.logger["package_logger"] = logging.getLogger("kfp_server_api") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler + """Log format + """ self.logger_stream_handler = None - # Log file handler + """Log stream handler + """ self.logger_file_handler = None - # Debug file location + """Log file handler + """ self.logger_file = None - # Debug switch + """Debug file location + """ self.debug = False + """Debug switch + """ - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ self.ssl_ca_cert = None - # client certificate file + """Set this to customize the certificate file to verify the peer. + """ self.cert_file = None - # client key file + """client certificate file + """ self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. + """client key file + """ self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. urllib3 uses 1 connection as default value, but this is + not the best value when you are making a lot of possibly parallel + requests to the same host, which is often the case here. + cpu_count * 5 is used as default value to increase performance. + """ - # Proxy URL self.proxy = None - # Safe chars for path_param + """Proxy URL + """ + self.proxy_headers = None + """Proxy headers + """ self.safe_chars_for_path_param = '' + """Safe chars for path_param + """ + self.retries = None + """Adding retries to override urllib3 default value 3 + """ + # Disable client side validation + self.client_side_validation = True + + def __deepcopy__(self, memo): + cls = self.__class__ + result = cls.__new__(cls) + memo[id(self)] = result + for k, v in self.__dict__.items(): + if k not in ('logger', 'logger_file_handler'): + setattr(result, k, copy.deepcopy(v, memo)) + # shallow copy of loggers + result.logger = copy.copy(self.logger) + # use setters to configure loggers + result.logger_file = self.logger_file + result.debug = self.debug + return result + + def __setattr__(self, name, value): + object.__setattr__(self, name, value) @classmethod def set_default(cls, default): - cls._default = default + """Set default instance of configuration. + + It stores default configuration, which can be + returned by get_default_copy method. + + :param default: object of Configuration + """ + cls._default = copy.deepcopy(default) + + @classmethod + def get_default_copy(cls): + """Return new instance of configuration. + + This method returns newly created, based on default constructor, + object of Configuration class or returns a copy of default + configuration passed by the set_default method. + + :return: The configuration object. + """ + if cls._default is not None: + return copy.deepcopy(cls._default) + return Configuration() @property def logger_file(self): @@ -128,17 +242,6 @@ def logger_file(self, value): self.logger_file_handler.setFormatter(self.logger_formatter) for _, logger in six.iteritems(self.logger): logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) @property def debug(self): @@ -200,19 +303,29 @@ def get_api_key_with_prefix(self, identifier): :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ - if (self.api_key.get(identifier) and - self.api_key_prefix.get(identifier)): - return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 - elif self.api_key.get(identifier): - return self.api_key[identifier] + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key def get_basic_auth_token(self): """Gets HTTP basic authentication header (string). :return: The token for basic HTTP authentication. """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password + basic_auth=username + ':' + password ).get('authorization') def auth_settings(self): @@ -220,16 +333,15 @@ def auth_settings(self): :return: The Auth Settings information dict. """ - return { - 'Bearer': - { - 'type': 'api_key', - 'in': 'header', - 'key': 'authorization', - 'value': self.get_api_key_with_prefix('authorization') - }, - - } + auth = {} + if 'authorization' in self.api_key: + auth['Bearer'] = { + 'type': 'api_key', + 'in': 'header', + 'key': 'authorization', + 'value': self.get_api_key_with_prefix('authorization') + } + return auth def to_debug_report(self): """Gets the essential information for debugging. @@ -242,3 +354,50 @@ def to_debug_report(self): "Version of the API: 1.0.0-dev.1\n"\ "SDK Package Version: 1.0.0-dev.1".\ format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "/", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables=None): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :return: URL based on host settings + """ + variables = {} if variables is None else variables + servers = self.get_host_settings() + + try: + server = servers[index] + except IndexError: + raise ValueError( + "Invalid index {0} when selecting the host settings. " + "Must be less than {1}".format(index, len(servers))) + + url = server['url'] + + # go through variables and replace placeholders + for variable_name, variable in server['variables'].items(): + used_value = variables.get( + variable_name, variable['default_value']) + + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: + raise ValueError( + "The variable `{0}` in the host URL has invalid value " + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) + + url = url.replace("{" + variable_name + "}", used_value) + + return url diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py new file mode 100644 index 00000000000..3dcd8feaa81 --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Kubeflow Pipelines API + + This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 + + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech +""" + + +import six + + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, six.integer_types): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py index 8a1e9aeefb9..34b768ad96d 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py @@ -6,9 +6,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py index 2308eacdd36..6125aca0b78 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,21 +15,24 @@ import six +from kfp_server_api.configuration import Configuration + class ApiCronSchedule(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'start_time': 'datetime', 'end_time': 'datetime', 'cron': 'str' @@ -42,8 +44,11 @@ class ApiCronSchedule(object): 'cron': 'cron' } - def __init__(self, start_time=None, end_time=None, cron=None): # noqa: E501 - """ApiCronSchedule - a model defined in Swagger""" # noqa: E501 + def __init__(self, start_time=None, end_time=None, cron=None, local_vars_configuration=None): # noqa: E501 + """ApiCronSchedule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._start_time = None self._end_time = None @@ -124,7 +129,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -141,9 +146,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiCronSchedule, dict): - for key, value in self.items(): - result[key] = value return result @@ -160,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, ApiCronSchedule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiCronSchedule): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py index d143cf42874..c4c2dd1900d 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,24 +15,24 @@ import six -from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: F401,E501 -from kfp_server_api.models.experiment_storage_state import ExperimentStorageState # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiExperiment(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'id': 'str', 'name': 'str', 'description': 'str', @@ -51,8 +50,11 @@ class ApiExperiment(object): 'storage_state': 'storage_state' } - def __init__(self, id=None, name=None, description=None, created_at=None, resource_references=None, storage_state=None): # noqa: E501 - """ApiExperiment - a model defined in Swagger""" # noqa: E501 + def __init__(self, id=None, name=None, description=None, created_at=None, resource_references=None, storage_state=None, local_vars_configuration=None): # noqa: E501 + """ApiExperiment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._id = None self._name = None @@ -213,7 +215,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -230,9 +232,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiExperiment, dict): - for key, value in self.items(): - result[key] = value return result @@ -249,8 +248,11 @@ def __eq__(self, other): if not isinstance(other, ApiExperiment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiExperiment): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py index 20a662b59c3..572fb2f2c33 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,21 +15,24 @@ import six +from kfp_server_api.configuration import Configuration + class ApiGetTemplateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'template': 'str' } @@ -38,8 +40,11 @@ class ApiGetTemplateResponse(object): 'template': 'template' } - def __init__(self, template=None): # noqa: E501 - """ApiGetTemplateResponse - a model defined in Swagger""" # noqa: E501 + def __init__(self, template=None, local_vars_configuration=None): # noqa: E501 + """ApiGetTemplateResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._template = None self.discriminator = None @@ -72,7 +77,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -89,9 +94,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiGetTemplateResponse, dict): - for key, value in self.items(): - result[key] = value return result @@ -108,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, ApiGetTemplateResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiGetTemplateResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py index f7c8a2f5dd9..268764f302c 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,26 +15,24 @@ import six -from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec # noqa: F401,E501 -from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: F401,E501 -from kfp_server_api.models.api_trigger import ApiTrigger # noqa: F401,E501 -from kfp_server_api.models.job_mode import JobMode # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiJob(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'id': 'str', 'name': 'str', 'description': 'str', @@ -71,8 +68,11 @@ class ApiJob(object): 'no_catchup': 'no_catchup' } - def __init__(self, id=None, name=None, description=None, pipeline_spec=None, resource_references=None, service_account=None, max_concurrency=None, trigger=None, mode=None, created_at=None, updated_at=None, status=None, error=None, enabled=None, no_catchup=None): # noqa: E501 - """ApiJob - a model defined in Swagger""" # noqa: E501 + def __init__(self, id=None, name=None, description=None, pipeline_spec=None, resource_references=None, service_account=None, max_concurrency=None, trigger=None, mode=None, created_at=None, updated_at=None, status=None, error=None, enabled=None, no_catchup=None, local_vars_configuration=None): # noqa: E501 + """ApiJob - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._id = None self._name = None @@ -193,7 +193,6 @@ def description(self, description): def pipeline_spec(self): """Gets the pipeline_spec of this ApiJob. # noqa: E501 - Required input field. Describing what the pipeline manifest and parameters to use for the scheduled job. # noqa: E501 :return: The pipeline_spec of this ApiJob. # noqa: E501 :rtype: ApiPipelineSpec @@ -204,7 +203,6 @@ def pipeline_spec(self): def pipeline_spec(self, pipeline_spec): """Sets the pipeline_spec of this ApiJob. - Required input field. Describing what the pipeline manifest and parameters to use for the scheduled job. # noqa: E501 :param pipeline_spec: The pipeline_spec of this ApiJob. # noqa: E501 :type: ApiPipelineSpec @@ -283,7 +281,6 @@ def max_concurrency(self, max_concurrency): def trigger(self): """Gets the trigger of this ApiJob. # noqa: E501 - Required input field. Specify how a run is triggered. Support cron mode or periodic mode. # noqa: E501 :return: The trigger of this ApiJob. # noqa: E501 :rtype: ApiTrigger @@ -294,7 +291,6 @@ def trigger(self): def trigger(self, trigger): """Sets the trigger of this ApiJob. - Required input field. Specify how a run is triggered. Support cron mode or periodic mode. # noqa: E501 :param trigger: The trigger of this ApiJob. # noqa: E501 :type: ApiTrigger @@ -463,7 +459,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -480,9 +476,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiJob, dict): - for key, value in self.items(): - result[key] = value return result @@ -499,8 +492,11 @@ def __eq__(self, other): if not isinstance(other, ApiJob): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiJob): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py index 26e7e0cfc15..0b3e24fa541 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.api_experiment import ApiExperiment # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiListExperimentsResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'experiments': 'list[ApiExperiment]', 'total_size': 'int', 'next_page_token': 'str' @@ -44,8 +44,11 @@ class ApiListExperimentsResponse(object): 'next_page_token': 'next_page_token' } - def __init__(self, experiments=None, total_size=None, next_page_token=None): # noqa: E501 - """ApiListExperimentsResponse - a model defined in Swagger""" # noqa: E501 + def __init__(self, experiments=None, total_size=None, next_page_token=None, local_vars_configuration=None): # noqa: E501 + """ApiListExperimentsResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._experiments = None self._total_size = None @@ -132,7 +135,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -149,9 +152,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiListExperimentsResponse, dict): - for key, value in self.items(): - result[key] = value return result @@ -168,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, ApiListExperimentsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiListExperimentsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py index 66ed6bea4b5..278ff57fc96 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.api_job import ApiJob # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiListJobsResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'jobs': 'list[ApiJob]', 'total_size': 'int', 'next_page_token': 'str' @@ -44,8 +44,11 @@ class ApiListJobsResponse(object): 'next_page_token': 'next_page_token' } - def __init__(self, jobs=None, total_size=None, next_page_token=None): # noqa: E501 - """ApiListJobsResponse - a model defined in Swagger""" # noqa: E501 + def __init__(self, jobs=None, total_size=None, next_page_token=None, local_vars_configuration=None): # noqa: E501 + """ApiListJobsResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._jobs = None self._total_size = None @@ -128,7 +131,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -145,9 +148,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiListJobsResponse, dict): - for key, value in self.items(): - result[key] = value return result @@ -164,8 +164,11 @@ def __eq__(self, other): if not isinstance(other, ApiListJobsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiListJobsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py index e8adfa518c4..7f70bb82830 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiListPipelineVersionsResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'versions': 'list[ApiPipelineVersion]', 'next_page_token': 'str', 'total_size': 'int' @@ -44,8 +44,11 @@ class ApiListPipelineVersionsResponse(object): 'total_size': 'total_size' } - def __init__(self, versions=None, next_page_token=None, total_size=None): # noqa: E501 - """ApiListPipelineVersionsResponse - a model defined in Swagger""" # noqa: E501 + def __init__(self, versions=None, next_page_token=None, total_size=None, local_vars_configuration=None): # noqa: E501 + """ApiListPipelineVersionsResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._versions = None self._next_page_token = None @@ -126,7 +129,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -143,9 +146,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiListPipelineVersionsResponse, dict): - for key, value in self.items(): - result[key] = value return result @@ -162,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, ApiListPipelineVersionsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiListPipelineVersionsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py index 70967d59337..27418914c4b 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.api_pipeline import ApiPipeline # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiListPipelinesResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'pipelines': 'list[ApiPipeline]', 'total_size': 'int', 'next_page_token': 'str' @@ -44,8 +44,11 @@ class ApiListPipelinesResponse(object): 'next_page_token': 'next_page_token' } - def __init__(self, pipelines=None, total_size=None, next_page_token=None): # noqa: E501 - """ApiListPipelinesResponse - a model defined in Swagger""" # noqa: E501 + def __init__(self, pipelines=None, total_size=None, next_page_token=None, local_vars_configuration=None): # noqa: E501 + """ApiListPipelinesResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pipelines = None self._total_size = None @@ -126,7 +129,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -143,9 +146,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiListPipelinesResponse, dict): - for key, value in self.items(): - result[key] = value return result @@ -162,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, ApiListPipelinesResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiListPipelinesResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py index afa60e2f6d3..fc997fe7a21 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.api_run import ApiRun # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiListRunsResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'runs': 'list[ApiRun]', 'total_size': 'int', 'next_page_token': 'str' @@ -44,8 +44,11 @@ class ApiListRunsResponse(object): 'next_page_token': 'next_page_token' } - def __init__(self, runs=None, total_size=None, next_page_token=None): # noqa: E501 - """ApiListRunsResponse - a model defined in Swagger""" # noqa: E501 + def __init__(self, runs=None, total_size=None, next_page_token=None, local_vars_configuration=None): # noqa: E501 + """ApiListRunsResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._runs = None self._total_size = None @@ -126,7 +129,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -143,9 +146,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiListRunsResponse, dict): - for key, value in self.items(): - result[key] = value return result @@ -162,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, ApiListRunsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiListRunsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py index 359fdd9a1dc..d60dbab0be7 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,21 +15,24 @@ import six +from kfp_server_api.configuration import Configuration + class ApiParameter(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'value': 'str' } @@ -40,8 +42,11 @@ class ApiParameter(object): 'value': 'value' } - def __init__(self, name=None, value=None): # noqa: E501 - """ApiParameter - a model defined in Swagger""" # noqa: E501 + def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 + """ApiParameter - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._value = None @@ -98,7 +103,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -115,9 +120,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiParameter, dict): - for key, value in self.items(): - result[key] = value return result @@ -134,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, ApiParameter): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiParameter): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py index a07c261b6b7..91ca38466bf 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,21 +15,24 @@ import six +from kfp_server_api.configuration import Configuration + class ApiPeriodicSchedule(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'start_time': 'datetime', 'end_time': 'datetime', 'interval_second': 'str' @@ -42,8 +44,11 @@ class ApiPeriodicSchedule(object): 'interval_second': 'interval_second' } - def __init__(self, start_time=None, end_time=None, interval_second=None): # noqa: E501 - """ApiPeriodicSchedule - a model defined in Swagger""" # noqa: E501 + def __init__(self, start_time=None, end_time=None, interval_second=None, local_vars_configuration=None): # noqa: E501 + """ApiPeriodicSchedule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._start_time = None self._end_time = None @@ -124,7 +129,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -141,9 +146,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiPeriodicSchedule, dict): - for key, value in self.items(): - result[key] = value return result @@ -160,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, ApiPeriodicSchedule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiPeriodicSchedule): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py index f122f5e38bd..ec699745dbb 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,25 +15,24 @@ import six -from kfp_server_api.models.api_parameter import ApiParameter # noqa: F401,E501 -from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion # noqa: F401,E501 -from kfp_server_api.models.api_url import ApiUrl # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiPipeline(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'id': 'str', 'created_at': 'datetime', 'name': 'str', @@ -56,8 +54,11 @@ class ApiPipeline(object): 'default_version': 'default_version' } - def __init__(self, id=None, created_at=None, name=None, description=None, parameters=None, url=None, error=None, default_version=None): # noqa: E501 - """ApiPipeline - a model defined in Swagger""" # noqa: E501 + def __init__(self, id=None, created_at=None, name=None, description=None, parameters=None, url=None, error=None, default_version=None, local_vars_configuration=None): # noqa: E501 + """ApiPipeline - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._id = None self._created_at = None @@ -205,7 +206,6 @@ def parameters(self, parameters): def url(self): """Gets the url of this ApiPipeline. # noqa: E501 - The URL to the source of the pipeline. This is required when creating the pipeine through CreatePipeline API. TODO(jingzhang36): replace this url field with the code_source_urls field inside PipelineVersion when all usage of the former has been changed to use the latter. # noqa: E501 :return: The url of this ApiPipeline. # noqa: E501 :rtype: ApiUrl @@ -216,7 +216,6 @@ def url(self): def url(self, url): """Sets the url of this ApiPipeline. - The URL to the source of the pipeline. This is required when creating the pipeine through CreatePipeline API. TODO(jingzhang36): replace this url field with the code_source_urls field inside PipelineVersion when all usage of the former has been changed to use the latter. # noqa: E501 :param url: The url of this ApiPipeline. # noqa: E501 :type: ApiUrl @@ -272,7 +271,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -289,9 +288,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiPipeline, dict): - for key, value in self.items(): - result[key] = value return result @@ -308,8 +304,11 @@ def __eq__(self, other): if not isinstance(other, ApiPipeline): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiPipeline): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py index 6a7ecc603a6..97971320fad 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,21 +15,24 @@ import six +from kfp_server_api.configuration import Configuration + class ApiPipelineRuntime(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'pipeline_manifest': 'str', 'workflow_manifest': 'str' } @@ -40,8 +42,11 @@ class ApiPipelineRuntime(object): 'workflow_manifest': 'workflow_manifest' } - def __init__(self, pipeline_manifest=None, workflow_manifest=None): # noqa: E501 - """ApiPipelineRuntime - a model defined in Swagger""" # noqa: E501 + def __init__(self, pipeline_manifest=None, workflow_manifest=None, local_vars_configuration=None): # noqa: E501 + """ApiPipelineRuntime - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pipeline_manifest = None self._workflow_manifest = None @@ -102,7 +107,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -119,9 +124,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiPipelineRuntime, dict): - for key, value in self.items(): - result[key] = value return result @@ -138,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, ApiPipelineRuntime): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiPipelineRuntime): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py index 1013cf3ccea..e3c0b7ef332 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.api_parameter import ApiParameter # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiPipelineSpec(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'pipeline_id': 'str', 'pipeline_name': 'str', 'workflow_manifest': 'str', @@ -48,8 +48,11 @@ class ApiPipelineSpec(object): 'parameters': 'parameters' } - def __init__(self, pipeline_id=None, pipeline_name=None, workflow_manifest=None, pipeline_manifest=None, parameters=None): # noqa: E501 - """ApiPipelineSpec - a model defined in Swagger""" # noqa: E501 + def __init__(self, pipeline_id=None, pipeline_name=None, workflow_manifest=None, pipeline_manifest=None, parameters=None, local_vars_configuration=None): # noqa: E501 + """ApiPipelineSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pipeline_id = None self._pipeline_name = None @@ -188,7 +191,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -205,9 +208,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiPipelineSpec, dict): - for key, value in self.items(): - result[key] = value return result @@ -224,8 +224,11 @@ def __eq__(self, other): if not isinstance(other, ApiPipelineSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiPipelineSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py index 627b009d81b..5c59de21353 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,25 +15,24 @@ import six -from kfp_server_api.models.api_parameter import ApiParameter # noqa: F401,E501 -from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: F401,E501 -from kfp_server_api.models.api_url import ApiUrl # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiPipelineVersion(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'id': 'str', 'name': 'str', 'created_at': 'datetime', @@ -54,8 +52,11 @@ class ApiPipelineVersion(object): 'resource_references': 'resource_references' } - def __init__(self, id=None, name=None, created_at=None, parameters=None, code_source_url=None, package_url=None, resource_references=None): # noqa: E501 - """ApiPipelineVersion - a model defined in Swagger""" # noqa: E501 + def __init__(self, id=None, name=None, created_at=None, parameters=None, code_source_url=None, package_url=None, resource_references=None, local_vars_configuration=None): # noqa: E501 + """ApiPipelineVersion - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._id = None self._name = None @@ -200,7 +201,6 @@ def code_source_url(self, code_source_url): def package_url(self): """Gets the package_url of this ApiPipelineVersion. # noqa: E501 - Input. Required. Pipeline version package url. Whe calling CreatePipelineVersion API method, need to provide one package file location. # noqa: E501 :return: The package_url of this ApiPipelineVersion. # noqa: E501 :rtype: ApiUrl @@ -211,7 +211,6 @@ def package_url(self): def package_url(self, package_url): """Sets the package_url of this ApiPipelineVersion. - Input. Required. Pipeline version package url. Whe calling CreatePipelineVersion API method, need to provide one package file location. # noqa: E501 :param package_url: The package_url of this ApiPipelineVersion. # noqa: E501 :type: ApiUrl @@ -246,7 +245,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -263,9 +262,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiPipelineVersion, dict): - for key, value in self.items(): - result[key] = value return result @@ -282,8 +278,11 @@ def __eq__(self, other): if not isinstance(other, ApiPipelineVersion): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiPipelineVersion): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py index 6b8bf905600..262e5471fdc 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,21 +15,24 @@ import six +from kfp_server_api.configuration import Configuration + class ApiReadArtifactResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'data': 'str' } @@ -38,8 +40,11 @@ class ApiReadArtifactResponse(object): 'data': 'data' } - def __init__(self, data=None): # noqa: E501 - """ApiReadArtifactResponse - a model defined in Swagger""" # noqa: E501 + def __init__(self, data=None, local_vars_configuration=None): # noqa: E501 + """ApiReadArtifactResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._data = None self.discriminator = None @@ -67,7 +72,8 @@ def data(self, data): :param data: The data of this ApiReadArtifactResponse. # noqa: E501 :type: str """ - if data is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', data): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + data is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', data)): # noqa: E501 raise ValueError(r"Invalid value for `data`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._data = data @@ -76,7 +82,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -93,9 +99,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiReadArtifactResponse, dict): - for key, value in self.items(): - result[key] = value return result @@ -112,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, ApiReadArtifactResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiReadArtifactResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py index cee4ff9ebd7..720393c3588 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,9 +15,12 @@ import six +from kfp_server_api.configuration import Configuration + class ApiRelationship(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ @@ -30,28 +32,33 @@ class ApiRelationship(object): OWNER = "OWNER" CREATOR = "CREATOR" + allowable_values = [UNKNOWN_RELATIONSHIP, OWNER, CREATOR] # noqa: E501 + """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { } attribute_map = { } - def __init__(self): # noqa: E501 - """ApiRelationship - a model defined in Swagger""" # noqa: E501 + def __init__(self, local_vars_configuration=None): # noqa: E501 + """ApiRelationship - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.discriminator = None def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -68,9 +75,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiRelationship, dict): - for key, value in self.items(): - result[key] = value return result @@ -87,8 +91,11 @@ def __eq__(self, other): if not isinstance(other, ApiRelationship): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiRelationship): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py index f78425c39f5..96100d03f40 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.api_run_metric import ApiRunMetric # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiReportRunMetricsRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'run_id': 'str', 'metrics': 'list[ApiRunMetric]' } @@ -42,8 +42,11 @@ class ApiReportRunMetricsRequest(object): 'metrics': 'metrics' } - def __init__(self, run_id=None, metrics=None): # noqa: E501 - """ApiReportRunMetricsRequest - a model defined in Swagger""" # noqa: E501 + def __init__(self, run_id=None, metrics=None, local_vars_configuration=None): # noqa: E501 + """ApiReportRunMetricsRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._run_id = None self._metrics = None @@ -104,7 +107,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -121,9 +124,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiReportRunMetricsRequest, dict): - for key, value in self.items(): - result[key] = value return result @@ -140,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, ApiReportRunMetricsRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiReportRunMetricsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py index 78785e99e69..113e321a62f 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.report_run_metrics_response_report_run_metric_result import ReportRunMetricsResponseReportRunMetricResult # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiReportRunMetricsResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'results': 'list[ReportRunMetricsResponseReportRunMetricResult]' } @@ -40,8 +40,11 @@ class ApiReportRunMetricsResponse(object): 'results': 'results' } - def __init__(self, results=None): # noqa: E501 - """ApiReportRunMetricsResponse - a model defined in Swagger""" # noqa: E501 + def __init__(self, results=None, local_vars_configuration=None): # noqa: E501 + """ApiReportRunMetricsResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._results = None self.discriminator = None @@ -74,7 +77,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -91,9 +94,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiReportRunMetricsResponse, dict): - for key, value in self.items(): - result[key] = value return result @@ -110,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, ApiReportRunMetricsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiReportRunMetricsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py index 6ac806c3d33..2446281b922 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.api_resource_type import ApiResourceType # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiResourceKey(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'type': 'ApiResourceType', 'id': 'str' } @@ -42,8 +42,11 @@ class ApiResourceKey(object): 'id': 'id' } - def __init__(self, type=None, id=None): # noqa: E501 - """ApiResourceKey - a model defined in Swagger""" # noqa: E501 + def __init__(self, type=None, id=None, local_vars_configuration=None): # noqa: E501 + """ApiResourceKey - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._type = None self._id = None @@ -58,7 +61,6 @@ def __init__(self, type=None, id=None): # noqa: E501 def type(self): """Gets the type of this ApiResourceKey. # noqa: E501 - The type of the resource that referred to. # noqa: E501 :return: The type of this ApiResourceKey. # noqa: E501 :rtype: ApiResourceType @@ -69,7 +71,6 @@ def type(self): def type(self, type): """Sets the type of this ApiResourceKey. - The type of the resource that referred to. # noqa: E501 :param type: The type of this ApiResourceKey. # noqa: E501 :type: ApiResourceType @@ -104,7 +105,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -121,9 +122,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiResourceKey, dict): - for key, value in self.items(): - result[key] = value return result @@ -140,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, ApiResourceKey): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiResourceKey): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py index dcf3ec0945d..6f122a1cc23 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,24 +15,24 @@ import six -from kfp_server_api.models.api_relationship import ApiRelationship # noqa: F401,E501 -from kfp_server_api.models.api_resource_key import ApiResourceKey # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiResourceReference(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'key': 'ApiResourceKey', 'name': 'str', 'relationship': 'ApiRelationship' @@ -45,8 +44,11 @@ class ApiResourceReference(object): 'relationship': 'relationship' } - def __init__(self, key=None, name=None, relationship=None): # noqa: E501 - """ApiResourceReference - a model defined in Swagger""" # noqa: E501 + def __init__(self, key=None, name=None, relationship=None, local_vars_configuration=None): # noqa: E501 + """ApiResourceReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._key = None self._name = None @@ -108,7 +110,6 @@ def name(self, name): def relationship(self): """Gets the relationship of this ApiResourceReference. # noqa: E501 - Required field. The relationship from referred resource to the object. # noqa: E501 :return: The relationship of this ApiResourceReference. # noqa: E501 :rtype: ApiRelationship @@ -119,7 +120,6 @@ def relationship(self): def relationship(self, relationship): """Sets the relationship of this ApiResourceReference. - Required field. The relationship from referred resource to the object. # noqa: E501 :param relationship: The relationship of this ApiResourceReference. # noqa: E501 :type: ApiRelationship @@ -131,7 +131,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -148,9 +148,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiResourceReference, dict): - for key, value in self.items(): - result[key] = value return result @@ -167,8 +164,11 @@ def __eq__(self, other): if not isinstance(other, ApiResourceReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiResourceReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py index 8fe61a0fa93..800b79300c1 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,9 +15,12 @@ import six +from kfp_server_api.configuration import Configuration + class ApiResourceType(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ @@ -33,28 +35,33 @@ class ApiResourceType(object): PIPELINE_VERSION = "PIPELINE_VERSION" NAMESPACE = "NAMESPACE" + allowable_values = [UNKNOWN_RESOURCE_TYPE, EXPERIMENT, JOB, PIPELINE, PIPELINE_VERSION, NAMESPACE] # noqa: E501 + """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { } attribute_map = { } - def __init__(self): # noqa: E501 - """ApiResourceType - a model defined in Swagger""" # noqa: E501 + def __init__(self, local_vars_configuration=None): # noqa: E501 + """ApiResourceType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.discriminator = None def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -71,9 +78,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiResourceType, dict): - for key, value in self.items(): - result[key] = value return result @@ -90,8 +94,11 @@ def __eq__(self, other): if not isinstance(other, ApiResourceType): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiResourceType): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py index 2010c1a3e9b..13215f7df96 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,26 +15,24 @@ import six -from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec # noqa: F401,E501 -from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: F401,E501 -from kfp_server_api.models.api_run_metric import ApiRunMetric # noqa: F401,E501 -from kfp_server_api.models.run_storage_state import RunStorageState # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiRun(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'id': 'str', 'name': 'str', 'storage_state': 'RunStorageState', @@ -67,8 +64,11 @@ class ApiRun(object): 'metrics': 'metrics' } - def __init__(self, id=None, name=None, storage_state=None, description=None, pipeline_spec=None, resource_references=None, service_account=None, created_at=None, scheduled_at=None, finished_at=None, status=None, error=None, metrics=None): # noqa: E501 - """ApiRun - a model defined in Swagger""" # noqa: E501 + def __init__(self, id=None, name=None, storage_state=None, description=None, pipeline_spec=None, resource_references=None, service_account=None, created_at=None, scheduled_at=None, finished_at=None, status=None, error=None, metrics=None, local_vars_configuration=None): # noqa: E501 + """ApiRun - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._id = None self._name = None @@ -204,7 +204,6 @@ def description(self, description): def pipeline_spec(self): """Gets the pipeline_spec of this ApiRun. # noqa: E501 - Required input field. Describing what the pipeline manifest and parameters to use for the run. # noqa: E501 :return: The pipeline_spec of this ApiRun. # noqa: E501 :rtype: ApiPipelineSpec @@ -215,7 +214,6 @@ def pipeline_spec(self): def pipeline_spec(self, pipeline_spec): """Sets the pipeline_spec of this ApiRun. - Required input field. Describing what the pipeline manifest and parameters to use for the run. # noqa: E501 :param pipeline_spec: The pipeline_spec of this ApiRun. # noqa: E501 :type: ApiPipelineSpec @@ -409,7 +407,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -426,9 +424,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiRun, dict): - for key, value in self.items(): - result[key] = value return result @@ -445,8 +440,11 @@ def __eq__(self, other): if not isinstance(other, ApiRun): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiRun): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py index 00fbb8b3cd9..be7700e23e4 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,24 +15,24 @@ import six -from kfp_server_api.models.api_pipeline_runtime import ApiPipelineRuntime # noqa: F401,E501 -from kfp_server_api.models.api_run import ApiRun # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiRunDetail(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'run': 'ApiRun', 'pipeline_runtime': 'ApiPipelineRuntime' } @@ -43,8 +42,11 @@ class ApiRunDetail(object): 'pipeline_runtime': 'pipeline_runtime' } - def __init__(self, run=None, pipeline_runtime=None): # noqa: E501 - """ApiRunDetail - a model defined in Swagger""" # noqa: E501 + def __init__(self, run=None, pipeline_runtime=None, local_vars_configuration=None): # noqa: E501 + """ApiRunDetail - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._run = None self._pipeline_runtime = None @@ -101,7 +103,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -118,9 +120,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiRunDetail, dict): - for key, value in self.items(): - result[key] = value return result @@ -137,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, ApiRunDetail): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiRunDetail): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py index f8454826c4d..568873eb430 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.run_metric_format import RunMetricFormat # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiRunMetric(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'node_id': 'str', 'number_value': 'float', @@ -46,8 +46,11 @@ class ApiRunMetric(object): 'format': 'format' } - def __init__(self, name=None, node_id=None, number_value=None, format=None): # noqa: E501 - """ApiRunMetric - a model defined in Swagger""" # noqa: E501 + def __init__(self, name=None, node_id=None, number_value=None, format=None, local_vars_configuration=None): # noqa: E501 + """ApiRunMetric - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._node_id = None @@ -137,7 +140,6 @@ def number_value(self, number_value): def format(self): """Gets the format of this ApiRunMetric. # noqa: E501 - The display format of metric. # noqa: E501 :return: The format of this ApiRunMetric. # noqa: E501 :rtype: RunMetricFormat @@ -148,7 +150,6 @@ def format(self): def format(self, format): """Sets the format of this ApiRunMetric. - The display format of metric. # noqa: E501 :param format: The format of this ApiRunMetric. # noqa: E501 :type: RunMetricFormat @@ -160,7 +161,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -177,9 +178,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiRunMetric, dict): - for key, value in self.items(): - result[key] = value return result @@ -196,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, ApiRunMetric): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiRunMetric): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py index bf9541b929c..536bd854cc1 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.protobuf_any import ProtobufAny # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiStatus(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'error': 'str', 'code': 'int', 'details': 'list[ProtobufAny]' @@ -44,8 +44,11 @@ class ApiStatus(object): 'details': 'details' } - def __init__(self, error=None, code=None, details=None): # noqa: E501 - """ApiStatus - a model defined in Swagger""" # noqa: E501 + def __init__(self, error=None, code=None, details=None, local_vars_configuration=None): # noqa: E501 + """ApiStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._error = None self._code = None @@ -126,7 +129,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -143,9 +146,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiStatus, dict): - for key, value in self.items(): - result[key] = value return result @@ -162,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, ApiStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py index 889a9313fdb..6ad6fa97ed9 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,24 +15,24 @@ import six -from kfp_server_api.models.api_cron_schedule import ApiCronSchedule # noqa: F401,E501 -from kfp_server_api.models.api_periodic_schedule import ApiPeriodicSchedule # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ApiTrigger(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'cron_schedule': 'ApiCronSchedule', 'periodic_schedule': 'ApiPeriodicSchedule' } @@ -43,8 +42,11 @@ class ApiTrigger(object): 'periodic_schedule': 'periodic_schedule' } - def __init__(self, cron_schedule=None, periodic_schedule=None): # noqa: E501 - """ApiTrigger - a model defined in Swagger""" # noqa: E501 + def __init__(self, cron_schedule=None, periodic_schedule=None, local_vars_configuration=None): # noqa: E501 + """ApiTrigger - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._cron_schedule = None self._periodic_schedule = None @@ -101,7 +103,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -118,9 +120,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiTrigger, dict): - for key, value in self.items(): - result[key] = value return result @@ -137,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, ApiTrigger): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiTrigger): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py index 8b7dd0dd71d..f36de7a02f9 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,21 +15,24 @@ import six +from kfp_server_api.configuration import Configuration + class ApiUrl(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'pipeline_url': 'str' } @@ -38,8 +40,11 @@ class ApiUrl(object): 'pipeline_url': 'pipeline_url' } - def __init__(self, pipeline_url=None): # noqa: E501 - """ApiUrl - a model defined in Swagger""" # noqa: E501 + def __init__(self, pipeline_url=None, local_vars_configuration=None): # noqa: E501 + """ApiUrl - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pipeline_url = None self.discriminator = None @@ -72,7 +77,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -89,9 +94,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ApiUrl, dict): - for key, value in self.items(): - result[key] = value return result @@ -108,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, ApiUrl): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiUrl): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py index 6aecadda18f..e5feb7505e1 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,9 +15,12 @@ import six +from kfp_server_api.configuration import Configuration + class ExperimentStorageState(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ @@ -30,28 +32,33 @@ class ExperimentStorageState(object): AVAILABLE = "STORAGESTATE_AVAILABLE" ARCHIVED = "STORAGESTATE_ARCHIVED" + allowable_values = [UNSPECIFIED, AVAILABLE, ARCHIVED] # noqa: E501 + """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { } attribute_map = { } - def __init__(self): # noqa: E501 - """ExperimentStorageState - a model defined in Swagger""" # noqa: E501 + def __init__(self, local_vars_configuration=None): # noqa: E501 + """ExperimentStorageState - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.discriminator = None def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -68,9 +75,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ExperimentStorageState, dict): - for key, value in self.items(): - result[key] = value return result @@ -87,8 +91,11 @@ def __eq__(self, other): if not isinstance(other, ExperimentStorageState): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExperimentStorageState): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py index 0bc0530e4b9..473aeeb38d2 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,9 +15,12 @@ import six +from kfp_server_api.configuration import Configuration + class JobMode(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ @@ -30,28 +32,33 @@ class JobMode(object): ENABLED = "ENABLED" DISABLED = "DISABLED" + allowable_values = [UNKNOWN_MODE, ENABLED, DISABLED] # noqa: E501 + """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { } attribute_map = { } - def __init__(self): # noqa: E501 - """JobMode - a model defined in Swagger""" # noqa: E501 + def __init__(self, local_vars_configuration=None): # noqa: E501 + """JobMode - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.discriminator = None def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -68,9 +75,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(JobMode, dict): - for key, value in self.items(): - result[key] = value return result @@ -87,8 +91,11 @@ def __eq__(self, other): if not isinstance(other, JobMode): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, JobMode): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py index 11a942224ac..4c38c97f46b 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,21 +15,24 @@ import six +from kfp_server_api.configuration import Configuration + class ProtobufAny(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'type_url': 'str', 'value': 'str' } @@ -40,8 +42,11 @@ class ProtobufAny(object): 'value': 'value' } - def __init__(self, type_url=None, value=None): # noqa: E501 - """ProtobufAny - a model defined in Swagger""" # noqa: E501 + def __init__(self, type_url=None, value=None, local_vars_configuration=None): # noqa: E501 + """ProtobufAny - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._type_url = None self._value = None @@ -95,7 +100,8 @@ def value(self, value): :param value: The value of this ProtobufAny. # noqa: E501 :type: str """ - if value is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', value): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + value is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', value)): # noqa: E501 raise ValueError(r"Invalid value for `value`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._value = value @@ -104,7 +110,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -121,9 +127,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ProtobufAny, dict): - for key, value in self.items(): - result[key] = value return result @@ -140,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, ProtobufAny): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ProtobufAny): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py index 479c2db0509..b37b4039ae0 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,23 +15,24 @@ import six -from kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status import ReportRunMetricsResponseReportRunMetricResultStatus # noqa: F401,E501 +from kfp_server_api.configuration import Configuration class ReportRunMetricsResponseReportRunMetricResult(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'metric_name': 'str', 'metric_node_id': 'str', 'status': 'ReportRunMetricsResponseReportRunMetricResultStatus', @@ -46,8 +46,11 @@ class ReportRunMetricsResponseReportRunMetricResult(object): 'message': 'message' } - def __init__(self, metric_name=None, metric_node_id=None, status=None, message=None): # noqa: E501 - """ReportRunMetricsResponseReportRunMetricResult - a model defined in Swagger""" # noqa: E501 + def __init__(self, metric_name=None, metric_node_id=None, status=None, message=None, local_vars_configuration=None): # noqa: E501 + """ReportRunMetricsResponseReportRunMetricResult - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._metric_name = None self._metric_node_id = None @@ -114,7 +117,6 @@ def metric_node_id(self, metric_node_id): def status(self): """Gets the status of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 - Output. The status of the metric reporting. # noqa: E501 :return: The status of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 :rtype: ReportRunMetricsResponseReportRunMetricResultStatus @@ -125,7 +127,6 @@ def status(self): def status(self, status): """Sets the status of this ReportRunMetricsResponseReportRunMetricResult. - Output. The status of the metric reporting. # noqa: E501 :param status: The status of this ReportRunMetricsResponseReportRunMetricResult. # noqa: E501 :type: ReportRunMetricsResponseReportRunMetricResultStatus @@ -160,7 +161,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -177,9 +178,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ReportRunMetricsResponseReportRunMetricResult, dict): - for key, value in self.items(): - result[key] = value return result @@ -196,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, ReportRunMetricsResponseReportRunMetricResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ReportRunMetricsResponseReportRunMetricResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py index a6406651f32..13ced7bdf2a 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,9 +15,12 @@ import six +from kfp_server_api.configuration import Configuration + class ReportRunMetricsResponseReportRunMetricResultStatus(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ @@ -32,28 +34,33 @@ class ReportRunMetricsResponseReportRunMetricResultStatus(object): DUPLICATE_REPORTING = "DUPLICATE_REPORTING" INTERNAL_ERROR = "INTERNAL_ERROR" + allowable_values = [UNSPECIFIED, OK, INVALID_ARGUMENT, DUPLICATE_REPORTING, INTERNAL_ERROR] # noqa: E501 + """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { } attribute_map = { } - def __init__(self): # noqa: E501 - """ReportRunMetricsResponseReportRunMetricResultStatus - a model defined in Swagger""" # noqa: E501 + def __init__(self, local_vars_configuration=None): # noqa: E501 + """ReportRunMetricsResponseReportRunMetricResultStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.discriminator = None def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -70,9 +77,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ReportRunMetricsResponseReportRunMetricResultStatus, dict): - for key, value in self.items(): - result[key] = value return result @@ -89,8 +93,11 @@ def __eq__(self, other): if not isinstance(other, ReportRunMetricsResponseReportRunMetricResultStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ReportRunMetricsResponseReportRunMetricResultStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py index b85f7d0b76e..c4bdd692bce 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,9 +15,12 @@ import six +from kfp_server_api.configuration import Configuration + class RunMetricFormat(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ @@ -30,28 +32,33 @@ class RunMetricFormat(object): RAW = "RAW" PERCENTAGE = "PERCENTAGE" + allowable_values = [UNSPECIFIED, RAW, PERCENTAGE] # noqa: E501 + """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { } attribute_map = { } - def __init__(self): # noqa: E501 - """RunMetricFormat - a model defined in Swagger""" # noqa: E501 + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RunMetricFormat - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.discriminator = None def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -68,9 +75,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(RunMetricFormat, dict): - for key, value in self.items(): - result[key] = value return result @@ -87,8 +91,11 @@ def __eq__(self, other): if not isinstance(other, RunMetricFormat): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RunMetricFormat): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py index 10b3feb2318..84b7efdc7ac 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -16,9 +15,12 @@ import six +from kfp_server_api.configuration import Configuration + class RunStorageState(object): - """NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ @@ -29,28 +31,33 @@ class RunStorageState(object): AVAILABLE = "STORAGESTATE_AVAILABLE" ARCHIVED = "STORAGESTATE_ARCHIVED" + allowable_values = [AVAILABLE, ARCHIVED] # noqa: E501 + """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { } attribute_map = { } - def __init__(self): # noqa: E501 - """RunStorageState - a model defined in Swagger""" # noqa: E501 + def __init__(self, local_vars_configuration=None): # noqa: E501 + """RunStorageState - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.discriminator = None def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -67,9 +74,6 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(RunStorageState, dict): - for key, value in self.items(): - result[key] = value return result @@ -86,8 +90,11 @@ def __eq__(self, other): if not isinstance(other, RunStorageState): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RunStorageState): + return True + + return self.to_dict() != other.to_dict() diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py index 907c60c57fe..8f15e99fb24 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -23,11 +22,9 @@ # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import urlencode +import urllib3 -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') +from kfp_server_api.exceptions import ApiException, ApiValueError logger = logging.getLogger(__name__) @@ -76,6 +73,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None): if configuration.assert_hostname is not None: addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + if maxsize is None: if configuration.connection_pool_maxsize is not None: maxsize = configuration.connection_pool_maxsize @@ -92,6 +92,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): cert_file=configuration.cert_file, key_file=configuration.key_file, proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, **addition_pool_args ) else: @@ -131,7 +132,7 @@ def request(self, method, url, query_params=None, headers=None, 'PATCH', 'OPTIONS'] if post_params and body: - raise ValueError( + raise ApiValueError( "body parameter cannot be used with post_params parameter." ) @@ -188,7 +189,7 @@ def request(self, method, url, query_params=None, headers=None, # Pass a `string` parameter directly in the body to support # other content types than Json when `body` argument is # provided in serialized form - elif isinstance(body, str): + elif isinstance(body, str) or isinstance(body, bytes): request_body = body r = self.pool_manager.request( method, url, @@ -216,11 +217,6 @@ def request(self, method, url, query_params=None, headers=None, if _preload_content: r = RESTResponse(r) - # In the python 3, the response.data is bytes. - # we need to decode it to string. - if six.PY3: - r.data = r.data.decode('utf8') - # log response body logger.debug("response body: %s", r.data) @@ -293,31 +289,3 @@ def PATCH(self, url, headers=None, query_params=None, post_params=None, _preload_content=_preload_content, _request_timeout=_request_timeout, body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/backend/api/python_http_client/kfp_server_api/requirements.txt b/backend/api/python_http_client/kfp_server_api/requirements.txt index bafdc07532f..eb358efd5bd 100644 --- a/backend/api/python_http_client/kfp_server_api/requirements.txt +++ b/backend/api/python_http_client/kfp_server_api/requirements.txt @@ -1,4 +1,5 @@ certifi >= 14.05.14 +future; python_version<="2.7" six >= 1.10 python_dateutil >= 2.5.3 setuptools >= 21.0.0 diff --git a/backend/api/python_http_client/kfp_server_api/setup.cfg b/backend/api/python_http_client/kfp_server_api/setup.cfg new file mode 100644 index 00000000000..11433ee875a --- /dev/null +++ b/backend/api/python_http_client/kfp_server_api/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length=99 diff --git a/backend/api/python_http_client/kfp_server_api/setup.py b/backend/api/python_http_client/kfp_server_api/setup.py index 30360189ffd..82ba907be92 100644 --- a/backend/api/python_http_client/kfp_server_api/setup.py +++ b/backend/api/python_http_client/kfp_server_api/setup.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ @@ -22,23 +21,18 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = [ - "certifi>=2017.4.17", - "python-dateutil>=2.1", - "six>=1.10", - "urllib3>=1.23" -] - +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] setup( name=NAME, version=VERSION, description="Kubeflow Pipelines API", - author_email="", + author="OpenAPI Generator community", + author_email="team@openapitools.org", url="https://github.com/kubeflow/pipelines", - keywords=["Swagger", "Kubeflow Pipelines API"], + keywords=["OpenAPI", "OpenAPI-Generator", "Kubeflow Pipelines API"], install_requires=REQUIRES, - packages=find_packages(), + packages=find_packages(exclude=["test", "tests"]), include_package_data=True, long_description="""\ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 diff --git a/backend/api/python_http_client/kfp_server_api/test-requirements.txt b/backend/api/python_http_client/kfp_server_api/test-requirements.txt index 2702246c0e6..4ed3991cbec 100644 --- a/backend/api/python_http_client/kfp_server_api/test-requirements.txt +++ b/backend/api/python_http_client/kfp_server_api/test-requirements.txt @@ -1,5 +1,3 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 +pytest~=4.6.7 # needed for python 2.7+3.4 +pytest-cov>=2.8.1 +pytest-randomly==1.2.3 # needed for python 2.7+3.4 diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py b/backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py index e628a906f1d..f808ad25238 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_cron_schedule import ApiCronSchedule # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiCronSchedule(unittest.TestCase): """ApiCronSchedule unit test stubs""" @@ -29,11 +28,26 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiCronSchedule + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_cron_schedule.ApiCronSchedule() # noqa: E501 + if include_optional : + return ApiCronSchedule( + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + cron = '0' + ) + else : + return ApiCronSchedule( + ) + def testApiCronSchedule(self): """Test ApiCronSchedule""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_cron_schedule.ApiCronSchedule() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py b/backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py index b3327bf9df2..5c2dd1897dd 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_experiment import ApiExperiment # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiExperiment(unittest.TestCase): """ApiExperiment unit test stubs""" @@ -29,11 +28,36 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiExperiment + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_experiment.ApiExperiment() # noqa: E501 + if include_optional : + return ApiExperiment( + id = '0', + name = '0', + description = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], + storage_state = 'STORAGESTATE_UNSPECIFIED' + ) + else : + return ApiExperiment( + ) + def testApiExperiment(self): """Test ApiExperiment""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_experiment.ApiExperiment() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py index 5b22aa8c899..5f84047e4f2 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_get_template_response import ApiGetTemplateResponse # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiGetTemplateResponse(unittest.TestCase): """ApiGetTemplateResponse unit test stubs""" @@ -29,11 +28,24 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiGetTemplateResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_get_template_response.ApiGetTemplateResponse() # noqa: E501 + if include_optional : + return ApiGetTemplateResponse( + template = '0' + ) + else : + return ApiGetTemplateResponse( + ) + def testApiGetTemplateResponse(self): """Test ApiGetTemplateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_get_template_response.ApiGetTemplateResponse() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_job.py b/backend/api/python_http_client/kfp_server_api/test/test_api_job.py index 19cf4ea43c9..c67574eaa31 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_job.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_job.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_job import ApiJob # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiJob(unittest.TestCase): """ApiJob unit test stubs""" @@ -29,11 +28,62 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiJob + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_job.ApiJob() # noqa: E501 + if include_optional : + return ApiJob( + id = '0', + name = '0', + description = '0', + pipeline_spec = kfp_server_api.models.api_pipeline_spec.apiPipelineSpec( + pipeline_id = '0', + pipeline_name = '0', + workflow_manifest = '0', + pipeline_manifest = '0', + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], ), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], + service_account = '0', + max_concurrency = '0', + trigger = kfp_server_api.models.api_trigger.apiTrigger( + cron_schedule = kfp_server_api.models.cron_schedule_allow_scheduling_the_job_with_unix_like_cron.CronSchedule allow scheduling the job with unix-like cron( + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + cron = '0', ), + periodic_schedule = kfp_server_api.models.periodic_schedule_allow_scheduling_the_job_periodically_with_certain_interval.PeriodicSchedule allow scheduling the job periodically with certain interval( + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + interval_second = '0', ), ), + mode = 'UNKNOWN_MODE', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '0', + error = '0', + enabled = True, + no_catchup = True + ) + else : + return ApiJob( + ) + def testApiJob(self): """Test ApiJob""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_job.ApiJob() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py index 89364043d35..71dc819ece8 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_list_experiments_response import ApiListExperimentsResponse # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiListExperimentsResponse(unittest.TestCase): """ApiListExperimentsResponse unit test stubs""" @@ -29,11 +28,41 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiListExperimentsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_list_experiments_response.ApiListExperimentsResponse() # noqa: E501 + if include_optional : + return ApiListExperimentsResponse( + experiments = [ + kfp_server_api.models.api_experiment.apiExperiment( + id = '0', + name = '0', + description = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], + storage_state = 'STORAGESTATE_UNSPECIFIED', ) + ], + total_size = 56, + next_page_token = '0' + ) + else : + return ApiListExperimentsResponse( + ) + def testApiListExperimentsResponse(self): """Test ApiListExperimentsResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_list_experiments_response.ApiListExperimentsResponse() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py index 9cdd8c88a07..6f5837e657e 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_list_jobs_response import ApiListJobsResponse # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiListJobsResponse(unittest.TestCase): """ApiListJobsResponse unit test stubs""" @@ -29,11 +28,67 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiListJobsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_list_jobs_response.ApiListJobsResponse() # noqa: E501 + if include_optional : + return ApiListJobsResponse( + jobs = [ + kfp_server_api.models.api_job.apiJob( + id = '0', + name = '0', + description = '0', + pipeline_spec = kfp_server_api.models.api_pipeline_spec.apiPipelineSpec( + pipeline_id = '0', + pipeline_name = '0', + workflow_manifest = '0', + pipeline_manifest = '0', + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], ), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], + service_account = '0', + max_concurrency = '0', + trigger = kfp_server_api.models.api_trigger.apiTrigger( + cron_schedule = kfp_server_api.models.cron_schedule_allow_scheduling_the_job_with_unix_like_cron.CronSchedule allow scheduling the job with unix-like cron( + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + cron = '0', ), + periodic_schedule = kfp_server_api.models.periodic_schedule_allow_scheduling_the_job_periodically_with_certain_interval.PeriodicSchedule allow scheduling the job periodically with certain interval( + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + interval_second = '0', ), ), + mode = 'UNKNOWN_MODE', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '0', + error = '0', + enabled = True, + no_catchup = True, ) + ], + total_size = 56, + next_page_token = '0' + ) + else : + return ApiListJobsResponse( + ) + def testApiListJobsResponse(self): """Test ApiListJobsResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_list_jobs_response.ApiListJobsResponse() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py index 3901a68450c..bf821d06679 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_list_pipeline_versions_response import ApiListPipelineVersionsResponse # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiListPipelineVersionsResponse(unittest.TestCase): """ApiListPipelineVersionsResponse unit test stubs""" @@ -29,11 +28,47 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiListPipelineVersionsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_list_pipeline_versions_response.ApiListPipelineVersionsResponse() # noqa: E501 + if include_optional : + return ApiListPipelineVersionsResponse( + versions = [ + kfp_server_api.models.api_pipeline_version.apiPipelineVersion( + id = '0', + name = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], + code_source_url = '0', + package_url = kfp_server_api.models.api_url.apiUrl( + pipeline_url = '0', ), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], ) + ], + next_page_token = '0', + total_size = 56 + ) + else : + return ApiListPipelineVersionsResponse( + ) + def testApiListPipelineVersionsResponse(self): """Test ApiListPipelineVersionsResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_list_pipeline_versions_response.ApiListPipelineVersionsResponse() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py index b98138117c5..45dcadb7dce 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_list_pipelines_response import ApiListPipelinesResponse # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiListPipelinesResponse(unittest.TestCase): """ApiListPipelinesResponse unit test stubs""" @@ -29,11 +28,55 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiListPipelinesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_list_pipelines_response.ApiListPipelinesResponse() # noqa: E501 + if include_optional : + return ApiListPipelinesResponse( + pipelines = [ + kfp_server_api.models.api_pipeline.apiPipeline( + id = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '0', + description = '0', + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], + url = kfp_server_api.models.api_url.apiUrl( + pipeline_url = '0', ), + error = '0', + default_version = kfp_server_api.models.api_pipeline_version.apiPipelineVersion( + id = '0', + name = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + code_source_url = '0', + package_url = kfp_server_api.models.api_url.apiUrl( + pipeline_url = '0', ), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], ), ) + ], + total_size = 56, + next_page_token = '0' + ) + else : + return ApiListPipelinesResponse( + ) + def testApiListPipelinesResponse(self): """Test ApiListPipelinesResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_list_pipelines_response.ApiListPipelinesResponse() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py index 1a57ee6253c..3b6582c8836 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_list_runs_response import ApiListRunsResponse # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiListRunsResponse(unittest.TestCase): """ApiListRunsResponse unit test stubs""" @@ -29,11 +28,63 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiListRunsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_list_runs_response.ApiListRunsResponse() # noqa: E501 + if include_optional : + return ApiListRunsResponse( + runs = [ + kfp_server_api.models.api_run.apiRun( + id = '0', + name = '0', + storage_state = 'STORAGESTATE_AVAILABLE', + description = '0', + pipeline_spec = kfp_server_api.models.api_pipeline_spec.apiPipelineSpec( + pipeline_id = '0', + pipeline_name = '0', + workflow_manifest = '0', + pipeline_manifest = '0', + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], ), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], + service_account = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + scheduled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '0', + error = '0', + metrics = [ + kfp_server_api.models.api_run_metric.apiRunMetric( + name = '0', + node_id = '0', + number_value = 1.337, + format = 'UNSPECIFIED', ) + ], ) + ], + total_size = 56, + next_page_token = '0' + ) + else : + return ApiListRunsResponse( + ) + def testApiListRunsResponse(self): """Test ApiListRunsResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_list_runs_response.ApiListRunsResponse() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py b/backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py index 9d15dd384ab..90628c661fe 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_parameter import ApiParameter # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiParameter(unittest.TestCase): """ApiParameter unit test stubs""" @@ -29,11 +28,25 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiParameter + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_parameter.ApiParameter() # noqa: E501 + if include_optional : + return ApiParameter( + name = '0', + value = '0' + ) + else : + return ApiParameter( + ) + def testApiParameter(self): """Test ApiParameter""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_parameter.ApiParameter() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py b/backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py index 142ed44ccb9..1093cd5bdd2 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_periodic_schedule import ApiPeriodicSchedule # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiPeriodicSchedule(unittest.TestCase): """ApiPeriodicSchedule unit test stubs""" @@ -29,11 +28,26 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiPeriodicSchedule + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_periodic_schedule.ApiPeriodicSchedule() # noqa: E501 + if include_optional : + return ApiPeriodicSchedule( + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + interval_second = '0' + ) + else : + return ApiPeriodicSchedule( + ) + def testApiPeriodicSchedule(self): """Test ApiPeriodicSchedule""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_periodic_schedule.ApiPeriodicSchedule() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py index e075dd8588a..0bfb69d2296 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_pipeline import ApiPipeline # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiPipeline(unittest.TestCase): """ApiPipeline unit test stubs""" @@ -29,11 +28,55 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiPipeline + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_pipeline.ApiPipeline() # noqa: E501 + if include_optional : + return ApiPipeline( + id = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '0', + description = '0', + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], + url = kfp_server_api.models.api_url.apiUrl( + pipeline_url = '0', ), + error = '0', + default_version = kfp_server_api.models.api_pipeline_version.apiPipelineVersion( + id = '0', + name = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], + code_source_url = '0', + package_url = kfp_server_api.models.api_url.apiUrl( + pipeline_url = '0', ), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], ) + ) + else : + return ApiPipeline( + ) + def testApiPipeline(self): """Test ApiPipeline""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_pipeline.ApiPipeline() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py index 7f01d6697c0..afab453e8ca 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_pipeline_runtime import ApiPipelineRuntime # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiPipelineRuntime(unittest.TestCase): """ApiPipelineRuntime unit test stubs""" @@ -29,11 +28,25 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiPipelineRuntime + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_pipeline_runtime.ApiPipelineRuntime() # noqa: E501 + if include_optional : + return ApiPipelineRuntime( + pipeline_manifest = '0', + workflow_manifest = '0' + ) + else : + return ApiPipelineRuntime( + ) + def testApiPipelineRuntime(self): """Test ApiPipelineRuntime""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_pipeline_runtime.ApiPipelineRuntime() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py index ff79a1dd482..9ec13fa6771 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_pipeline_spec import ApiPipelineSpec # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiPipelineSpec(unittest.TestCase): """ApiPipelineSpec unit test stubs""" @@ -29,11 +28,32 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiPipelineSpec + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_pipeline_spec.ApiPipelineSpec() # noqa: E501 + if include_optional : + return ApiPipelineSpec( + pipeline_id = '0', + pipeline_name = '0', + workflow_manifest = '0', + pipeline_manifest = '0', + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ] + ) + else : + return ApiPipelineSpec( + ) + def testApiPipelineSpec(self): """Test ApiPipelineSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_pipeline_spec.ApiPipelineSpec() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py index 39f1a44e096..6b11a895db6 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_pipeline_version import ApiPipelineVersion # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiPipelineVersion(unittest.TestCase): """ApiPipelineVersion unit test stubs""" @@ -29,11 +28,42 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiPipelineVersion + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_pipeline_version.ApiPipelineVersion() # noqa: E501 + if include_optional : + return ApiPipelineVersion( + id = '0', + name = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], + code_source_url = '0', + package_url = kfp_server_api.models.api_url.apiUrl( + pipeline_url = '0', ), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ] + ) + else : + return ApiPipelineVersion( + ) + def testApiPipelineVersion(self): """Test ApiPipelineVersion""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_pipeline_version.ApiPipelineVersion() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py index 0cd547a793e..6aeae4fd26c 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_read_artifact_response import ApiReadArtifactResponse # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiReadArtifactResponse(unittest.TestCase): """ApiReadArtifactResponse unit test stubs""" @@ -29,11 +28,24 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiReadArtifactResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_read_artifact_response.ApiReadArtifactResponse() # noqa: E501 + if include_optional : + return ApiReadArtifactResponse( + data = 'YQ==' + ) + else : + return ApiReadArtifactResponse( + ) + def testApiReadArtifactResponse(self): """Test ApiReadArtifactResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_read_artifact_response.ApiReadArtifactResponse() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py b/backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py index b8557e624b7..42fca993367 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_relationship import ApiRelationship # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiRelationship(unittest.TestCase): """ApiRelationship unit test stubs""" @@ -29,11 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiRelationship + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_relationship.ApiRelationship() # noqa: E501 + if include_optional : + return ApiRelationship( + ) + else : + return ApiRelationship( + ) + def testApiRelationship(self): """Test ApiRelationship""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_relationship.ApiRelationship() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py b/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py index f6fd1a4dd12..b8e2de0be5c 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_report_run_metrics_request import ApiReportRunMetricsRequest # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiReportRunMetricsRequest(unittest.TestCase): """ApiReportRunMetricsRequest unit test stubs""" @@ -29,11 +28,31 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiReportRunMetricsRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_report_run_metrics_request.ApiReportRunMetricsRequest() # noqa: E501 + if include_optional : + return ApiReportRunMetricsRequest( + run_id = '0', + metrics = [ + kfp_server_api.models.api_run_metric.apiRunMetric( + name = '0', + node_id = '0', + number_value = 1.337, + format = 'UNSPECIFIED', ) + ] + ) + else : + return ApiReportRunMetricsRequest( + ) + def testApiReportRunMetricsRequest(self): """Test ApiReportRunMetricsRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_report_run_metrics_request.ApiReportRunMetricsRequest() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py b/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py index 3849fb40d60..71cb25bf41b 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_report_run_metrics_response import ApiReportRunMetricsResponse # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiReportRunMetricsResponse(unittest.TestCase): """ApiReportRunMetricsResponse unit test stubs""" @@ -29,11 +28,30 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiReportRunMetricsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_report_run_metrics_response.ApiReportRunMetricsResponse() # noqa: E501 + if include_optional : + return ApiReportRunMetricsResponse( + results = [ + kfp_server_api.models.report_run_metrics_response_report_run_metric_result.ReportRunMetricsResponseReportRunMetricResult( + metric_name = '0', + metric_node_id = '0', + status = 'UNSPECIFIED', + message = '0', ) + ] + ) + else : + return ApiReportRunMetricsResponse( + ) + def testApiReportRunMetricsResponse(self): """Test ApiReportRunMetricsResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_report_run_metrics_response.ApiReportRunMetricsResponse() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py index d3cdf2e3c95..147593e8ed4 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_resource_key import ApiResourceKey # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiResourceKey(unittest.TestCase): """ApiResourceKey unit test stubs""" @@ -29,11 +28,25 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiResourceKey + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_resource_key.ApiResourceKey() # noqa: E501 + if include_optional : + return ApiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0' + ) + else : + return ApiResourceKey( + ) + def testApiResourceKey(self): """Test ApiResourceKey""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_resource_key.ApiResourceKey() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py index c03ed079520..b48806ef79c 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_resource_reference import ApiResourceReference # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiResourceReference(unittest.TestCase): """ApiResourceReference unit test stubs""" @@ -29,11 +28,28 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiResourceReference + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_resource_reference.ApiResourceReference() # noqa: E501 + if include_optional : + return ApiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP' + ) + else : + return ApiResourceReference( + ) + def testApiResourceReference(self): """Test ApiResourceReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_resource_reference.ApiResourceReference() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py index 28c0b3fe33b..0dad33e9e58 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_resource_type import ApiResourceType # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiResourceType(unittest.TestCase): """ApiResourceType unit test stubs""" @@ -29,11 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiResourceType + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_resource_type.ApiResourceType() # noqa: E501 + if include_optional : + return ApiResourceType( + ) + else : + return ApiResourceType( + ) + def testApiResourceType(self): """Test ApiResourceType""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_resource_type.ApiResourceType() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_run.py b/backend/api/python_http_client/kfp_server_api/test/test_api_run.py index 5b00f66602c..1412e117923 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_run.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_run.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_run import ApiRun # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiRun(unittest.TestCase): """ApiRun unit test stubs""" @@ -29,11 +28,58 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiRun + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_run.ApiRun() # noqa: E501 + if include_optional : + return ApiRun( + id = '0', + name = '0', + storage_state = 'STORAGESTATE_AVAILABLE', + description = '0', + pipeline_spec = kfp_server_api.models.api_pipeline_spec.apiPipelineSpec( + pipeline_id = '0', + pipeline_name = '0', + workflow_manifest = '0', + pipeline_manifest = '0', + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], ), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], + service_account = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + scheduled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '0', + error = '0', + metrics = [ + kfp_server_api.models.api_run_metric.apiRunMetric( + name = '0', + node_id = '0', + number_value = 1.337, + format = 'UNSPECIFIED', ) + ] + ) + else : + return ApiRun( + ) + def testApiRun(self): """Test ApiRun""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_run.ApiRun() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py b/backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py index 06fec627820..2a46f3a1ff2 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_run_detail import ApiRunDetail # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiRunDetail(unittest.TestCase): """ApiRunDetail unit test stubs""" @@ -29,11 +28,62 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiRunDetail + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_run_detail.ApiRunDetail() # noqa: E501 + if include_optional : + return ApiRunDetail( + run = kfp_server_api.models.api_run.apiRun( + id = '0', + name = '0', + storage_state = 'STORAGESTATE_AVAILABLE', + description = '0', + pipeline_spec = kfp_server_api.models.api_pipeline_spec.apiPipelineSpec( + pipeline_id = '0', + pipeline_name = '0', + workflow_manifest = '0', + pipeline_manifest = '0', + parameters = [ + kfp_server_api.models.api_parameter.apiParameter( + name = '0', + value = '0', ) + ], ), + resource_references = [ + kfp_server_api.models.api_resource_reference.apiResourceReference( + key = kfp_server_api.models.api_resource_key.apiResourceKey( + type = 'UNKNOWN_RESOURCE_TYPE', + id = '0', ), + name = '0', + relationship = 'UNKNOWN_RELATIONSHIP', ) + ], + service_account = '0', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + scheduled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + finished_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '0', + error = '0', + metrics = [ + kfp_server_api.models.api_run_metric.apiRunMetric( + name = '0', + node_id = '0', + number_value = 1.337, + format = 'UNSPECIFIED', ) + ], ), + pipeline_runtime = kfp_server_api.models.api_pipeline_runtime.apiPipelineRuntime( + pipeline_manifest = '0', + workflow_manifest = '0', ) + ) + else : + return ApiRunDetail( + ) + def testApiRunDetail(self): """Test ApiRunDetail""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_run_detail.ApiRunDetail() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py b/backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py index 0759825cec3..83b60915007 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_run_metric import ApiRunMetric # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiRunMetric(unittest.TestCase): """ApiRunMetric unit test stubs""" @@ -29,11 +28,27 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiRunMetric + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_run_metric.ApiRunMetric() # noqa: E501 + if include_optional : + return ApiRunMetric( + name = '0', + node_id = '0', + number_value = 1.337, + format = 'UNSPECIFIED' + ) + else : + return ApiRunMetric( + ) + def testApiRunMetric(self): """Test ApiRunMetric""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_run_metric.ApiRunMetric() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_status.py b/backend/api/python_http_client/kfp_server_api/test/test_api_status.py index f0782d61b0a..37602fa526c 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_status.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_status.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_status import ApiStatus # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiStatus(unittest.TestCase): """ApiStatus unit test stubs""" @@ -29,11 +28,30 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiStatus + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_status.ApiStatus() # noqa: E501 + if include_optional : + return ApiStatus( + error = '0', + code = 56, + details = [ + kfp_server_api.models.protobuf_any.protobufAny( + type_url = '0', + value = 'YQ==', ) + ] + ) + else : + return ApiStatus( + ) + def testApiStatus(self): """Test ApiStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_status.ApiStatus() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py b/backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py index 520c17e8043..724968ec496 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_trigger import ApiTrigger # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiTrigger(unittest.TestCase): """ApiTrigger unit test stubs""" @@ -29,11 +28,31 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiTrigger + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_trigger.ApiTrigger() # noqa: E501 + if include_optional : + return ApiTrigger( + cron_schedule = kfp_server_api.models.cron_schedule_allow_scheduling_the_job_with_unix_like_cron.CronSchedule allow scheduling the job with unix-like cron( + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + cron = '0', ), + periodic_schedule = kfp_server_api.models.periodic_schedule_allow_scheduling_the_job_periodically_with_certain_interval.PeriodicSchedule allow scheduling the job periodically with certain interval( + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + interval_second = '0', ) + ) + else : + return ApiTrigger( + ) + def testApiTrigger(self): """Test ApiTrigger""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_trigger.ApiTrigger() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_url.py b/backend/api/python_http_client/kfp_server_api/test/test_api_url.py index b8e9cc24ce1..ac73fe2dab9 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_url.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_api_url.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.api_url import ApiUrl # noqa: E501 from kfp_server_api.rest import ApiException - class TestApiUrl(unittest.TestCase): """ApiUrl unit test stubs""" @@ -29,11 +28,24 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ApiUrl + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.api_url.ApiUrl() # noqa: E501 + if include_optional : + return ApiUrl( + pipeline_url = '0' + ) + else : + return ApiUrl( + ) + def testApiUrl(self): """Test ApiUrl""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.api_url.ApiUrl() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py index dedb0f1115d..07ec31b9e7d 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py b/backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py index b09ea7275cf..41f05f07b17 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.experiment_storage_state import ExperimentStorageState # noqa: E501 from kfp_server_api.rest import ApiException - class TestExperimentStorageState(unittest.TestCase): """ExperimentStorageState unit test stubs""" @@ -29,11 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ExperimentStorageState + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.experiment_storage_state.ExperimentStorageState() # noqa: E501 + if include_optional : + return ExperimentStorageState( + ) + else : + return ExperimentStorageState( + ) + def testExperimentStorageState(self): """Test ExperimentStorageState""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.experiment_storage_state.ExperimentStorageState() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_job_mode.py b/backend/api/python_http_client/kfp_server_api/test/test_job_mode.py index fe0d246139a..e59b62676b8 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_job_mode.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_job_mode.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.job_mode import JobMode # noqa: E501 from kfp_server_api.rest import ApiException - class TestJobMode(unittest.TestCase): """JobMode unit test stubs""" @@ -29,11 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test JobMode + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.job_mode.JobMode() # noqa: E501 + if include_optional : + return JobMode( + ) + else : + return JobMode( + ) + def testJobMode(self): """Test JobMode""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.job_mode.JobMode() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py index fe775fe8366..70d4b28f126 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py index 97064bcc58e..470205ec7d8 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py index 6f13039c5ff..89a0a0000da 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py b/backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py index 3858f391461..4ededed9e65 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.protobuf_any import ProtobufAny # noqa: E501 from kfp_server_api.rest import ApiException - class TestProtobufAny(unittest.TestCase): """ProtobufAny unit test stubs""" @@ -29,11 +28,25 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ProtobufAny + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.protobuf_any.ProtobufAny() # noqa: E501 + if include_optional : + return ProtobufAny( + type_url = '0', + value = 'YQ==' + ) + else : + return ProtobufAny( + ) + def testProtobufAny(self): """Test ProtobufAny""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.protobuf_any.ProtobufAny() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py b/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py index d41b4113912..a5683c470b3 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.report_run_metrics_response_report_run_metric_result import ReportRunMetricsResponseReportRunMetricResult # noqa: E501 from kfp_server_api.rest import ApiException - class TestReportRunMetricsResponseReportRunMetricResult(unittest.TestCase): """ReportRunMetricsResponseReportRunMetricResult unit test stubs""" @@ -29,11 +28,27 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ReportRunMetricsResponseReportRunMetricResult + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.report_run_metrics_response_report_run_metric_result.ReportRunMetricsResponseReportRunMetricResult() # noqa: E501 + if include_optional : + return ReportRunMetricsResponseReportRunMetricResult( + metric_name = '0', + metric_node_id = '0', + status = 'UNSPECIFIED', + message = '0' + ) + else : + return ReportRunMetricsResponseReportRunMetricResult( + ) + def testReportRunMetricsResponseReportRunMetricResult(self): """Test ReportRunMetricsResponseReportRunMetricResult""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.report_run_metrics_response_report_run_metric_result.ReportRunMetricsResponseReportRunMetricResult() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py b/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py index aa8864f3071..4a945f5ee25 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status import ReportRunMetricsResponseReportRunMetricResultStatus # noqa: E501 from kfp_server_api.rest import ApiException - class TestReportRunMetricsResponseReportRunMetricResultStatus(unittest.TestCase): """ReportRunMetricsResponseReportRunMetricResultStatus unit test stubs""" @@ -29,11 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test ReportRunMetricsResponseReportRunMetricResultStatus + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status.ReportRunMetricsResponseReportRunMetricResultStatus() # noqa: E501 + if include_optional : + return ReportRunMetricsResponseReportRunMetricResultStatus( + ) + else : + return ReportRunMetricsResponseReportRunMetricResultStatus( + ) + def testReportRunMetricsResponseReportRunMetricResultStatus(self): """Test ReportRunMetricsResponseReportRunMetricResultStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.report_run_metrics_response_report_run_metric_result_status.ReportRunMetricsResponseReportRunMetricResultStatus() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py b/backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py index 05af2bfc1e8..4adabc35c9b 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.run_metric_format import RunMetricFormat # noqa: E501 from kfp_server_api.rest import ApiException - class TestRunMetricFormat(unittest.TestCase): """RunMetricFormat unit test stubs""" @@ -29,11 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test RunMetricFormat + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.run_metric_format.RunMetricFormat() # noqa: E501 + if include_optional : + return RunMetricFormat( + ) + else : + return RunMetricFormat( + ) + def testRunMetricFormat(self): """Test RunMetricFormat""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.run_metric_format.RunMetricFormat() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py b/backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py index 7b97a1f24ea..fd9f17d0522 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py @@ -5,9 +5,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py b/backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py index 94dc43b54fe..3e37f9003ce 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py +++ b/backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py @@ -5,21 +5,20 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 - OpenAPI spec version: 1.0.0-dev.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + The version of the OpenAPI document: 1.0.0-dev.1 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest +import datetime import kfp_server_api from kfp_server_api.models.run_storage_state import RunStorageState # noqa: E501 from kfp_server_api.rest import ApiException - class TestRunStorageState(unittest.TestCase): """RunStorageState unit test stubs""" @@ -29,11 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test RunStorageState + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = kfp_server_api.models.run_storage_state.RunStorageState() # noqa: E501 + if include_optional : + return RunStorageState( + ) + else : + return RunStorageState( + ) + def testRunStorageState(self): """Test RunStorageState""" - # FIXME: construct object with mandatory attributes with example values - # model = kfp_server_api.models.run_storage_state.RunStorageState() # noqa: E501 - pass + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': diff --git a/backend/api/python_http_client/kfp_server_api/tox.ini b/backend/api/python_http_client/kfp_server_api/tox.ini index 3d0be613cfc..25937a6872f 100644 --- a/backend/api/python_http_client/kfp_server_api/tox.ini +++ b/backend/api/python_http_client/kfp_server_api/tox.ini @@ -6,5 +6,4 @@ deps=-r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands= - nosetests \ - [] + pytest --cov=kfp_server_api From 6f94a341d7d65e8a9a7e3227dd981fd370034699 Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 12:26:10 +0800 Subject: [PATCH 05/10] Add extra info into swagger single file --- backend/api/generate_api.sh | 5 ++++- backend/api/swagger/kfp_api_single_file.swagger.json | 11 ++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/backend/api/generate_api.sh b/backend/api/generate_api.sh index 8937e235aa5..0916e2ff259 100755 --- a/backend/api/generate_api.sh +++ b/backend/api/generate_api.sh @@ -21,6 +21,7 @@ set -ex +VERSION="1.0.0-dev.1" BAZEL_BINDIR=$(bazel info bazel-bin) DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null && pwd)" SWAGGER_CMD=${DIR}/../../bazel-bin/external/com_github_go_swagger/cmd/swagger/*stripped/swagger @@ -57,7 +58,9 @@ jq -s ' reduce .[] as $item ({}; . * $item) | .info.title = "Kubeflow Pipelines API" | .info.description = "This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition." | - .info.version = "0.1.38" + .info.version = "'$VERSION'" | + .info.contact = { "name": "google", "email": "kubeflow-pipelines@google.com", "url": "https://www.google.com" } | + .info.license = { "name": "Apache 2.0", "url": "https://raw.githubusercontent.com/kubeflow/pipelines/master/LICENSE" } ' ${DIR}/swagger/{run,job,pipeline,experiment,pipeline.upload}.swagger.json > "${DIR}/swagger/kfp_api_single_file.swagger.json" # Generate Go HTTP client from the swagger files. diff --git a/backend/api/swagger/kfp_api_single_file.swagger.json b/backend/api/swagger/kfp_api_single_file.swagger.json index b8cfcbcbdf1..2b1417e91dc 100644 --- a/backend/api/swagger/kfp_api_single_file.swagger.json +++ b/backend/api/swagger/kfp_api_single_file.swagger.json @@ -3,7 +3,16 @@ "info": { "title": "Kubeflow Pipelines API", "version": "1.0.0-dev.1", - "description": "This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition." + "description": "This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.", + "contact": { + "name": "google", + "email": "kubeflow-pipelines@google.com", + "url": "https://www.google.com" + }, + "license": { + "name": "Apache 2.0", + "url": "https://raw.githubusercontent.com/kubeflow/pipelines/master/LICENSE" + } }, "schemes": [ "http", From 478e5b81ebfa9243439947d1382c32fdce6346f0 Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 12:26:54 +0800 Subject: [PATCH 06/10] Update more info --- backend/api/python_http_client/kfp_server_api/README.md | 3 ++- .../kfp_server_api/kfp_server_api/__init__.py | 1 + .../kfp_server_api/api/experiment_service_api.py | 1 + .../kfp_server_api/kfp_server_api/api/job_service_api.py | 1 + .../kfp_server_api/api/pipeline_service_api.py | 1 + .../kfp_server_api/api/pipeline_upload_service_api.py | 1 + .../kfp_server_api/kfp_server_api/api/run_service_api.py | 1 + .../kfp_server_api/kfp_server_api/api_client.py | 1 + .../kfp_server_api/kfp_server_api/configuration.py | 1 + .../kfp_server_api/kfp_server_api/exceptions.py | 1 + .../kfp_server_api/kfp_server_api/models/__init__.py | 1 + .../kfp_server_api/models/api_cron_schedule.py | 1 + .../kfp_server_api/kfp_server_api/models/api_experiment.py | 1 + .../kfp_server_api/models/api_get_template_response.py | 1 + .../kfp_server_api/kfp_server_api/models/api_job.py | 1 + .../kfp_server_api/models/api_list_experiments_response.py | 1 + .../kfp_server_api/models/api_list_jobs_response.py | 1 + .../models/api_list_pipeline_versions_response.py | 1 + .../kfp_server_api/models/api_list_pipelines_response.py | 1 + .../kfp_server_api/models/api_list_runs_response.py | 1 + .../kfp_server_api/kfp_server_api/models/api_parameter.py | 1 + .../kfp_server_api/models/api_periodic_schedule.py | 1 + .../kfp_server_api/kfp_server_api/models/api_pipeline.py | 1 + .../kfp_server_api/models/api_pipeline_runtime.py | 1 + .../kfp_server_api/models/api_pipeline_spec.py | 1 + .../kfp_server_api/models/api_pipeline_version.py | 1 + .../kfp_server_api/models/api_read_artifact_response.py | 1 + .../kfp_server_api/models/api_relationship.py | 1 + .../kfp_server_api/models/api_report_run_metrics_request.py | 1 + .../models/api_report_run_metrics_response.py | 1 + .../kfp_server_api/models/api_resource_key.py | 1 + .../kfp_server_api/models/api_resource_reference.py | 1 + .../kfp_server_api/models/api_resource_type.py | 1 + .../kfp_server_api/kfp_server_api/models/api_run.py | 1 + .../kfp_server_api/kfp_server_api/models/api_run_detail.py | 1 + .../kfp_server_api/kfp_server_api/models/api_run_metric.py | 1 + .../kfp_server_api/kfp_server_api/models/api_status.py | 1 + .../kfp_server_api/kfp_server_api/models/api_trigger.py | 1 + .../kfp_server_api/kfp_server_api/models/api_url.py | 1 + .../kfp_server_api/models/experiment_storage_state.py | 1 + .../kfp_server_api/kfp_server_api/models/job_mode.py | 1 + .../kfp_server_api/kfp_server_api/models/protobuf_any.py | 1 + .../report_run_metrics_response_report_run_metric_result.py | 1 + ..._run_metrics_response_report_run_metric_result_status.py | 1 + .../kfp_server_api/models/run_metric_format.py | 1 + .../kfp_server_api/models/run_storage_state.py | 1 + .../kfp_server_api/kfp_server_api/rest.py | 1 + backend/api/python_http_client/kfp_server_api/setup.py | 6 ++++-- 48 files changed, 52 insertions(+), 3 deletions(-) diff --git a/backend/api/python_http_client/kfp_server_api/README.md b/backend/api/python_http_client/kfp_server_api/README.md index d017d6c1166..a31a86608df 100644 --- a/backend/api/python_http_client/kfp_server_api/README.md +++ b/backend/api/python_http_client/kfp_server_api/README.md @@ -6,6 +6,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: 1.0.0-dev.1 - Package version: 1.0.0-dev.1 - Build package: org.openapitools.codegen.languages.PythonClientCodegen +For more information, please visit [https://www.google.com](https://www.google.com) ## Requirements. @@ -182,6 +183,6 @@ Class | Method | HTTP request | Description ## Author - +kubeflow-pipelines@google.com diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py index 23db90bd4fa..bef79e84114 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py @@ -8,6 +8,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py index 0e091a8d391..854cff63eb9 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py index 7c4844c65f1..5870110e288 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py index e8609794d1d..819952ac003 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py index ebd2873c33e..6c1a53614e5 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py index 1c4e846913d..8eee703cb3b 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py index ba89f35091a..0dfcb8a940b 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py @@ -5,6 +5,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py index 9d4475c9af2..049aa811eae 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py index 3dcd8feaa81..9e5acc18e88 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py index 34b768ad96d..519d1f5fd5c 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py @@ -7,6 +7,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py index 6125aca0b78..90dab642ed8 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py index c4c2dd1900d..b37533165ff 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py index 572fb2f2c33..d6970009c33 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py index 268764f302c..0b5663c7826 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py index 0b3e24fa541..468bdf75b04 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py index 278ff57fc96..a875433565b 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py index 7f70bb82830..38c1dd99ace 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py index 27418914c4b..5bff674a368 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py index fc997fe7a21..3a0049b5870 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py index d60dbab0be7..e9c3adb0f0f 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py index 91ca38466bf..c20f1f918df 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py index ec699745dbb..ec53d0cc2e1 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py index 97971320fad..ee99b6d4c45 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py index e3c0b7ef332..4583180dff8 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py index 5c59de21353..3dd26e69bf1 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py index 262e5471fdc..86281b3a34a 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py index 720393c3588..60d5f1fe59f 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py index 96100d03f40..b93bbbfac4d 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py index 113e321a62f..789c2279095 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py index 2446281b922..96fa5a6096e 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py index 6f122a1cc23..8668edad87a 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py index 800b79300c1..269b9ca815b 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py index 13215f7df96..c2b0b38b1bc 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py index be7700e23e4..448d6113f41 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py index 568873eb430..e9606aee780 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py index 536bd854cc1..d8f8a422cb4 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py index 6ad6fa97ed9..886b6fe32f4 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py index f36de7a02f9..e5923d4a1f0 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py index e5feb7505e1..955073a3d4f 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py index 473aeeb38d2..cc7c747198e 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py index 4c38c97f46b..642a8bfb535 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py index b37b4039ae0..8ed9c38ceee 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py index 13ced7bdf2a..bbd4cea9719 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py index c4bdd692bce..a76e137da27 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py index 84b7efdc7ac..21b613943a0 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py b/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py index 8f15e99fb24..8bca648bc5a 100644 --- a/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py +++ b/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/setup.py b/backend/api/python_http_client/kfp_server_api/setup.py index 82ba907be92..8601cf0adb5 100644 --- a/backend/api/python_http_client/kfp_server_api/setup.py +++ b/backend/api/python_http_client/kfp_server_api/setup.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ @@ -27,13 +28,14 @@ name=NAME, version=VERSION, description="Kubeflow Pipelines API", - author="OpenAPI Generator community", - author_email="team@openapitools.org", + author="google", + author_email="kubeflow-pipelines@google.com", url="https://github.com/kubeflow/pipelines", keywords=["OpenAPI", "OpenAPI-Generator", "Kubeflow Pipelines API"], install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, + license="Apache 2.0", long_description="""\ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 """ From 095b7a2d10de6f289a9a945cd771d6fd6d811174 Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 12:44:17 +0800 Subject: [PATCH 07/10] update --- backend/api/build_kfp_server_api_python_package.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/api/build_kfp_server_api_python_package.sh b/backend/api/build_kfp_server_api_python_package.sh index 3add4df83a8..6a6dffd32d6 100755 --- a/backend/api/build_kfp_server_api_python_package.sh +++ b/backend/api/build_kfp_server_api_python_package.sh @@ -63,4 +63,6 @@ echo "Run the following commands to update the package on PyPI" echo "python3 -m pip install twine" echo "python3 -m twine upload --username kubeflow-pipelines $DIR/dist/*" +echo "Please also push local changes to github.com/kubeflow/pipelines" + popd From 6d3b92a886df0f6c930716dd6110ebcdc1d8601e Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 12:48:50 +0800 Subject: [PATCH 08/10] Move python http client to upper folder --- backend/api/build_kfp_server_api_python_package.sh | 2 +- backend/api/python_http_client/{kfp_server_api => }/.gitignore | 0 .../api/python_http_client/{kfp_server_api => }/.gitlab-ci.yml | 0 .../{kfp_server_api => }/.openapi-generator-ignore | 0 .../{kfp_server_api => }/.openapi-generator/VERSION | 0 backend/api/python_http_client/{kfp_server_api => }/.travis.yml | 0 backend/api/python_http_client/{kfp_server_api => }/README.md | 0 .../{kfp_server_api => }/docs/ApiCronSchedule.md | 0 .../{kfp_server_api => }/docs/ApiExperiment.md | 0 .../{kfp_server_api => }/docs/ApiGetTemplateResponse.md | 0 .../api/python_http_client/{kfp_server_api => }/docs/ApiJob.md | 0 .../{kfp_server_api => }/docs/ApiListExperimentsResponse.md | 0 .../{kfp_server_api => }/docs/ApiListJobsResponse.md | 0 .../docs/ApiListPipelineVersionsResponse.md | 0 .../{kfp_server_api => }/docs/ApiListPipelinesResponse.md | 0 .../{kfp_server_api => }/docs/ApiListRunsResponse.md | 0 .../{kfp_server_api => }/docs/ApiParameter.md | 0 .../{kfp_server_api => }/docs/ApiPeriodicSchedule.md | 0 .../python_http_client/{kfp_server_api => }/docs/ApiPipeline.md | 0 .../{kfp_server_api => }/docs/ApiPipelineRuntime.md | 0 .../{kfp_server_api => }/docs/ApiPipelineSpec.md | 0 .../{kfp_server_api => }/docs/ApiPipelineVersion.md | 0 .../{kfp_server_api => }/docs/ApiReadArtifactResponse.md | 0 .../{kfp_server_api => }/docs/ApiRelationship.md | 0 .../{kfp_server_api => }/docs/ApiReportRunMetricsRequest.md | 0 .../{kfp_server_api => }/docs/ApiReportRunMetricsResponse.md | 0 .../{kfp_server_api => }/docs/ApiResourceKey.md | 0 .../{kfp_server_api => }/docs/ApiResourceReference.md | 0 .../{kfp_server_api => }/docs/ApiResourceType.md | 0 .../api/python_http_client/{kfp_server_api => }/docs/ApiRun.md | 0 .../{kfp_server_api => }/docs/ApiRunDetail.md | 0 .../{kfp_server_api => }/docs/ApiRunMetric.md | 0 .../python_http_client/{kfp_server_api => }/docs/ApiStatus.md | 0 .../python_http_client/{kfp_server_api => }/docs/ApiTrigger.md | 0 .../api/python_http_client/{kfp_server_api => }/docs/ApiUrl.md | 0 .../{kfp_server_api => }/docs/ExperimentServiceApi.md | 0 .../{kfp_server_api => }/docs/ExperimentStorageState.md | 0 .../api/python_http_client/{kfp_server_api => }/docs/JobMode.md | 0 .../{kfp_server_api => }/docs/JobServiceApi.md | 0 .../{kfp_server_api => }/docs/PipelineServiceApi.md | 0 .../{kfp_server_api => }/docs/PipelineUploadServiceApi.md | 0 .../python_http_client/{kfp_server_api => }/docs/ProtobufAny.md | 0 .../docs/ReportRunMetricsResponseReportRunMetricResult.md | 0 .../docs/ReportRunMetricsResponseReportRunMetricResultStatus.md | 0 .../{kfp_server_api => }/docs/RunMetricFormat.md | 0 .../{kfp_server_api => }/docs/RunServiceApi.md | 0 .../{kfp_server_api => }/docs/RunStorageState.md | 0 backend/api/python_http_client/{kfp_server_api => }/git_push.sh | 0 .../kfp_server_api/{kfp_server_api => }/__init__.py | 0 .../kfp_server_api/{kfp_server_api => }/api/__init__.py | 0 .../{kfp_server_api => }/api/experiment_service_api.py | 0 .../kfp_server_api/{kfp_server_api => }/api/job_service_api.py | 0 .../{kfp_server_api => }/api/pipeline_service_api.py | 0 .../{kfp_server_api => }/api/pipeline_upload_service_api.py | 0 .../kfp_server_api/{kfp_server_api => }/api/run_service_api.py | 0 .../kfp_server_api/{kfp_server_api => }/api_client.py | 0 .../kfp_server_api/{kfp_server_api => }/configuration.py | 0 .../kfp_server_api/{kfp_server_api => }/exceptions.py | 0 .../kfp_server_api/{kfp_server_api => }/models/__init__.py | 0 .../{kfp_server_api => }/models/api_cron_schedule.py | 0 .../{kfp_server_api => }/models/api_experiment.py | 0 .../{kfp_server_api => }/models/api_get_template_response.py | 0 .../kfp_server_api/{kfp_server_api => }/models/api_job.py | 0 .../models/api_list_experiments_response.py | 0 .../{kfp_server_api => }/models/api_list_jobs_response.py | 0 .../models/api_list_pipeline_versions_response.py | 0 .../{kfp_server_api => }/models/api_list_pipelines_response.py | 0 .../{kfp_server_api => }/models/api_list_runs_response.py | 0 .../kfp_server_api/{kfp_server_api => }/models/api_parameter.py | 0 .../{kfp_server_api => }/models/api_periodic_schedule.py | 0 .../kfp_server_api/{kfp_server_api => }/models/api_pipeline.py | 0 .../{kfp_server_api => }/models/api_pipeline_runtime.py | 0 .../{kfp_server_api => }/models/api_pipeline_spec.py | 0 .../{kfp_server_api => }/models/api_pipeline_version.py | 0 .../{kfp_server_api => }/models/api_read_artifact_response.py | 0 .../{kfp_server_api => }/models/api_relationship.py | 0 .../models/api_report_run_metrics_request.py | 0 .../models/api_report_run_metrics_response.py | 0 .../{kfp_server_api => }/models/api_resource_key.py | 0 .../{kfp_server_api => }/models/api_resource_reference.py | 0 .../{kfp_server_api => }/models/api_resource_type.py | 0 .../kfp_server_api/{kfp_server_api => }/models/api_run.py | 0 .../{kfp_server_api => }/models/api_run_detail.py | 0 .../{kfp_server_api => }/models/api_run_metric.py | 0 .../kfp_server_api/{kfp_server_api => }/models/api_status.py | 0 .../kfp_server_api/{kfp_server_api => }/models/api_trigger.py | 0 .../kfp_server_api/{kfp_server_api => }/models/api_url.py | 0 .../{kfp_server_api => }/models/experiment_storage_state.py | 0 .../kfp_server_api/{kfp_server_api => }/models/job_mode.py | 0 .../kfp_server_api/{kfp_server_api => }/models/protobuf_any.py | 0 .../report_run_metrics_response_report_run_metric_result.py | 0 ...port_run_metrics_response_report_run_metric_result_status.py | 0 .../{kfp_server_api => }/models/run_metric_format.py | 0 .../{kfp_server_api => }/models/run_storage_state.py | 0 .../kfp_server_api/{kfp_server_api => }/rest.py | 0 .../python_http_client/{kfp_server_api => }/requirements.txt | 0 backend/api/python_http_client/{kfp_server_api => }/setup.cfg | 0 backend/api/python_http_client/{kfp_server_api => }/setup.py | 0 .../{kfp_server_api => }/test-requirements.txt | 0 .../python_http_client/{kfp_server_api => }/test/__init__.py | 0 .../{kfp_server_api => }/test/test_api_cron_schedule.py | 1 + .../{kfp_server_api => }/test/test_api_experiment.py | 1 + .../{kfp_server_api => }/test/test_api_get_template_response.py | 1 + .../{kfp_server_api => }/test/test_api_job.py | 1 + .../test/test_api_list_experiments_response.py | 1 + .../{kfp_server_api => }/test/test_api_list_jobs_response.py | 1 + .../test/test_api_list_pipeline_versions_response.py | 1 + .../test/test_api_list_pipelines_response.py | 1 + .../{kfp_server_api => }/test/test_api_list_runs_response.py | 1 + .../{kfp_server_api => }/test/test_api_parameter.py | 1 + .../{kfp_server_api => }/test/test_api_periodic_schedule.py | 1 + .../{kfp_server_api => }/test/test_api_pipeline.py | 1 + .../{kfp_server_api => }/test/test_api_pipeline_runtime.py | 1 + .../{kfp_server_api => }/test/test_api_pipeline_spec.py | 1 + .../{kfp_server_api => }/test/test_api_pipeline_version.py | 1 + .../test/test_api_read_artifact_response.py | 1 + .../{kfp_server_api => }/test/test_api_relationship.py | 1 + .../test/test_api_report_run_metrics_request.py | 1 + .../test/test_api_report_run_metrics_response.py | 1 + .../{kfp_server_api => }/test/test_api_resource_key.py | 1 + .../{kfp_server_api => }/test/test_api_resource_reference.py | 1 + .../{kfp_server_api => }/test/test_api_resource_type.py | 1 + .../{kfp_server_api => }/test/test_api_run.py | 1 + .../{kfp_server_api => }/test/test_api_run_detail.py | 1 + .../{kfp_server_api => }/test/test_api_run_metric.py | 1 + .../{kfp_server_api => }/test/test_api_status.py | 1 + .../{kfp_server_api => }/test/test_api_trigger.py | 1 + .../{kfp_server_api => }/test/test_api_url.py | 1 + .../{kfp_server_api => }/test/test_experiment_service_api.py | 1 + .../{kfp_server_api => }/test/test_experiment_storage_state.py | 1 + .../{kfp_server_api => }/test/test_job_mode.py | 1 + .../{kfp_server_api => }/test/test_job_service_api.py | 1 + .../{kfp_server_api => }/test/test_pipeline_service_api.py | 1 + .../test/test_pipeline_upload_service_api.py | 1 + .../{kfp_server_api => }/test/test_protobuf_any.py | 1 + ...test_report_run_metrics_response_report_run_metric_result.py | 1 + ...port_run_metrics_response_report_run_metric_result_status.py | 1 + .../{kfp_server_api => }/test/test_run_metric_format.py | 1 + .../{kfp_server_api => }/test/test_run_service_api.py | 1 + .../{kfp_server_api => }/test/test_run_storage_state.py | 1 + backend/api/python_http_client/{kfp_server_api => }/tox.ini | 0 141 files changed, 41 insertions(+), 1 deletion(-) rename backend/api/python_http_client/{kfp_server_api => }/.gitignore (100%) rename backend/api/python_http_client/{kfp_server_api => }/.gitlab-ci.yml (100%) rename backend/api/python_http_client/{kfp_server_api => }/.openapi-generator-ignore (100%) rename backend/api/python_http_client/{kfp_server_api => }/.openapi-generator/VERSION (100%) rename backend/api/python_http_client/{kfp_server_api => }/.travis.yml (100%) rename backend/api/python_http_client/{kfp_server_api => }/README.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiCronSchedule.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiExperiment.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiGetTemplateResponse.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiJob.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiListExperimentsResponse.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiListJobsResponse.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiListPipelineVersionsResponse.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiListPipelinesResponse.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiListRunsResponse.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiParameter.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiPeriodicSchedule.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiPipeline.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiPipelineRuntime.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiPipelineSpec.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiPipelineVersion.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiReadArtifactResponse.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiRelationship.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiReportRunMetricsRequest.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiReportRunMetricsResponse.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiResourceKey.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiResourceReference.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiResourceType.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiRun.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiRunDetail.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiRunMetric.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiStatus.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiTrigger.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ApiUrl.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ExperimentServiceApi.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ExperimentStorageState.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/JobMode.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/JobServiceApi.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/PipelineServiceApi.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/PipelineUploadServiceApi.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ProtobufAny.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ReportRunMetricsResponseReportRunMetricResult.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/RunMetricFormat.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/RunServiceApi.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/docs/RunStorageState.md (100%) rename backend/api/python_http_client/{kfp_server_api => }/git_push.sh (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/__init__.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/api/__init__.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/api/experiment_service_api.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/api/job_service_api.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/api/pipeline_service_api.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/api/pipeline_upload_service_api.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/api/run_service_api.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/api_client.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/configuration.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/exceptions.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/__init__.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_cron_schedule.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_experiment.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_get_template_response.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_job.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_list_experiments_response.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_list_jobs_response.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_list_pipeline_versions_response.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_list_pipelines_response.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_list_runs_response.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_parameter.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_periodic_schedule.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_pipeline.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_pipeline_runtime.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_pipeline_spec.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_pipeline_version.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_read_artifact_response.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_relationship.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_report_run_metrics_request.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_report_run_metrics_response.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_resource_key.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_resource_reference.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_resource_type.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_run.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_run_detail.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_run_metric.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_status.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_trigger.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/api_url.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/experiment_storage_state.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/job_mode.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/protobuf_any.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/report_run_metrics_response_report_run_metric_result.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/report_run_metrics_response_report_run_metric_result_status.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/run_metric_format.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/models/run_storage_state.py (100%) rename backend/api/python_http_client/kfp_server_api/{kfp_server_api => }/rest.py (100%) rename backend/api/python_http_client/{kfp_server_api => }/requirements.txt (100%) rename backend/api/python_http_client/{kfp_server_api => }/setup.cfg (100%) rename backend/api/python_http_client/{kfp_server_api => }/setup.py (100%) rename backend/api/python_http_client/{kfp_server_api => }/test-requirements.txt (100%) rename backend/api/python_http_client/{kfp_server_api => }/test/__init__.py (100%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_cron_schedule.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_experiment.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_get_template_response.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_job.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_list_experiments_response.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_list_jobs_response.py (99%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_list_pipeline_versions_response.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_list_pipelines_response.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_list_runs_response.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_parameter.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_periodic_schedule.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_pipeline.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_pipeline_runtime.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_pipeline_spec.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_pipeline_version.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_read_artifact_response.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_relationship.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_report_run_metrics_request.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_report_run_metrics_response.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_resource_key.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_resource_reference.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_resource_type.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_run.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_run_detail.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_run_metric.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_status.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_trigger.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_api_url.py (96%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_experiment_service_api.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_experiment_storage_state.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_job_mode.py (96%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_job_service_api.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_pipeline_service_api.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_pipeline_upload_service_api.py (96%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_protobuf_any.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_report_run_metrics_response_report_run_metric_result.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_report_run_metrics_response_report_run_metric_result_status.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_run_metric_format.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_run_service_api.py (98%) rename backend/api/python_http_client/{kfp_server_api => }/test/test_run_storage_state.py (97%) rename backend/api/python_http_client/{kfp_server_api => }/tox.ini (100%) diff --git a/backend/api/build_kfp_server_api_python_package.sh b/backend/api/build_kfp_server_api_python_package.sh index 6a6dffd32d6..fb4b927b715 100755 --- a/backend/api/build_kfp_server_api_python_package.sh +++ b/backend/api/build_kfp_server_api_python_package.sh @@ -43,7 +43,7 @@ fi pushd "$(dirname "$0")" -DIR="$(pwd)/python_http_client/kfp_server_api" +DIR="$(pwd)/python_http_client" swagger_file="$(pwd)/swagger/kfp_api_single_file.swagger.json" echo "Generating python code from swagger json in $DIR." diff --git a/backend/api/python_http_client/kfp_server_api/.gitignore b/backend/api/python_http_client/.gitignore similarity index 100% rename from backend/api/python_http_client/kfp_server_api/.gitignore rename to backend/api/python_http_client/.gitignore diff --git a/backend/api/python_http_client/kfp_server_api/.gitlab-ci.yml b/backend/api/python_http_client/.gitlab-ci.yml similarity index 100% rename from backend/api/python_http_client/kfp_server_api/.gitlab-ci.yml rename to backend/api/python_http_client/.gitlab-ci.yml diff --git a/backend/api/python_http_client/kfp_server_api/.openapi-generator-ignore b/backend/api/python_http_client/.openapi-generator-ignore similarity index 100% rename from backend/api/python_http_client/kfp_server_api/.openapi-generator-ignore rename to backend/api/python_http_client/.openapi-generator-ignore diff --git a/backend/api/python_http_client/kfp_server_api/.openapi-generator/VERSION b/backend/api/python_http_client/.openapi-generator/VERSION similarity index 100% rename from backend/api/python_http_client/kfp_server_api/.openapi-generator/VERSION rename to backend/api/python_http_client/.openapi-generator/VERSION diff --git a/backend/api/python_http_client/kfp_server_api/.travis.yml b/backend/api/python_http_client/.travis.yml similarity index 100% rename from backend/api/python_http_client/kfp_server_api/.travis.yml rename to backend/api/python_http_client/.travis.yml diff --git a/backend/api/python_http_client/kfp_server_api/README.md b/backend/api/python_http_client/README.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/README.md rename to backend/api/python_http_client/README.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiCronSchedule.md b/backend/api/python_http_client/docs/ApiCronSchedule.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiCronSchedule.md rename to backend/api/python_http_client/docs/ApiCronSchedule.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiExperiment.md b/backend/api/python_http_client/docs/ApiExperiment.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiExperiment.md rename to backend/api/python_http_client/docs/ApiExperiment.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiGetTemplateResponse.md b/backend/api/python_http_client/docs/ApiGetTemplateResponse.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiGetTemplateResponse.md rename to backend/api/python_http_client/docs/ApiGetTemplateResponse.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiJob.md b/backend/api/python_http_client/docs/ApiJob.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiJob.md rename to backend/api/python_http_client/docs/ApiJob.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListExperimentsResponse.md b/backend/api/python_http_client/docs/ApiListExperimentsResponse.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiListExperimentsResponse.md rename to backend/api/python_http_client/docs/ApiListExperimentsResponse.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListJobsResponse.md b/backend/api/python_http_client/docs/ApiListJobsResponse.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiListJobsResponse.md rename to backend/api/python_http_client/docs/ApiListJobsResponse.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListPipelineVersionsResponse.md b/backend/api/python_http_client/docs/ApiListPipelineVersionsResponse.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiListPipelineVersionsResponse.md rename to backend/api/python_http_client/docs/ApiListPipelineVersionsResponse.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListPipelinesResponse.md b/backend/api/python_http_client/docs/ApiListPipelinesResponse.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiListPipelinesResponse.md rename to backend/api/python_http_client/docs/ApiListPipelinesResponse.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiListRunsResponse.md b/backend/api/python_http_client/docs/ApiListRunsResponse.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiListRunsResponse.md rename to backend/api/python_http_client/docs/ApiListRunsResponse.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiParameter.md b/backend/api/python_http_client/docs/ApiParameter.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiParameter.md rename to backend/api/python_http_client/docs/ApiParameter.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPeriodicSchedule.md b/backend/api/python_http_client/docs/ApiPeriodicSchedule.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiPeriodicSchedule.md rename to backend/api/python_http_client/docs/ApiPeriodicSchedule.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md b/backend/api/python_http_client/docs/ApiPipeline.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiPipeline.md rename to backend/api/python_http_client/docs/ApiPipeline.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineRuntime.md b/backend/api/python_http_client/docs/ApiPipelineRuntime.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiPipelineRuntime.md rename to backend/api/python_http_client/docs/ApiPipelineRuntime.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineSpec.md b/backend/api/python_http_client/docs/ApiPipelineSpec.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiPipelineSpec.md rename to backend/api/python_http_client/docs/ApiPipelineSpec.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md b/backend/api/python_http_client/docs/ApiPipelineVersion.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiPipelineVersion.md rename to backend/api/python_http_client/docs/ApiPipelineVersion.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiReadArtifactResponse.md b/backend/api/python_http_client/docs/ApiReadArtifactResponse.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiReadArtifactResponse.md rename to backend/api/python_http_client/docs/ApiReadArtifactResponse.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRelationship.md b/backend/api/python_http_client/docs/ApiRelationship.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiRelationship.md rename to backend/api/python_http_client/docs/ApiRelationship.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsRequest.md b/backend/api/python_http_client/docs/ApiReportRunMetricsRequest.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsRequest.md rename to backend/api/python_http_client/docs/ApiReportRunMetricsRequest.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsResponse.md b/backend/api/python_http_client/docs/ApiReportRunMetricsResponse.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiReportRunMetricsResponse.md rename to backend/api/python_http_client/docs/ApiReportRunMetricsResponse.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md b/backend/api/python_http_client/docs/ApiResourceKey.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiResourceKey.md rename to backend/api/python_http_client/docs/ApiResourceKey.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md b/backend/api/python_http_client/docs/ApiResourceReference.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiResourceReference.md rename to backend/api/python_http_client/docs/ApiResourceReference.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiResourceType.md b/backend/api/python_http_client/docs/ApiResourceType.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiResourceType.md rename to backend/api/python_http_client/docs/ApiResourceType.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRun.md b/backend/api/python_http_client/docs/ApiRun.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiRun.md rename to backend/api/python_http_client/docs/ApiRun.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRunDetail.md b/backend/api/python_http_client/docs/ApiRunDetail.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiRunDetail.md rename to backend/api/python_http_client/docs/ApiRunDetail.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md b/backend/api/python_http_client/docs/ApiRunMetric.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiRunMetric.md rename to backend/api/python_http_client/docs/ApiRunMetric.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiStatus.md b/backend/api/python_http_client/docs/ApiStatus.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiStatus.md rename to backend/api/python_http_client/docs/ApiStatus.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md b/backend/api/python_http_client/docs/ApiTrigger.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiTrigger.md rename to backend/api/python_http_client/docs/ApiTrigger.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ApiUrl.md b/backend/api/python_http_client/docs/ApiUrl.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ApiUrl.md rename to backend/api/python_http_client/docs/ApiUrl.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md b/backend/api/python_http_client/docs/ExperimentServiceApi.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ExperimentServiceApi.md rename to backend/api/python_http_client/docs/ExperimentServiceApi.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ExperimentStorageState.md b/backend/api/python_http_client/docs/ExperimentStorageState.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ExperimentStorageState.md rename to backend/api/python_http_client/docs/ExperimentStorageState.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/JobMode.md b/backend/api/python_http_client/docs/JobMode.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/JobMode.md rename to backend/api/python_http_client/docs/JobMode.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md b/backend/api/python_http_client/docs/JobServiceApi.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/JobServiceApi.md rename to backend/api/python_http_client/docs/JobServiceApi.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md b/backend/api/python_http_client/docs/PipelineServiceApi.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/PipelineServiceApi.md rename to backend/api/python_http_client/docs/PipelineServiceApi.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md b/backend/api/python_http_client/docs/PipelineUploadServiceApi.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/PipelineUploadServiceApi.md rename to backend/api/python_http_client/docs/PipelineUploadServiceApi.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md b/backend/api/python_http_client/docs/ProtobufAny.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ProtobufAny.md rename to backend/api/python_http_client/docs/ProtobufAny.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md b/backend/api/python_http_client/docs/ReportRunMetricsResponseReportRunMetricResult.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResult.md rename to backend/api/python_http_client/docs/ReportRunMetricsResponseReportRunMetricResult.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md b/backend/api/python_http_client/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md rename to backend/api/python_http_client/docs/ReportRunMetricsResponseReportRunMetricResultStatus.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md b/backend/api/python_http_client/docs/RunMetricFormat.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/RunMetricFormat.md rename to backend/api/python_http_client/docs/RunMetricFormat.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md b/backend/api/python_http_client/docs/RunServiceApi.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/RunServiceApi.md rename to backend/api/python_http_client/docs/RunServiceApi.md diff --git a/backend/api/python_http_client/kfp_server_api/docs/RunStorageState.md b/backend/api/python_http_client/docs/RunStorageState.md similarity index 100% rename from backend/api/python_http_client/kfp_server_api/docs/RunStorageState.md rename to backend/api/python_http_client/docs/RunStorageState.md diff --git a/backend/api/python_http_client/kfp_server_api/git_push.sh b/backend/api/python_http_client/git_push.sh similarity index 100% rename from backend/api/python_http_client/kfp_server_api/git_push.sh rename to backend/api/python_http_client/git_push.sh diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py b/backend/api/python_http_client/kfp_server_api/__init__.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/__init__.py rename to backend/api/python_http_client/kfp_server_api/__init__.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/__init__.py b/backend/api/python_http_client/kfp_server_api/api/__init__.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/api/__init__.py rename to backend/api/python_http_client/kfp_server_api/api/__init__.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py b/backend/api/python_http_client/kfp_server_api/api/experiment_service_api.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/api/experiment_service_api.py rename to backend/api/python_http_client/kfp_server_api/api/experiment_service_api.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py b/backend/api/python_http_client/kfp_server_api/api/job_service_api.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/api/job_service_api.py rename to backend/api/python_http_client/kfp_server_api/api/job_service_api.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py b/backend/api/python_http_client/kfp_server_api/api/pipeline_service_api.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_service_api.py rename to backend/api/python_http_client/kfp_server_api/api/pipeline_service_api.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py b/backend/api/python_http_client/kfp_server_api/api/pipeline_upload_service_api.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/api/pipeline_upload_service_api.py rename to backend/api/python_http_client/kfp_server_api/api/pipeline_upload_service_api.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py b/backend/api/python_http_client/kfp_server_api/api/run_service_api.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/api/run_service_api.py rename to backend/api/python_http_client/kfp_server_api/api/run_service_api.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py b/backend/api/python_http_client/kfp_server_api/api_client.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/api_client.py rename to backend/api/python_http_client/kfp_server_api/api_client.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py b/backend/api/python_http_client/kfp_server_api/configuration.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/configuration.py rename to backend/api/python_http_client/kfp_server_api/configuration.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py b/backend/api/python_http_client/kfp_server_api/exceptions.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/exceptions.py rename to backend/api/python_http_client/kfp_server_api/exceptions.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py b/backend/api/python_http_client/kfp_server_api/models/__init__.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/__init__.py rename to backend/api/python_http_client/kfp_server_api/models/__init__.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py b/backend/api/python_http_client/kfp_server_api/models/api_cron_schedule.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_cron_schedule.py rename to backend/api/python_http_client/kfp_server_api/models/api_cron_schedule.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py b/backend/api/python_http_client/kfp_server_api/models/api_experiment.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_experiment.py rename to backend/api/python_http_client/kfp_server_api/models/api_experiment.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py b/backend/api/python_http_client/kfp_server_api/models/api_get_template_response.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_get_template_response.py rename to backend/api/python_http_client/kfp_server_api/models/api_get_template_response.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py b/backend/api/python_http_client/kfp_server_api/models/api_job.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_job.py rename to backend/api/python_http_client/kfp_server_api/models/api_job.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py b/backend/api/python_http_client/kfp_server_api/models/api_list_experiments_response.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_experiments_response.py rename to backend/api/python_http_client/kfp_server_api/models/api_list_experiments_response.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py b/backend/api/python_http_client/kfp_server_api/models/api_list_jobs_response.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_jobs_response.py rename to backend/api/python_http_client/kfp_server_api/models/api_list_jobs_response.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py b/backend/api/python_http_client/kfp_server_api/models/api_list_pipeline_versions_response.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipeline_versions_response.py rename to backend/api/python_http_client/kfp_server_api/models/api_list_pipeline_versions_response.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py b/backend/api/python_http_client/kfp_server_api/models/api_list_pipelines_response.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_pipelines_response.py rename to backend/api/python_http_client/kfp_server_api/models/api_list_pipelines_response.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py b/backend/api/python_http_client/kfp_server_api/models/api_list_runs_response.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_list_runs_response.py rename to backend/api/python_http_client/kfp_server_api/models/api_list_runs_response.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py b/backend/api/python_http_client/kfp_server_api/models/api_parameter.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_parameter.py rename to backend/api/python_http_client/kfp_server_api/models/api_parameter.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py b/backend/api/python_http_client/kfp_server_api/models/api_periodic_schedule.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_periodic_schedule.py rename to backend/api/python_http_client/kfp_server_api/models/api_periodic_schedule.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py b/backend/api/python_http_client/kfp_server_api/models/api_pipeline.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline.py rename to backend/api/python_http_client/kfp_server_api/models/api_pipeline.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py b/backend/api/python_http_client/kfp_server_api/models/api_pipeline_runtime.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_runtime.py rename to backend/api/python_http_client/kfp_server_api/models/api_pipeline_runtime.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py b/backend/api/python_http_client/kfp_server_api/models/api_pipeline_spec.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_spec.py rename to backend/api/python_http_client/kfp_server_api/models/api_pipeline_spec.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py b/backend/api/python_http_client/kfp_server_api/models/api_pipeline_version.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_pipeline_version.py rename to backend/api/python_http_client/kfp_server_api/models/api_pipeline_version.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py b/backend/api/python_http_client/kfp_server_api/models/api_read_artifact_response.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_read_artifact_response.py rename to backend/api/python_http_client/kfp_server_api/models/api_read_artifact_response.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py b/backend/api/python_http_client/kfp_server_api/models/api_relationship.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_relationship.py rename to backend/api/python_http_client/kfp_server_api/models/api_relationship.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py b/backend/api/python_http_client/kfp_server_api/models/api_report_run_metrics_request.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_request.py rename to backend/api/python_http_client/kfp_server_api/models/api_report_run_metrics_request.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py b/backend/api/python_http_client/kfp_server_api/models/api_report_run_metrics_response.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_report_run_metrics_response.py rename to backend/api/python_http_client/kfp_server_api/models/api_report_run_metrics_response.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py b/backend/api/python_http_client/kfp_server_api/models/api_resource_key.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_key.py rename to backend/api/python_http_client/kfp_server_api/models/api_resource_key.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py b/backend/api/python_http_client/kfp_server_api/models/api_resource_reference.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_reference.py rename to backend/api/python_http_client/kfp_server_api/models/api_resource_reference.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py b/backend/api/python_http_client/kfp_server_api/models/api_resource_type.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_resource_type.py rename to backend/api/python_http_client/kfp_server_api/models/api_resource_type.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py b/backend/api/python_http_client/kfp_server_api/models/api_run.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run.py rename to backend/api/python_http_client/kfp_server_api/models/api_run.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py b/backend/api/python_http_client/kfp_server_api/models/api_run_detail.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_detail.py rename to backend/api/python_http_client/kfp_server_api/models/api_run_detail.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py b/backend/api/python_http_client/kfp_server_api/models/api_run_metric.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_run_metric.py rename to backend/api/python_http_client/kfp_server_api/models/api_run_metric.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py b/backend/api/python_http_client/kfp_server_api/models/api_status.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_status.py rename to backend/api/python_http_client/kfp_server_api/models/api_status.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py b/backend/api/python_http_client/kfp_server_api/models/api_trigger.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_trigger.py rename to backend/api/python_http_client/kfp_server_api/models/api_trigger.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py b/backend/api/python_http_client/kfp_server_api/models/api_url.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/api_url.py rename to backend/api/python_http_client/kfp_server_api/models/api_url.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py b/backend/api/python_http_client/kfp_server_api/models/experiment_storage_state.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/experiment_storage_state.py rename to backend/api/python_http_client/kfp_server_api/models/experiment_storage_state.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py b/backend/api/python_http_client/kfp_server_api/models/job_mode.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/job_mode.py rename to backend/api/python_http_client/kfp_server_api/models/job_mode.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py b/backend/api/python_http_client/kfp_server_api/models/protobuf_any.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/protobuf_any.py rename to backend/api/python_http_client/kfp_server_api/models/protobuf_any.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py b/backend/api/python_http_client/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py rename to backend/api/python_http_client/kfp_server_api/models/report_run_metrics_response_report_run_metric_result.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py b/backend/api/python_http_client/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py rename to backend/api/python_http_client/kfp_server_api/models/report_run_metrics_response_report_run_metric_result_status.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py b/backend/api/python_http_client/kfp_server_api/models/run_metric_format.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_metric_format.py rename to backend/api/python_http_client/kfp_server_api/models/run_metric_format.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py b/backend/api/python_http_client/kfp_server_api/models/run_storage_state.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/models/run_storage_state.py rename to backend/api/python_http_client/kfp_server_api/models/run_storage_state.py diff --git a/backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py b/backend/api/python_http_client/kfp_server_api/rest.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/kfp_server_api/rest.py rename to backend/api/python_http_client/kfp_server_api/rest.py diff --git a/backend/api/python_http_client/kfp_server_api/requirements.txt b/backend/api/python_http_client/requirements.txt similarity index 100% rename from backend/api/python_http_client/kfp_server_api/requirements.txt rename to backend/api/python_http_client/requirements.txt diff --git a/backend/api/python_http_client/kfp_server_api/setup.cfg b/backend/api/python_http_client/setup.cfg similarity index 100% rename from backend/api/python_http_client/kfp_server_api/setup.cfg rename to backend/api/python_http_client/setup.cfg diff --git a/backend/api/python_http_client/kfp_server_api/setup.py b/backend/api/python_http_client/setup.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/setup.py rename to backend/api/python_http_client/setup.py diff --git a/backend/api/python_http_client/kfp_server_api/test-requirements.txt b/backend/api/python_http_client/test-requirements.txt similarity index 100% rename from backend/api/python_http_client/kfp_server_api/test-requirements.txt rename to backend/api/python_http_client/test-requirements.txt diff --git a/backend/api/python_http_client/kfp_server_api/test/__init__.py b/backend/api/python_http_client/test/__init__.py similarity index 100% rename from backend/api/python_http_client/kfp_server_api/test/__init__.py rename to backend/api/python_http_client/test/__init__.py diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py b/backend/api/python_http_client/test/test_api_cron_schedule.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py rename to backend/api/python_http_client/test/test_api_cron_schedule.py index f808ad25238..544b4274141 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_cron_schedule.py +++ b/backend/api/python_http_client/test/test_api_cron_schedule.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py b/backend/api/python_http_client/test/test_api_experiment.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py rename to backend/api/python_http_client/test/test_api_experiment.py index 5c2dd1897dd..4d602dbecb8 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_experiment.py +++ b/backend/api/python_http_client/test/test_api_experiment.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py b/backend/api/python_http_client/test/test_api_get_template_response.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py rename to backend/api/python_http_client/test/test_api_get_template_response.py index 5f84047e4f2..eaf353ba319 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_get_template_response.py +++ b/backend/api/python_http_client/test/test_api_get_template_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_job.py b/backend/api/python_http_client/test/test_api_job.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_job.py rename to backend/api/python_http_client/test/test_api_job.py index c67574eaa31..602505f9b27 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_job.py +++ b/backend/api/python_http_client/test/test_api_job.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py b/backend/api/python_http_client/test/test_api_list_experiments_response.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py rename to backend/api/python_http_client/test/test_api_list_experiments_response.py index 71dc819ece8..56fff05df09 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_experiments_response.py +++ b/backend/api/python_http_client/test/test_api_list_experiments_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py b/backend/api/python_http_client/test/test_api_list_jobs_response.py similarity index 99% rename from backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py rename to backend/api/python_http_client/test/test_api_list_jobs_response.py index 6f5837e657e..4b0c292e1ae 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_jobs_response.py +++ b/backend/api/python_http_client/test/test_api_list_jobs_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py b/backend/api/python_http_client/test/test_api_list_pipeline_versions_response.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py rename to backend/api/python_http_client/test/test_api_list_pipeline_versions_response.py index bf821d06679..4cd16a977bb 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipeline_versions_response.py +++ b/backend/api/python_http_client/test/test_api_list_pipeline_versions_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py b/backend/api/python_http_client/test/test_api_list_pipelines_response.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py rename to backend/api/python_http_client/test/test_api_list_pipelines_response.py index 45dcadb7dce..87561298ca9 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_pipelines_response.py +++ b/backend/api/python_http_client/test/test_api_list_pipelines_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py b/backend/api/python_http_client/test/test_api_list_runs_response.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py rename to backend/api/python_http_client/test/test_api_list_runs_response.py index 3b6582c8836..47dfa97aba2 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_list_runs_response.py +++ b/backend/api/python_http_client/test/test_api_list_runs_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py b/backend/api/python_http_client/test/test_api_parameter.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py rename to backend/api/python_http_client/test/test_api_parameter.py index 90628c661fe..b1937a5b34d 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_parameter.py +++ b/backend/api/python_http_client/test/test_api_parameter.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py b/backend/api/python_http_client/test/test_api_periodic_schedule.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py rename to backend/api/python_http_client/test/test_api_periodic_schedule.py index 1093cd5bdd2..e52541c4e16 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_periodic_schedule.py +++ b/backend/api/python_http_client/test/test_api_periodic_schedule.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py b/backend/api/python_http_client/test/test_api_pipeline.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py rename to backend/api/python_http_client/test/test_api_pipeline.py index 0bfb69d2296..659889c04da 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline.py +++ b/backend/api/python_http_client/test/test_api_pipeline.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py b/backend/api/python_http_client/test/test_api_pipeline_runtime.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py rename to backend/api/python_http_client/test/test_api_pipeline_runtime.py index afab453e8ca..e52c74009a5 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_runtime.py +++ b/backend/api/python_http_client/test/test_api_pipeline_runtime.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py b/backend/api/python_http_client/test/test_api_pipeline_spec.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py rename to backend/api/python_http_client/test/test_api_pipeline_spec.py index 9ec13fa6771..19eb81a3df4 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_spec.py +++ b/backend/api/python_http_client/test/test_api_pipeline_spec.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py b/backend/api/python_http_client/test/test_api_pipeline_version.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py rename to backend/api/python_http_client/test/test_api_pipeline_version.py index 6b11a895db6..5e17646f40e 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_pipeline_version.py +++ b/backend/api/python_http_client/test/test_api_pipeline_version.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py b/backend/api/python_http_client/test/test_api_read_artifact_response.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py rename to backend/api/python_http_client/test/test_api_read_artifact_response.py index 6aeae4fd26c..8027ccc39be 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_read_artifact_response.py +++ b/backend/api/python_http_client/test/test_api_read_artifact_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py b/backend/api/python_http_client/test/test_api_relationship.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py rename to backend/api/python_http_client/test/test_api_relationship.py index 42fca993367..db5778066c1 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_relationship.py +++ b/backend/api/python_http_client/test/test_api_relationship.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py b/backend/api/python_http_client/test/test_api_report_run_metrics_request.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py rename to backend/api/python_http_client/test/test_api_report_run_metrics_request.py index b8e2de0be5c..4f327c508b5 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_request.py +++ b/backend/api/python_http_client/test/test_api_report_run_metrics_request.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py b/backend/api/python_http_client/test/test_api_report_run_metrics_response.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py rename to backend/api/python_http_client/test/test_api_report_run_metrics_response.py index 71cb25bf41b..df7a80fafe8 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_report_run_metrics_response.py +++ b/backend/api/python_http_client/test/test_api_report_run_metrics_response.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py b/backend/api/python_http_client/test/test_api_resource_key.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py rename to backend/api/python_http_client/test/test_api_resource_key.py index 147593e8ed4..83457a0db12 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_key.py +++ b/backend/api/python_http_client/test/test_api_resource_key.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py b/backend/api/python_http_client/test/test_api_resource_reference.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py rename to backend/api/python_http_client/test/test_api_resource_reference.py index b48806ef79c..5109a0a5655 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_reference.py +++ b/backend/api/python_http_client/test/test_api_resource_reference.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py b/backend/api/python_http_client/test/test_api_resource_type.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py rename to backend/api/python_http_client/test/test_api_resource_type.py index 0dad33e9e58..a62c298eb8b 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_resource_type.py +++ b/backend/api/python_http_client/test/test_api_resource_type.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_run.py b/backend/api/python_http_client/test/test_api_run.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_run.py rename to backend/api/python_http_client/test/test_api_run.py index 1412e117923..4b70b99de27 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_run.py +++ b/backend/api/python_http_client/test/test_api_run.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py b/backend/api/python_http_client/test/test_api_run_detail.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py rename to backend/api/python_http_client/test/test_api_run_detail.py index 2a46f3a1ff2..d8a130d45c1 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_run_detail.py +++ b/backend/api/python_http_client/test/test_api_run_detail.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py b/backend/api/python_http_client/test/test_api_run_metric.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py rename to backend/api/python_http_client/test/test_api_run_metric.py index 83b60915007..63b2ce42e4e 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_run_metric.py +++ b/backend/api/python_http_client/test/test_api_run_metric.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_status.py b/backend/api/python_http_client/test/test_api_status.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_api_status.py rename to backend/api/python_http_client/test/test_api_status.py index 37602fa526c..4c9be24d9d4 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_status.py +++ b/backend/api/python_http_client/test/test_api_status.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py b/backend/api/python_http_client/test/test_api_trigger.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py rename to backend/api/python_http_client/test/test_api_trigger.py index 724968ec496..0a9dbc2a794 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_trigger.py +++ b/backend/api/python_http_client/test/test_api_trigger.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_api_url.py b/backend/api/python_http_client/test/test_api_url.py similarity index 96% rename from backend/api/python_http_client/kfp_server_api/test/test_api_url.py rename to backend/api/python_http_client/test/test_api_url.py index ac73fe2dab9..fafaf5e5a21 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_api_url.py +++ b/backend/api/python_http_client/test/test_api_url.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py b/backend/api/python_http_client/test/test_experiment_service_api.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py rename to backend/api/python_http_client/test/test_experiment_service_api.py index 07ec31b9e7d..8aee4ac832f 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_experiment_service_api.py +++ b/backend/api/python_http_client/test/test_experiment_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py b/backend/api/python_http_client/test/test_experiment_storage_state.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py rename to backend/api/python_http_client/test/test_experiment_storage_state.py index 41f05f07b17..022e4d32bb6 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_experiment_storage_state.py +++ b/backend/api/python_http_client/test/test_experiment_storage_state.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_job_mode.py b/backend/api/python_http_client/test/test_job_mode.py similarity index 96% rename from backend/api/python_http_client/kfp_server_api/test/test_job_mode.py rename to backend/api/python_http_client/test/test_job_mode.py index e59b62676b8..c69505aec3d 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_job_mode.py +++ b/backend/api/python_http_client/test/test_job_mode.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py b/backend/api/python_http_client/test/test_job_service_api.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py rename to backend/api/python_http_client/test/test_job_service_api.py index 70d4b28f126..4373c77f08a 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_job_service_api.py +++ b/backend/api/python_http_client/test/test_job_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py b/backend/api/python_http_client/test/test_pipeline_service_api.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py rename to backend/api/python_http_client/test/test_pipeline_service_api.py index 470205ec7d8..693ff0e903d 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_service_api.py +++ b/backend/api/python_http_client/test/test_pipeline_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py b/backend/api/python_http_client/test/test_pipeline_upload_service_api.py similarity index 96% rename from backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py rename to backend/api/python_http_client/test/test_pipeline_upload_service_api.py index 89a0a0000da..3e1d4017698 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_pipeline_upload_service_api.py +++ b/backend/api/python_http_client/test/test_pipeline_upload_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py b/backend/api/python_http_client/test/test_protobuf_any.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py rename to backend/api/python_http_client/test/test_protobuf_any.py index 4ededed9e65..dd14f1c4daa 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_protobuf_any.py +++ b/backend/api/python_http_client/test/test_protobuf_any.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py b/backend/api/python_http_client/test/test_report_run_metrics_response_report_run_metric_result.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py rename to backend/api/python_http_client/test/test_report_run_metrics_response_report_run_metric_result.py index a5683c470b3..7af9a4ac001 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result.py +++ b/backend/api/python_http_client/test/test_report_run_metrics_response_report_run_metric_result.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py b/backend/api/python_http_client/test/test_report_run_metrics_response_report_run_metric_result_status.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py rename to backend/api/python_http_client/test/test_report_run_metrics_response_report_run_metric_result_status.py index 4a945f5ee25..fa4f7937a49 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_report_run_metrics_response_report_run_metric_result_status.py +++ b/backend/api/python_http_client/test/test_report_run_metrics_response_report_run_metric_result_status.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py b/backend/api/python_http_client/test/test_run_metric_format.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py rename to backend/api/python_http_client/test/test_run_metric_format.py index 4adabc35c9b..5f635827fc2 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_run_metric_format.py +++ b/backend/api/python_http_client/test/test_run_metric_format.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py b/backend/api/python_http_client/test/test_run_service_api.py similarity index 98% rename from backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py rename to backend/api/python_http_client/test/test_run_service_api.py index fd9f17d0522..b86edbb8f57 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_run_service_api.py +++ b/backend/api/python_http_client/test/test_run_service_api.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py b/backend/api/python_http_client/test/test_run_storage_state.py similarity index 97% rename from backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py rename to backend/api/python_http_client/test/test_run_storage_state.py index 3e37f9003ce..34b2ce0d5be 100644 --- a/backend/api/python_http_client/kfp_server_api/test/test_run_storage_state.py +++ b/backend/api/python_http_client/test/test_run_storage_state.py @@ -6,6 +6,7 @@ This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501 The version of the OpenAPI document: 1.0.0-dev.1 + Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ diff --git a/backend/api/python_http_client/kfp_server_api/tox.ini b/backend/api/python_http_client/tox.ini similarity index 100% rename from backend/api/python_http_client/kfp_server_api/tox.ini rename to backend/api/python_http_client/tox.ini From 4ca8d28aacb8e88331ec678f93b27d0ef123eafe Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 14:34:22 +0800 Subject: [PATCH 09/10] Clean up build script --- backend/api/build_kfp_server_api_python_package.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/api/build_kfp_server_api_python_package.sh b/backend/api/build_kfp_server_api_python_package.sh index fb4b927b715..28bc709c687 100755 --- a/backend/api/build_kfp_server_api_python_package.sh +++ b/backend/api/build_kfp_server_api_python_package.sh @@ -46,10 +46,12 @@ pushd "$(dirname "$0")" DIR="$(pwd)/python_http_client" swagger_file="$(pwd)/swagger/kfp_api_single_file.swagger.json" +echo "Removing old content in DIR first." +rm -rf "$DIR" + echo "Generating python code from swagger json in $DIR." java -jar "$codegen_file" generate -g python -i "$swagger_file" -o "$DIR" -c <(echo '{ "packageName": "kfp_server_api", - "projectName": "kfp-server-api", "packageVersion": "'"$VERSION"'", "packageUrl": "https://github.com/kubeflow/pipelines" }') From b0cc8e4b91a887cbb8cd1db33f5f8333132e3c41 Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Wed, 3 Jun 2020 11:02:07 +0800 Subject: [PATCH 10/10] Update kfp_server_api from new swagger.json --- backend/api/python_http_client/README.md | 60 ++++++------- .../docs/ApiGetTemplateResponse.md | 2 +- .../docs/ApiListJobsResponse.md | 4 +- .../docs/ApiListPipelineVersionsResponse.md | 4 +- .../docs/ApiListPipelinesResponse.md | 4 +- .../docs/ApiListRunsResponse.md | 4 +- backend/api/python_http_client/docs/ApiRun.md | 2 +- backend/api/python_http_client/docs/ApiUrl.md | 2 +- .../docs/ExperimentServiceApi.md | 52 +++++------ .../python_http_client/docs/JobServiceApi.md | 32 +++---- .../docs/PipelineServiceApi.md | 89 ++++++++++--------- .../python_http_client/docs/RunServiceApi.md | 86 +++++++++--------- .../api/experiment_service_api.py | 40 ++++----- .../kfp_server_api/api/job_service_api.py | 24 ++--- .../api/pipeline_service_api.py | 76 ++++++++-------- .../kfp_server_api/api/run_service_api.py | 68 +++++++------- .../models/api_get_template_response.py | 2 + .../models/api_list_jobs_response.py | 4 + .../api_list_pipeline_versions_response.py | 4 + .../models/api_list_pipelines_response.py | 4 + .../models/api_list_runs_response.py | 4 + .../kfp_server_api/models/api_run.py | 4 +- .../kfp_server_api/models/api_url.py | 2 + .../test/test_experiment_service_api.py | 12 +-- .../test/test_job_service_api.py | 8 +- .../test/test_pipeline_service_api.py | 13 ++- .../test/test_run_service_api.py | 18 ++-- 27 files changed, 327 insertions(+), 297 deletions(-) diff --git a/backend/api/python_http_client/README.md b/backend/api/python_http_client/README.md index a31a86608df..cde089e050d 100644 --- a/backend/api/python_http_client/README.md +++ b/backend/api/python_http_client/README.md @@ -79,10 +79,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.ExperimentServiceApi(api_client) - id = 'id_example' # str | + id = 'id_example' # str | The ID of the experiment to be archived. try: - # Archive an experiment. + # Archives an experiment and the experiment's runs and jobs. api_response = api_instance.archive_experiment(id) pprint(api_response) except ApiException as e: @@ -96,40 +96,40 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*ExperimentServiceApi* | [**archive_experiment**](docs/ExperimentServiceApi.md#archive_experiment) | **POST** /apis/v1beta1/experiments/{id}:archive | Archive an experiment. -*ExperimentServiceApi* | [**create_experiment**](docs/ExperimentServiceApi.md#create_experiment) | **POST** /apis/v1beta1/experiments | Create a new experiment. -*ExperimentServiceApi* | [**delete_experiment**](docs/ExperimentServiceApi.md#delete_experiment) | **DELETE** /apis/v1beta1/experiments/{id} | Delete an experiment. -*ExperimentServiceApi* | [**get_experiment**](docs/ExperimentServiceApi.md#get_experiment) | **GET** /apis/v1beta1/experiments/{id} | Find a specific experiment by ID. -*ExperimentServiceApi* | [**list_experiment**](docs/ExperimentServiceApi.md#list_experiment) | **GET** /apis/v1beta1/experiments | Find all experiments. -*ExperimentServiceApi* | [**unarchive_experiment**](docs/ExperimentServiceApi.md#unarchive_experiment) | **POST** /apis/v1beta1/experiments/{id}:unarchive | Restore an archived experiment. -*JobServiceApi* | [**create_job**](docs/JobServiceApi.md#create_job) | **POST** /apis/v1beta1/jobs | Create a new job. -*JobServiceApi* | [**delete_job**](docs/JobServiceApi.md#delete_job) | **DELETE** /apis/v1beta1/jobs/{id} | Delete a job. +*ExperimentServiceApi* | [**archive_experiment**](docs/ExperimentServiceApi.md#archive_experiment) | **POST** /apis/v1beta1/experiments/{id}:archive | Archives an experiment and the experiment's runs and jobs. +*ExperimentServiceApi* | [**create_experiment**](docs/ExperimentServiceApi.md#create_experiment) | **POST** /apis/v1beta1/experiments | Creates a new experiment. +*ExperimentServiceApi* | [**delete_experiment**](docs/ExperimentServiceApi.md#delete_experiment) | **DELETE** /apis/v1beta1/experiments/{id} | Deletes an experiment without deleting the experiment's runs and jobs. To avoid unexpected behaviors, delete an experiment's runs and jobs before deleting the experiment. +*ExperimentServiceApi* | [**get_experiment**](docs/ExperimentServiceApi.md#get_experiment) | **GET** /apis/v1beta1/experiments/{id} | Finds a specific experiment by ID. +*ExperimentServiceApi* | [**list_experiment**](docs/ExperimentServiceApi.md#list_experiment) | **GET** /apis/v1beta1/experiments | Finds all experiments. Supports pagination, and sorting on certain fields. +*ExperimentServiceApi* | [**unarchive_experiment**](docs/ExperimentServiceApi.md#unarchive_experiment) | **POST** /apis/v1beta1/experiments/{id}:unarchive | Restores an archived experiment. The experiment's archived runs and jobs will stay archived. +*JobServiceApi* | [**create_job**](docs/JobServiceApi.md#create_job) | **POST** /apis/v1beta1/jobs | Creates a new job. +*JobServiceApi* | [**delete_job**](docs/JobServiceApi.md#delete_job) | **DELETE** /apis/v1beta1/jobs/{id} | Deletes a job. *JobServiceApi* | [**disable_job**](docs/JobServiceApi.md#disable_job) | **POST** /apis/v1beta1/jobs/{id}/disable | Stops a job and all its associated runs. The job is not deleted. *JobServiceApi* | [**enable_job**](docs/JobServiceApi.md#enable_job) | **POST** /apis/v1beta1/jobs/{id}/enable | Restarts a job that was previously stopped. All runs associated with the job will continue. -*JobServiceApi* | [**get_job**](docs/JobServiceApi.md#get_job) | **GET** /apis/v1beta1/jobs/{id} | Find a specific job by ID. -*JobServiceApi* | [**list_jobs**](docs/JobServiceApi.md#list_jobs) | **GET** /apis/v1beta1/jobs | Find all jobs. -*PipelineServiceApi* | [**create_pipeline**](docs/PipelineServiceApi.md#create_pipeline) | **POST** /apis/v1beta1/pipelines | Add a pipeline. -*PipelineServiceApi* | [**create_pipeline_version**](docs/PipelineServiceApi.md#create_pipeline_version) | **POST** /apis/v1beta1/pipeline_versions | -*PipelineServiceApi* | [**delete_pipeline**](docs/PipelineServiceApi.md#delete_pipeline) | **DELETE** /apis/v1beta1/pipelines/{id} | Delete a pipeline. -*PipelineServiceApi* | [**delete_pipeline_version**](docs/PipelineServiceApi.md#delete_pipeline_version) | **DELETE** /apis/v1beta1/pipeline_versions/{version_id} | -*PipelineServiceApi* | [**get_pipeline**](docs/PipelineServiceApi.md#get_pipeline) | **GET** /apis/v1beta1/pipelines/{id} | Find a specific pipeline by ID. -*PipelineServiceApi* | [**get_pipeline_version**](docs/PipelineServiceApi.md#get_pipeline_version) | **GET** /apis/v1beta1/pipeline_versions/{version_id} | -*PipelineServiceApi* | [**get_pipeline_version_template**](docs/PipelineServiceApi.md#get_pipeline_version_template) | **GET** /apis/v1beta1/pipeline_versions/{version_id}/templates | +*JobServiceApi* | [**get_job**](docs/JobServiceApi.md#get_job) | **GET** /apis/v1beta1/jobs/{id} | Finds a specific job by ID. +*JobServiceApi* | [**list_jobs**](docs/JobServiceApi.md#list_jobs) | **GET** /apis/v1beta1/jobs | Finds all jobs. +*PipelineServiceApi* | [**create_pipeline**](docs/PipelineServiceApi.md#create_pipeline) | **POST** /apis/v1beta1/pipelines | Creates a pipeline. +*PipelineServiceApi* | [**create_pipeline_version**](docs/PipelineServiceApi.md#create_pipeline_version) | **POST** /apis/v1beta1/pipeline_versions | Adds a pipeline version to the specified pipeline. +*PipelineServiceApi* | [**delete_pipeline**](docs/PipelineServiceApi.md#delete_pipeline) | **DELETE** /apis/v1beta1/pipelines/{id} | Deletes a pipeline and its pipeline versions. +*PipelineServiceApi* | [**delete_pipeline_version**](docs/PipelineServiceApi.md#delete_pipeline_version) | **DELETE** /apis/v1beta1/pipeline_versions/{version_id} | Deletes a pipeline version by pipeline version ID. If the deleted pipeline version is the default pipeline version, the pipeline's default version changes to the pipeline's most recent pipeline version. If there are no remaining pipeline versions, the pipeline will have no default version. Examines the run_service_api.ipynb notebook to learn more about creating a run using a pipeline version (https://github.com/kubeflow/pipelines/blob/master/tools/benchmarks/run_service_api.ipynb). +*PipelineServiceApi* | [**get_pipeline**](docs/PipelineServiceApi.md#get_pipeline) | **GET** /apis/v1beta1/pipelines/{id} | Finds a specific pipeline by ID. +*PipelineServiceApi* | [**get_pipeline_version**](docs/PipelineServiceApi.md#get_pipeline_version) | **GET** /apis/v1beta1/pipeline_versions/{version_id} | Gets a pipeline version by pipeline version ID. +*PipelineServiceApi* | [**get_pipeline_version_template**](docs/PipelineServiceApi.md#get_pipeline_version_template) | **GET** /apis/v1beta1/pipeline_versions/{version_id}/templates | Returns a YAML template that contains the specified pipeline version's description, parameters and metadata. *PipelineServiceApi* | [**get_template**](docs/PipelineServiceApi.md#get_template) | **GET** /apis/v1beta1/pipelines/{id}/templates | Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. -*PipelineServiceApi* | [**list_pipeline_versions**](docs/PipelineServiceApi.md#list_pipeline_versions) | **GET** /apis/v1beta1/pipeline_versions | -*PipelineServiceApi* | [**list_pipelines**](docs/PipelineServiceApi.md#list_pipelines) | **GET** /apis/v1beta1/pipelines | Find all pipelines. +*PipelineServiceApi* | [**list_pipeline_versions**](docs/PipelineServiceApi.md#list_pipeline_versions) | **GET** /apis/v1beta1/pipeline_versions | Lists all pipeline versions of a given pipeline. +*PipelineServiceApi* | [**list_pipelines**](docs/PipelineServiceApi.md#list_pipelines) | **GET** /apis/v1beta1/pipelines | Finds all pipelines. *PipelineUploadServiceApi* | [**upload_pipeline**](docs/PipelineUploadServiceApi.md#upload_pipeline) | **POST** /apis/v1beta1/pipelines/upload | *PipelineUploadServiceApi* | [**upload_pipeline_version**](docs/PipelineUploadServiceApi.md#upload_pipeline_version) | **POST** /apis/v1beta1/pipelines/upload_version | -*RunServiceApi* | [**archive_run**](docs/RunServiceApi.md#archive_run) | **POST** /apis/v1beta1/runs/{id}:archive | Archive a run. -*RunServiceApi* | [**create_run**](docs/RunServiceApi.md#create_run) | **POST** /apis/v1beta1/runs | Create a new run. -*RunServiceApi* | [**delete_run**](docs/RunServiceApi.md#delete_run) | **DELETE** /apis/v1beta1/runs/{id} | Delete a run. -*RunServiceApi* | [**get_run**](docs/RunServiceApi.md#get_run) | **GET** /apis/v1beta1/runs/{run_id} | Find a specific run by ID. -*RunServiceApi* | [**list_runs**](docs/RunServiceApi.md#list_runs) | **GET** /apis/v1beta1/runs | Find all runs. -*RunServiceApi* | [**read_artifact**](docs/RunServiceApi.md#read_artifact) | **GET** /apis/v1beta1/runs/{run_id}/nodes/{node_id}/artifacts/{artifact_name}:read | Find a run's artifact data. +*RunServiceApi* | [**archive_run**](docs/RunServiceApi.md#archive_run) | **POST** /apis/v1beta1/runs/{id}:archive | Archives a run. +*RunServiceApi* | [**create_run**](docs/RunServiceApi.md#create_run) | **POST** /apis/v1beta1/runs | Creates a new run. +*RunServiceApi* | [**delete_run**](docs/RunServiceApi.md#delete_run) | **DELETE** /apis/v1beta1/runs/{id} | Deletes a run. +*RunServiceApi* | [**get_run**](docs/RunServiceApi.md#get_run) | **GET** /apis/v1beta1/runs/{run_id} | Finds a specific run by ID. +*RunServiceApi* | [**list_runs**](docs/RunServiceApi.md#list_runs) | **GET** /apis/v1beta1/runs | Finds all runs. +*RunServiceApi* | [**read_artifact**](docs/RunServiceApi.md#read_artifact) | **GET** /apis/v1beta1/runs/{run_id}/nodes/{node_id}/artifacts/{artifact_name}:read | Finds a run's artifact data. *RunServiceApi* | [**report_run_metrics**](docs/RunServiceApi.md#report_run_metrics) | **POST** /apis/v1beta1/runs/{run_id}:reportMetrics | ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. -*RunServiceApi* | [**retry_run**](docs/RunServiceApi.md#retry_run) | **POST** /apis/v1beta1/runs/{run_id}/retry | Re-initiate a failed or terminated run. -*RunServiceApi* | [**terminate_run**](docs/RunServiceApi.md#terminate_run) | **POST** /apis/v1beta1/runs/{run_id}/terminate | Terminate an active run. -*RunServiceApi* | [**unarchive_run**](docs/RunServiceApi.md#unarchive_run) | **POST** /apis/v1beta1/runs/{id}:unarchive | Restore an archived run. +*RunServiceApi* | [**retry_run**](docs/RunServiceApi.md#retry_run) | **POST** /apis/v1beta1/runs/{run_id}/retry | Re-initiates a failed or terminated run. +*RunServiceApi* | [**terminate_run**](docs/RunServiceApi.md#terminate_run) | **POST** /apis/v1beta1/runs/{run_id}/terminate | Terminates an active run. +*RunServiceApi* | [**unarchive_run**](docs/RunServiceApi.md#unarchive_run) | **POST** /apis/v1beta1/runs/{id}:unarchive | Restores an archived run. ## Documentation For Models diff --git a/backend/api/python_http_client/docs/ApiGetTemplateResponse.md b/backend/api/python_http_client/docs/ApiGetTemplateResponse.md index 1ac68e05439..478c48166c5 100644 --- a/backend/api/python_http_client/docs/ApiGetTemplateResponse.md +++ b/backend/api/python_http_client/docs/ApiGetTemplateResponse.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**template** | **str** | | [optional] +**template** | **str** | The template of the pipeline specified in a GetTemplate request, or of a pipeline version specified in a GetPipelinesVersionTemplate request. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/docs/ApiListJobsResponse.md b/backend/api/python_http_client/docs/ApiListJobsResponse.md index c12024d8606..8a94f7cc046 100644 --- a/backend/api/python_http_client/docs/ApiListJobsResponse.md +++ b/backend/api/python_http_client/docs/ApiListJobsResponse.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **jobs** | [**list[ApiJob]**](ApiJob.md) | A list of jobs returned. | [optional] -**total_size** | **int** | | [optional] -**next_page_token** | **str** | | [optional] +**total_size** | **int** | The total number of jobs for the given query. | [optional] +**next_page_token** | **str** | The token to list the next page of jobs. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/docs/ApiListPipelineVersionsResponse.md b/backend/api/python_http_client/docs/ApiListPipelineVersionsResponse.md index 06dd53786a6..9ab2eacb2e3 100644 --- a/backend/api/python_http_client/docs/ApiListPipelineVersionsResponse.md +++ b/backend/api/python_http_client/docs/ApiListPipelineVersionsResponse.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **versions** | [**list[ApiPipelineVersion]**](ApiPipelineVersion.md) | | [optional] -**next_page_token** | **str** | | [optional] -**total_size** | **int** | | [optional] +**next_page_token** | **str** | The token to list the next page of pipeline versions. | [optional] +**total_size** | **int** | The total number of pipeline versions for the given query. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/docs/ApiListPipelinesResponse.md b/backend/api/python_http_client/docs/ApiListPipelinesResponse.md index f59d27a184a..cb9d319b7ce 100644 --- a/backend/api/python_http_client/docs/ApiListPipelinesResponse.md +++ b/backend/api/python_http_client/docs/ApiListPipelinesResponse.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pipelines** | [**list[ApiPipeline]**](ApiPipeline.md) | | [optional] -**total_size** | **int** | | [optional] -**next_page_token** | **str** | | [optional] +**total_size** | **int** | The total number of pipelines for the given query. | [optional] +**next_page_token** | **str** | The token to list the next page of pipelines. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/docs/ApiListRunsResponse.md b/backend/api/python_http_client/docs/ApiListRunsResponse.md index 26d19e1f3eb..4b93b22d17d 100644 --- a/backend/api/python_http_client/docs/ApiListRunsResponse.md +++ b/backend/api/python_http_client/docs/ApiListRunsResponse.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **runs** | [**list[ApiRun]**](ApiRun.md) | | [optional] -**total_size** | **int** | | [optional] -**next_page_token** | **str** | | [optional] +**total_size** | **int** | The total number of runs for the given query. | [optional] +**next_page_token** | **str** | The token to list the next page of runs. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/docs/ApiRun.md b/backend/api/python_http_client/docs/ApiRun.md index bf67737b5f3..adef1ebfd8a 100644 --- a/backend/api/python_http_client/docs/ApiRun.md +++ b/backend/api/python_http_client/docs/ApiRun.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **storage_state** | [**RunStorageState**](RunStorageState.md) | | [optional] **description** | **str** | | [optional] **pipeline_spec** | [**ApiPipelineSpec**](ApiPipelineSpec.md) | | [optional] -**resource_references** | [**list[ApiResourceReference]**](ApiResourceReference.md) | Optional input field. Specify which resource this run belongs to. | [optional] +**resource_references** | [**list[ApiResourceReference]**](ApiResourceReference.md) | Optional input field. Specify which resource this run belongs to. When creating a run from a particular pipeline version, the pipeline version can be specified here. | [optional] **service_account** | **str** | Optional input field. Specify which Kubernetes service account this run uses. | [optional] **created_at** | **datetime** | Output. The time that the run created. | [optional] **scheduled_at** | **datetime** | Output. When this run is scheduled to run. This could be different from created_at. For example, if a run is from a backfilling job that was supposed to run 2 month ago, the scheduled_at is 2 month ago, v.s. created_at is the current time. | [optional] diff --git a/backend/api/python_http_client/docs/ApiUrl.md b/backend/api/python_http_client/docs/ApiUrl.md index a098f68fba5..3b112d2b4f5 100644 --- a/backend/api/python_http_client/docs/ApiUrl.md +++ b/backend/api/python_http_client/docs/ApiUrl.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pipeline_url** | **str** | | [optional] +**pipeline_url** | **str** | URL of the pipeline definition or the pipeline version definition. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/backend/api/python_http_client/docs/ExperimentServiceApi.md b/backend/api/python_http_client/docs/ExperimentServiceApi.md index bca90051df9..0ac2cc68a87 100644 --- a/backend/api/python_http_client/docs/ExperimentServiceApi.md +++ b/backend/api/python_http_client/docs/ExperimentServiceApi.md @@ -4,18 +4,18 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**archive_experiment**](ExperimentServiceApi.md#archive_experiment) | **POST** /apis/v1beta1/experiments/{id}:archive | Archive an experiment. -[**create_experiment**](ExperimentServiceApi.md#create_experiment) | **POST** /apis/v1beta1/experiments | Create a new experiment. -[**delete_experiment**](ExperimentServiceApi.md#delete_experiment) | **DELETE** /apis/v1beta1/experiments/{id} | Delete an experiment. -[**get_experiment**](ExperimentServiceApi.md#get_experiment) | **GET** /apis/v1beta1/experiments/{id} | Find a specific experiment by ID. -[**list_experiment**](ExperimentServiceApi.md#list_experiment) | **GET** /apis/v1beta1/experiments | Find all experiments. -[**unarchive_experiment**](ExperimentServiceApi.md#unarchive_experiment) | **POST** /apis/v1beta1/experiments/{id}:unarchive | Restore an archived experiment. +[**archive_experiment**](ExperimentServiceApi.md#archive_experiment) | **POST** /apis/v1beta1/experiments/{id}:archive | Archives an experiment and the experiment's runs and jobs. +[**create_experiment**](ExperimentServiceApi.md#create_experiment) | **POST** /apis/v1beta1/experiments | Creates a new experiment. +[**delete_experiment**](ExperimentServiceApi.md#delete_experiment) | **DELETE** /apis/v1beta1/experiments/{id} | Deletes an experiment without deleting the experiment's runs and jobs. To avoid unexpected behaviors, delete an experiment's runs and jobs before deleting the experiment. +[**get_experiment**](ExperimentServiceApi.md#get_experiment) | **GET** /apis/v1beta1/experiments/{id} | Finds a specific experiment by ID. +[**list_experiment**](ExperimentServiceApi.md#list_experiment) | **GET** /apis/v1beta1/experiments | Finds all experiments. Supports pagination, and sorting on certain fields. +[**unarchive_experiment**](ExperimentServiceApi.md#unarchive_experiment) | **POST** /apis/v1beta1/experiments/{id}:unarchive | Restores an archived experiment. The experiment's archived runs and jobs will stay archived. # **archive_experiment** > object archive_experiment(id) -Archive an experiment. +Archives an experiment and the experiment's runs and jobs. ### Example @@ -51,10 +51,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.ExperimentServiceApi(api_client) - id = 'id_example' # str | + id = 'id_example' # str | The ID of the experiment to be archived. try: - # Archive an experiment. + # Archives an experiment and the experiment's runs and jobs. api_response = api_instance.archive_experiment(id) pprint(api_response) except ApiException as e: @@ -65,7 +65,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **str**| The ID of the experiment to be archived. | ### Return type @@ -91,7 +91,7 @@ Name | Type | Description | Notes # **create_experiment** > ApiExperiment create_experiment(body) -Create a new experiment. +Creates a new experiment. ### Example @@ -130,7 +130,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: body = kfp_server_api.ApiExperiment() # ApiExperiment | The experiment to be created. try: - # Create a new experiment. + # Creates a new experiment. api_response = api_instance.create_experiment(body) pprint(api_response) except ApiException as e: @@ -167,7 +167,7 @@ Name | Type | Description | Notes # **delete_experiment** > object delete_experiment(id) -Delete an experiment. +Deletes an experiment without deleting the experiment's runs and jobs. To avoid unexpected behaviors, delete an experiment's runs and jobs before deleting the experiment. ### Example @@ -206,7 +206,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: id = 'id_example' # str | The ID of the experiment to be deleted. try: - # Delete an experiment. + # Deletes an experiment without deleting the experiment's runs and jobs. To avoid unexpected behaviors, delete an experiment's runs and jobs before deleting the experiment. api_response = api_instance.delete_experiment(id) pprint(api_response) except ApiException as e: @@ -243,7 +243,7 @@ Name | Type | Description | Notes # **get_experiment** > ApiExperiment get_experiment(id) -Find a specific experiment by ID. +Finds a specific experiment by ID. ### Example @@ -282,7 +282,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: id = 'id_example' # str | The ID of the experiment to be retrieved. try: - # Find a specific experiment by ID. + # Finds a specific experiment by ID. api_response = api_instance.get_experiment(id) pprint(api_response) except ApiException as e: @@ -319,7 +319,7 @@ Name | Type | Description | Notes # **list_experiment** > ApiListExperimentsResponse list_experiment(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id) -Find all experiments. +Finds all experiments. Supports pagination, and sorting on certain fields. ### Example @@ -355,15 +355,15 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.ExperimentServiceApi(api_client) - page_token = 'page_token_example' # str | (optional) -page_size = 56 # int | (optional) + page_token = 'page_token_example' # str | A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListExperiment call or can be omitted when fetching the first page. (optional) +page_size = 56 # int | The number of experiments to be listed per page. If there are more experiments than this number, the response message will contain a nextPageToken field you can use to fetch the next page. (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. (optional) filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to 'UNKNOWN_RESOURCE_TYPE') resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID of the resource that referred to. (optional) try: - # Find all experiments. + # Finds all experiments. Supports pagination, and sorting on certain fields. api_response = api_instance.list_experiment(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id) pprint(api_response) except ApiException as e: @@ -374,8 +374,8 @@ resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID o Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page_token** | **str**| | [optional] - **page_size** | **int**| | [optional] + **page_token** | **str**| A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListExperiment call or can be omitted when fetching the first page. | [optional] + **page_size** | **int**| The number of experiments to be listed per page. If there are more experiments than this number, the response message will contain a nextPageToken field you can use to fetch the next page. | [optional] **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. | [optional] **filter** | **str**| A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). | [optional] **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to 'UNKNOWN_RESOURCE_TYPE'] @@ -405,7 +405,7 @@ Name | Type | Description | Notes # **unarchive_experiment** > object unarchive_experiment(id) -Restore an archived experiment. +Restores an archived experiment. The experiment's archived runs and jobs will stay archived. ### Example @@ -441,10 +441,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.ExperimentServiceApi(api_client) - id = 'id_example' # str | + id = 'id_example' # str | The ID of the experiment to be restored. try: - # Restore an archived experiment. + # Restores an archived experiment. The experiment's archived runs and jobs will stay archived. api_response = api_instance.unarchive_experiment(id) pprint(api_response) except ApiException as e: @@ -455,7 +455,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **str**| The ID of the experiment to be restored. | ### Return type diff --git a/backend/api/python_http_client/docs/JobServiceApi.md b/backend/api/python_http_client/docs/JobServiceApi.md index 2e4a6469587..7342143b4e1 100644 --- a/backend/api/python_http_client/docs/JobServiceApi.md +++ b/backend/api/python_http_client/docs/JobServiceApi.md @@ -4,18 +4,18 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_job**](JobServiceApi.md#create_job) | **POST** /apis/v1beta1/jobs | Create a new job. -[**delete_job**](JobServiceApi.md#delete_job) | **DELETE** /apis/v1beta1/jobs/{id} | Delete a job. +[**create_job**](JobServiceApi.md#create_job) | **POST** /apis/v1beta1/jobs | Creates a new job. +[**delete_job**](JobServiceApi.md#delete_job) | **DELETE** /apis/v1beta1/jobs/{id} | Deletes a job. [**disable_job**](JobServiceApi.md#disable_job) | **POST** /apis/v1beta1/jobs/{id}/disable | Stops a job and all its associated runs. The job is not deleted. [**enable_job**](JobServiceApi.md#enable_job) | **POST** /apis/v1beta1/jobs/{id}/enable | Restarts a job that was previously stopped. All runs associated with the job will continue. -[**get_job**](JobServiceApi.md#get_job) | **GET** /apis/v1beta1/jobs/{id} | Find a specific job by ID. -[**list_jobs**](JobServiceApi.md#list_jobs) | **GET** /apis/v1beta1/jobs | Find all jobs. +[**get_job**](JobServiceApi.md#get_job) | **GET** /apis/v1beta1/jobs/{id} | Finds a specific job by ID. +[**list_jobs**](JobServiceApi.md#list_jobs) | **GET** /apis/v1beta1/jobs | Finds all jobs. # **create_job** > ApiJob create_job(body) -Create a new job. +Creates a new job. ### Example @@ -54,7 +54,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: body = kfp_server_api.ApiJob() # ApiJob | The job to be created try: - # Create a new job. + # Creates a new job. api_response = api_instance.create_job(body) pprint(api_response) except ApiException as e: @@ -91,7 +91,7 @@ Name | Type | Description | Notes # **delete_job** > object delete_job(id) -Delete a job. +Deletes a job. ### Example @@ -130,7 +130,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: id = 'id_example' # str | The ID of the job to be deleted try: - # Delete a job. + # Deletes a job. api_response = api_instance.delete_job(id) pprint(api_response) except ApiException as e: @@ -319,7 +319,7 @@ Name | Type | Description | Notes # **get_job** > ApiJob get_job(id) -Find a specific job by ID. +Finds a specific job by ID. ### Example @@ -358,7 +358,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: id = 'id_example' # str | The ID of the job to be retrieved try: - # Find a specific job by ID. + # Finds a specific job by ID. api_response = api_instance.get_job(id) pprint(api_response) except ApiException as e: @@ -395,7 +395,7 @@ Name | Type | Description | Notes # **list_jobs** > ApiListJobsResponse list_jobs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) -Find all jobs. +Finds all jobs. ### Example @@ -431,15 +431,15 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.JobServiceApi(api_client) - page_token = 'page_token_example' # str | (optional) -page_size = 56 # int | (optional) + page_token = 'page_token_example' # str | A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListJobs call or can be omitted when fetching the first page. (optional) +page_size = 56 # int | The number of jobs to be listed per page. If there are more jobs than this number, the response message will contain a nextPageToken field you can use to fetch the next page. (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. (optional) resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to 'UNKNOWN_RESOURCE_TYPE') resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID of the resource that referred to. (optional) filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) try: - # Find all jobs. + # Finds all jobs. api_response = api_instance.list_jobs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) pprint(api_response) except ApiException as e: @@ -450,8 +450,8 @@ filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page_token** | **str**| | [optional] - **page_size** | **int**| | [optional] + **page_token** | **str**| A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListJobs call or can be omitted when fetching the first page. | [optional] + **page_size** | **int**| The number of jobs to be listed per page. If there are more jobs than this number, the response message will contain a nextPageToken field you can use to fetch the next page. | [optional] **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. | [optional] **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to 'UNKNOWN_RESOURCE_TYPE'] **resource_reference_key_id** | **str**| The ID of the resource that referred to. | [optional] diff --git a/backend/api/python_http_client/docs/PipelineServiceApi.md b/backend/api/python_http_client/docs/PipelineServiceApi.md index f35c65ac192..9c7c875dda6 100644 --- a/backend/api/python_http_client/docs/PipelineServiceApi.md +++ b/backend/api/python_http_client/docs/PipelineServiceApi.md @@ -4,22 +4,22 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_pipeline**](PipelineServiceApi.md#create_pipeline) | **POST** /apis/v1beta1/pipelines | Add a pipeline. -[**create_pipeline_version**](PipelineServiceApi.md#create_pipeline_version) | **POST** /apis/v1beta1/pipeline_versions | -[**delete_pipeline**](PipelineServiceApi.md#delete_pipeline) | **DELETE** /apis/v1beta1/pipelines/{id} | Delete a pipeline. -[**delete_pipeline_version**](PipelineServiceApi.md#delete_pipeline_version) | **DELETE** /apis/v1beta1/pipeline_versions/{version_id} | -[**get_pipeline**](PipelineServiceApi.md#get_pipeline) | **GET** /apis/v1beta1/pipelines/{id} | Find a specific pipeline by ID. -[**get_pipeline_version**](PipelineServiceApi.md#get_pipeline_version) | **GET** /apis/v1beta1/pipeline_versions/{version_id} | -[**get_pipeline_version_template**](PipelineServiceApi.md#get_pipeline_version_template) | **GET** /apis/v1beta1/pipeline_versions/{version_id}/templates | +[**create_pipeline**](PipelineServiceApi.md#create_pipeline) | **POST** /apis/v1beta1/pipelines | Creates a pipeline. +[**create_pipeline_version**](PipelineServiceApi.md#create_pipeline_version) | **POST** /apis/v1beta1/pipeline_versions | Adds a pipeline version to the specified pipeline. +[**delete_pipeline**](PipelineServiceApi.md#delete_pipeline) | **DELETE** /apis/v1beta1/pipelines/{id} | Deletes a pipeline and its pipeline versions. +[**delete_pipeline_version**](PipelineServiceApi.md#delete_pipeline_version) | **DELETE** /apis/v1beta1/pipeline_versions/{version_id} | Deletes a pipeline version by pipeline version ID. If the deleted pipeline version is the default pipeline version, the pipeline's default version changes to the pipeline's most recent pipeline version. If there are no remaining pipeline versions, the pipeline will have no default version. Examines the run_service_api.ipynb notebook to learn more about creating a run using a pipeline version (https://github.com/kubeflow/pipelines/blob/master/tools/benchmarks/run_service_api.ipynb). +[**get_pipeline**](PipelineServiceApi.md#get_pipeline) | **GET** /apis/v1beta1/pipelines/{id} | Finds a specific pipeline by ID. +[**get_pipeline_version**](PipelineServiceApi.md#get_pipeline_version) | **GET** /apis/v1beta1/pipeline_versions/{version_id} | Gets a pipeline version by pipeline version ID. +[**get_pipeline_version_template**](PipelineServiceApi.md#get_pipeline_version_template) | **GET** /apis/v1beta1/pipeline_versions/{version_id}/templates | Returns a YAML template that contains the specified pipeline version's description, parameters and metadata. [**get_template**](PipelineServiceApi.md#get_template) | **GET** /apis/v1beta1/pipelines/{id}/templates | Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. -[**list_pipeline_versions**](PipelineServiceApi.md#list_pipeline_versions) | **GET** /apis/v1beta1/pipeline_versions | -[**list_pipelines**](PipelineServiceApi.md#list_pipelines) | **GET** /apis/v1beta1/pipelines | Find all pipelines. +[**list_pipeline_versions**](PipelineServiceApi.md#list_pipeline_versions) | **GET** /apis/v1beta1/pipeline_versions | Lists all pipeline versions of a given pipeline. +[**list_pipelines**](PipelineServiceApi.md#list_pipelines) | **GET** /apis/v1beta1/pipelines | Finds all pipelines. # **create_pipeline** > ApiPipeline create_pipeline(body) -Add a pipeline. +Creates a pipeline. ### Example @@ -58,7 +58,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: body = kfp_server_api.ApiPipeline() # ApiPipeline | try: - # Add a pipeline. + # Creates a pipeline. api_response = api_instance.create_pipeline(body) pprint(api_response) except ApiException as e: @@ -95,7 +95,7 @@ Name | Type | Description | Notes # **create_pipeline_version** > ApiPipelineVersion create_pipeline_version(body) - +Adds a pipeline version to the specified pipeline. ### Example @@ -134,6 +134,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: body = kfp_server_api.ApiPipelineVersion() # ApiPipelineVersion | ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. try: + # Adds a pipeline version to the specified pipeline. api_response = api_instance.create_pipeline_version(body) pprint(api_response) except ApiException as e: @@ -170,7 +171,7 @@ Name | Type | Description | Notes # **delete_pipeline** > object delete_pipeline(id) -Delete a pipeline. +Deletes a pipeline and its pipeline versions. ### Example @@ -206,10 +207,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.PipelineServiceApi(api_client) - id = 'id_example' # str | + id = 'id_example' # str | The ID of the pipeline to be deleted. try: - # Delete a pipeline. + # Deletes a pipeline and its pipeline versions. api_response = api_instance.delete_pipeline(id) pprint(api_response) except ApiException as e: @@ -220,7 +221,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **str**| The ID of the pipeline to be deleted. | ### Return type @@ -246,7 +247,7 @@ Name | Type | Description | Notes # **delete_pipeline_version** > object delete_pipeline_version(version_id) - +Deletes a pipeline version by pipeline version ID. If the deleted pipeline version is the default pipeline version, the pipeline's default version changes to the pipeline's most recent pipeline version. If there are no remaining pipeline versions, the pipeline will have no default version. Examines the run_service_api.ipynb notebook to learn more about creating a run using a pipeline version (https://github.com/kubeflow/pipelines/blob/master/tools/benchmarks/run_service_api.ipynb). ### Example @@ -282,9 +283,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.PipelineServiceApi(api_client) - version_id = 'version_id_example' # str | + version_id = 'version_id_example' # str | The ID of the pipeline version to be deleted. try: + # Deletes a pipeline version by pipeline version ID. If the deleted pipeline version is the default pipeline version, the pipeline's default version changes to the pipeline's most recent pipeline version. If there are no remaining pipeline versions, the pipeline will have no default version. Examines the run_service_api.ipynb notebook to learn more about creating a run using a pipeline version (https://github.com/kubeflow/pipelines/blob/master/tools/benchmarks/run_service_api.ipynb). api_response = api_instance.delete_pipeline_version(version_id) pprint(api_response) except ApiException as e: @@ -295,7 +297,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **version_id** | **str**| | + **version_id** | **str**| The ID of the pipeline version to be deleted. | ### Return type @@ -321,7 +323,7 @@ Name | Type | Description | Notes # **get_pipeline** > ApiPipeline get_pipeline(id) -Find a specific pipeline by ID. +Finds a specific pipeline by ID. ### Example @@ -357,10 +359,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.PipelineServiceApi(api_client) - id = 'id_example' # str | + id = 'id_example' # str | The ID of the pipeline to be retrieved. try: - # Find a specific pipeline by ID. + # Finds a specific pipeline by ID. api_response = api_instance.get_pipeline(id) pprint(api_response) except ApiException as e: @@ -371,7 +373,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **str**| The ID of the pipeline to be retrieved. | ### Return type @@ -397,7 +399,7 @@ Name | Type | Description | Notes # **get_pipeline_version** > ApiPipelineVersion get_pipeline_version(version_id) - +Gets a pipeline version by pipeline version ID. ### Example @@ -433,9 +435,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.PipelineServiceApi(api_client) - version_id = 'version_id_example' # str | + version_id = 'version_id_example' # str | The ID of the pipeline version to be retrieved. try: + # Gets a pipeline version by pipeline version ID. api_response = api_instance.get_pipeline_version(version_id) pprint(api_response) except ApiException as e: @@ -446,7 +449,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **version_id** | **str**| | + **version_id** | **str**| The ID of the pipeline version to be retrieved. | ### Return type @@ -472,7 +475,7 @@ Name | Type | Description | Notes # **get_pipeline_version_template** > ApiGetTemplateResponse get_pipeline_version_template(version_id) - +Returns a YAML template that contains the specified pipeline version's description, parameters and metadata. ### Example @@ -508,9 +511,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.PipelineServiceApi(api_client) - version_id = 'version_id_example' # str | + version_id = 'version_id_example' # str | The ID of the pipeline version whose template is to be retrieved. try: + # Returns a YAML template that contains the specified pipeline version's description, parameters and metadata. api_response = api_instance.get_pipeline_version_template(version_id) pprint(api_response) except ApiException as e: @@ -521,7 +525,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **version_id** | **str**| | + **version_id** | **str**| The ID of the pipeline version whose template is to be retrieved. | ### Return type @@ -583,7 +587,7 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.PipelineServiceApi(api_client) - id = 'id_example' # str | + id = 'id_example' # str | The ID of the pipeline whose template is to be retrieved. try: # Returns a single YAML template that contains the description, parameters, and metadata associated with the pipeline provided. @@ -597,7 +601,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **str**| The ID of the pipeline whose template is to be retrieved. | ### Return type @@ -623,7 +627,7 @@ Name | Type | Description | Notes # **list_pipeline_versions** > ApiListPipelineVersionsResponse list_pipeline_versions(resource_key_type=resource_key_type, resource_key_id=resource_key_id, page_size=page_size, page_token=page_token, sort_by=sort_by, filter=filter) - +Lists all pipeline versions of a given pipeline. ### Example @@ -661,12 +665,13 @@ with kfp_server_api.ApiClient(configuration) as api_client: api_instance = kfp_server_api.PipelineServiceApi(api_client) resource_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to 'UNKNOWN_RESOURCE_TYPE') resource_key_id = 'resource_key_id_example' # str | The ID of the resource that referred to. (optional) -page_size = 56 # int | (optional) -page_token = 'page_token_example' # str | (optional) +page_size = 56 # int | The number of pipeline versions to be listed per page. If there are more pipeline versions than this number, the response message will contain a nextPageToken field you can use to fetch the next page. (optional) +page_token = 'page_token_example' # str | A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListPipelineVersions call or can be omitted when fetching the first page. (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. (optional) filter = 'filter_example' # str | A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). (optional) try: + # Lists all pipeline versions of a given pipeline. api_response = api_instance.list_pipeline_versions(resource_key_type=resource_key_type, resource_key_id=resource_key_id, page_size=page_size, page_token=page_token, sort_by=sort_by, filter=filter) pprint(api_response) except ApiException as e: @@ -679,8 +684,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **resource_key_type** | **str**| The type of the resource that referred to. | [optional] [default to 'UNKNOWN_RESOURCE_TYPE'] **resource_key_id** | **str**| The ID of the resource that referred to. | [optional] - **page_size** | **int**| | [optional] - **page_token** | **str**| | [optional] + **page_size** | **int**| The number of pipeline versions to be listed per page. If there are more pipeline versions than this number, the response message will contain a nextPageToken field you can use to fetch the next page. | [optional] + **page_token** | **str**| A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListPipelineVersions call or can be omitted when fetching the first page. | [optional] **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. | [optional] **filter** | **str**| A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). | [optional] @@ -708,7 +713,7 @@ Name | Type | Description | Notes # **list_pipelines** > ApiListPipelinesResponse list_pipelines(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter) -Find all pipelines. +Finds all pipelines. ### Example @@ -744,13 +749,13 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.PipelineServiceApi(api_client) - page_token = 'page_token_example' # str | (optional) -page_size = 56 # int | (optional) + page_token = 'page_token_example' # str | A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListPipelines call. (optional) +page_size = 56 # int | The number of pipelines to be listed per page. If there are more pipelines than this number, the response message will contain a valid value in the nextPageToken field. (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. (optional) filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) try: - # Find all pipelines. + # Finds all pipelines. api_response = api_instance.list_pipelines(page_token=page_token, page_size=page_size, sort_by=sort_by, filter=filter) pprint(api_response) except ApiException as e: @@ -761,8 +766,8 @@ filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page_token** | **str**| | [optional] - **page_size** | **int**| | [optional] + **page_token** | **str**| A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListPipelines call. | [optional] + **page_size** | **int**| The number of pipelines to be listed per page. If there are more pipelines than this number, the response message will contain a valid value in the nextPageToken field. | [optional] **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. | [optional] **filter** | **str**| A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). | [optional] diff --git a/backend/api/python_http_client/docs/RunServiceApi.md b/backend/api/python_http_client/docs/RunServiceApi.md index 9268be3d6b4..596d025566c 100644 --- a/backend/api/python_http_client/docs/RunServiceApi.md +++ b/backend/api/python_http_client/docs/RunServiceApi.md @@ -4,22 +4,22 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**archive_run**](RunServiceApi.md#archive_run) | **POST** /apis/v1beta1/runs/{id}:archive | Archive a run. -[**create_run**](RunServiceApi.md#create_run) | **POST** /apis/v1beta1/runs | Create a new run. -[**delete_run**](RunServiceApi.md#delete_run) | **DELETE** /apis/v1beta1/runs/{id} | Delete a run. -[**get_run**](RunServiceApi.md#get_run) | **GET** /apis/v1beta1/runs/{run_id} | Find a specific run by ID. -[**list_runs**](RunServiceApi.md#list_runs) | **GET** /apis/v1beta1/runs | Find all runs. -[**read_artifact**](RunServiceApi.md#read_artifact) | **GET** /apis/v1beta1/runs/{run_id}/nodes/{node_id}/artifacts/{artifact_name}:read | Find a run's artifact data. +[**archive_run**](RunServiceApi.md#archive_run) | **POST** /apis/v1beta1/runs/{id}:archive | Archives a run. +[**create_run**](RunServiceApi.md#create_run) | **POST** /apis/v1beta1/runs | Creates a new run. +[**delete_run**](RunServiceApi.md#delete_run) | **DELETE** /apis/v1beta1/runs/{id} | Deletes a run. +[**get_run**](RunServiceApi.md#get_run) | **GET** /apis/v1beta1/runs/{run_id} | Finds a specific run by ID. +[**list_runs**](RunServiceApi.md#list_runs) | **GET** /apis/v1beta1/runs | Finds all runs. +[**read_artifact**](RunServiceApi.md#read_artifact) | **GET** /apis/v1beta1/runs/{run_id}/nodes/{node_id}/artifacts/{artifact_name}:read | Finds a run's artifact data. [**report_run_metrics**](RunServiceApi.md#report_run_metrics) | **POST** /apis/v1beta1/runs/{run_id}:reportMetrics | ReportRunMetrics reports metrics of a run. Each metric is reported in its own transaction, so this API accepts partial failures. Metric can be uniquely identified by (run_id, node_id, name). Duplicate reporting will be ignored by the API. First reporting wins. -[**retry_run**](RunServiceApi.md#retry_run) | **POST** /apis/v1beta1/runs/{run_id}/retry | Re-initiate a failed or terminated run. -[**terminate_run**](RunServiceApi.md#terminate_run) | **POST** /apis/v1beta1/runs/{run_id}/terminate | Terminate an active run. -[**unarchive_run**](RunServiceApi.md#unarchive_run) | **POST** /apis/v1beta1/runs/{id}:unarchive | Restore an archived run. +[**retry_run**](RunServiceApi.md#retry_run) | **POST** /apis/v1beta1/runs/{run_id}/retry | Re-initiates a failed or terminated run. +[**terminate_run**](RunServiceApi.md#terminate_run) | **POST** /apis/v1beta1/runs/{run_id}/terminate | Terminates an active run. +[**unarchive_run**](RunServiceApi.md#unarchive_run) | **POST** /apis/v1beta1/runs/{id}:unarchive | Restores an archived run. # **archive_run** > object archive_run(id) -Archive a run. +Archives a run. ### Example @@ -55,10 +55,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.RunServiceApi(api_client) - id = 'id_example' # str | + id = 'id_example' # str | The ID of the run to be archived. try: - # Archive a run. + # Archives a run. api_response = api_instance.archive_run(id) pprint(api_response) except ApiException as e: @@ -69,7 +69,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **str**| The ID of the run to be archived. | ### Return type @@ -95,7 +95,7 @@ Name | Type | Description | Notes # **create_run** > ApiRunDetail create_run(body) -Create a new run. +Creates a new run. ### Example @@ -134,7 +134,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: body = kfp_server_api.ApiRun() # ApiRun | try: - # Create a new run. + # Creates a new run. api_response = api_instance.create_run(body) pprint(api_response) except ApiException as e: @@ -171,7 +171,7 @@ Name | Type | Description | Notes # **delete_run** > object delete_run(id) -Delete a run. +Deletes a run. ### Example @@ -207,10 +207,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.RunServiceApi(api_client) - id = 'id_example' # str | + id = 'id_example' # str | The ID of the run to be deleted. try: - # Delete a run. + # Deletes a run. api_response = api_instance.delete_run(id) pprint(api_response) except ApiException as e: @@ -221,7 +221,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **str**| The ID of the run to be deleted. | ### Return type @@ -247,7 +247,7 @@ Name | Type | Description | Notes # **get_run** > ApiRunDetail get_run(run_id) -Find a specific run by ID. +Finds a specific run by ID. ### Example @@ -283,10 +283,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.RunServiceApi(api_client) - run_id = 'run_id_example' # str | + run_id = 'run_id_example' # str | The ID of the run to be retrieved. try: - # Find a specific run by ID. + # Finds a specific run by ID. api_response = api_instance.get_run(run_id) pprint(api_response) except ApiException as e: @@ -297,7 +297,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **run_id** | **str**| | + **run_id** | **str**| The ID of the run to be retrieved. | ### Return type @@ -323,7 +323,7 @@ Name | Type | Description | Notes # **list_runs** > ApiListRunsResponse list_runs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) -Find all runs. +Finds all runs. ### Example @@ -359,15 +359,15 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.RunServiceApi(api_client) - page_token = 'page_token_example' # str | (optional) -page_size = 56 # int | (optional) + page_token = 'page_token_example' # str | A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListRuns call or can be omitted when fetching the first page. (optional) +page_size = 56 # int | The number of runs to be listed per page. If there are more runs than this number, the response message will contain a nextPageToken field you can use to fetch the next page. (optional) sort_by = 'sort_by_example' # str | Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. (optional) resource_reference_key_type = 'UNKNOWN_RESOURCE_TYPE' # str | The type of the resource that referred to. (optional) (default to 'UNKNOWN_RESOURCE_TYPE') resource_reference_key_id = 'resource_reference_key_id_example' # str | The ID of the resource that referred to. (optional) filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). (optional) try: - # Find all runs. + # Finds all runs. api_response = api_instance.list_runs(page_token=page_token, page_size=page_size, sort_by=sort_by, resource_reference_key_type=resource_reference_key_type, resource_reference_key_id=resource_reference_key_id, filter=filter) pprint(api_response) except ApiException as e: @@ -378,8 +378,8 @@ filter = 'filter_example' # str | A url-encoded, JSON-serialized Filter protocol Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page_token** | **str**| | [optional] - **page_size** | **int**| | [optional] + **page_token** | **str**| A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListRuns call or can be omitted when fetching the first page. | [optional] + **page_size** | **int**| The number of runs to be listed per page. If there are more runs than this number, the response message will contain a nextPageToken field you can use to fetch the next page. | [optional] **sort_by** | **str**| Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. | [optional] **resource_reference_key_type** | **str**| The type of the resource that referred to. | [optional] [default to 'UNKNOWN_RESOURCE_TYPE'] **resource_reference_key_id** | **str**| The ID of the resource that referred to. | [optional] @@ -409,7 +409,7 @@ Name | Type | Description | Notes # **read_artifact** > ApiReadArtifactResponse read_artifact(run_id, node_id, artifact_name) -Find a run's artifact data. +Finds a run's artifact data. ### Example @@ -450,7 +450,7 @@ node_id = 'node_id_example' # str | The ID of the running node. artifact_name = 'artifact_name_example' # str | The name of the artifact. try: - # Find a run's artifact data. + # Finds a run's artifact data. api_response = api_instance.read_artifact(run_id, node_id, artifact_name) pprint(api_response) except ApiException as e: @@ -567,7 +567,7 @@ Name | Type | Description | Notes # **retry_run** > object retry_run(run_id) -Re-initiate a failed or terminated run. +Re-initiates a failed or terminated run. ### Example @@ -603,10 +603,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.RunServiceApi(api_client) - run_id = 'run_id_example' # str | + run_id = 'run_id_example' # str | The ID of the run to be retried. try: - # Re-initiate a failed or terminated run. + # Re-initiates a failed or terminated run. api_response = api_instance.retry_run(run_id) pprint(api_response) except ApiException as e: @@ -617,7 +617,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **run_id** | **str**| | + **run_id** | **str**| The ID of the run to be retried. | ### Return type @@ -643,7 +643,7 @@ Name | Type | Description | Notes # **terminate_run** > object terminate_run(run_id) -Terminate an active run. +Terminates an active run. ### Example @@ -679,10 +679,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.RunServiceApi(api_client) - run_id = 'run_id_example' # str | + run_id = 'run_id_example' # str | The ID of the run to be terminated. try: - # Terminate an active run. + # Terminates an active run. api_response = api_instance.terminate_run(run_id) pprint(api_response) except ApiException as e: @@ -693,7 +693,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **run_id** | **str**| | + **run_id** | **str**| The ID of the run to be terminated. | ### Return type @@ -719,7 +719,7 @@ Name | Type | Description | Notes # **unarchive_run** > object unarchive_run(id) -Restore an archived run. +Restores an archived run. ### Example @@ -755,10 +755,10 @@ configuration = kfp_server_api.Configuration( with kfp_server_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kfp_server_api.RunServiceApi(api_client) - id = 'id_example' # str | + id = 'id_example' # str | The ID of the run to be restored. try: - # Restore an archived run. + # Restores an archived run. api_response = api_instance.unarchive_run(id) pprint(api_response) except ApiException as e: @@ -769,7 +769,7 @@ with kfp_server_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **str**| The ID of the run to be restored. | ### Return type diff --git a/backend/api/python_http_client/kfp_server_api/api/experiment_service_api.py b/backend/api/python_http_client/kfp_server_api/api/experiment_service_api.py index 854cff63eb9..8355f5d0bb8 100644 --- a/backend/api/python_http_client/kfp_server_api/api/experiment_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/api/experiment_service_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client def archive_experiment(self, id, **kwargs): # noqa: E501 - """Archive an experiment. # noqa: E501 + """Archives an experiment and the experiment's runs and jobs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -46,7 +46,7 @@ def archive_experiment(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the experiment to be archived. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -62,7 +62,7 @@ def archive_experiment(self, id, **kwargs): # noqa: E501 return self.archive_experiment_with_http_info(id, **kwargs) # noqa: E501 def archive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 - """Archive an experiment. # noqa: E501 + """Archives an experiment and the experiment's runs and jobs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -70,7 +70,7 @@ def archive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the experiment to be archived. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -150,7 +150,7 @@ def archive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def create_experiment(self, body, **kwargs): # noqa: E501 - """Create a new experiment. # noqa: E501 + """Creates a new experiment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -174,7 +174,7 @@ def create_experiment(self, body, **kwargs): # noqa: E501 return self.create_experiment_with_http_info(body, **kwargs) # noqa: E501 def create_experiment_with_http_info(self, body, **kwargs): # noqa: E501 - """Create a new experiment. # noqa: E501 + """Creates a new experiment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -266,7 +266,7 @@ def create_experiment_with_http_info(self, body, **kwargs): # noqa: E501 collection_formats=collection_formats) def delete_experiment(self, id, **kwargs): # noqa: E501 - """Delete an experiment. # noqa: E501 + """Deletes an experiment without deleting the experiment's runs and jobs. To avoid unexpected behaviors, delete an experiment's runs and jobs before deleting the experiment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -290,7 +290,7 @@ def delete_experiment(self, id, **kwargs): # noqa: E501 return self.delete_experiment_with_http_info(id, **kwargs) # noqa: E501 def delete_experiment_with_http_info(self, id, **kwargs): # noqa: E501 - """Delete an experiment. # noqa: E501 + """Deletes an experiment without deleting the experiment's runs and jobs. To avoid unexpected behaviors, delete an experiment's runs and jobs before deleting the experiment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -378,7 +378,7 @@ def delete_experiment_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def get_experiment(self, id, **kwargs): # noqa: E501 - """Find a specific experiment by ID. # noqa: E501 + """Finds a specific experiment by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -402,7 +402,7 @@ def get_experiment(self, id, **kwargs): # noqa: E501 return self.get_experiment_with_http_info(id, **kwargs) # noqa: E501 def get_experiment_with_http_info(self, id, **kwargs): # noqa: E501 - """Find a specific experiment by ID. # noqa: E501 + """Finds a specific experiment by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -490,7 +490,7 @@ def get_experiment_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def list_experiment(self, **kwargs): # noqa: E501 - """Find all experiments. # noqa: E501 + """Finds all experiments. Supports pagination, and sorting on certain fields. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -498,8 +498,8 @@ def list_experiment(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str page_token: - :param int page_size: + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListExperiment call or can be omitted when fetching the first page. + :param int page_size: The number of experiments to be listed per page. If there are more experiments than this number, the response message will contain a nextPageToken field you can use to fetch the next page. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). :param str resource_reference_key_type: The type of the resource that referred to. @@ -519,7 +519,7 @@ def list_experiment(self, **kwargs): # noqa: E501 return self.list_experiment_with_http_info(**kwargs) # noqa: E501 def list_experiment_with_http_info(self, **kwargs): # noqa: E501 - """Find all experiments. # noqa: E501 + """Finds all experiments. Supports pagination, and sorting on certain fields. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -527,8 +527,8 @@ def list_experiment_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str page_token: - :param int page_size: + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListExperiment call or can be omitted when fetching the first page. + :param int page_size: The number of experiments to be listed per page. If there are more experiments than this number, the response message will contain a nextPageToken field you can use to fetch the next page. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). :param str resource_reference_key_type: The type of the resource that referred to. @@ -623,7 +623,7 @@ def list_experiment_with_http_info(self, **kwargs): # noqa: E501 collection_formats=collection_formats) def unarchive_experiment(self, id, **kwargs): # noqa: E501 - """Restore an archived experiment. # noqa: E501 + """Restores an archived experiment. The experiment's archived runs and jobs will stay archived. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -631,7 +631,7 @@ def unarchive_experiment(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the experiment to be restored. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -647,7 +647,7 @@ def unarchive_experiment(self, id, **kwargs): # noqa: E501 return self.unarchive_experiment_with_http_info(id, **kwargs) # noqa: E501 def unarchive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 - """Restore an archived experiment. # noqa: E501 + """Restores an archived experiment. The experiment's archived runs and jobs will stay archived. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -655,7 +655,7 @@ def unarchive_experiment_with_http_info(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the experiment to be restored. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will diff --git a/backend/api/python_http_client/kfp_server_api/api/job_service_api.py b/backend/api/python_http_client/kfp_server_api/api/job_service_api.py index 5870110e288..e42706ad1a0 100644 --- a/backend/api/python_http_client/kfp_server_api/api/job_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/api/job_service_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client def create_job(self, body, **kwargs): # noqa: E501 - """Create a new job. # noqa: E501 + """Creates a new job. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -62,7 +62,7 @@ def create_job(self, body, **kwargs): # noqa: E501 return self.create_job_with_http_info(body, **kwargs) # noqa: E501 def create_job_with_http_info(self, body, **kwargs): # noqa: E501 - """Create a new job. # noqa: E501 + """Creates a new job. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -154,7 +154,7 @@ def create_job_with_http_info(self, body, **kwargs): # noqa: E501 collection_formats=collection_formats) def delete_job(self, id, **kwargs): # noqa: E501 - """Delete a job. # noqa: E501 + """Deletes a job. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -178,7 +178,7 @@ def delete_job(self, id, **kwargs): # noqa: E501 return self.delete_job_with_http_info(id, **kwargs) # noqa: E501 def delete_job_with_http_info(self, id, **kwargs): # noqa: E501 - """Delete a job. # noqa: E501 + """Deletes a job. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -490,7 +490,7 @@ def enable_job_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def get_job(self, id, **kwargs): # noqa: E501 - """Find a specific job by ID. # noqa: E501 + """Finds a specific job by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -514,7 +514,7 @@ def get_job(self, id, **kwargs): # noqa: E501 return self.get_job_with_http_info(id, **kwargs) # noqa: E501 def get_job_with_http_info(self, id, **kwargs): # noqa: E501 - """Find a specific job by ID. # noqa: E501 + """Finds a specific job by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -602,7 +602,7 @@ def get_job_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def list_jobs(self, **kwargs): # noqa: E501 - """Find all jobs. # noqa: E501 + """Finds all jobs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -610,8 +610,8 @@ def list_jobs(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str page_token: - :param int page_size: + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListJobs call or can be omitted when fetching the first page. + :param int page_size: The number of jobs to be listed per page. If there are more jobs than this number, the response message will contain a nextPageToken field you can use to fetch the next page. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. @@ -631,7 +631,7 @@ def list_jobs(self, **kwargs): # noqa: E501 return self.list_jobs_with_http_info(**kwargs) # noqa: E501 def list_jobs_with_http_info(self, **kwargs): # noqa: E501 - """Find all jobs. # noqa: E501 + """Finds all jobs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -639,8 +639,8 @@ def list_jobs_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str page_token: - :param int page_size: + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListJobs call or can be omitted when fetching the first page. + :param int page_size: The number of jobs to be listed per page. If there are more jobs than this number, the response message will contain a nextPageToken field you can use to fetch the next page. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\". Ascending by default. :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. diff --git a/backend/api/python_http_client/kfp_server_api/api/pipeline_service_api.py b/backend/api/python_http_client/kfp_server_api/api/pipeline_service_api.py index 819952ac003..8075d3391ea 100644 --- a/backend/api/python_http_client/kfp_server_api/api/pipeline_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/api/pipeline_service_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client def create_pipeline(self, body, **kwargs): # noqa: E501 - """Add a pipeline. # noqa: E501 + """Creates a pipeline. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -62,7 +62,7 @@ def create_pipeline(self, body, **kwargs): # noqa: E501 return self.create_pipeline_with_http_info(body, **kwargs) # noqa: E501 def create_pipeline_with_http_info(self, body, **kwargs): # noqa: E501 - """Add a pipeline. # noqa: E501 + """Creates a pipeline. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -154,7 +154,7 @@ def create_pipeline_with_http_info(self, body, **kwargs): # noqa: E501 collection_formats=collection_formats) def create_pipeline_version(self, body, **kwargs): # noqa: E501 - """create_pipeline_version # noqa: E501 + """Adds a pipeline version to the specified pipeline. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -178,7 +178,7 @@ def create_pipeline_version(self, body, **kwargs): # noqa: E501 return self.create_pipeline_version_with_http_info(body, **kwargs) # noqa: E501 def create_pipeline_version_with_http_info(self, body, **kwargs): # noqa: E501 - """create_pipeline_version # noqa: E501 + """Adds a pipeline version to the specified pipeline. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -270,7 +270,7 @@ def create_pipeline_version_with_http_info(self, body, **kwargs): # noqa: E501 collection_formats=collection_formats) def delete_pipeline(self, id, **kwargs): # noqa: E501 - """Delete a pipeline. # noqa: E501 + """Deletes a pipeline and its pipeline versions. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -278,7 +278,7 @@ def delete_pipeline(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the pipeline to be deleted. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -294,7 +294,7 @@ def delete_pipeline(self, id, **kwargs): # noqa: E501 return self.delete_pipeline_with_http_info(id, **kwargs) # noqa: E501 def delete_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 - """Delete a pipeline. # noqa: E501 + """Deletes a pipeline and its pipeline versions. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -302,7 +302,7 @@ def delete_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the pipeline to be deleted. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -382,7 +382,7 @@ def delete_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def delete_pipeline_version(self, version_id, **kwargs): # noqa: E501 - """delete_pipeline_version # noqa: E501 + """Deletes a pipeline version by pipeline version ID. If the deleted pipeline version is the default pipeline version, the pipeline's default version changes to the pipeline's most recent pipeline version. If there are no remaining pipeline versions, the pipeline will have no default version. Examines the run_service_api.ipynb notebook to learn more about creating a run using a pipeline version (https://github.com/kubeflow/pipelines/blob/master/tools/benchmarks/run_service_api.ipynb). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -390,7 +390,7 @@ def delete_pipeline_version(self, version_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str version_id: (required) + :param str version_id: The ID of the pipeline version to be deleted. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -406,7 +406,7 @@ def delete_pipeline_version(self, version_id, **kwargs): # noqa: E501 return self.delete_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 def delete_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E501 - """delete_pipeline_version # noqa: E501 + """Deletes a pipeline version by pipeline version ID. If the deleted pipeline version is the default pipeline version, the pipeline's default version changes to the pipeline's most recent pipeline version. If there are no remaining pipeline versions, the pipeline will have no default version. Examines the run_service_api.ipynb notebook to learn more about creating a run using a pipeline version (https://github.com/kubeflow/pipelines/blob/master/tools/benchmarks/run_service_api.ipynb). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -414,7 +414,7 @@ def delete_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str version_id: (required) + :param str version_id: The ID of the pipeline version to be deleted. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -494,7 +494,7 @@ def delete_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: collection_formats=collection_formats) def get_pipeline(self, id, **kwargs): # noqa: E501 - """Find a specific pipeline by ID. # noqa: E501 + """Finds a specific pipeline by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -502,7 +502,7 @@ def get_pipeline(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the pipeline to be retrieved. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -518,7 +518,7 @@ def get_pipeline(self, id, **kwargs): # noqa: E501 return self.get_pipeline_with_http_info(id, **kwargs) # noqa: E501 def get_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 - """Find a specific pipeline by ID. # noqa: E501 + """Finds a specific pipeline by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -526,7 +526,7 @@ def get_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the pipeline to be retrieved. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -606,7 +606,7 @@ def get_pipeline_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def get_pipeline_version(self, version_id, **kwargs): # noqa: E501 - """get_pipeline_version # noqa: E501 + """Gets a pipeline version by pipeline version ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -614,7 +614,7 @@ def get_pipeline_version(self, version_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str version_id: (required) + :param str version_id: The ID of the pipeline version to be retrieved. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -630,7 +630,7 @@ def get_pipeline_version(self, version_id, **kwargs): # noqa: E501 return self.get_pipeline_version_with_http_info(version_id, **kwargs) # noqa: E501 def get_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E501 - """get_pipeline_version # noqa: E501 + """Gets a pipeline version by pipeline version ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -638,7 +638,7 @@ def get_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E5 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str version_id: (required) + :param str version_id: The ID of the pipeline version to be retrieved. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -718,7 +718,7 @@ def get_pipeline_version_with_http_info(self, version_id, **kwargs): # noqa: E5 collection_formats=collection_formats) def get_pipeline_version_template(self, version_id, **kwargs): # noqa: E501 - """get_pipeline_version_template # noqa: E501 + """Returns a YAML template that contains the specified pipeline version's description, parameters and metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -726,7 +726,7 @@ def get_pipeline_version_template(self, version_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str version_id: (required) + :param str version_id: The ID of the pipeline version whose template is to be retrieved. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -742,7 +742,7 @@ def get_pipeline_version_template(self, version_id, **kwargs): # noqa: E501 return self.get_pipeline_version_template_with_http_info(version_id, **kwargs) # noqa: E501 def get_pipeline_version_template_with_http_info(self, version_id, **kwargs): # noqa: E501 - """get_pipeline_version_template # noqa: E501 + """Returns a YAML template that contains the specified pipeline version's description, parameters and metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -750,7 +750,7 @@ def get_pipeline_version_template_with_http_info(self, version_id, **kwargs): # >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str version_id: (required) + :param str version_id: The ID of the pipeline version whose template is to be retrieved. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -838,7 +838,7 @@ def get_template(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the pipeline whose template is to be retrieved. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -862,7 +862,7 @@ def get_template_with_http_info(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the pipeline whose template is to be retrieved. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -942,7 +942,7 @@ def get_template_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def list_pipeline_versions(self, **kwargs): # noqa: E501 - """list_pipeline_versions # noqa: E501 + """Lists all pipeline versions of a given pipeline. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -952,8 +952,8 @@ def list_pipeline_versions(self, **kwargs): # noqa: E501 :param async_req bool: execute request asynchronously :param str resource_key_type: The type of the resource that referred to. :param str resource_key_id: The ID of the resource that referred to. - :param int page_size: - :param str page_token: + :param int page_size: The number of pipeline versions to be listed per page. If there are more pipeline versions than this number, the response message will contain a nextPageToken field you can use to fetch the next page. + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListPipelineVersions call or can be omitted when fetching the first page. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -971,7 +971,7 @@ def list_pipeline_versions(self, **kwargs): # noqa: E501 return self.list_pipeline_versions_with_http_info(**kwargs) # noqa: E501 def list_pipeline_versions_with_http_info(self, **kwargs): # noqa: E501 - """list_pipeline_versions # noqa: E501 + """Lists all pipeline versions of a given pipeline. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -981,8 +981,8 @@ def list_pipeline_versions_with_http_info(self, **kwargs): # noqa: E501 :param async_req bool: execute request asynchronously :param str resource_key_type: The type of the resource that referred to. :param str resource_key_id: The ID of the resource that referred to. - :param int page_size: - :param str page_token: + :param int page_size: The number of pipeline versions to be listed per page. If there are more pipeline versions than this number, the response message will contain a nextPageToken field you can use to fetch the next page. + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListPipelineVersions call or can be omitted when fetching the first page. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A base-64 encoded, JSON-serialized Filter protocol buffer (see filter.proto). :param _return_http_data_only: response data without head status code @@ -1075,7 +1075,7 @@ def list_pipeline_versions_with_http_info(self, **kwargs): # noqa: E501 collection_formats=collection_formats) def list_pipelines(self, **kwargs): # noqa: E501 - """Find all pipelines. # noqa: E501 + """Finds all pipelines. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1083,8 +1083,8 @@ def list_pipelines(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str page_token: - :param int page_size: + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListPipelines call. + :param int page_size: The number of pipelines to be listed per page. If there are more pipelines than this number, the response message will contain a valid value in the nextPageToken field. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -1102,7 +1102,7 @@ def list_pipelines(self, **kwargs): # noqa: E501 return self.list_pipelines_with_http_info(**kwargs) # noqa: E501 def list_pipelines_with_http_info(self, **kwargs): # noqa: E501 - """Find all pipelines. # noqa: E501 + """Finds all pipelines. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1110,8 +1110,8 @@ def list_pipelines_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str page_token: - :param int page_size: + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListPipelines call. + :param int page_size: The number of pipelines to be listed per page. If there are more pipelines than this number, the response message will contain a valid value in the nextPageToken field. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" Ascending by default. :param str filter: A url-encoded, JSON-serialized Filter protocol buffer (see [filter.proto](https://github.com/kubeflow/pipelines/ blob/master/backend/api/filter.proto)). :param _return_http_data_only: response data without head status code diff --git a/backend/api/python_http_client/kfp_server_api/api/run_service_api.py b/backend/api/python_http_client/kfp_server_api/api/run_service_api.py index 8eee703cb3b..145913f66d3 100644 --- a/backend/api/python_http_client/kfp_server_api/api/run_service_api.py +++ b/backend/api/python_http_client/kfp_server_api/api/run_service_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client def archive_run(self, id, **kwargs): # noqa: E501 - """Archive a run. # noqa: E501 + """Archives a run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -46,7 +46,7 @@ def archive_run(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the run to be archived. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -62,7 +62,7 @@ def archive_run(self, id, **kwargs): # noqa: E501 return self.archive_run_with_http_info(id, **kwargs) # noqa: E501 def archive_run_with_http_info(self, id, **kwargs): # noqa: E501 - """Archive a run. # noqa: E501 + """Archives a run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -70,7 +70,7 @@ def archive_run_with_http_info(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the run to be archived. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -150,7 +150,7 @@ def archive_run_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def create_run(self, body, **kwargs): # noqa: E501 - """Create a new run. # noqa: E501 + """Creates a new run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -174,7 +174,7 @@ def create_run(self, body, **kwargs): # noqa: E501 return self.create_run_with_http_info(body, **kwargs) # noqa: E501 def create_run_with_http_info(self, body, **kwargs): # noqa: E501 - """Create a new run. # noqa: E501 + """Creates a new run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -266,7 +266,7 @@ def create_run_with_http_info(self, body, **kwargs): # noqa: E501 collection_formats=collection_formats) def delete_run(self, id, **kwargs): # noqa: E501 - """Delete a run. # noqa: E501 + """Deletes a run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -274,7 +274,7 @@ def delete_run(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the run to be deleted. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -290,7 +290,7 @@ def delete_run(self, id, **kwargs): # noqa: E501 return self.delete_run_with_http_info(id, **kwargs) # noqa: E501 def delete_run_with_http_info(self, id, **kwargs): # noqa: E501 - """Delete a run. # noqa: E501 + """Deletes a run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -298,7 +298,7 @@ def delete_run_with_http_info(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the run to be deleted. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -378,7 +378,7 @@ def delete_run_with_http_info(self, id, **kwargs): # noqa: E501 collection_formats=collection_formats) def get_run(self, run_id, **kwargs): # noqa: E501 - """Find a specific run by ID. # noqa: E501 + """Finds a specific run by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -386,7 +386,7 @@ def get_run(self, run_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str run_id: (required) + :param str run_id: The ID of the run to be retrieved. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -402,7 +402,7 @@ def get_run(self, run_id, **kwargs): # noqa: E501 return self.get_run_with_http_info(run_id, **kwargs) # noqa: E501 def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501 - """Find a specific run by ID. # noqa: E501 + """Finds a specific run by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -410,7 +410,7 @@ def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str run_id: (required) + :param str run_id: The ID of the run to be retrieved. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -490,7 +490,7 @@ def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501 collection_formats=collection_formats) def list_runs(self, **kwargs): # noqa: E501 - """Find all runs. # noqa: E501 + """Finds all runs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -498,8 +498,8 @@ def list_runs(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str page_token: - :param int page_size: + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListRuns call or can be omitted when fetching the first page. + :param int page_size: The number of runs to be listed per page. If there are more runs than this number, the response message will contain a nextPageToken field you can use to fetch the next page. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. @@ -519,7 +519,7 @@ def list_runs(self, **kwargs): # noqa: E501 return self.list_runs_with_http_info(**kwargs) # noqa: E501 def list_runs_with_http_info(self, **kwargs): # noqa: E501 - """Find all runs. # noqa: E501 + """Finds all runs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -527,8 +527,8 @@ def list_runs_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str page_token: - :param int page_size: + :param str page_token: A page token to request the next page of results. The token is acquried from the nextPageToken field of the response from the previous ListRuns call or can be omitted when fetching the first page. + :param int page_size: The number of runs to be listed per page. If there are more runs than this number, the response message will contain a nextPageToken field you can use to fetch the next page. :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name des\" (Example, \"name asc\" or \"id des\"). Ascending by default. :param str resource_reference_key_type: The type of the resource that referred to. :param str resource_reference_key_id: The ID of the resource that referred to. @@ -623,7 +623,7 @@ def list_runs_with_http_info(self, **kwargs): # noqa: E501 collection_formats=collection_formats) def read_artifact(self, run_id, node_id, artifact_name, **kwargs): # noqa: E501 - """Find a run's artifact data. # noqa: E501 + """Finds a run's artifact data. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -649,7 +649,7 @@ def read_artifact(self, run_id, node_id, artifact_name, **kwargs): # noqa: E501 return self.read_artifact_with_http_info(run_id, node_id, artifact_name, **kwargs) # noqa: E501 def read_artifact_with_http_info(self, run_id, node_id, artifact_name, **kwargs): # noqa: E501 - """Find a run's artifact data. # noqa: E501 + """Finds a run's artifact data. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -878,7 +878,7 @@ def report_run_metrics_with_http_info(self, run_id, body, **kwargs): # noqa: E5 collection_formats=collection_formats) def retry_run(self, run_id, **kwargs): # noqa: E501 - """Re-initiate a failed or terminated run. # noqa: E501 + """Re-initiates a failed or terminated run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -886,7 +886,7 @@ def retry_run(self, run_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str run_id: (required) + :param str run_id: The ID of the run to be retried. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -902,7 +902,7 @@ def retry_run(self, run_id, **kwargs): # noqa: E501 return self.retry_run_with_http_info(run_id, **kwargs) # noqa: E501 def retry_run_with_http_info(self, run_id, **kwargs): # noqa: E501 - """Re-initiate a failed or terminated run. # noqa: E501 + """Re-initiates a failed or terminated run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -910,7 +910,7 @@ def retry_run_with_http_info(self, run_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str run_id: (required) + :param str run_id: The ID of the run to be retried. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -990,7 +990,7 @@ def retry_run_with_http_info(self, run_id, **kwargs): # noqa: E501 collection_formats=collection_formats) def terminate_run(self, run_id, **kwargs): # noqa: E501 - """Terminate an active run. # noqa: E501 + """Terminates an active run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -998,7 +998,7 @@ def terminate_run(self, run_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str run_id: (required) + :param str run_id: The ID of the run to be terminated. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -1014,7 +1014,7 @@ def terminate_run(self, run_id, **kwargs): # noqa: E501 return self.terminate_run_with_http_info(run_id, **kwargs) # noqa: E501 def terminate_run_with_http_info(self, run_id, **kwargs): # noqa: E501 - """Terminate an active run. # noqa: E501 + """Terminates an active run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1022,7 +1022,7 @@ def terminate_run_with_http_info(self, run_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str run_id: (required) + :param str run_id: The ID of the run to be terminated. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -1102,7 +1102,7 @@ def terminate_run_with_http_info(self, run_id, **kwargs): # noqa: E501 collection_formats=collection_formats) def unarchive_run(self, id, **kwargs): # noqa: E501 - """Restore an archived run. # noqa: E501 + """Restores an archived run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1110,7 +1110,7 @@ def unarchive_run(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the run to be restored. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -1126,7 +1126,7 @@ def unarchive_run(self, id, **kwargs): # noqa: E501 return self.unarchive_run_with_http_info(id, **kwargs) # noqa: E501 def unarchive_run_with_http_info(self, id, **kwargs): # noqa: E501 - """Restore an archived run. # noqa: E501 + """Restores an archived run. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1134,7 +1134,7 @@ def unarchive_run_with_http_info(self, id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str id: (required) + :param str id: The ID of the run to be restored. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will diff --git a/backend/api/python_http_client/kfp_server_api/models/api_get_template_response.py b/backend/api/python_http_client/kfp_server_api/models/api_get_template_response.py index d6970009c33..28f15c37330 100644 --- a/backend/api/python_http_client/kfp_server_api/models/api_get_template_response.py +++ b/backend/api/python_http_client/kfp_server_api/models/api_get_template_response.py @@ -57,6 +57,7 @@ def __init__(self, template=None, local_vars_configuration=None): # noqa: E501 def template(self): """Gets the template of this ApiGetTemplateResponse. # noqa: E501 + The template of the pipeline specified in a GetTemplate request, or of a pipeline version specified in a GetPipelinesVersionTemplate request. # noqa: E501 :return: The template of this ApiGetTemplateResponse. # noqa: E501 :rtype: str @@ -67,6 +68,7 @@ def template(self): def template(self, template): """Sets the template of this ApiGetTemplateResponse. + The template of the pipeline specified in a GetTemplate request, or of a pipeline version specified in a GetPipelinesVersionTemplate request. # noqa: E501 :param template: The template of this ApiGetTemplateResponse. # noqa: E501 :type: str diff --git a/backend/api/python_http_client/kfp_server_api/models/api_list_jobs_response.py b/backend/api/python_http_client/kfp_server_api/models/api_list_jobs_response.py index a875433565b..d198488ffa4 100644 --- a/backend/api/python_http_client/kfp_server_api/models/api_list_jobs_response.py +++ b/backend/api/python_http_client/kfp_server_api/models/api_list_jobs_response.py @@ -90,6 +90,7 @@ def jobs(self, jobs): def total_size(self): """Gets the total_size of this ApiListJobsResponse. # noqa: E501 + The total number of jobs for the given query. # noqa: E501 :return: The total_size of this ApiListJobsResponse. # noqa: E501 :rtype: int @@ -100,6 +101,7 @@ def total_size(self): def total_size(self, total_size): """Sets the total_size of this ApiListJobsResponse. + The total number of jobs for the given query. # noqa: E501 :param total_size: The total_size of this ApiListJobsResponse. # noqa: E501 :type: int @@ -111,6 +113,7 @@ def total_size(self, total_size): def next_page_token(self): """Gets the next_page_token of this ApiListJobsResponse. # noqa: E501 + The token to list the next page of jobs. # noqa: E501 :return: The next_page_token of this ApiListJobsResponse. # noqa: E501 :rtype: str @@ -121,6 +124,7 @@ def next_page_token(self): def next_page_token(self, next_page_token): """Sets the next_page_token of this ApiListJobsResponse. + The token to list the next page of jobs. # noqa: E501 :param next_page_token: The next_page_token of this ApiListJobsResponse. # noqa: E501 :type: str diff --git a/backend/api/python_http_client/kfp_server_api/models/api_list_pipeline_versions_response.py b/backend/api/python_http_client/kfp_server_api/models/api_list_pipeline_versions_response.py index 38c1dd99ace..43de7a5ae56 100644 --- a/backend/api/python_http_client/kfp_server_api/models/api_list_pipeline_versions_response.py +++ b/backend/api/python_http_client/kfp_server_api/models/api_list_pipeline_versions_response.py @@ -88,6 +88,7 @@ def versions(self, versions): def next_page_token(self): """Gets the next_page_token of this ApiListPipelineVersionsResponse. # noqa: E501 + The token to list the next page of pipeline versions. # noqa: E501 :return: The next_page_token of this ApiListPipelineVersionsResponse. # noqa: E501 :rtype: str @@ -98,6 +99,7 @@ def next_page_token(self): def next_page_token(self, next_page_token): """Sets the next_page_token of this ApiListPipelineVersionsResponse. + The token to list the next page of pipeline versions. # noqa: E501 :param next_page_token: The next_page_token of this ApiListPipelineVersionsResponse. # noqa: E501 :type: str @@ -109,6 +111,7 @@ def next_page_token(self, next_page_token): def total_size(self): """Gets the total_size of this ApiListPipelineVersionsResponse. # noqa: E501 + The total number of pipeline versions for the given query. # noqa: E501 :return: The total_size of this ApiListPipelineVersionsResponse. # noqa: E501 :rtype: int @@ -119,6 +122,7 @@ def total_size(self): def total_size(self, total_size): """Sets the total_size of this ApiListPipelineVersionsResponse. + The total number of pipeline versions for the given query. # noqa: E501 :param total_size: The total_size of this ApiListPipelineVersionsResponse. # noqa: E501 :type: int diff --git a/backend/api/python_http_client/kfp_server_api/models/api_list_pipelines_response.py b/backend/api/python_http_client/kfp_server_api/models/api_list_pipelines_response.py index 5bff674a368..1dfa4b03e2f 100644 --- a/backend/api/python_http_client/kfp_server_api/models/api_list_pipelines_response.py +++ b/backend/api/python_http_client/kfp_server_api/models/api_list_pipelines_response.py @@ -88,6 +88,7 @@ def pipelines(self, pipelines): def total_size(self): """Gets the total_size of this ApiListPipelinesResponse. # noqa: E501 + The total number of pipelines for the given query. # noqa: E501 :return: The total_size of this ApiListPipelinesResponse. # noqa: E501 :rtype: int @@ -98,6 +99,7 @@ def total_size(self): def total_size(self, total_size): """Sets the total_size of this ApiListPipelinesResponse. + The total number of pipelines for the given query. # noqa: E501 :param total_size: The total_size of this ApiListPipelinesResponse. # noqa: E501 :type: int @@ -109,6 +111,7 @@ def total_size(self, total_size): def next_page_token(self): """Gets the next_page_token of this ApiListPipelinesResponse. # noqa: E501 + The token to list the next page of pipelines. # noqa: E501 :return: The next_page_token of this ApiListPipelinesResponse. # noqa: E501 :rtype: str @@ -119,6 +122,7 @@ def next_page_token(self): def next_page_token(self, next_page_token): """Sets the next_page_token of this ApiListPipelinesResponse. + The token to list the next page of pipelines. # noqa: E501 :param next_page_token: The next_page_token of this ApiListPipelinesResponse. # noqa: E501 :type: str diff --git a/backend/api/python_http_client/kfp_server_api/models/api_list_runs_response.py b/backend/api/python_http_client/kfp_server_api/models/api_list_runs_response.py index 3a0049b5870..78d66e649b9 100644 --- a/backend/api/python_http_client/kfp_server_api/models/api_list_runs_response.py +++ b/backend/api/python_http_client/kfp_server_api/models/api_list_runs_response.py @@ -88,6 +88,7 @@ def runs(self, runs): def total_size(self): """Gets the total_size of this ApiListRunsResponse. # noqa: E501 + The total number of runs for the given query. # noqa: E501 :return: The total_size of this ApiListRunsResponse. # noqa: E501 :rtype: int @@ -98,6 +99,7 @@ def total_size(self): def total_size(self, total_size): """Sets the total_size of this ApiListRunsResponse. + The total number of runs for the given query. # noqa: E501 :param total_size: The total_size of this ApiListRunsResponse. # noqa: E501 :type: int @@ -109,6 +111,7 @@ def total_size(self, total_size): def next_page_token(self): """Gets the next_page_token of this ApiListRunsResponse. # noqa: E501 + The token to list the next page of runs. # noqa: E501 :return: The next_page_token of this ApiListRunsResponse. # noqa: E501 :rtype: str @@ -119,6 +122,7 @@ def next_page_token(self): def next_page_token(self, next_page_token): """Sets the next_page_token of this ApiListRunsResponse. + The token to list the next page of runs. # noqa: E501 :param next_page_token: The next_page_token of this ApiListRunsResponse. # noqa: E501 :type: str diff --git a/backend/api/python_http_client/kfp_server_api/models/api_run.py b/backend/api/python_http_client/kfp_server_api/models/api_run.py index c2b0b38b1bc..1065ab87e0d 100644 --- a/backend/api/python_http_client/kfp_server_api/models/api_run.py +++ b/backend/api/python_http_client/kfp_server_api/models/api_run.py @@ -226,7 +226,7 @@ def pipeline_spec(self, pipeline_spec): def resource_references(self): """Gets the resource_references of this ApiRun. # noqa: E501 - Optional input field. Specify which resource this run belongs to. # noqa: E501 + Optional input field. Specify which resource this run belongs to. When creating a run from a particular pipeline version, the pipeline version can be specified here. # noqa: E501 :return: The resource_references of this ApiRun. # noqa: E501 :rtype: list[ApiResourceReference] @@ -237,7 +237,7 @@ def resource_references(self): def resource_references(self, resource_references): """Sets the resource_references of this ApiRun. - Optional input field. Specify which resource this run belongs to. # noqa: E501 + Optional input field. Specify which resource this run belongs to. When creating a run from a particular pipeline version, the pipeline version can be specified here. # noqa: E501 :param resource_references: The resource_references of this ApiRun. # noqa: E501 :type: list[ApiResourceReference] diff --git a/backend/api/python_http_client/kfp_server_api/models/api_url.py b/backend/api/python_http_client/kfp_server_api/models/api_url.py index e5923d4a1f0..7e46a43ff24 100644 --- a/backend/api/python_http_client/kfp_server_api/models/api_url.py +++ b/backend/api/python_http_client/kfp_server_api/models/api_url.py @@ -57,6 +57,7 @@ def __init__(self, pipeline_url=None, local_vars_configuration=None): # noqa: E def pipeline_url(self): """Gets the pipeline_url of this ApiUrl. # noqa: E501 + URL of the pipeline definition or the pipeline version definition. # noqa: E501 :return: The pipeline_url of this ApiUrl. # noqa: E501 :rtype: str @@ -67,6 +68,7 @@ def pipeline_url(self): def pipeline_url(self, pipeline_url): """Sets the pipeline_url of this ApiUrl. + URL of the pipeline definition or the pipeline version definition. # noqa: E501 :param pipeline_url: The pipeline_url of this ApiUrl. # noqa: E501 :type: str diff --git a/backend/api/python_http_client/test/test_experiment_service_api.py b/backend/api/python_http_client/test/test_experiment_service_api.py index 8aee4ac832f..9c6ee83ba2a 100644 --- a/backend/api/python_http_client/test/test_experiment_service_api.py +++ b/backend/api/python_http_client/test/test_experiment_service_api.py @@ -32,42 +32,42 @@ def tearDown(self): def test_archive_experiment(self): """Test case for archive_experiment - Archive an experiment. # noqa: E501 + Archives an experiment and the experiment's runs and jobs. # noqa: E501 """ pass def test_create_experiment(self): """Test case for create_experiment - Create a new experiment. # noqa: E501 + Creates a new experiment. # noqa: E501 """ pass def test_delete_experiment(self): """Test case for delete_experiment - Delete an experiment. # noqa: E501 + Deletes an experiment without deleting the experiment's runs and jobs. To avoid unexpected behaviors, delete an experiment's runs and jobs before deleting the experiment. # noqa: E501 """ pass def test_get_experiment(self): """Test case for get_experiment - Find a specific experiment by ID. # noqa: E501 + Finds a specific experiment by ID. # noqa: E501 """ pass def test_list_experiment(self): """Test case for list_experiment - Find all experiments. # noqa: E501 + Finds all experiments. Supports pagination, and sorting on certain fields. # noqa: E501 """ pass def test_unarchive_experiment(self): """Test case for unarchive_experiment - Restore an archived experiment. # noqa: E501 + Restores an archived experiment. The experiment's archived runs and jobs will stay archived. # noqa: E501 """ pass diff --git a/backend/api/python_http_client/test/test_job_service_api.py b/backend/api/python_http_client/test/test_job_service_api.py index 4373c77f08a..a736811e314 100644 --- a/backend/api/python_http_client/test/test_job_service_api.py +++ b/backend/api/python_http_client/test/test_job_service_api.py @@ -32,14 +32,14 @@ def tearDown(self): def test_create_job(self): """Test case for create_job - Create a new job. # noqa: E501 + Creates a new job. # noqa: E501 """ pass def test_delete_job(self): """Test case for delete_job - Delete a job. # noqa: E501 + Deletes a job. # noqa: E501 """ pass @@ -60,14 +60,14 @@ def test_enable_job(self): def test_get_job(self): """Test case for get_job - Find a specific job by ID. # noqa: E501 + Finds a specific job by ID. # noqa: E501 """ pass def test_list_jobs(self): """Test case for list_jobs - Find all jobs. # noqa: E501 + Finds all jobs. # noqa: E501 """ pass diff --git a/backend/api/python_http_client/test/test_pipeline_service_api.py b/backend/api/python_http_client/test/test_pipeline_service_api.py index 693ff0e903d..2f29e28c1fc 100644 --- a/backend/api/python_http_client/test/test_pipeline_service_api.py +++ b/backend/api/python_http_client/test/test_pipeline_service_api.py @@ -32,45 +32,49 @@ def tearDown(self): def test_create_pipeline(self): """Test case for create_pipeline - Add a pipeline. # noqa: E501 + Creates a pipeline. # noqa: E501 """ pass def test_create_pipeline_version(self): """Test case for create_pipeline_version + Adds a pipeline version to the specified pipeline. # noqa: E501 """ pass def test_delete_pipeline(self): """Test case for delete_pipeline - Delete a pipeline. # noqa: E501 + Deletes a pipeline and its pipeline versions. # noqa: E501 """ pass def test_delete_pipeline_version(self): """Test case for delete_pipeline_version + Deletes a pipeline version by pipeline version ID. If the deleted pipeline version is the default pipeline version, the pipeline's default version changes to the pipeline's most recent pipeline version. If there are no remaining pipeline versions, the pipeline will have no default version. Examines the run_service_api.ipynb notebook to learn more about creating a run using a pipeline version (https://github.com/kubeflow/pipelines/blob/master/tools/benchmarks/run_service_api.ipynb). # noqa: E501 """ pass def test_get_pipeline(self): """Test case for get_pipeline - Find a specific pipeline by ID. # noqa: E501 + Finds a specific pipeline by ID. # noqa: E501 """ pass def test_get_pipeline_version(self): """Test case for get_pipeline_version + Gets a pipeline version by pipeline version ID. # noqa: E501 """ pass def test_get_pipeline_version_template(self): """Test case for get_pipeline_version_template + Returns a YAML template that contains the specified pipeline version's description, parameters and metadata. # noqa: E501 """ pass @@ -84,13 +88,14 @@ def test_get_template(self): def test_list_pipeline_versions(self): """Test case for list_pipeline_versions + Lists all pipeline versions of a given pipeline. # noqa: E501 """ pass def test_list_pipelines(self): """Test case for list_pipelines - Find all pipelines. # noqa: E501 + Finds all pipelines. # noqa: E501 """ pass diff --git a/backend/api/python_http_client/test/test_run_service_api.py b/backend/api/python_http_client/test/test_run_service_api.py index b86edbb8f57..bdde72895ed 100644 --- a/backend/api/python_http_client/test/test_run_service_api.py +++ b/backend/api/python_http_client/test/test_run_service_api.py @@ -32,42 +32,42 @@ def tearDown(self): def test_archive_run(self): """Test case for archive_run - Archive a run. # noqa: E501 + Archives a run. # noqa: E501 """ pass def test_create_run(self): """Test case for create_run - Create a new run. # noqa: E501 + Creates a new run. # noqa: E501 """ pass def test_delete_run(self): """Test case for delete_run - Delete a run. # noqa: E501 + Deletes a run. # noqa: E501 """ pass def test_get_run(self): """Test case for get_run - Find a specific run by ID. # noqa: E501 + Finds a specific run by ID. # noqa: E501 """ pass def test_list_runs(self): """Test case for list_runs - Find all runs. # noqa: E501 + Finds all runs. # noqa: E501 """ pass def test_read_artifact(self): """Test case for read_artifact - Find a run's artifact data. # noqa: E501 + Finds a run's artifact data. # noqa: E501 """ pass @@ -81,21 +81,21 @@ def test_report_run_metrics(self): def test_retry_run(self): """Test case for retry_run - Re-initiate a failed or terminated run. # noqa: E501 + Re-initiates a failed or terminated run. # noqa: E501 """ pass def test_terminate_run(self): """Test case for terminate_run - Terminate an active run. # noqa: E501 + Terminates an active run. # noqa: E501 """ pass def test_unarchive_run(self): """Test case for unarchive_run - Restore an archived run. # noqa: E501 + Restores an archived run. # noqa: E501 """ pass