Skip to content

Commit 286bd61

Browse files
committed
generated client change for v18 GA release
1 parent 4a5b39d commit 286bd61

File tree

11 files changed

+16
-90
lines changed

11 files changed

+16
-90
lines changed

kubernetes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: release-1.18
7-
- Package version: 18.20.0b1
7+
- Package version: 18.20.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

kubernetes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
__project__ = 'kubernetes'
1616
# The version is auto-updated. Please do not edit.
17-
__version__ = "18.20.0b1"
17+
__version__ = "18.20.0"
1818

1919
import kubernetes.client
2020
import kubernetes.config

kubernetes/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "18.20.0b1"
17+
__version__ = "18.20.0"
1818

1919
# import apis into sdk package
2020
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi

kubernetes/client/api/custom_objects_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam
24252425

24262426
# HTTP header `Content-Type`
24272427
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2428-
['application/merge-patch+json']) # noqa: E501
2428+
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
24292429

24302430
# Authentication setting
24312431
auth_settings = ['BearerToken'] # noqa: E501
@@ -2594,7 +2594,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura
25942594

25952595
# HTTP header `Content-Type`
25962596
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2597-
['application/merge-patch+json']) # noqa: E501
2597+
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
25982598

25992599
# Authentication setting
26002600
auth_settings = ['BearerToken'] # noqa: E501
@@ -2763,7 +2763,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur
27632763

27642764
# HTTP header `Content-Type`
27652765
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2766-
['application/merge-patch+json']) # noqa: E501
2766+
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
27672767

27682768
# Authentication setting
27692769
auth_settings = ['BearerToken'] # noqa: E501
@@ -2941,7 +2941,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac
29412941

29422942
# HTTP header `Content-Type`
29432943
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2944-
['application/merge-patch+json']) # noqa: E501
2944+
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
29452945

29462946
# Authentication setting
29472947
auth_settings = ['BearerToken'] # noqa: E501
@@ -3119,7 +3119,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na
31193119

31203120
# HTTP header `Content-Type`
31213121
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3122-
['application/merge-patch+json']) # noqa: E501
3122+
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
31233123

31243124
# Authentication setting
31253125
auth_settings = ['BearerToken'] # noqa: E501
@@ -3297,7 +3297,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n
32973297

32983298
# HTTP header `Content-Type`
32993299
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3300-
['application/merge-patch+json']) # noqa: E501
3300+
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
33013301

33023302
# Authentication setting
33033303
auth_settings = ['BearerToken'] # noqa: E501

kubernetes/client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7878
self.default_headers[header_name] = header_value
7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/18.20.0b1/python'
81+
self.user_agent = 'OpenAPI-Generator/18.20.0/python'
8282
self.client_side_validation = configuration.client_side_validation
8383

8484
def __enter__(self):

kubernetes/client/apis/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

kubernetes/client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def to_debug_report(self):
347347
"OS: {env}\n"\
348348
"Python Version: {pyversion}\n"\
349349
"Version of the API: release-1.18\n"\
350-
"SDK Package Version: 18.20.0b1".\
350+
"SDK Package Version: 18.20.0".\
351351
format(env=sys.platform, pyversion=sys.version)
352352

353353
def get_host_settings(self):

kubernetes/client/models/v1_projected_volume_source.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def sources(self, sources):
9999
:param sources: The sources of this V1ProjectedVolumeSource. # noqa: E501
100100
:type: list[V1VolumeProjection]
101101
"""
102+
if self.local_vars_configuration.client_side_validation and sources is None: # noqa: E501
103+
raise ValueError("Invalid value for `sources`, must not be `None`") # noqa: E501
104+
102105
self._sources = sources
103106

104107
def to_dict(self):

kubernetes/test/test_api_client.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

kubernetes/test/test_configuration.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)