rxfoundry.clients.swifty-receiver-api 0.1.1034__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rxfoundry/__init__.py +0 -0
- rxfoundry/clients/__init__.py +0 -0
- rxfoundry/clients/swifty_receiver_api/__init__.py +38 -0
- rxfoundry/clients/swifty_receiver_api/api/__init__.py +6 -0
- rxfoundry/clients/swifty_receiver_api/api/async_api.py +312 -0
- rxfoundry/clients/swifty_receiver_api/api/version_api.py +282 -0
- rxfoundry/clients/swifty_receiver_api/api_client.py +798 -0
- rxfoundry/clients/swifty_receiver_api/api_response.py +21 -0
- rxfoundry/clients/swifty_receiver_api/configuration.py +583 -0
- rxfoundry/clients/swifty_receiver_api/exceptions.py +217 -0
- rxfoundry/clients/swifty_receiver_api/models/__init__.py +20 -0
- rxfoundry/clients/swifty_receiver_api/models/asynchronous_response.py +92 -0
- rxfoundry/clients/swifty_receiver_api/models/message.py +106 -0
- rxfoundry/clients/swifty_receiver_api/models/version.py +88 -0
- rxfoundry/clients/swifty_receiver_api/py.typed +0 -0
- rxfoundry/clients/swifty_receiver_api/rest.py +259 -0
- rxfoundry_clients_swifty_receiver_api-0.1.1034.dist-info/METADATA +23 -0
- rxfoundry_clients_swifty_receiver_api-0.1.1034.dist-info/RECORD +20 -0
- rxfoundry_clients_swifty_receiver_api-0.1.1034.dist-info/WHEEL +5 -0
- rxfoundry_clients_swifty_receiver_api-0.1.1034.dist-info/top_level.txt +1 -0
rxfoundry/__init__.py
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Swifty Receiver API
|
|
7
|
+
|
|
8
|
+
API for the Swifty Receiver
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 0.1.DEV-0
|
|
11
|
+
Contact: paul.tindall@rxfoundry.com
|
|
12
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
|
+
|
|
14
|
+
Do not edit the class manually.
|
|
15
|
+
""" # noqa: E501
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__version__ = "1.0.0"
|
|
19
|
+
|
|
20
|
+
# import apis into sdk package
|
|
21
|
+
from rxfoundry.clients.swifty_receiver_api.api.async_api import AsyncApi
|
|
22
|
+
from rxfoundry.clients.swifty_receiver_api.api.version_api import VersionApi
|
|
23
|
+
|
|
24
|
+
# import ApiClient
|
|
25
|
+
from rxfoundry.clients.swifty_receiver_api.api_response import ApiResponse
|
|
26
|
+
from rxfoundry.clients.swifty_receiver_api.api_client import ApiClient
|
|
27
|
+
from rxfoundry.clients.swifty_receiver_api.configuration import Configuration
|
|
28
|
+
from rxfoundry.clients.swifty_receiver_api.exceptions import OpenApiException
|
|
29
|
+
from rxfoundry.clients.swifty_receiver_api.exceptions import ApiTypeError
|
|
30
|
+
from rxfoundry.clients.swifty_receiver_api.exceptions import ApiValueError
|
|
31
|
+
from rxfoundry.clients.swifty_receiver_api.exceptions import ApiKeyError
|
|
32
|
+
from rxfoundry.clients.swifty_receiver_api.exceptions import ApiAttributeError
|
|
33
|
+
from rxfoundry.clients.swifty_receiver_api.exceptions import ApiException
|
|
34
|
+
|
|
35
|
+
# import models into sdk package
|
|
36
|
+
from rxfoundry.clients.swifty_receiver_api.models.asynchronous_response import AsynchronousResponse
|
|
37
|
+
from rxfoundry.clients.swifty_receiver_api.models.message import Message
|
|
38
|
+
from rxfoundry.clients.swifty_receiver_api.models.version import Version
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Swifty Receiver API
|
|
5
|
+
|
|
6
|
+
API for the Swifty Receiver
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.DEV-0
|
|
9
|
+
Contact: paul.tindall@rxfoundry.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from rxfoundry.clients.swifty_receiver_api.models.asynchronous_response import AsynchronousResponse
|
|
21
|
+
from rxfoundry.clients.swifty_receiver_api.models.message import Message
|
|
22
|
+
|
|
23
|
+
from rxfoundry.clients.swifty_receiver_api.api_client import ApiClient, RequestSerialized
|
|
24
|
+
from rxfoundry.clients.swifty_receiver_api.api_response import ApiResponse
|
|
25
|
+
from rxfoundry.clients.swifty_receiver_api.rest import RESTResponseType
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AsyncApi:
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None) -> None:
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient.get_default()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@validate_call
|
|
42
|
+
def create_message(
|
|
43
|
+
self,
|
|
44
|
+
message: Message,
|
|
45
|
+
_request_timeout: Union[
|
|
46
|
+
None,
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
48
|
+
Tuple[
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
51
|
+
]
|
|
52
|
+
] = None,
|
|
53
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
54
|
+
_content_type: Optional[StrictStr] = None,
|
|
55
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
56
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
57
|
+
) -> AsynchronousResponse:
|
|
58
|
+
"""Post a new message asynchronously
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
:param message: (required)
|
|
62
|
+
:type message: Message
|
|
63
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
64
|
+
number provided, it will be total request
|
|
65
|
+
timeout. It can also be a pair (tuple) of
|
|
66
|
+
(connection, read) timeouts.
|
|
67
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
68
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
69
|
+
request; this effectively ignores the
|
|
70
|
+
authentication in the spec for a single request.
|
|
71
|
+
:type _request_auth: dict, optional
|
|
72
|
+
:param _content_type: force content-type for the request.
|
|
73
|
+
:type _content_type: str, Optional
|
|
74
|
+
:param _headers: set to override the headers for a single
|
|
75
|
+
request; this effectively ignores the headers
|
|
76
|
+
in the spec for a single request.
|
|
77
|
+
:type _headers: dict, optional
|
|
78
|
+
:param _host_index: set to override the host_index for a single
|
|
79
|
+
request; this effectively ignores the host_index
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _host_index: int, optional
|
|
82
|
+
:return: Returns the result object.
|
|
83
|
+
""" # noqa: E501
|
|
84
|
+
|
|
85
|
+
_param = self._create_message_serialize(
|
|
86
|
+
message=message,
|
|
87
|
+
_request_auth=_request_auth,
|
|
88
|
+
_content_type=_content_type,
|
|
89
|
+
_headers=_headers,
|
|
90
|
+
_host_index=_host_index
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
+
'201': "AsynchronousResponse",
|
|
95
|
+
'400': None,
|
|
96
|
+
}
|
|
97
|
+
response_data = self.api_client.call_api(
|
|
98
|
+
*_param,
|
|
99
|
+
_request_timeout=_request_timeout
|
|
100
|
+
)
|
|
101
|
+
response_data.read()
|
|
102
|
+
return self.api_client.response_deserialize(
|
|
103
|
+
response_data=response_data,
|
|
104
|
+
response_types_map=_response_types_map,
|
|
105
|
+
).data
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
@validate_call
|
|
109
|
+
def create_message_with_http_info(
|
|
110
|
+
self,
|
|
111
|
+
message: Message,
|
|
112
|
+
_request_timeout: Union[
|
|
113
|
+
None,
|
|
114
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
115
|
+
Tuple[
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
118
|
+
]
|
|
119
|
+
] = None,
|
|
120
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
121
|
+
_content_type: Optional[StrictStr] = None,
|
|
122
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
124
|
+
) -> ApiResponse[AsynchronousResponse]:
|
|
125
|
+
"""Post a new message asynchronously
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param message: (required)
|
|
129
|
+
:type message: Message
|
|
130
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
131
|
+
number provided, it will be total request
|
|
132
|
+
timeout. It can also be a pair (tuple) of
|
|
133
|
+
(connection, read) timeouts.
|
|
134
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
135
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
136
|
+
request; this effectively ignores the
|
|
137
|
+
authentication in the spec for a single request.
|
|
138
|
+
:type _request_auth: dict, optional
|
|
139
|
+
:param _content_type: force content-type for the request.
|
|
140
|
+
:type _content_type: str, Optional
|
|
141
|
+
:param _headers: set to override the headers for a single
|
|
142
|
+
request; this effectively ignores the headers
|
|
143
|
+
in the spec for a single request.
|
|
144
|
+
:type _headers: dict, optional
|
|
145
|
+
:param _host_index: set to override the host_index for a single
|
|
146
|
+
request; this effectively ignores the host_index
|
|
147
|
+
in the spec for a single request.
|
|
148
|
+
:type _host_index: int, optional
|
|
149
|
+
:return: Returns the result object.
|
|
150
|
+
""" # noqa: E501
|
|
151
|
+
|
|
152
|
+
_param = self._create_message_serialize(
|
|
153
|
+
message=message,
|
|
154
|
+
_request_auth=_request_auth,
|
|
155
|
+
_content_type=_content_type,
|
|
156
|
+
_headers=_headers,
|
|
157
|
+
_host_index=_host_index
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
161
|
+
'201': "AsynchronousResponse",
|
|
162
|
+
'400': None,
|
|
163
|
+
}
|
|
164
|
+
response_data = self.api_client.call_api(
|
|
165
|
+
*_param,
|
|
166
|
+
_request_timeout=_request_timeout
|
|
167
|
+
)
|
|
168
|
+
response_data.read()
|
|
169
|
+
return self.api_client.response_deserialize(
|
|
170
|
+
response_data=response_data,
|
|
171
|
+
response_types_map=_response_types_map,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
@validate_call
|
|
176
|
+
def create_message_without_preload_content(
|
|
177
|
+
self,
|
|
178
|
+
message: Message,
|
|
179
|
+
_request_timeout: Union[
|
|
180
|
+
None,
|
|
181
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
182
|
+
Tuple[
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
185
|
+
]
|
|
186
|
+
] = None,
|
|
187
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
188
|
+
_content_type: Optional[StrictStr] = None,
|
|
189
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
190
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
191
|
+
) -> RESTResponseType:
|
|
192
|
+
"""Post a new message asynchronously
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:param message: (required)
|
|
196
|
+
:type message: Message
|
|
197
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
198
|
+
number provided, it will be total request
|
|
199
|
+
timeout. It can also be a pair (tuple) of
|
|
200
|
+
(connection, read) timeouts.
|
|
201
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
202
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
203
|
+
request; this effectively ignores the
|
|
204
|
+
authentication in the spec for a single request.
|
|
205
|
+
:type _request_auth: dict, optional
|
|
206
|
+
:param _content_type: force content-type for the request.
|
|
207
|
+
:type _content_type: str, Optional
|
|
208
|
+
:param _headers: set to override the headers for a single
|
|
209
|
+
request; this effectively ignores the headers
|
|
210
|
+
in the spec for a single request.
|
|
211
|
+
:type _headers: dict, optional
|
|
212
|
+
:param _host_index: set to override the host_index for a single
|
|
213
|
+
request; this effectively ignores the host_index
|
|
214
|
+
in the spec for a single request.
|
|
215
|
+
:type _host_index: int, optional
|
|
216
|
+
:return: Returns the result object.
|
|
217
|
+
""" # noqa: E501
|
|
218
|
+
|
|
219
|
+
_param = self._create_message_serialize(
|
|
220
|
+
message=message,
|
|
221
|
+
_request_auth=_request_auth,
|
|
222
|
+
_content_type=_content_type,
|
|
223
|
+
_headers=_headers,
|
|
224
|
+
_host_index=_host_index
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
228
|
+
'201': "AsynchronousResponse",
|
|
229
|
+
'400': None,
|
|
230
|
+
}
|
|
231
|
+
response_data = self.api_client.call_api(
|
|
232
|
+
*_param,
|
|
233
|
+
_request_timeout=_request_timeout
|
|
234
|
+
)
|
|
235
|
+
return response_data.response
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
def _create_message_serialize(
|
|
239
|
+
self,
|
|
240
|
+
message,
|
|
241
|
+
_request_auth,
|
|
242
|
+
_content_type,
|
|
243
|
+
_headers,
|
|
244
|
+
_host_index,
|
|
245
|
+
) -> RequestSerialized:
|
|
246
|
+
|
|
247
|
+
_host = None
|
|
248
|
+
|
|
249
|
+
_collection_formats: Dict[str, str] = {
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
_path_params: Dict[str, str] = {}
|
|
253
|
+
_query_params: List[Tuple[str, str]] = []
|
|
254
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
255
|
+
_form_params: List[Tuple[str, str]] = []
|
|
256
|
+
_files: Dict[
|
|
257
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
258
|
+
] = {}
|
|
259
|
+
_body_params: Optional[bytes] = None
|
|
260
|
+
|
|
261
|
+
# process the path parameters
|
|
262
|
+
# process the query parameters
|
|
263
|
+
# process the header parameters
|
|
264
|
+
# process the form parameters
|
|
265
|
+
# process the body parameter
|
|
266
|
+
if message is not None:
|
|
267
|
+
_body_params = message
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
# set the HTTP header `Accept`
|
|
271
|
+
if 'Accept' not in _header_params:
|
|
272
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
273
|
+
[
|
|
274
|
+
'application/json'
|
|
275
|
+
]
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
# set the HTTP header `Content-Type`
|
|
279
|
+
if _content_type:
|
|
280
|
+
_header_params['Content-Type'] = _content_type
|
|
281
|
+
else:
|
|
282
|
+
_default_content_type = (
|
|
283
|
+
self.api_client.select_header_content_type(
|
|
284
|
+
[
|
|
285
|
+
'application/json'
|
|
286
|
+
]
|
|
287
|
+
)
|
|
288
|
+
)
|
|
289
|
+
if _default_content_type is not None:
|
|
290
|
+
_header_params['Content-Type'] = _default_content_type
|
|
291
|
+
|
|
292
|
+
# authentication setting
|
|
293
|
+
_auth_settings: List[str] = [
|
|
294
|
+
'opaque_token'
|
|
295
|
+
]
|
|
296
|
+
|
|
297
|
+
return self.api_client.param_serialize(
|
|
298
|
+
method='POST',
|
|
299
|
+
resource_path='/receiver/1/async/message',
|
|
300
|
+
path_params=_path_params,
|
|
301
|
+
query_params=_query_params,
|
|
302
|
+
header_params=_header_params,
|
|
303
|
+
body=_body_params,
|
|
304
|
+
post_params=_form_params,
|
|
305
|
+
files=_files,
|
|
306
|
+
auth_settings=_auth_settings,
|
|
307
|
+
collection_formats=_collection_formats,
|
|
308
|
+
_host=_host,
|
|
309
|
+
_request_auth=_request_auth
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Swifty Receiver API
|
|
5
|
+
|
|
6
|
+
API for the Swifty Receiver
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.DEV-0
|
|
9
|
+
Contact: paul.tindall@rxfoundry.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from rxfoundry.clients.swifty_receiver_api.models.version import Version
|
|
21
|
+
|
|
22
|
+
from rxfoundry.clients.swifty_receiver_api.api_client import ApiClient, RequestSerialized
|
|
23
|
+
from rxfoundry.clients.swifty_receiver_api.api_response import ApiResponse
|
|
24
|
+
from rxfoundry.clients.swifty_receiver_api.rest import RESTResponseType
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class VersionApi:
|
|
28
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
|
+
Ref: https://openapi-generator.tech
|
|
30
|
+
|
|
31
|
+
Do not edit the class manually.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, api_client=None) -> None:
|
|
35
|
+
if api_client is None:
|
|
36
|
+
api_client = ApiClient.get_default()
|
|
37
|
+
self.api_client = api_client
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@validate_call
|
|
41
|
+
def get_version(
|
|
42
|
+
self,
|
|
43
|
+
_request_timeout: Union[
|
|
44
|
+
None,
|
|
45
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
46
|
+
Tuple[
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
49
|
+
]
|
|
50
|
+
] = None,
|
|
51
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
52
|
+
_content_type: Optional[StrictStr] = None,
|
|
53
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
54
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
55
|
+
) -> Version:
|
|
56
|
+
"""Get the api version
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
60
|
+
number provided, it will be total request
|
|
61
|
+
timeout. It can also be a pair (tuple) of
|
|
62
|
+
(connection, read) timeouts.
|
|
63
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
64
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
65
|
+
request; this effectively ignores the
|
|
66
|
+
authentication in the spec for a single request.
|
|
67
|
+
:type _request_auth: dict, optional
|
|
68
|
+
:param _content_type: force content-type for the request.
|
|
69
|
+
:type _content_type: str, Optional
|
|
70
|
+
:param _headers: set to override the headers for a single
|
|
71
|
+
request; this effectively ignores the headers
|
|
72
|
+
in the spec for a single request.
|
|
73
|
+
:type _headers: dict, optional
|
|
74
|
+
:param _host_index: set to override the host_index for a single
|
|
75
|
+
request; this effectively ignores the host_index
|
|
76
|
+
in the spec for a single request.
|
|
77
|
+
:type _host_index: int, optional
|
|
78
|
+
:return: Returns the result object.
|
|
79
|
+
""" # noqa: E501
|
|
80
|
+
|
|
81
|
+
_param = self._get_version_serialize(
|
|
82
|
+
_request_auth=_request_auth,
|
|
83
|
+
_content_type=_content_type,
|
|
84
|
+
_headers=_headers,
|
|
85
|
+
_host_index=_host_index
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
89
|
+
'200': "Version",
|
|
90
|
+
'404': None,
|
|
91
|
+
}
|
|
92
|
+
response_data = self.api_client.call_api(
|
|
93
|
+
*_param,
|
|
94
|
+
_request_timeout=_request_timeout
|
|
95
|
+
)
|
|
96
|
+
response_data.read()
|
|
97
|
+
return self.api_client.response_deserialize(
|
|
98
|
+
response_data=response_data,
|
|
99
|
+
response_types_map=_response_types_map,
|
|
100
|
+
).data
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
@validate_call
|
|
104
|
+
def get_version_with_http_info(
|
|
105
|
+
self,
|
|
106
|
+
_request_timeout: Union[
|
|
107
|
+
None,
|
|
108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
109
|
+
Tuple[
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
111
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
112
|
+
]
|
|
113
|
+
] = None,
|
|
114
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
115
|
+
_content_type: Optional[StrictStr] = None,
|
|
116
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
|
+
) -> ApiResponse[Version]:
|
|
119
|
+
"""Get the api version
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
123
|
+
number provided, it will be total request
|
|
124
|
+
timeout. It can also be a pair (tuple) of
|
|
125
|
+
(connection, read) timeouts.
|
|
126
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
127
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
128
|
+
request; this effectively ignores the
|
|
129
|
+
authentication in the spec for a single request.
|
|
130
|
+
:type _request_auth: dict, optional
|
|
131
|
+
:param _content_type: force content-type for the request.
|
|
132
|
+
:type _content_type: str, Optional
|
|
133
|
+
:param _headers: set to override the headers for a single
|
|
134
|
+
request; this effectively ignores the headers
|
|
135
|
+
in the spec for a single request.
|
|
136
|
+
:type _headers: dict, optional
|
|
137
|
+
:param _host_index: set to override the host_index for a single
|
|
138
|
+
request; this effectively ignores the host_index
|
|
139
|
+
in the spec for a single request.
|
|
140
|
+
:type _host_index: int, optional
|
|
141
|
+
:return: Returns the result object.
|
|
142
|
+
""" # noqa: E501
|
|
143
|
+
|
|
144
|
+
_param = self._get_version_serialize(
|
|
145
|
+
_request_auth=_request_auth,
|
|
146
|
+
_content_type=_content_type,
|
|
147
|
+
_headers=_headers,
|
|
148
|
+
_host_index=_host_index
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
152
|
+
'200': "Version",
|
|
153
|
+
'404': None,
|
|
154
|
+
}
|
|
155
|
+
response_data = self.api_client.call_api(
|
|
156
|
+
*_param,
|
|
157
|
+
_request_timeout=_request_timeout
|
|
158
|
+
)
|
|
159
|
+
response_data.read()
|
|
160
|
+
return self.api_client.response_deserialize(
|
|
161
|
+
response_data=response_data,
|
|
162
|
+
response_types_map=_response_types_map,
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
@validate_call
|
|
167
|
+
def get_version_without_preload_content(
|
|
168
|
+
self,
|
|
169
|
+
_request_timeout: Union[
|
|
170
|
+
None,
|
|
171
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
172
|
+
Tuple[
|
|
173
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
174
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
175
|
+
]
|
|
176
|
+
] = None,
|
|
177
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
178
|
+
_content_type: Optional[StrictStr] = None,
|
|
179
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
180
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
181
|
+
) -> RESTResponseType:
|
|
182
|
+
"""Get the api version
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
186
|
+
number provided, it will be total request
|
|
187
|
+
timeout. It can also be a pair (tuple) of
|
|
188
|
+
(connection, read) timeouts.
|
|
189
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
190
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
191
|
+
request; this effectively ignores the
|
|
192
|
+
authentication in the spec for a single request.
|
|
193
|
+
:type _request_auth: dict, optional
|
|
194
|
+
:param _content_type: force content-type for the request.
|
|
195
|
+
:type _content_type: str, Optional
|
|
196
|
+
:param _headers: set to override the headers for a single
|
|
197
|
+
request; this effectively ignores the headers
|
|
198
|
+
in the spec for a single request.
|
|
199
|
+
:type _headers: dict, optional
|
|
200
|
+
:param _host_index: set to override the host_index for a single
|
|
201
|
+
request; this effectively ignores the host_index
|
|
202
|
+
in the spec for a single request.
|
|
203
|
+
:type _host_index: int, optional
|
|
204
|
+
:return: Returns the result object.
|
|
205
|
+
""" # noqa: E501
|
|
206
|
+
|
|
207
|
+
_param = self._get_version_serialize(
|
|
208
|
+
_request_auth=_request_auth,
|
|
209
|
+
_content_type=_content_type,
|
|
210
|
+
_headers=_headers,
|
|
211
|
+
_host_index=_host_index
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
215
|
+
'200': "Version",
|
|
216
|
+
'404': None,
|
|
217
|
+
}
|
|
218
|
+
response_data = self.api_client.call_api(
|
|
219
|
+
*_param,
|
|
220
|
+
_request_timeout=_request_timeout
|
|
221
|
+
)
|
|
222
|
+
return response_data.response
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
def _get_version_serialize(
|
|
226
|
+
self,
|
|
227
|
+
_request_auth,
|
|
228
|
+
_content_type,
|
|
229
|
+
_headers,
|
|
230
|
+
_host_index,
|
|
231
|
+
) -> RequestSerialized:
|
|
232
|
+
|
|
233
|
+
_host = None
|
|
234
|
+
|
|
235
|
+
_collection_formats: Dict[str, str] = {
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
_path_params: Dict[str, str] = {}
|
|
239
|
+
_query_params: List[Tuple[str, str]] = []
|
|
240
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
241
|
+
_form_params: List[Tuple[str, str]] = []
|
|
242
|
+
_files: Dict[
|
|
243
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
244
|
+
] = {}
|
|
245
|
+
_body_params: Optional[bytes] = None
|
|
246
|
+
|
|
247
|
+
# process the path parameters
|
|
248
|
+
# process the query parameters
|
|
249
|
+
# process the header parameters
|
|
250
|
+
# process the form parameters
|
|
251
|
+
# process the body parameter
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
# set the HTTP header `Accept`
|
|
255
|
+
if 'Accept' not in _header_params:
|
|
256
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
257
|
+
[
|
|
258
|
+
'application/json'
|
|
259
|
+
]
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
# authentication setting
|
|
264
|
+
_auth_settings: List[str] = [
|
|
265
|
+
]
|
|
266
|
+
|
|
267
|
+
return self.api_client.param_serialize(
|
|
268
|
+
method='GET',
|
|
269
|
+
resource_path='/receiver/1/version',
|
|
270
|
+
path_params=_path_params,
|
|
271
|
+
query_params=_query_params,
|
|
272
|
+
header_params=_header_params,
|
|
273
|
+
body=_body_params,
|
|
274
|
+
post_params=_form_params,
|
|
275
|
+
files=_files,
|
|
276
|
+
auth_settings=_auth_settings,
|
|
277
|
+
collection_formats=_collection_formats,
|
|
278
|
+
_host=_host,
|
|
279
|
+
_request_auth=_request_auth
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
|