Skip to content

Commit

Permalink
[Python Client] Clean up generated python client template to facilita…
Browse files Browse the repository at this point in the history
…te version bump (#3937)

* Remove version from generated python client header comment

* Regenerate client

* Bump to 1.0.0-dev.2 to showcase version bump diff
  • Loading branch information
Bobgy committed Jun 10, 2020
1 parent 7fbb7ca commit c6ac5e0
Show file tree
Hide file tree
Showing 93 changed files with 116 additions and 184 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.1
1.0.0-dev.2
2 changes: 1 addition & 1 deletion backend/api/build_kfp_server_api_python_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ 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 '{
java -jar "$codegen_file" generate -g python -t "$CURRENT_DIR/python_http_client_template" -i "$swagger_file" -o "$DIR" -c <(echo '{
"packageName": "kfp_server_api",
"packageVersion": "'"$VERSION"'",
"packageUrl": "https://github.com/kubeflow/pipelines"
Expand Down
4 changes: 2 additions & 2 deletions backend/api/python_http_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ This file contains REST API specification for Kubeflow Pipelines. The file is au

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
- API version: 1.0.0-dev.2
- Package version: 1.0.0-dev.2
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://www.google.com](https://www.google.com)

Expand Down
5 changes: 2 additions & 3 deletions backend/api/python_http_client/kfp_server_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,16 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

__version__ = "1.0.0-dev.1"
__version__ = "1.0.0-dev.2"

# import apis into sdk package
from kfp_server_api.api.experiment_service_api import ExperimentServiceApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
5 changes: 2 additions & 3 deletions backend/api/python_http_client/kfp_server_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -93,7 +92,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.0.0-dev.1/python'
self.user_agent = 'OpenAPI-Generator/1.0.0-dev.2/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -366,8 +365,8 @@ def to_debug_report(self):
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".\
"Version of the API: 1.0.0-dev.2\n"\
"SDK Package Version: 1.0.0-dev.2".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
3 changes: 1 addition & 2 deletions backend/api/python_http_client/kfp_server_api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. # noqa: E501
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
The version of the OpenAPI document: 1.0.0-dev.1
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
Expand Down
Loading

0 comments on commit c6ac5e0

Please sign in to comment.