From 9c8bd4a7bcbe71a3904c3d406af3bf9c66fe3013 Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Tue, 2 Jul 2019 13:07:05 -0700 Subject: [PATCH] re-generated client for 10.0.0 release --- kubernetes/README.md | 2 +- kubernetes/__init__.py | 2 +- kubernetes/client/api_client.py | 2 +- kubernetes/client/apis/custom_objects_api.py | 12 ++++++------ kubernetes/client/configuration.py | 2 +- kubernetes/docs/CustomObjectsApi.md | 12 ++++++------ scripts/swagger.json | 6 ++++++ setup.py | 4 ++-- 8 files changed, 24 insertions(+), 18 deletions(-) diff --git a/kubernetes/README.md b/kubernetes/README.md index e18ad5c1a..ac6aad6cf 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -4,7 +4,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1.14.4 -- Package version: 10.0.0-snapshot +- Package version: 10.0.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/kubernetes/__init__.py b/kubernetes/__init__.py index 800b55255..cb7164351 100644 --- a/kubernetes/__init__.py +++ b/kubernetes/__init__.py @@ -14,7 +14,7 @@ __project__ = 'kubernetes' # The version is auto-updated. Please do not edit. -__version__ = "10.0.0a1" +__version__ = "10.0.0" import kubernetes.client import kubernetes.config diff --git a/kubernetes/client/api_client.py b/kubernetes/client/api_client.py index b5635d5ec..7f3926f32 100644 --- a/kubernetes/client/api_client.py +++ b/kubernetes/client/api_client.py @@ -73,7 +73,7 @@ class ApiClient(object): self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/10.0.0a1/python' + self.user_agent = 'Swagger-Codegen/10.0.0/python' def __del__(self): if self._pool: diff --git a/kubernetes/client/apis/custom_objects_api.py b/kubernetes/client/apis/custom_objects_api.py index 35b576f06..90236a362 100644 --- a/kubernetes/client/apis/custom_objects_api.py +++ b/kubernetes/client/apis/custom_objects_api.py @@ -1657,7 +1657,7 @@ class CustomObjectsApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] @@ -1781,7 +1781,7 @@ class CustomObjectsApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] @@ -1905,7 +1905,7 @@ class CustomObjectsApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] @@ -2036,7 +2036,7 @@ class CustomObjectsApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] @@ -2167,7 +2167,7 @@ class CustomObjectsApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] @@ -2298,7 +2298,7 @@ class CustomObjectsApi(object): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + select_header_content_type(['application/json-patch+json', 'application/merge-patch+json']) # Authentication setting auth_settings = ['BearerToken'] diff --git a/kubernetes/client/configuration.py b/kubernetes/client/configuration.py index d1fc4e606..72dbe2534 100644 --- a/kubernetes/client/configuration.py +++ b/kubernetes/client/configuration.py @@ -240,5 +240,5 @@ class Configuration(with_metaclass(TypeWithDefault, object)): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.14.4\n"\ - "SDK Package Version: 10.0.0-snapshot".\ + "SDK Package Version: 10.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubernetes/docs/CustomObjectsApi.md b/kubernetes/docs/CustomObjectsApi.md index b9583bd6c..865b22be4 100644 --- a/kubernetes/docs/CustomObjectsApi.md +++ b/kubernetes/docs/CustomObjectsApi.md @@ -846,7 +846,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+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) @@ -907,7 +907,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[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) @@ -968,7 +968,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[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) @@ -1031,7 +1031,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+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) @@ -1094,7 +1094,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[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) @@ -1157,7 +1157,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[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/scripts/swagger.json b/scripts/swagger.json index 0785bf0fb..0b0c72ef4 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -95539,6 +95539,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchClusterCustomObjectStatus" @@ -95678,6 +95679,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchNamespacedCustomObject" @@ -95890,6 +95892,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchNamespacedCustomObjectScale" @@ -96045,6 +96048,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchClusterCustomObjectScale" @@ -96184,6 +96188,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchClusterCustomObject" @@ -96389,6 +96394,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchNamespacedCustomObjectStatus" diff --git a/setup.py b/setup.py index 5a5ae559b..825e2da51 100644 --- a/setup.py +++ b/setup.py @@ -16,9 +16,9 @@ from setuptools import setup # Do not edit these constants. They will be updated automatically # by scripts/update-client.sh. -CLIENT_VERSION = "10.0.0a1" +CLIENT_VERSION = "10.0.0" PACKAGE_NAME = "kubernetes" -DEVELOPMENT_STATUS = "3 - Alpha" +DEVELOPMENT_STATUS = "5 - Production/Stable" # To install the library, run the following #