@@ -162,3 +162,121 @@ def api_process_with_http_info(self, process_request, **kwargs): # noqa: E501
162162 _request_timeout = local_var_params .get ('_request_timeout' ),
163163 collection_formats = collection_formats ,
164164 _request_auth = local_var_params .get ('_request_auth' ))
165+
166+ def ping (self , ** kwargs ): # noqa: E501
167+ """Server health check # noqa: E501
168+
169+ This method makes a synchronous HTTP request by default. To make an
170+ asynchronous HTTP request, please pass async_req=True
171+
172+ >>> thread = api.ping(async_req=True)
173+ >>> result = thread.get()
174+
175+ :param async_req: Whether to execute the request asynchronously.
176+ :type async_req: bool, optional
177+ :param _preload_content: if False, the urllib3.HTTPResponse object will
178+ be returned without reading/decoding response
179+ data. Default is True.
180+ :type _preload_content: bool, optional
181+ :param _request_timeout: timeout setting for this request. If one
182+ number provided, it will be total request
183+ timeout. It can also be a pair (tuple) of
184+ (connection, read) timeouts.
185+ :return: Returns the result object.
186+ If the method is called asynchronously,
187+ returns the request thread.
188+ :rtype: DeviceInfo
189+ """
190+ kwargs ['_return_http_data_only' ] = True
191+ return self .ping_with_http_info (** kwargs ) # noqa: E501
192+
193+ def ping_with_http_info (self , ** kwargs ): # noqa: E501
194+ """Server health check # noqa: E501
195+
196+ This method makes a synchronous HTTP request by default. To make an
197+ asynchronous HTTP request, please pass async_req=True
198+
199+ >>> thread = api.ping_with_http_info(async_req=True)
200+ >>> result = thread.get()
201+
202+ :param async_req: Whether to execute the request asynchronously.
203+ :type async_req: bool, optional
204+ :param _return_http_data_only: response data without head status code
205+ and headers
206+ :type _return_http_data_only: bool, optional
207+ :param _preload_content: if False, the urllib3.HTTPResponse object will
208+ be returned without reading/decoding response
209+ data. Default is True.
210+ :type _preload_content: bool, optional
211+ :param _request_timeout: timeout setting for this request. If one
212+ number provided, it will be total request
213+ timeout. It can also be a pair (tuple) of
214+ (connection, read) timeouts.
215+ :param _request_auth: set to override the auth_settings for an a single
216+ request; this effectively ignores the authentication
217+ in the spec for a single request.
218+ :type _request_auth: dict, optional
219+ :return: Returns the result object.
220+ If the method is called asynchronously,
221+ returns the request thread.
222+ :rtype: tuple(DeviceInfo, status_code(int), headers(HTTPHeaderDict))
223+ """
224+
225+ local_var_params = locals ()
226+
227+ all_params = [
228+ ]
229+ all_params .extend (
230+ [
231+ 'async_req' ,
232+ '_return_http_data_only' ,
233+ '_preload_content' ,
234+ '_request_timeout' ,
235+ '_request_auth'
236+ ]
237+ )
238+
239+ for key , val in six .iteritems (local_var_params ['kwargs' ]):
240+ if key not in all_params :
241+ raise ApiTypeError (
242+ "Got an unexpected keyword argument '%s'"
243+ " to method ping" % key
244+ )
245+ local_var_params [key ] = val
246+ del local_var_params ['kwargs' ]
247+
248+ collection_formats = {}
249+
250+ path_params = {}
251+
252+ query_params = []
253+
254+ header_params = {}
255+
256+ form_params = []
257+ local_var_files = {}
258+
259+ body_params = None
260+ # HTTP header `Accept`
261+ header_params ['Accept' ] = self .api_client .select_header_accept (
262+ ['application/json' ]) # noqa: E501
263+
264+ # Authentication setting
265+ auth_settings = [] # noqa: E501
266+
267+ return self .api_client .call_api (
268+ '/api/ping' , 'GET' ,
269+ path_params ,
270+ query_params ,
271+ header_params ,
272+ body = body_params ,
273+ post_params = form_params ,
274+ files = local_var_files ,
275+ response_type = 'DeviceInfo' , # noqa: E501
276+ auth_settings = auth_settings ,
277+ async_req = local_var_params .get ('async_req' ),
278+ _return_http_data_only = local_var_params .get ('_return_http_data_only' ), # noqa: E501
279+ _preload_content = local_var_params .get ('_preload_content' , True ),
280+ _request_timeout = local_var_params .get ('_request_timeout' ),
281+ collection_formats = collection_formats ,
282+ _request_auth = local_var_params .get ('_request_auth' ))
0 commit comments