Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix title and description in swagger.json for Python SDK #1435

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/python-sdk/gen-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ chmod +x /tmp/swagger

# it will report warning like 'v1.SchedulingPolicy' already exists in primary or higher priority mixin, skipping
# error code is not 0 but t's acceptable.
/tmp/swagger mixin "${repo_root}"/pkg/apis/tensorflow/v1/swagger.json "${repo_root}"/pkg/apis/pytorch/v1/swagger.json \
/tmp/swagger mixin "${repo_root}"/hack/python-sdk/swagger_base.json "${repo_root}"/pkg/apis/tensorflow/v1/swagger.json "${repo_root}"/pkg/apis/pytorch/v1/swagger.json \
"${repo_root}"/pkg/apis/mxnet/v1/swagger.json "${repo_root}"/pkg/apis/xgboost/v1/swagger.json \
--output "${repo_root}"/hack/python-sdk/swagger.json --quiet || true

Expand Down
2 changes: 1 addition & 1 deletion hack/python-sdk/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -473,4 +473,4 @@
}
}
}
}
}
9 changes: 9 additions & 0 deletions hack/python-sdk/swagger_base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"swagger": "2.0",
"info": {
"description": "Python SDK for Kubeflow Training",
"title": "Kubeflow Training SDK"
},
"paths": { },
"definitions": { }
}
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# flake8: noqa

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/api_client.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# coding: utf-8
"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/configuration.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# flake8: noqa
"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_job_condition.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_job_status.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_mx_job.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_mx_job_list.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_mx_job_spec.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_py_torch_job.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_py_torch_job_list.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_py_torch_job_spec.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_replica_spec.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_replica_status.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_run_policy.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_scheduling_policy.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_tf_job.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_tf_job_list.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_tf_job_spec.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_xg_boost_job.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_xg_boost_job_list.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/models/v1_xg_boost_job_spec.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/rest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/test/test_v1_job_condition.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/test/test_v1_job_status.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/test/test_v1_mx_job.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/test/test_v1_mx_job_list.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/test/test_v1_mx_job_spec.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/test/test_v1_py_torch_job.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/test/test_v1_py_torch_job_list.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# coding: utf-8

"""
tensorflow
Kubeflow Training SDK

Python SDK for tensorflow # noqa: E501
Python SDK for Kubeflow Training # noqa: E501

The version of the OpenAPI document: v1.3.0
Generated by: https://openapi-generator.tech
Expand Down
Loading