Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6bcca10

Browse files
authored
Merge pull request kubernetes-client#682 from eastlondoner/release-6.0-py37
regenerate client code with latest k8s api
2 parents 39f833c + 443894a commit 6bcca10

File tree

1,163 files changed

+11358
-8391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,163 files changed

+11358
-8391
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# v6.1.0
2+
- Python 3.7 support
3+
- Update to Kubernetes 1.10.10 API
4+
5+
**Breaking Change:**
6+
- **ACTION REQUIRED** Rename the currently being-used `async` parameter to `async_req` to support Python 3.7 because `async` is a reserved keyword in Python 3.7 [kubernetes-client/gen#67](https://github.com/kubernetes-client/gen/pull/67)
7+
- **NOTE** Python 3.7 was released after v6.0.0 release. It's not necessary to upgrade your client to v6.1.0 if you do not use Python 3.7+.
8+
9+
**API change:**
10+
- Add custom object status and scale api kubernetes-client/gen#72
11+
112
# v6.0.0
213
- Config loader now supports OIDC auth [kubernetes-client/python-base#48](https://github.com/kubernetes-client/python-base/pull/48)
314
- Bug fix: fix expiry time checking in API token refresh [kubernetes-client/python-base#55](https://github.com/kubernetes-client/python-base/pull/55)

kubernetes/README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ No description provided (generated by Swagger Codegen https://github.com/swagger
33

44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

6-
- API version: v1.10.1
7-
- Package version: 6.0.0
6+
- API version: v1.10.10
7+
- Package version: 6.1.0
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -582,13 +582,25 @@ Class | Method | HTTP request | Description
582582
*CustomObjectsApi* | [**delete_cluster_custom_object**](docs/CustomObjectsApi.md#delete_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural}/{name} |
583583
*CustomObjectsApi* | [**delete_namespaced_custom_object**](docs/CustomObjectsApi.md#delete_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} |
584584
*CustomObjectsApi* | [**get_cluster_custom_object**](docs/CustomObjectsApi.md#get_cluster_custom_object) | **GET** /apis/{group}/{version}/{plural}/{name} |
585+
*CustomObjectsApi* | [**get_cluster_custom_object_scale**](docs/CustomObjectsApi.md#get_cluster_custom_object_scale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale |
586+
*CustomObjectsApi* | [**get_cluster_custom_object_status**](docs/CustomObjectsApi.md#get_cluster_custom_object_status) | **GET** /apis/{group}/{version}/{plural}/{name}/status |
585587
*CustomObjectsApi* | [**get_namespaced_custom_object**](docs/CustomObjectsApi.md#get_namespaced_custom_object) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} |
588+
*CustomObjectsApi* | [**get_namespaced_custom_object_scale**](docs/CustomObjectsApi.md#get_namespaced_custom_object_scale) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale |
589+
*CustomObjectsApi* | [**get_namespaced_custom_object_status**](docs/CustomObjectsApi.md#get_namespaced_custom_object_status) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status |
586590
*CustomObjectsApi* | [**list_cluster_custom_object**](docs/CustomObjectsApi.md#list_cluster_custom_object) | **GET** /apis/{group}/{version}/{plural} |
587591
*CustomObjectsApi* | [**list_namespaced_custom_object**](docs/CustomObjectsApi.md#list_namespaced_custom_object) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural} |
588592
*CustomObjectsApi* | [**patch_cluster_custom_object**](docs/CustomObjectsApi.md#patch_cluster_custom_object) | **PATCH** /apis/{group}/{version}/{plural}/{name} |
593+
*CustomObjectsApi* | [**patch_cluster_custom_object_scale**](docs/CustomObjectsApi.md#patch_cluster_custom_object_scale) | **PATCH** /apis/{group}/{version}/{plural}/{name}/scale |
594+
*CustomObjectsApi* | [**patch_cluster_custom_object_status**](docs/CustomObjectsApi.md#patch_cluster_custom_object_status) | **PATCH** /apis/{group}/{version}/{plural}/{name}/status |
589595
*CustomObjectsApi* | [**patch_namespaced_custom_object**](docs/CustomObjectsApi.md#patch_namespaced_custom_object) | **PATCH** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} |
596+
*CustomObjectsApi* | [**patch_namespaced_custom_object_scale**](docs/CustomObjectsApi.md#patch_namespaced_custom_object_scale) | **PATCH** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale |
597+
*CustomObjectsApi* | [**patch_namespaced_custom_object_status**](docs/CustomObjectsApi.md#patch_namespaced_custom_object_status) | **PATCH** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status |
590598
*CustomObjectsApi* | [**replace_cluster_custom_object**](docs/CustomObjectsApi.md#replace_cluster_custom_object) | **PUT** /apis/{group}/{version}/{plural}/{name} |
599+
*CustomObjectsApi* | [**replace_cluster_custom_object_scale**](docs/CustomObjectsApi.md#replace_cluster_custom_object_scale) | **PUT** /apis/{group}/{version}/{plural}/{name}/scale |
600+
*CustomObjectsApi* | [**replace_cluster_custom_object_status**](docs/CustomObjectsApi.md#replace_cluster_custom_object_status) | **PUT** /apis/{group}/{version}/{plural}/{name}/status |
591601
*CustomObjectsApi* | [**replace_namespaced_custom_object**](docs/CustomObjectsApi.md#replace_namespaced_custom_object) | **PUT** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} |
602+
*CustomObjectsApi* | [**replace_namespaced_custom_object_scale**](docs/CustomObjectsApi.md#replace_namespaced_custom_object_scale) | **PUT** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale |
603+
*CustomObjectsApi* | [**replace_namespaced_custom_object_status**](docs/CustomObjectsApi.md#replace_namespaced_custom_object_status) | **PUT** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status |
592604
*EventsApi* | [**get_api_group**](docs/EventsApi.md#get_api_group) | **GET** /apis/events.k8s.io/ |
593605
*EventsV1beta1Api* | [**create_namespaced_event**](docs/EventsV1beta1Api.md#create_namespaced_event) | **POST** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events |
594606
*EventsV1beta1Api* | [**delete_collection_namespaced_event**](docs/EventsV1beta1Api.md#delete_collection_namespaced_event) | **DELETE** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events |

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__ = "6.0.0"
17+
__version__ = "6.1.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
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.10.1
8+
OpenAPI spec version: v1.10.10
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

kubernetes/client/api_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
66
7-
OpenAPI spec version: v1.10.1
7+
OpenAPI spec version: v1.10.10
88
99
Generated by: https://github.com/swagger-api/swagger-codegen.git
1010
"""
@@ -71,7 +71,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
7171
self.default_headers[header_name] = header_value
7272
self.cookie = cookie
7373
# Set default User-Agent.
74-
self.user_agent = 'Swagger-Codegen/6.0.0/python'
74+
self.user_agent = 'Swagger-Codegen/6.1.0/python'
7575

7676
def __del__(self):
7777
self.pool.close()
@@ -278,7 +278,7 @@ def __deserialize(self, data, klass):
278278
def call_api(self, resource_path, method,
279279
path_params=None, query_params=None, header_params=None,
280280
body=None, post_params=None, files=None,
281-
response_type=None, auth_settings=None, async=None,
281+
response_type=None, auth_settings=None, async_req=None,
282282
_return_http_data_only=None, collection_formats=None, _preload_content=True,
283283
_request_timeout=None):
284284
"""
@@ -298,7 +298,7 @@ def call_api(self, resource_path, method,
298298
:param response: Response data type.
299299
:param files dict: key -> filename, value -> filepath,
300300
for `multipart/form-data`.
301-
:param async bool: execute request asynchronously
301+
:param async_req bool: execute request asynchronously
302302
:param _return_http_data_only: response data without head status code and headers
303303
:param collection_formats: dict of collection formats for path, query,
304304
header, and post parameters.
@@ -313,7 +313,7 @@ def call_api(self, resource_path, method,
313313
If parameter async is False or missing,
314314
then the method will return the response directly.
315315
"""
316-
if not async:
316+
if not async_req:
317317
return self.__call_api(resource_path, method,
318318
path_params, query_params, header_params,
319319
body, post_params, files,

kubernetes/client/apis/admissionregistration_api.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.10.1
8+
OpenAPI spec version: v1.10.10
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -39,17 +39,17 @@ def get_api_group(self, **kwargs):
3939
"""
4040
get information of a group
4141
This method makes a synchronous HTTP request by default. To make an
42-
asynchronous HTTP request, please pass async=True
43-
>>> thread = api.get_api_group(async=True)
42+
asynchronous HTTP request, please pass async_req=True
43+
>>> thread = api.get_api_group(async_req=True)
4444
>>> result = thread.get()
4545
46-
:param async bool
46+
:param async_req bool
4747
:return: V1APIGroup
4848
If the method is called asynchronously,
4949
returns the request thread.
5050
"""
5151
kwargs['_return_http_data_only'] = True
52-
if kwargs.get('async'):
52+
if kwargs.get('async_req'):
5353
return self.get_api_group_with_http_info(**kwargs)
5454
else:
5555
(data) = self.get_api_group_with_http_info(**kwargs)
@@ -59,18 +59,18 @@ def get_api_group_with_http_info(self, **kwargs):
5959
"""
6060
get information of a group
6161
This method makes a synchronous HTTP request by default. To make an
62-
asynchronous HTTP request, please pass async=True
63-
>>> thread = api.get_api_group_with_http_info(async=True)
62+
asynchronous HTTP request, please pass async_req=True
63+
>>> thread = api.get_api_group_with_http_info(async_req=True)
6464
>>> result = thread.get()
6565
66-
:param async bool
66+
:param async_req bool
6767
:return: V1APIGroup
6868
If the method is called asynchronously,
6969
returns the request thread.
7070
"""
7171

7272
all_params = []
73-
all_params.append('async')
73+
all_params.append('async_req')
7474
all_params.append('_return_http_data_only')
7575
all_params.append('_preload_content')
7676
all_params.append('_request_timeout')
@@ -117,7 +117,7 @@ def get_api_group_with_http_info(self, **kwargs):
117117
files=local_var_files,
118118
response_type='V1APIGroup',
119119
auth_settings=auth_settings,
120-
async=params.get('async'),
120+
async_req=params.get('async_req'),
121121
_return_http_data_only=params.get('_return_http_data_only'),
122122
_preload_content=params.get('_preload_content', True),
123123
_request_timeout=params.get('_request_timeout'),

0 commit comments

Comments
 (0)