neurograph-core 1.202508112256__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.
- neurograph/__init__.py +0 -0
- neurograph/v1/__init__.py +227 -0
- neurograph/v1/api/__init__.py +15 -0
- neurograph/v1/api/atlas_api.py +588 -0
- neurograph/v1/api/authentication_api.py +830 -0
- neurograph/v1/api/client_api.py +1684 -0
- neurograph/v1/api/client_metadata_api.py +871 -0
- neurograph/v1/api/lookup_api.py +1049 -0
- neurograph/v1/api/organization_api.py +1975 -0
- neurograph/v1/api/organization_metadata_api.py +872 -0
- neurograph/v1/api/persona_api.py +1920 -0
- neurograph/v1/api/system_api.py +293 -0
- neurograph/v1/api/tasks_api.py +285 -0
- neurograph/v1/api/workbench_api.py +857 -0
- neurograph/v1/api_client.py +801 -0
- neurograph/v1/api_response.py +21 -0
- neurograph/v1/configuration.py +612 -0
- neurograph/v1/exceptions.py +216 -0
- neurograph/v1/models/__init__.py +96 -0
- neurograph/v1/models/atlas_atlas_version.py +99 -0
- neurograph/v1/models/atlas_atlas_version_many_response.py +97 -0
- neurograph/v1/models/atlas_atlas_version_response.py +101 -0
- neurograph/v1/models/atlas_atlas_version_upsert_request.py +95 -0
- neurograph/v1/models/auth_service_token_request.py +87 -0
- neurograph/v1/models/auth_test_service_token_response.py +89 -0
- neurograph/v1/models/auth_test_token_response.py +87 -0
- neurograph/v1/models/client_client.py +109 -0
- neurograph/v1/models/client_client_creat_response.py +111 -0
- neurograph/v1/models/client_client_create_request.py +95 -0
- neurograph/v1/models/client_client_get_detail_response.py +93 -0
- neurograph/v1/models/client_client_get_many_response.py +105 -0
- neurograph/v1/models/client_client_metadata_request.py +89 -0
- neurograph/v1/models/client_client_metadata_response.py +97 -0
- neurograph/v1/models/client_client_personas_response.py +99 -0
- neurograph/v1/models/client_client_url_upsert_request.py +99 -0
- neurograph/v1/models/client_client_url_upsert_response.py +101 -0
- neurograph/v1/models/client_client_urls_response.py +101 -0
- neurograph/v1/models/client_delete_metadata_request.py +87 -0
- neurograph/v1/models/client_kpi.py +93 -0
- neurograph/v1/models/client_metadata.py +93 -0
- neurograph/v1/models/client_persona.py +171 -0
- neurograph/v1/models/client_persona_factor.py +99 -0
- neurograph/v1/models/client_persona_insight.py +93 -0
- neurograph/v1/models/client_persona_personality_trait.py +93 -0
- neurograph/v1/models/client_query.py +93 -0
- neurograph/v1/models/db_client_url.py +99 -0
- neurograph/v1/models/db_persona_factor_create_params.py +97 -0
- neurograph/v1/models/lookup_language.py +97 -0
- neurograph/v1/models/lookup_lookup_language_response.py +97 -0
- neurograph/v1/models/lookup_lookup_state_response.py +97 -0
- neurograph/v1/models/lookup_state.py +91 -0
- neurograph/v1/models/lookup_state_response.py +93 -0
- neurograph/v1/models/organizations_atlas_config.py +97 -0
- neurograph/v1/models/organizations_brand_detail_response.py +109 -0
- neurograph/v1/models/organizations_brand_upsert_request.py +107 -0
- neurograph/v1/models/organizations_delete_metadata_request.py +87 -0
- neurograph/v1/models/organizations_delete_metadata_response.py +97 -0
- neurograph/v1/models/organizations_metadata.py +93 -0
- neurograph/v1/models/organizations_organization.py +103 -0
- neurograph/v1/models/organizations_organization_brand.py +107 -0
- neurograph/v1/models/organizations_organization_create_request.py +97 -0
- neurograph/v1/models/organizations_organization_detail_response.py +123 -0
- neurograph/v1/models/organizations_organization_get_many_response.py +103 -0
- neurograph/v1/models/organizations_organization_metadata_request.py +89 -0
- neurograph/v1/models/organizations_organization_metadata_response.py +97 -0
- neurograph/v1/models/organizations_organization_set_atlas_request.py +93 -0
- neurograph/v1/models/organizations_organization_set_atlas_response.py +99 -0
- neurograph/v1/models/organizations_organization_set_workbench_request.py +93 -0
- neurograph/v1/models/organizations_organization_set_workbench_response.py +99 -0
- neurograph/v1/models/organizations_organization_update_request.py +99 -0
- neurograph/v1/models/organizations_workbench_config.py +97 -0
- neurograph/v1/models/personas_match_criteria_row.py +97 -0
- neurograph/v1/models/personas_match_criteria_row_in.py +93 -0
- neurograph/v1/models/personas_persona_factor.py +101 -0
- neurograph/v1/models/personas_persona_factor_create_request.py +95 -0
- neurograph/v1/models/personas_persona_factor_create_response.py +97 -0
- neurograph/v1/models/personas_persona_insight_create_request.py +91 -0
- neurograph/v1/models/personas_persona_insight_create_response.py +95 -0
- neurograph/v1/models/personas_persona_instance_create_request.py +123 -0
- neurograph/v1/models/personas_persona_instance_create_response.py +127 -0
- neurograph/v1/models/personas_persona_kpi_create_request.py +95 -0
- neurograph/v1/models/personas_persona_kpi_create_response.py +97 -0
- neurograph/v1/models/personas_persona_kpi_req.py +91 -0
- neurograph/v1/models/personas_persona_kpi_resp.py +95 -0
- neurograph/v1/models/personas_persona_match_criteria_request.py +95 -0
- neurograph/v1/models/personas_persona_match_criteria_response.py +97 -0
- neurograph/v1/models/personas_persona_seed_create_request.py +89 -0
- neurograph/v1/models/personas_persona_seed_create_response.py +97 -0
- neurograph/v1/models/personas_persona_trait_create_request.py +95 -0
- neurograph/v1/models/personas_persona_trait_create_response.py +97 -0
- neurograph/v1/models/personas_personality_trait_in.py +91 -0
- neurograph/v1/models/personas_personality_trait_out.py +95 -0
- neurograph/v1/models/tasks_sync_from_firebase_result.py +87 -0
- neurograph/v1/models/workbench_workbench_url_check_request.py +87 -0
- neurograph/v1/models/workbench_workbench_url_check_response.py +111 -0
- neurograph/v1/models/workbench_workbench_version.py +99 -0
- neurograph/v1/models/workbench_workbench_version_many_response.py +97 -0
- neurograph/v1/models/workbench_workbench_version_response.py +101 -0
- neurograph/v1/models/workbench_workbench_version_upsert_request.py +95 -0
- neurograph/v1/py.typed +0 -0
- neurograph/v1/rest.py +258 -0
- neurograph_core-1.202508112256.dist-info/METADATA +62 -0
- neurograph_core-1.202508112256.dist-info/RECORD +105 -0
- neurograph_core-1.202508112256.dist-info/WHEEL +5 -0
- neurograph_core-1.202508112256.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neurograph Core
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from neurograph.v1.models.auth_service_token_request import AuthServiceTokenRequest
|
|
22
|
+
from neurograph.v1.models.auth_test_service_token_response import AuthTestServiceTokenResponse
|
|
23
|
+
from neurograph.v1.models.auth_test_token_response import AuthTestTokenResponse
|
|
24
|
+
|
|
25
|
+
from neurograph.v1.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from neurograph.v1.api_response import ApiResponse
|
|
27
|
+
from neurograph.v1.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class AuthenticationApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def api_v1_auth_service_check_token_post(
|
|
45
|
+
self,
|
|
46
|
+
_request_timeout: Union[
|
|
47
|
+
None,
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Tuple[
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
52
|
+
]
|
|
53
|
+
] = None,
|
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
+
) -> AuthTestServiceTokenResponse:
|
|
59
|
+
"""Test a Firebase auth token
|
|
60
|
+
|
|
61
|
+
Test a Firebase auth token. Please include the token on the `Authorization` header. eg., `Bearer <token>`
|
|
62
|
+
|
|
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._api_v1_auth_service_check_token_post_serialize(
|
|
86
|
+
_request_auth=_request_auth,
|
|
87
|
+
_content_type=_content_type,
|
|
88
|
+
_headers=_headers,
|
|
89
|
+
_host_index=_host_index
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
93
|
+
'200': "AuthTestServiceTokenResponse",
|
|
94
|
+
'400': "AuthTestServiceTokenResponse",
|
|
95
|
+
'403': "AuthTestServiceTokenResponse",
|
|
96
|
+
'500': "AuthTestServiceTokenResponse",
|
|
97
|
+
}
|
|
98
|
+
response_data = self.api_client.call_api(
|
|
99
|
+
*_param,
|
|
100
|
+
_request_timeout=_request_timeout
|
|
101
|
+
)
|
|
102
|
+
response_data.read()
|
|
103
|
+
return self.api_client.response_deserialize(
|
|
104
|
+
response_data=response_data,
|
|
105
|
+
response_types_map=_response_types_map,
|
|
106
|
+
).data
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@validate_call
|
|
110
|
+
def api_v1_auth_service_check_token_post_with_http_info(
|
|
111
|
+
self,
|
|
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[AuthTestServiceTokenResponse]:
|
|
125
|
+
"""Test a Firebase auth token
|
|
126
|
+
|
|
127
|
+
Test a Firebase auth token. Please include the token on the `Authorization` header. eg., `Bearer <token>`
|
|
128
|
+
|
|
129
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
130
|
+
number provided, it will be total request
|
|
131
|
+
timeout. It can also be a pair (tuple) of
|
|
132
|
+
(connection, read) timeouts.
|
|
133
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
134
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
135
|
+
request; this effectively ignores the
|
|
136
|
+
authentication in the spec for a single request.
|
|
137
|
+
:type _request_auth: dict, optional
|
|
138
|
+
:param _content_type: force content-type for the request.
|
|
139
|
+
:type _content_type: str, Optional
|
|
140
|
+
:param _headers: set to override the headers for a single
|
|
141
|
+
request; this effectively ignores the headers
|
|
142
|
+
in the spec for a single request.
|
|
143
|
+
:type _headers: dict, optional
|
|
144
|
+
:param _host_index: set to override the host_index for a single
|
|
145
|
+
request; this effectively ignores the host_index
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _host_index: int, optional
|
|
148
|
+
:return: Returns the result object.
|
|
149
|
+
""" # noqa: E501
|
|
150
|
+
|
|
151
|
+
_param = self._api_v1_auth_service_check_token_post_serialize(
|
|
152
|
+
_request_auth=_request_auth,
|
|
153
|
+
_content_type=_content_type,
|
|
154
|
+
_headers=_headers,
|
|
155
|
+
_host_index=_host_index
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
159
|
+
'200': "AuthTestServiceTokenResponse",
|
|
160
|
+
'400': "AuthTestServiceTokenResponse",
|
|
161
|
+
'403': "AuthTestServiceTokenResponse",
|
|
162
|
+
'500': "AuthTestServiceTokenResponse",
|
|
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 api_v1_auth_service_check_token_post_without_preload_content(
|
|
177
|
+
self,
|
|
178
|
+
_request_timeout: Union[
|
|
179
|
+
None,
|
|
180
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
181
|
+
Tuple[
|
|
182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
184
|
+
]
|
|
185
|
+
] = None,
|
|
186
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
187
|
+
_content_type: Optional[StrictStr] = None,
|
|
188
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
189
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
190
|
+
) -> RESTResponseType:
|
|
191
|
+
"""Test a Firebase auth token
|
|
192
|
+
|
|
193
|
+
Test a Firebase auth token. Please include the token on the `Authorization` header. eg., `Bearer <token>`
|
|
194
|
+
|
|
195
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
196
|
+
number provided, it will be total request
|
|
197
|
+
timeout. It can also be a pair (tuple) of
|
|
198
|
+
(connection, read) timeouts.
|
|
199
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
200
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
201
|
+
request; this effectively ignores the
|
|
202
|
+
authentication in the spec for a single request.
|
|
203
|
+
:type _request_auth: dict, optional
|
|
204
|
+
:param _content_type: force content-type for the request.
|
|
205
|
+
:type _content_type: str, Optional
|
|
206
|
+
:param _headers: set to override the headers for a single
|
|
207
|
+
request; this effectively ignores the headers
|
|
208
|
+
in the spec for a single request.
|
|
209
|
+
:type _headers: dict, optional
|
|
210
|
+
:param _host_index: set to override the host_index for a single
|
|
211
|
+
request; this effectively ignores the host_index
|
|
212
|
+
in the spec for a single request.
|
|
213
|
+
:type _host_index: int, optional
|
|
214
|
+
:return: Returns the result object.
|
|
215
|
+
""" # noqa: E501
|
|
216
|
+
|
|
217
|
+
_param = self._api_v1_auth_service_check_token_post_serialize(
|
|
218
|
+
_request_auth=_request_auth,
|
|
219
|
+
_content_type=_content_type,
|
|
220
|
+
_headers=_headers,
|
|
221
|
+
_host_index=_host_index
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
225
|
+
'200': "AuthTestServiceTokenResponse",
|
|
226
|
+
'400': "AuthTestServiceTokenResponse",
|
|
227
|
+
'403': "AuthTestServiceTokenResponse",
|
|
228
|
+
'500': "AuthTestServiceTokenResponse",
|
|
229
|
+
}
|
|
230
|
+
response_data = self.api_client.call_api(
|
|
231
|
+
*_param,
|
|
232
|
+
_request_timeout=_request_timeout
|
|
233
|
+
)
|
|
234
|
+
return response_data.response
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def _api_v1_auth_service_check_token_post_serialize(
|
|
238
|
+
self,
|
|
239
|
+
_request_auth,
|
|
240
|
+
_content_type,
|
|
241
|
+
_headers,
|
|
242
|
+
_host_index,
|
|
243
|
+
) -> RequestSerialized:
|
|
244
|
+
|
|
245
|
+
_host = None
|
|
246
|
+
|
|
247
|
+
_collection_formats: Dict[str, str] = {
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
_path_params: Dict[str, str] = {}
|
|
251
|
+
_query_params: List[Tuple[str, str]] = []
|
|
252
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
253
|
+
_form_params: List[Tuple[str, str]] = []
|
|
254
|
+
_files: Dict[
|
|
255
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
256
|
+
] = {}
|
|
257
|
+
_body_params: Optional[bytes] = None
|
|
258
|
+
|
|
259
|
+
# process the path parameters
|
|
260
|
+
# process the query parameters
|
|
261
|
+
# process the header parameters
|
|
262
|
+
# process the form parameters
|
|
263
|
+
# process the body parameter
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
# set the HTTP header `Accept`
|
|
267
|
+
if 'Accept' not in _header_params:
|
|
268
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
269
|
+
[
|
|
270
|
+
'application/json'
|
|
271
|
+
]
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
# authentication setting
|
|
276
|
+
_auth_settings: List[str] = [
|
|
277
|
+
'TokenAuth'
|
|
278
|
+
]
|
|
279
|
+
|
|
280
|
+
return self.api_client.param_serialize(
|
|
281
|
+
method='POST',
|
|
282
|
+
resource_path='/api/v1/auth/service/check-token/',
|
|
283
|
+
path_params=_path_params,
|
|
284
|
+
query_params=_query_params,
|
|
285
|
+
header_params=_header_params,
|
|
286
|
+
body=_body_params,
|
|
287
|
+
post_params=_form_params,
|
|
288
|
+
files=_files,
|
|
289
|
+
auth_settings=_auth_settings,
|
|
290
|
+
collection_formats=_collection_formats,
|
|
291
|
+
_host=_host,
|
|
292
|
+
_request_auth=_request_auth
|
|
293
|
+
)
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
@validate_call
|
|
299
|
+
def api_v1_auth_service_create_token_post(
|
|
300
|
+
self,
|
|
301
|
+
request: Annotated[AuthServiceTokenRequest, Field(description="Body")],
|
|
302
|
+
_request_timeout: Union[
|
|
303
|
+
None,
|
|
304
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
305
|
+
Tuple[
|
|
306
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
307
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
308
|
+
]
|
|
309
|
+
] = None,
|
|
310
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
311
|
+
_content_type: Optional[StrictStr] = None,
|
|
312
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
313
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
314
|
+
) -> AuthTestTokenResponse:
|
|
315
|
+
"""Create a service token for the requesting user
|
|
316
|
+
|
|
317
|
+
A service token can be used on the `Authorization` header. eg., `Bearer <token>`.
|
|
318
|
+
|
|
319
|
+
:param request: Body (required)
|
|
320
|
+
:type request: AuthServiceTokenRequest
|
|
321
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
322
|
+
number provided, it will be total request
|
|
323
|
+
timeout. It can also be a pair (tuple) of
|
|
324
|
+
(connection, read) timeouts.
|
|
325
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
326
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
327
|
+
request; this effectively ignores the
|
|
328
|
+
authentication in the spec for a single request.
|
|
329
|
+
:type _request_auth: dict, optional
|
|
330
|
+
:param _content_type: force content-type for the request.
|
|
331
|
+
:type _content_type: str, Optional
|
|
332
|
+
:param _headers: set to override the headers for a single
|
|
333
|
+
request; this effectively ignores the headers
|
|
334
|
+
in the spec for a single request.
|
|
335
|
+
:type _headers: dict, optional
|
|
336
|
+
:param _host_index: set to override the host_index for a single
|
|
337
|
+
request; this effectively ignores the host_index
|
|
338
|
+
in the spec for a single request.
|
|
339
|
+
:type _host_index: int, optional
|
|
340
|
+
:return: Returns the result object.
|
|
341
|
+
""" # noqa: E501
|
|
342
|
+
|
|
343
|
+
_param = self._api_v1_auth_service_create_token_post_serialize(
|
|
344
|
+
request=request,
|
|
345
|
+
_request_auth=_request_auth,
|
|
346
|
+
_content_type=_content_type,
|
|
347
|
+
_headers=_headers,
|
|
348
|
+
_host_index=_host_index
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
352
|
+
'200': "AuthTestTokenResponse",
|
|
353
|
+
'400': "AuthTestTokenResponse",
|
|
354
|
+
'500': "AuthTestTokenResponse",
|
|
355
|
+
}
|
|
356
|
+
response_data = self.api_client.call_api(
|
|
357
|
+
*_param,
|
|
358
|
+
_request_timeout=_request_timeout
|
|
359
|
+
)
|
|
360
|
+
response_data.read()
|
|
361
|
+
return self.api_client.response_deserialize(
|
|
362
|
+
response_data=response_data,
|
|
363
|
+
response_types_map=_response_types_map,
|
|
364
|
+
).data
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
@validate_call
|
|
368
|
+
def api_v1_auth_service_create_token_post_with_http_info(
|
|
369
|
+
self,
|
|
370
|
+
request: Annotated[AuthServiceTokenRequest, Field(description="Body")],
|
|
371
|
+
_request_timeout: Union[
|
|
372
|
+
None,
|
|
373
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
374
|
+
Tuple[
|
|
375
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
376
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
377
|
+
]
|
|
378
|
+
] = None,
|
|
379
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
380
|
+
_content_type: Optional[StrictStr] = None,
|
|
381
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
382
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
383
|
+
) -> ApiResponse[AuthTestTokenResponse]:
|
|
384
|
+
"""Create a service token for the requesting user
|
|
385
|
+
|
|
386
|
+
A service token can be used on the `Authorization` header. eg., `Bearer <token>`.
|
|
387
|
+
|
|
388
|
+
:param request: Body (required)
|
|
389
|
+
:type request: AuthServiceTokenRequest
|
|
390
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
391
|
+
number provided, it will be total request
|
|
392
|
+
timeout. It can also be a pair (tuple) of
|
|
393
|
+
(connection, read) timeouts.
|
|
394
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
395
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
396
|
+
request; this effectively ignores the
|
|
397
|
+
authentication in the spec for a single request.
|
|
398
|
+
:type _request_auth: dict, optional
|
|
399
|
+
:param _content_type: force content-type for the request.
|
|
400
|
+
:type _content_type: str, Optional
|
|
401
|
+
:param _headers: set to override the headers for a single
|
|
402
|
+
request; this effectively ignores the headers
|
|
403
|
+
in the spec for a single request.
|
|
404
|
+
:type _headers: dict, optional
|
|
405
|
+
:param _host_index: set to override the host_index for a single
|
|
406
|
+
request; this effectively ignores the host_index
|
|
407
|
+
in the spec for a single request.
|
|
408
|
+
:type _host_index: int, optional
|
|
409
|
+
:return: Returns the result object.
|
|
410
|
+
""" # noqa: E501
|
|
411
|
+
|
|
412
|
+
_param = self._api_v1_auth_service_create_token_post_serialize(
|
|
413
|
+
request=request,
|
|
414
|
+
_request_auth=_request_auth,
|
|
415
|
+
_content_type=_content_type,
|
|
416
|
+
_headers=_headers,
|
|
417
|
+
_host_index=_host_index
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
421
|
+
'200': "AuthTestTokenResponse",
|
|
422
|
+
'400': "AuthTestTokenResponse",
|
|
423
|
+
'500': "AuthTestTokenResponse",
|
|
424
|
+
}
|
|
425
|
+
response_data = self.api_client.call_api(
|
|
426
|
+
*_param,
|
|
427
|
+
_request_timeout=_request_timeout
|
|
428
|
+
)
|
|
429
|
+
response_data.read()
|
|
430
|
+
return self.api_client.response_deserialize(
|
|
431
|
+
response_data=response_data,
|
|
432
|
+
response_types_map=_response_types_map,
|
|
433
|
+
)
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
@validate_call
|
|
437
|
+
def api_v1_auth_service_create_token_post_without_preload_content(
|
|
438
|
+
self,
|
|
439
|
+
request: Annotated[AuthServiceTokenRequest, Field(description="Body")],
|
|
440
|
+
_request_timeout: Union[
|
|
441
|
+
None,
|
|
442
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
443
|
+
Tuple[
|
|
444
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
445
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
446
|
+
]
|
|
447
|
+
] = None,
|
|
448
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
449
|
+
_content_type: Optional[StrictStr] = None,
|
|
450
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
451
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
452
|
+
) -> RESTResponseType:
|
|
453
|
+
"""Create a service token for the requesting user
|
|
454
|
+
|
|
455
|
+
A service token can be used on the `Authorization` header. eg., `Bearer <token>`.
|
|
456
|
+
|
|
457
|
+
:param request: Body (required)
|
|
458
|
+
:type request: AuthServiceTokenRequest
|
|
459
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
460
|
+
number provided, it will be total request
|
|
461
|
+
timeout. It can also be a pair (tuple) of
|
|
462
|
+
(connection, read) timeouts.
|
|
463
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
464
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
465
|
+
request; this effectively ignores the
|
|
466
|
+
authentication in the spec for a single request.
|
|
467
|
+
:type _request_auth: dict, optional
|
|
468
|
+
:param _content_type: force content-type for the request.
|
|
469
|
+
:type _content_type: str, Optional
|
|
470
|
+
:param _headers: set to override the headers for a single
|
|
471
|
+
request; this effectively ignores the headers
|
|
472
|
+
in the spec for a single request.
|
|
473
|
+
:type _headers: dict, optional
|
|
474
|
+
:param _host_index: set to override the host_index for a single
|
|
475
|
+
request; this effectively ignores the host_index
|
|
476
|
+
in the spec for a single request.
|
|
477
|
+
:type _host_index: int, optional
|
|
478
|
+
:return: Returns the result object.
|
|
479
|
+
""" # noqa: E501
|
|
480
|
+
|
|
481
|
+
_param = self._api_v1_auth_service_create_token_post_serialize(
|
|
482
|
+
request=request,
|
|
483
|
+
_request_auth=_request_auth,
|
|
484
|
+
_content_type=_content_type,
|
|
485
|
+
_headers=_headers,
|
|
486
|
+
_host_index=_host_index
|
|
487
|
+
)
|
|
488
|
+
|
|
489
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
490
|
+
'200': "AuthTestTokenResponse",
|
|
491
|
+
'400': "AuthTestTokenResponse",
|
|
492
|
+
'500': "AuthTestTokenResponse",
|
|
493
|
+
}
|
|
494
|
+
response_data = self.api_client.call_api(
|
|
495
|
+
*_param,
|
|
496
|
+
_request_timeout=_request_timeout
|
|
497
|
+
)
|
|
498
|
+
return response_data.response
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
def _api_v1_auth_service_create_token_post_serialize(
|
|
502
|
+
self,
|
|
503
|
+
request,
|
|
504
|
+
_request_auth,
|
|
505
|
+
_content_type,
|
|
506
|
+
_headers,
|
|
507
|
+
_host_index,
|
|
508
|
+
) -> RequestSerialized:
|
|
509
|
+
|
|
510
|
+
_host = None
|
|
511
|
+
|
|
512
|
+
_collection_formats: Dict[str, str] = {
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
_path_params: Dict[str, str] = {}
|
|
516
|
+
_query_params: List[Tuple[str, str]] = []
|
|
517
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
518
|
+
_form_params: List[Tuple[str, str]] = []
|
|
519
|
+
_files: Dict[
|
|
520
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
521
|
+
] = {}
|
|
522
|
+
_body_params: Optional[bytes] = None
|
|
523
|
+
|
|
524
|
+
# process the path parameters
|
|
525
|
+
# process the query parameters
|
|
526
|
+
# process the header parameters
|
|
527
|
+
# process the form parameters
|
|
528
|
+
# process the body parameter
|
|
529
|
+
if request is not None:
|
|
530
|
+
_body_params = request
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
# set the HTTP header `Accept`
|
|
534
|
+
if 'Accept' not in _header_params:
|
|
535
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
536
|
+
[
|
|
537
|
+
'application/json'
|
|
538
|
+
]
|
|
539
|
+
)
|
|
540
|
+
|
|
541
|
+
# set the HTTP header `Content-Type`
|
|
542
|
+
if _content_type:
|
|
543
|
+
_header_params['Content-Type'] = _content_type
|
|
544
|
+
else:
|
|
545
|
+
_default_content_type = (
|
|
546
|
+
self.api_client.select_header_content_type(
|
|
547
|
+
[
|
|
548
|
+
'application/json'
|
|
549
|
+
]
|
|
550
|
+
)
|
|
551
|
+
)
|
|
552
|
+
if _default_content_type is not None:
|
|
553
|
+
_header_params['Content-Type'] = _default_content_type
|
|
554
|
+
|
|
555
|
+
# authentication setting
|
|
556
|
+
_auth_settings: List[str] = [
|
|
557
|
+
'ApiKeyAuth'
|
|
558
|
+
]
|
|
559
|
+
|
|
560
|
+
return self.api_client.param_serialize(
|
|
561
|
+
method='POST',
|
|
562
|
+
resource_path='/api/v1/auth/service/create-token',
|
|
563
|
+
path_params=_path_params,
|
|
564
|
+
query_params=_query_params,
|
|
565
|
+
header_params=_header_params,
|
|
566
|
+
body=_body_params,
|
|
567
|
+
post_params=_form_params,
|
|
568
|
+
files=_files,
|
|
569
|
+
auth_settings=_auth_settings,
|
|
570
|
+
collection_formats=_collection_formats,
|
|
571
|
+
_host=_host,
|
|
572
|
+
_request_auth=_request_auth
|
|
573
|
+
)
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
@validate_call
|
|
579
|
+
def api_v1_auth_test_token_post(
|
|
580
|
+
self,
|
|
581
|
+
_request_timeout: Union[
|
|
582
|
+
None,
|
|
583
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
584
|
+
Tuple[
|
|
585
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
586
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
587
|
+
]
|
|
588
|
+
] = None,
|
|
589
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
590
|
+
_content_type: Optional[StrictStr] = None,
|
|
591
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
592
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
593
|
+
) -> AuthTestTokenResponse:
|
|
594
|
+
"""Test a Firebase auth token
|
|
595
|
+
|
|
596
|
+
Test a Firebase auth token. Please include the token on the `Authorization` header. eg., `Bearer <token>`
|
|
597
|
+
|
|
598
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
599
|
+
number provided, it will be total request
|
|
600
|
+
timeout. It can also be a pair (tuple) of
|
|
601
|
+
(connection, read) timeouts.
|
|
602
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
603
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
604
|
+
request; this effectively ignores the
|
|
605
|
+
authentication in the spec for a single request.
|
|
606
|
+
:type _request_auth: dict, optional
|
|
607
|
+
:param _content_type: force content-type for the request.
|
|
608
|
+
:type _content_type: str, Optional
|
|
609
|
+
:param _headers: set to override the headers for a single
|
|
610
|
+
request; this effectively ignores the headers
|
|
611
|
+
in the spec for a single request.
|
|
612
|
+
:type _headers: dict, optional
|
|
613
|
+
:param _host_index: set to override the host_index for a single
|
|
614
|
+
request; this effectively ignores the host_index
|
|
615
|
+
in the spec for a single request.
|
|
616
|
+
:type _host_index: int, optional
|
|
617
|
+
:return: Returns the result object.
|
|
618
|
+
""" # noqa: E501
|
|
619
|
+
|
|
620
|
+
_param = self._api_v1_auth_test_token_post_serialize(
|
|
621
|
+
_request_auth=_request_auth,
|
|
622
|
+
_content_type=_content_type,
|
|
623
|
+
_headers=_headers,
|
|
624
|
+
_host_index=_host_index
|
|
625
|
+
)
|
|
626
|
+
|
|
627
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
628
|
+
'200': "AuthTestTokenResponse",
|
|
629
|
+
'400': "AuthTestTokenResponse",
|
|
630
|
+
'403': "AuthTestTokenResponse",
|
|
631
|
+
'500': "AuthTestTokenResponse",
|
|
632
|
+
}
|
|
633
|
+
response_data = self.api_client.call_api(
|
|
634
|
+
*_param,
|
|
635
|
+
_request_timeout=_request_timeout
|
|
636
|
+
)
|
|
637
|
+
response_data.read()
|
|
638
|
+
return self.api_client.response_deserialize(
|
|
639
|
+
response_data=response_data,
|
|
640
|
+
response_types_map=_response_types_map,
|
|
641
|
+
).data
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
@validate_call
|
|
645
|
+
def api_v1_auth_test_token_post_with_http_info(
|
|
646
|
+
self,
|
|
647
|
+
_request_timeout: Union[
|
|
648
|
+
None,
|
|
649
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
650
|
+
Tuple[
|
|
651
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
652
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
653
|
+
]
|
|
654
|
+
] = None,
|
|
655
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
656
|
+
_content_type: Optional[StrictStr] = None,
|
|
657
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
658
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
659
|
+
) -> ApiResponse[AuthTestTokenResponse]:
|
|
660
|
+
"""Test a Firebase auth token
|
|
661
|
+
|
|
662
|
+
Test a Firebase auth token. Please include the token on the `Authorization` header. eg., `Bearer <token>`
|
|
663
|
+
|
|
664
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
665
|
+
number provided, it will be total request
|
|
666
|
+
timeout. It can also be a pair (tuple) of
|
|
667
|
+
(connection, read) timeouts.
|
|
668
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
669
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
670
|
+
request; this effectively ignores the
|
|
671
|
+
authentication in the spec for a single request.
|
|
672
|
+
:type _request_auth: dict, optional
|
|
673
|
+
:param _content_type: force content-type for the request.
|
|
674
|
+
:type _content_type: str, Optional
|
|
675
|
+
:param _headers: set to override the headers for a single
|
|
676
|
+
request; this effectively ignores the headers
|
|
677
|
+
in the spec for a single request.
|
|
678
|
+
:type _headers: dict, optional
|
|
679
|
+
:param _host_index: set to override the host_index for a single
|
|
680
|
+
request; this effectively ignores the host_index
|
|
681
|
+
in the spec for a single request.
|
|
682
|
+
:type _host_index: int, optional
|
|
683
|
+
:return: Returns the result object.
|
|
684
|
+
""" # noqa: E501
|
|
685
|
+
|
|
686
|
+
_param = self._api_v1_auth_test_token_post_serialize(
|
|
687
|
+
_request_auth=_request_auth,
|
|
688
|
+
_content_type=_content_type,
|
|
689
|
+
_headers=_headers,
|
|
690
|
+
_host_index=_host_index
|
|
691
|
+
)
|
|
692
|
+
|
|
693
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
694
|
+
'200': "AuthTestTokenResponse",
|
|
695
|
+
'400': "AuthTestTokenResponse",
|
|
696
|
+
'403': "AuthTestTokenResponse",
|
|
697
|
+
'500': "AuthTestTokenResponse",
|
|
698
|
+
}
|
|
699
|
+
response_data = self.api_client.call_api(
|
|
700
|
+
*_param,
|
|
701
|
+
_request_timeout=_request_timeout
|
|
702
|
+
)
|
|
703
|
+
response_data.read()
|
|
704
|
+
return self.api_client.response_deserialize(
|
|
705
|
+
response_data=response_data,
|
|
706
|
+
response_types_map=_response_types_map,
|
|
707
|
+
)
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
@validate_call
|
|
711
|
+
def api_v1_auth_test_token_post_without_preload_content(
|
|
712
|
+
self,
|
|
713
|
+
_request_timeout: Union[
|
|
714
|
+
None,
|
|
715
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
716
|
+
Tuple[
|
|
717
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
718
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
719
|
+
]
|
|
720
|
+
] = None,
|
|
721
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
722
|
+
_content_type: Optional[StrictStr] = None,
|
|
723
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
724
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
725
|
+
) -> RESTResponseType:
|
|
726
|
+
"""Test a Firebase auth token
|
|
727
|
+
|
|
728
|
+
Test a Firebase auth token. Please include the token on the `Authorization` header. eg., `Bearer <token>`
|
|
729
|
+
|
|
730
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
731
|
+
number provided, it will be total request
|
|
732
|
+
timeout. It can also be a pair (tuple) of
|
|
733
|
+
(connection, read) timeouts.
|
|
734
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
735
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
736
|
+
request; this effectively ignores the
|
|
737
|
+
authentication in the spec for a single request.
|
|
738
|
+
:type _request_auth: dict, optional
|
|
739
|
+
:param _content_type: force content-type for the request.
|
|
740
|
+
:type _content_type: str, Optional
|
|
741
|
+
:param _headers: set to override the headers for a single
|
|
742
|
+
request; this effectively ignores the headers
|
|
743
|
+
in the spec for a single request.
|
|
744
|
+
:type _headers: dict, optional
|
|
745
|
+
:param _host_index: set to override the host_index for a single
|
|
746
|
+
request; this effectively ignores the host_index
|
|
747
|
+
in the spec for a single request.
|
|
748
|
+
:type _host_index: int, optional
|
|
749
|
+
:return: Returns the result object.
|
|
750
|
+
""" # noqa: E501
|
|
751
|
+
|
|
752
|
+
_param = self._api_v1_auth_test_token_post_serialize(
|
|
753
|
+
_request_auth=_request_auth,
|
|
754
|
+
_content_type=_content_type,
|
|
755
|
+
_headers=_headers,
|
|
756
|
+
_host_index=_host_index
|
|
757
|
+
)
|
|
758
|
+
|
|
759
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
760
|
+
'200': "AuthTestTokenResponse",
|
|
761
|
+
'400': "AuthTestTokenResponse",
|
|
762
|
+
'403': "AuthTestTokenResponse",
|
|
763
|
+
'500': "AuthTestTokenResponse",
|
|
764
|
+
}
|
|
765
|
+
response_data = self.api_client.call_api(
|
|
766
|
+
*_param,
|
|
767
|
+
_request_timeout=_request_timeout
|
|
768
|
+
)
|
|
769
|
+
return response_data.response
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
def _api_v1_auth_test_token_post_serialize(
|
|
773
|
+
self,
|
|
774
|
+
_request_auth,
|
|
775
|
+
_content_type,
|
|
776
|
+
_headers,
|
|
777
|
+
_host_index,
|
|
778
|
+
) -> RequestSerialized:
|
|
779
|
+
|
|
780
|
+
_host = None
|
|
781
|
+
|
|
782
|
+
_collection_formats: Dict[str, str] = {
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
_path_params: Dict[str, str] = {}
|
|
786
|
+
_query_params: List[Tuple[str, str]] = []
|
|
787
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
788
|
+
_form_params: List[Tuple[str, str]] = []
|
|
789
|
+
_files: Dict[
|
|
790
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
791
|
+
] = {}
|
|
792
|
+
_body_params: Optional[bytes] = None
|
|
793
|
+
|
|
794
|
+
# process the path parameters
|
|
795
|
+
# process the query parameters
|
|
796
|
+
# process the header parameters
|
|
797
|
+
# process the form parameters
|
|
798
|
+
# process the body parameter
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
# set the HTTP header `Accept`
|
|
802
|
+
if 'Accept' not in _header_params:
|
|
803
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
804
|
+
[
|
|
805
|
+
'application/json'
|
|
806
|
+
]
|
|
807
|
+
)
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
# authentication setting
|
|
811
|
+
_auth_settings: List[str] = [
|
|
812
|
+
'ApiKeyAuth'
|
|
813
|
+
]
|
|
814
|
+
|
|
815
|
+
return self.api_client.param_serialize(
|
|
816
|
+
method='POST',
|
|
817
|
+
resource_path='/api/v1/auth/test-token/',
|
|
818
|
+
path_params=_path_params,
|
|
819
|
+
query_params=_query_params,
|
|
820
|
+
header_params=_header_params,
|
|
821
|
+
body=_body_params,
|
|
822
|
+
post_params=_form_params,
|
|
823
|
+
files=_files,
|
|
824
|
+
auth_settings=_auth_settings,
|
|
825
|
+
collection_formats=_collection_formats,
|
|
826
|
+
_host=_host,
|
|
827
|
+
_request_auth=_request_auth
|
|
828
|
+
)
|
|
829
|
+
|
|
830
|
+
|