@@ -38,6 +38,7 @@ class {{classname}}(object):
38
38
{ {/notes} }
39
39
This method makes a synchronous HTTP request by default. To make an
40
40
asynchronous HTTP request, please pass async_req=True
41
+
41
42
{ {#sortParamsByRequiredFlag} }
42
43
>>> thread = api.{ {operationId} }({ {#allParams} }{ {#required} }{ {paramName} }, { {/required} }{ {/allParams} }async_req=True)
43
44
{ {/sortParamsByRequiredFlag} }
@@ -46,20 +47,24 @@ class {{classname}}(object):
46
47
{ {/sortParamsByRequiredFlag} }
47
48
>>> result = thread.get()
48
49
49
- :param async_req bool: execute request asynchronously
50
50
{ {#allParams} }
51
- :param { {dataType} } { {paramName} }:{ {#description} } { {{description} }}{ {/description} }{ {#required} } (required){ {/required} }{ {#optional} }(optional){ {/optional} }
51
+ :param { {paramName} }:{ {#description} } { {{description} }}{ {/description} }{ {#required} } (required){ {/required} }{ {#optional} }(optional){ {/optional} }
52
+ :type { {paramName} }: { {dataType} }{ {#optional} }, optional{ {/optional} }
52
53
{ {/allParams} }
54
+ :param async_req: Whether to execute the request asynchronously.
55
+ :type async_req: bool, optional
53
56
:param _preload_content: if False, the urllib3.HTTPResponse object will
54
57
be returned without reading/decoding response
55
58
data. Default is True.
59
+ :type _preload_content: bool, optional
56
60
:param _request_timeout: timeout setting for this request. If one
57
61
number provided, it will be total request
58
62
timeout. It can also be a pair (tuple) of
59
63
(connection, read) timeouts.
60
- :return: { {#returnType } } { {returnType } } { {/returnType } } { {^returnType } }None { {/returnType } }
64
+ :return: Returns the result object.
61
65
If the method is called asynchronously,
62
66
returns the request thread.
67
+ :rtype: { {#returnType} }{ {returnType} }{ {/returnType} }{ {^returnType} }None{ {/returnType} }
63
68
"""
64
69
kwargs['_return_http_data_only'] = True
65
70
return self.{ {operationId} }_with_http_info({ {#sortParamsByRequiredFlag} }{ {#allParams} }{ {#required} }{ {paramName} }, { {/required} }{ {/allParams} }{ {/sortParamsByRequiredFlag} }**kwargs) # noqa: E501
@@ -72,6 +77,7 @@ class {{classname}}(object):
72
77
{ {/notes} }
73
78
This method makes a synchronous HTTP request by default. To make an
74
79
asynchronous HTTP request, please pass async_req=True
80
+
75
81
{ {#sortParamsByRequiredFlag} }
76
82
>>> thread = api.{ {operationId} }_with_http_info({ {#allParams} }{ {#required} }{ {paramName} }, { {/required} }{ {/allParams} }async_req=True)
77
83
{ {/sortParamsByRequiredFlag} }
@@ -80,22 +86,27 @@ class {{classname}}(object):
80
86
{ {/sortParamsByRequiredFlag} }
81
87
>>> result = thread.get()
82
88
83
- :param async_req bool: execute request asynchronously
84
89
{ {#allParams} }
85
- :param { {dataType} } { {paramName} }:{ {#description} } { {{description} }}{ {/description} }{ {#required} } (required){ {/required} }{ {#optional} }(optional{ {#defaultValue} }, default to { {{.} }}{ {/defaultValue} }){ {/optional} }
90
+ :param { {paramName} }:{ {#description} } { {{description} }}{ {/description} }{ {#required} } (required){ {/required} }{ {#optional} }(optional){ {/optional} }
91
+ :type { {paramName} }: { {dataType} }{ {#optional} }, optional{ {/optional} }
86
92
{ {/allParams} }
93
+ :param async_req: Whether to execute the request asynchronously.
94
+ :type async_req: bool, optional
87
95
:param _return_http_data_only: response data without head status code
88
96
and headers
97
+ :type _return_http_data_only: bool, optional
89
98
:param _preload_content: if False, the urllib3.HTTPResponse object will
90
99
be returned without reading/decoding response
91
100
data. Default is True.
101
+ :type _preload_content: bool, optional
92
102
:param _request_timeout: timeout setting for this request. If one
93
103
number provided, it will be total request
94
104
timeout. It can also be a pair (tuple) of
95
105
(connection, read) timeouts.
96
- :return: { {#returnType } }tuple( { {returnType } }, status_code(int), headers(HTTPHeaderDict)) { {/returnType } } { {^returnType } }None { {/returnType } }
106
+ :return: Returns the result object.
97
107
If the method is called asynchronously,
98
108
returns the request thread.
109
+ :rtype: { {#returnType} }tuple({ {returnType} }, status_code(int), headers(HTTPHeaderDict)){ {/returnType} }{ {^returnType} }None{ {/returnType} }
99
110
"""
100
111
101
112
{ {#servers.0} }
0 commit comments