Skip to content

Commit

Permalink
Update SDK version to 1.6.0 in release branch (#1785)
Browse files Browse the repository at this point in the history
* Update sdk to v1.6.0rc0

* Update sdk to v1.6.0rc0

* Update sdk to v1.6.0rc0

* Update to latest Image

* [Bugfix][SDK] pod has no metadata attr anymore in the get_job_logs() … (#1760)

* Update sdk version in files to 1.6.0

---------

Co-authored-by: Hongzhi Chen <chzyaobaiwei@gmail.com>
  • Loading branch information
johnugeorge and yaobaiwei committed Mar 21, 2023
1 parent 331e8c6 commit 66aa635
Show file tree
Hide file tree
Showing 64 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion hack/python-sdk/gen-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SWAGGER_JAR_URL="https://repo1.maven.org/maven2/org/openapitools/openapi-generat
SWAGGER_CODEGEN_JAR="${repo_root}/hack/python-sdk/openapi-generator-cli.jar"
SWAGGER_CODEGEN_CONF="${repo_root}/hack/python-sdk/swagger_config.json"
SDK_OUTPUT_PATH="${repo_root}/sdk/python"
VERSION=1.6.0rc0
VERSION=1.6.0
SWAGGER_CODEGEN_FILE="${repo_root}/hack/python-sdk/swagger.json"

if [ -z "${GOPATH:-}" ]; then
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 @@ -3,7 +3,7 @@
"info": {
"description": "Python SDK for Kubeflow Training",
"title": "Kubeflow Training SDK",
"version": "v1.6.0rc0"
"version": "v1.6.0"
},
"paths": {},
"definitions": {
Expand Down
2 changes: 1 addition & 1 deletion hack/python-sdk/swagger_config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packageName": "kubeflow.training",
"projectName": "training",
"packageVersion": "1.6.0rc0",
"packageVersion": "1.6.0",
"typeMappings": {
"V1Time": "datetime"
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kubeflow/training/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

__version__ = "1.6.0rc0"
__version__ = "1.6.0"

# import apis into sdk package

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
Expand Up @@ -4,7 +4,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.6.0rc0/python'
self.user_agent = 'OpenAPI-Generator/1.6.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
6 changes: 3 additions & 3 deletions sdk/python/kubeflow/training/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -324,8 +324,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v1.6.0rc0\n"\
"SDK Package Version: 1.6.0rc0".\
"Version of the API: v1.6.0\n"\
"SDK Package Version: 1.6.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kubeflow/training/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kubeflow/training/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kubeflow/training/models/v1_job_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kubeflow/training/models/v1_job_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kubeflow/training/models/v1_replica_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kubeflow/training/models/v1_replica_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kubeflow/training/models/v1_run_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kubeflow/training/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

setuptools.setup(
name="kubeflow-training",
version="1.6.0rc0",
version="1.6.0",
author="Kubeflow Authors",
author_email="hejinchi@cn.ibm.com",
license="Apache License Version 2.0",
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/test/test_kubeflow_org_v1_elastic_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/test/test_kubeflow_org_v1_mpi_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/test/test_kubeflow_org_v1_mpi_job_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/test/test_kubeflow_org_v1_mpi_job_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.6.0rc0
The version of the OpenAPI document: v1.6.0
Generated by: https://openapi-generator.tech
"""

Expand Down

0 comments on commit 66aa635

Please sign in to comment.