Skip to content

Commit 98dc691

Browse files
committed
Update client with no change. Mostly formatting update in generator code
1 parent daa0562 commit 98dc691

File tree

571 files changed

+7128
-17051
lines changed

Some content is hidden

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

571 files changed

+7128
-17051
lines changed

kubernetes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://
55

66
- API version: v1.5.1-660c2a2
77
- Package version: 1.0.0-snapshot
8-
- Build package: class io.swagger.codegen.languages.PythonClientCodegen
8+
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
1111

kubernetes/client/apis/apis_api.py

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,9 @@
88
OpenAPI spec version: v1.5.1-660c2a2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
11-
12-
Licensed under the Apache License, Version 2.0 (the "License");
13-
you may not use this file except in compliance with the License.
14-
You may obtain a copy of the License at
15-
16-
http://www.apache.org/licenses/LICENSE-2.0
17-
18-
Unless required by applicable law or agreed to in writing, software
19-
distributed under the License is distributed on an "AS IS" BASIS,
20-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
See the License for the specific language governing permissions and
22-
limitations under the License.
2311
"""
2412

13+
2514
from __future__ import absolute_import
2615

2716
import sys
@@ -53,9 +42,7 @@ def __init__(self, api_client=None):
5342

5443
def get_api_versions(self, **kwargs):
5544
"""
56-
5745
get available API versions
58-
5946
This method makes a synchronous HTTP request by default. To make an
6047
asynchronous HTTP request, please define a `callback` function
6148
to be invoked when receiving the response.
@@ -79,9 +66,7 @@ def get_api_versions(self, **kwargs):
7966

8067
def get_api_versions_with_http_info(self, **kwargs):
8168
"""
82-
8369
get available API versions
84-
8570
This method makes a synchronous HTTP request by default. To make an
8671
asynchronous HTTP request, please define a `callback` function
8772
to be invoked when receiving the response.
@@ -113,7 +98,6 @@ def get_api_versions_with_http_info(self, **kwargs):
11398
params[key] = val
11499
del params['kwargs']
115100

116-
117101
collection_formats = {}
118102

119103
resource_path = '/apis/'.replace('{format}', 'json')
@@ -127,12 +111,9 @@ def get_api_versions_with_http_info(self, **kwargs):
127111
local_var_files = {}
128112

129113
body_params = None
130-
131114
# HTTP header `Accept`
132115
header_params['Accept'] = self.api_client.\
133116
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
134-
if not header_params['Accept']:
135-
del header_params['Accept']
136117

137118
# HTTP header `Content-Type`
138119
header_params['Content-Type'] = self.api_client.\
@@ -142,16 +123,16 @@ def get_api_versions_with_http_info(self, **kwargs):
142123
auth_settings = ['BearerToken']
143124

144125
return self.api_client.call_api(resource_path, 'GET',
145-
path_params,
146-
query_params,
147-
header_params,
148-
body=body_params,
149-
post_params=form_params,
150-
files=local_var_files,
151-
response_type='UnversionedAPIGroupList',
152-
auth_settings=auth_settings,
153-
callback=params.get('callback'),
154-
_return_http_data_only=params.get('_return_http_data_only'),
155-
_preload_content=params.get('_preload_content', True),
156-
_request_timeout=params.get('_request_timeout'),
157-
collection_formats=collection_formats)
126+
path_params,
127+
query_params,
128+
header_params,
129+
body=body_params,
130+
post_params=form_params,
131+
files=local_var_files,
132+
response_type='UnversionedAPIGroupList',
133+
auth_settings=auth_settings,
134+
callback=params.get('callback'),
135+
_return_http_data_only=params.get('_return_http_data_only'),
136+
_preload_content=params.get('_preload_content', True),
137+
_request_timeout=params.get('_request_timeout'),
138+
collection_formats=collection_formats)

kubernetes/client/apis/apps_api.py

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,9 @@
88
OpenAPI spec version: v1.5.1-660c2a2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
11-
12-
Licensed under the Apache License, Version 2.0 (the "License");
13-
you may not use this file except in compliance with the License.
14-
You may obtain a copy of the License at
15-
16-
http://www.apache.org/licenses/LICENSE-2.0
17-
18-
Unless required by applicable law or agreed to in writing, software
19-
distributed under the License is distributed on an "AS IS" BASIS,
20-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
See the License for the specific language governing permissions and
22-
limitations under the License.
2311
"""
2412

13+
2514
from __future__ import absolute_import
2615

2716
import sys
@@ -53,9 +42,7 @@ def __init__(self, api_client=None):
5342

5443
def get_api_group(self, **kwargs):
5544
"""
56-
5745
get information of a group
58-
5946
This method makes a synchronous HTTP request by default. To make an
6047
asynchronous HTTP request, please define a `callback` function
6148
to be invoked when receiving the response.
@@ -79,9 +66,7 @@ def get_api_group(self, **kwargs):
7966

8067
def get_api_group_with_http_info(self, **kwargs):
8168
"""
82-
8369
get information of a group
84-
8570
This method makes a synchronous HTTP request by default. To make an
8671
asynchronous HTTP request, please define a `callback` function
8772
to be invoked when receiving the response.
@@ -113,7 +98,6 @@ def get_api_group_with_http_info(self, **kwargs):
11398
params[key] = val
11499
del params['kwargs']
115100

116-
117101
collection_formats = {}
118102

119103
resource_path = '/apis/apps/'.replace('{format}', 'json')
@@ -127,12 +111,9 @@ def get_api_group_with_http_info(self, **kwargs):
127111
local_var_files = {}
128112

129113
body_params = None
130-
131114
# HTTP header `Accept`
132115
header_params['Accept'] = self.api_client.\
133116
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
134-
if not header_params['Accept']:
135-
del header_params['Accept']
136117

137118
# HTTP header `Content-Type`
138119
header_params['Content-Type'] = self.api_client.\
@@ -142,16 +123,16 @@ def get_api_group_with_http_info(self, **kwargs):
142123
auth_settings = ['BearerToken']
143124

144125
return self.api_client.call_api(resource_path, 'GET',
145-
path_params,
146-
query_params,
147-
header_params,
148-
body=body_params,
149-
post_params=form_params,
150-
files=local_var_files,
151-
response_type='UnversionedAPIGroup',
152-
auth_settings=auth_settings,
153-
callback=params.get('callback'),
154-
_return_http_data_only=params.get('_return_http_data_only'),
155-
_preload_content=params.get('_preload_content', True),
156-
_request_timeout=params.get('_request_timeout'),
157-
collection_formats=collection_formats)
126+
path_params,
127+
query_params,
128+
header_params,
129+
body=body_params,
130+
post_params=form_params,
131+
files=local_var_files,
132+
response_type='UnversionedAPIGroup',
133+
auth_settings=auth_settings,
134+
callback=params.get('callback'),
135+
_return_http_data_only=params.get('_return_http_data_only'),
136+
_preload_content=params.get('_preload_content', True),
137+
_request_timeout=params.get('_request_timeout'),
138+
collection_formats=collection_formats)

0 commit comments

Comments
 (0)