8
8
OpenAPI spec version: v1.5.1-660c2a2
9
9
10
10
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.
23
11
"""
24
12
13
+
25
14
from __future__ import absolute_import
26
15
27
16
import sys
@@ -53,9 +42,7 @@ def __init__(self, api_client=None):
53
42
54
43
def get_api_versions (self , ** kwargs ):
55
44
"""
56
-
57
45
get available API versions
58
-
59
46
This method makes a synchronous HTTP request by default. To make an
60
47
asynchronous HTTP request, please define a `callback` function
61
48
to be invoked when receiving the response.
@@ -79,9 +66,7 @@ def get_api_versions(self, **kwargs):
79
66
80
67
def get_api_versions_with_http_info (self , ** kwargs ):
81
68
"""
82
-
83
69
get available API versions
84
-
85
70
This method makes a synchronous HTTP request by default. To make an
86
71
asynchronous HTTP request, please define a `callback` function
87
72
to be invoked when receiving the response.
@@ -113,7 +98,6 @@ def get_api_versions_with_http_info(self, **kwargs):
113
98
params [key ] = val
114
99
del params ['kwargs' ]
115
100
116
-
117
101
collection_formats = {}
118
102
119
103
resource_path = '/apis/' .replace ('{format}' , 'json' )
@@ -127,12 +111,9 @@ def get_api_versions_with_http_info(self, **kwargs):
127
111
local_var_files = {}
128
112
129
113
body_params = None
130
-
131
114
# HTTP header `Accept`
132
115
header_params ['Accept' ] = self .api_client .\
133
116
select_header_accept (['application/json' , 'application/yaml' , 'application/vnd.kubernetes.protobuf' ])
134
- if not header_params ['Accept' ]:
135
- del header_params ['Accept' ]
136
117
137
118
# HTTP header `Content-Type`
138
119
header_params ['Content-Type' ] = self .api_client .\
@@ -142,16 +123,16 @@ def get_api_versions_with_http_info(self, **kwargs):
142
123
auth_settings = ['BearerToken' ]
143
124
144
125
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 )
0 commit comments