diff --git a/kubernetes/README.md b/kubernetes/README.md index e18ad5c1ac..ac6aad6cf2 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 800b552559..cb7164351c 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 b5635d5ecb..7f3926f32d 100644 --- a/kubernetes/client/api_client.py +++ b/kubernetes/client/api_client.py @@ -73,7 +73,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 = '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 35b576f06a..90236a3620 100644 --- a/kubernetes/client/apis/custom_objects_api.py +++ b/kubernetes/client/apis/custom_objects_api.py @@ -1657,7 +1657,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam # 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 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura # 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 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur # 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 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac # 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 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na # 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 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n # 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 d1fc4e6061..72dbe25340 100644 --- a/kubernetes/client/configuration.py +++ b/kubernetes/client/configuration.py @@ -240,5 +240,5 @@ def to_debug_report(self): "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 b9583bd6c4..865b22be46 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 0785bf0fb2..0b0c72ef4c 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 5a5ae559ba..825e2da51f 100644 --- a/setup.py +++ b/setup.py @@ -16,9 +16,9 @@ # 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 #