rapidata 1.4.5__py3-none-any.whl → 1.5.0__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.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

@@ -16,19 +16,12 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictStr
19
+ from pydantic import Field
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
22
  from rapidata.api_client.models.create_client_model import CreateClientModel
23
23
  from rapidata.api_client.models.create_client_result import CreateClientResult
24
- from rapidata.api_client.models.create_legacy_client_model import CreateLegacyClientModel
25
- from rapidata.api_client.models.issue_auth_token_result import IssueAuthTokenResult
26
- from rapidata.api_client.models.legacy_issue_client_auth_token_result import LegacyIssueClientAuthTokenResult
27
- from rapidata.api_client.models.legacy_request_password_reset_command import LegacyRequestPasswordResetCommand
28
- from rapidata.api_client.models.legacy_submit_password_reset_command import LegacySubmitPasswordResetCommand
29
- from rapidata.api_client.models.login_model import LoginModel
30
- from rapidata.api_client.models.signup_customer_model import SignupCustomerModel
31
- from rapidata.api_client.models.signup_shadow_customer_model import SignupShadowCustomerModel
24
+ from rapidata.api_client.models.register_temporary_customer_model import RegisterTemporaryCustomerModel
32
25
 
33
26
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
34
27
  from rapidata.api_client.api_response import ApiResponse
@@ -48,277 +41,6 @@ class IdentityApi:
48
41
  self.api_client = api_client
49
42
 
50
43
 
51
- @validate_call
52
- def identity_confirm_get(
53
- self,
54
- user_id: Annotated[Optional[StrictStr], Field(description="The id of the user to confirm the signup for.")] = None,
55
- token: Annotated[Optional[StrictStr], Field(description="The confirmation token received by mail.")] = None,
56
- _request_timeout: Union[
57
- None,
58
- Annotated[StrictFloat, Field(gt=0)],
59
- Tuple[
60
- Annotated[StrictFloat, Field(gt=0)],
61
- Annotated[StrictFloat, Field(gt=0)]
62
- ]
63
- ] = None,
64
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
65
- _content_type: Optional[StrictStr] = None,
66
- _headers: Optional[Dict[StrictStr, Any]] = None,
67
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
68
- ) -> None:
69
- """Confirms a user's signup by a token.
70
-
71
-
72
- :param user_id: The id of the user to confirm the signup for.
73
- :type user_id: str
74
- :param token: The confirmation token received by mail.
75
- :type token: str
76
- :param _request_timeout: timeout setting for this request. If one
77
- number provided, it will be total request
78
- timeout. It can also be a pair (tuple) of
79
- (connection, read) timeouts.
80
- :type _request_timeout: int, tuple(int, int), optional
81
- :param _request_auth: set to override the auth_settings for an a single
82
- request; this effectively ignores the
83
- authentication in the spec for a single request.
84
- :type _request_auth: dict, optional
85
- :param _content_type: force content-type for the request.
86
- :type _content_type: str, Optional
87
- :param _headers: set to override the headers for a single
88
- request; this effectively ignores the headers
89
- in the spec for a single request.
90
- :type _headers: dict, optional
91
- :param _host_index: set to override the host_index for a single
92
- request; this effectively ignores the host_index
93
- in the spec for a single request.
94
- :type _host_index: int, optional
95
- :return: Returns the result object.
96
- """ # noqa: E501
97
-
98
- _param = self._identity_confirm_get_serialize(
99
- user_id=user_id,
100
- token=token,
101
- _request_auth=_request_auth,
102
- _content_type=_content_type,
103
- _headers=_headers,
104
- _host_index=_host_index
105
- )
106
-
107
- _response_types_map: Dict[str, Optional[str]] = {
108
- '200': None,
109
- }
110
- response_data = self.api_client.call_api(
111
- *_param,
112
- _request_timeout=_request_timeout
113
- )
114
- response_data.read()
115
- return self.api_client.response_deserialize(
116
- response_data=response_data,
117
- response_types_map=_response_types_map,
118
- ).data
119
-
120
-
121
- @validate_call
122
- def identity_confirm_get_with_http_info(
123
- self,
124
- user_id: Annotated[Optional[StrictStr], Field(description="The id of the user to confirm the signup for.")] = None,
125
- token: Annotated[Optional[StrictStr], Field(description="The confirmation token received by mail.")] = None,
126
- _request_timeout: Union[
127
- None,
128
- Annotated[StrictFloat, Field(gt=0)],
129
- Tuple[
130
- Annotated[StrictFloat, Field(gt=0)],
131
- Annotated[StrictFloat, Field(gt=0)]
132
- ]
133
- ] = None,
134
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
135
- _content_type: Optional[StrictStr] = None,
136
- _headers: Optional[Dict[StrictStr, Any]] = None,
137
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
138
- ) -> ApiResponse[None]:
139
- """Confirms a user's signup by a token.
140
-
141
-
142
- :param user_id: The id of the user to confirm the signup for.
143
- :type user_id: str
144
- :param token: The confirmation token received by mail.
145
- :type token: str
146
- :param _request_timeout: timeout setting for this request. If one
147
- number provided, it will be total request
148
- timeout. It can also be a pair (tuple) of
149
- (connection, read) timeouts.
150
- :type _request_timeout: int, tuple(int, int), optional
151
- :param _request_auth: set to override the auth_settings for an a single
152
- request; this effectively ignores the
153
- authentication in the spec for a single request.
154
- :type _request_auth: dict, optional
155
- :param _content_type: force content-type for the request.
156
- :type _content_type: str, Optional
157
- :param _headers: set to override the headers for a single
158
- request; this effectively ignores the headers
159
- in the spec for a single request.
160
- :type _headers: dict, optional
161
- :param _host_index: set to override the host_index for a single
162
- request; this effectively ignores the host_index
163
- in the spec for a single request.
164
- :type _host_index: int, optional
165
- :return: Returns the result object.
166
- """ # noqa: E501
167
-
168
- _param = self._identity_confirm_get_serialize(
169
- user_id=user_id,
170
- token=token,
171
- _request_auth=_request_auth,
172
- _content_type=_content_type,
173
- _headers=_headers,
174
- _host_index=_host_index
175
- )
176
-
177
- _response_types_map: Dict[str, Optional[str]] = {
178
- '200': None,
179
- }
180
- response_data = self.api_client.call_api(
181
- *_param,
182
- _request_timeout=_request_timeout
183
- )
184
- response_data.read()
185
- return self.api_client.response_deserialize(
186
- response_data=response_data,
187
- response_types_map=_response_types_map,
188
- )
189
-
190
-
191
- @validate_call
192
- def identity_confirm_get_without_preload_content(
193
- self,
194
- user_id: Annotated[Optional[StrictStr], Field(description="The id of the user to confirm the signup for.")] = None,
195
- token: Annotated[Optional[StrictStr], Field(description="The confirmation token received by mail.")] = None,
196
- _request_timeout: Union[
197
- None,
198
- Annotated[StrictFloat, Field(gt=0)],
199
- Tuple[
200
- Annotated[StrictFloat, Field(gt=0)],
201
- Annotated[StrictFloat, Field(gt=0)]
202
- ]
203
- ] = None,
204
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
205
- _content_type: Optional[StrictStr] = None,
206
- _headers: Optional[Dict[StrictStr, Any]] = None,
207
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
208
- ) -> RESTResponseType:
209
- """Confirms a user's signup by a token.
210
-
211
-
212
- :param user_id: The id of the user to confirm the signup for.
213
- :type user_id: str
214
- :param token: The confirmation token received by mail.
215
- :type token: str
216
- :param _request_timeout: timeout setting for this request. If one
217
- number provided, it will be total request
218
- timeout. It can also be a pair (tuple) of
219
- (connection, read) timeouts.
220
- :type _request_timeout: int, tuple(int, int), optional
221
- :param _request_auth: set to override the auth_settings for an a single
222
- request; this effectively ignores the
223
- authentication in the spec for a single request.
224
- :type _request_auth: dict, optional
225
- :param _content_type: force content-type for the request.
226
- :type _content_type: str, Optional
227
- :param _headers: set to override the headers for a single
228
- request; this effectively ignores the headers
229
- in the spec for a single request.
230
- :type _headers: dict, optional
231
- :param _host_index: set to override the host_index for a single
232
- request; this effectively ignores the host_index
233
- in the spec for a single request.
234
- :type _host_index: int, optional
235
- :return: Returns the result object.
236
- """ # noqa: E501
237
-
238
- _param = self._identity_confirm_get_serialize(
239
- user_id=user_id,
240
- token=token,
241
- _request_auth=_request_auth,
242
- _content_type=_content_type,
243
- _headers=_headers,
244
- _host_index=_host_index
245
- )
246
-
247
- _response_types_map: Dict[str, Optional[str]] = {
248
- '200': None,
249
- }
250
- response_data = self.api_client.call_api(
251
- *_param,
252
- _request_timeout=_request_timeout
253
- )
254
- return response_data.response
255
-
256
-
257
- def _identity_confirm_get_serialize(
258
- self,
259
- user_id,
260
- token,
261
- _request_auth,
262
- _content_type,
263
- _headers,
264
- _host_index,
265
- ) -> RequestSerialized:
266
-
267
- _host = None
268
-
269
- _collection_formats: Dict[str, str] = {
270
- }
271
-
272
- _path_params: Dict[str, str] = {}
273
- _query_params: List[Tuple[str, str]] = []
274
- _header_params: Dict[str, Optional[str]] = _headers or {}
275
- _form_params: List[Tuple[str, str]] = []
276
- _files: Dict[
277
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
278
- ] = {}
279
- _body_params: Optional[bytes] = None
280
-
281
- # process the path parameters
282
- # process the query parameters
283
- if user_id is not None:
284
-
285
- _query_params.append(('userId', user_id))
286
-
287
- if token is not None:
288
-
289
- _query_params.append(('token', token))
290
-
291
- # process the header parameters
292
- # process the form parameters
293
- # process the body parameter
294
-
295
-
296
-
297
-
298
- # authentication setting
299
- _auth_settings: List[str] = [
300
- 'bearer',
301
- 'oauth2'
302
- ]
303
-
304
- return self.api_client.param_serialize(
305
- method='GET',
306
- resource_path='/Identity/Confirm',
307
- path_params=_path_params,
308
- query_params=_query_params,
309
- header_params=_header_params,
310
- body=_body_params,
311
- post_params=_form_params,
312
- files=_files,
313
- auth_settings=_auth_settings,
314
- collection_formats=_collection_formats,
315
- _host=_host,
316
- _request_auth=_request_auth
317
- )
318
-
319
-
320
-
321
-
322
44
  @validate_call
323
45
  def identity_create_client_post(
324
46
  self,
@@ -596,9 +318,9 @@ class IdentityApi:
596
318
 
597
319
 
598
320
  @validate_call
599
- def identity_create_legacy_client_post(
321
+ def identity_register_temporary_post(
600
322
  self,
601
- create_legacy_client_model: Annotated[Optional[CreateLegacyClientModel], Field(description="The model for creating a new client.")] = None,
323
+ register_temporary_customer_model: Annotated[Optional[RegisterTemporaryCustomerModel], Field(description="The model to register the temporary customer with.")] = None,
602
324
  _request_timeout: Union[
603
325
  None,
604
326
  Annotated[StrictFloat, Field(gt=0)],
@@ -612,12 +334,11 @@ class IdentityApi:
612
334
  _headers: Optional[Dict[StrictStr, Any]] = None,
613
335
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
614
336
  ) -> None:
615
- """Creates a new client for a customer.
337
+ """Registers and logs in a temporary customer.
616
338
 
617
- A client represents an application or project that a customer might use to access the API. The clients are used for machine-to-machine communication.
618
339
 
619
- :param create_legacy_client_model: The model for creating a new client.
620
- :type create_legacy_client_model: CreateLegacyClientModel
340
+ :param register_temporary_customer_model: The model to register the temporary customer with.
341
+ :type register_temporary_customer_model: RegisterTemporaryCustomerModel
621
342
  :param _request_timeout: timeout setting for this request. If one
622
343
  number provided, it will be total request
623
344
  timeout. It can also be a pair (tuple) of
@@ -640,8 +361,8 @@ class IdentityApi:
640
361
  :return: Returns the result object.
641
362
  """ # noqa: E501
642
363
 
643
- _param = self._identity_create_legacy_client_post_serialize(
644
- create_legacy_client_model=create_legacy_client_model,
364
+ _param = self._identity_register_temporary_post_serialize(
365
+ register_temporary_customer_model=register_temporary_customer_model,
645
366
  _request_auth=_request_auth,
646
367
  _content_type=_content_type,
647
368
  _headers=_headers,
@@ -663,9 +384,9 @@ class IdentityApi:
663
384
 
664
385
 
665
386
  @validate_call
666
- def identity_create_legacy_client_post_with_http_info(
387
+ def identity_register_temporary_post_with_http_info(
667
388
  self,
668
- create_legacy_client_model: Annotated[Optional[CreateLegacyClientModel], Field(description="The model for creating a new client.")] = None,
389
+ register_temporary_customer_model: Annotated[Optional[RegisterTemporaryCustomerModel], Field(description="The model to register the temporary customer with.")] = None,
669
390
  _request_timeout: Union[
670
391
  None,
671
392
  Annotated[StrictFloat, Field(gt=0)],
@@ -679,12 +400,11 @@ class IdentityApi:
679
400
  _headers: Optional[Dict[StrictStr, Any]] = None,
680
401
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
681
402
  ) -> ApiResponse[None]:
682
- """Creates a new client for a customer.
403
+ """Registers and logs in a temporary customer.
683
404
 
684
- A client represents an application or project that a customer might use to access the API. The clients are used for machine-to-machine communication.
685
405
 
686
- :param create_legacy_client_model: The model for creating a new client.
687
- :type create_legacy_client_model: CreateLegacyClientModel
406
+ :param register_temporary_customer_model: The model to register the temporary customer with.
407
+ :type register_temporary_customer_model: RegisterTemporaryCustomerModel
688
408
  :param _request_timeout: timeout setting for this request. If one
689
409
  number provided, it will be total request
690
410
  timeout. It can also be a pair (tuple) of
@@ -707,8 +427,8 @@ class IdentityApi:
707
427
  :return: Returns the result object.
708
428
  """ # noqa: E501
709
429
 
710
- _param = self._identity_create_legacy_client_post_serialize(
711
- create_legacy_client_model=create_legacy_client_model,
430
+ _param = self._identity_register_temporary_post_serialize(
431
+ register_temporary_customer_model=register_temporary_customer_model,
712
432
  _request_auth=_request_auth,
713
433
  _content_type=_content_type,
714
434
  _headers=_headers,
@@ -730,9 +450,9 @@ class IdentityApi:
730
450
 
731
451
 
732
452
  @validate_call
733
- def identity_create_legacy_client_post_without_preload_content(
453
+ def identity_register_temporary_post_without_preload_content(
734
454
  self,
735
- create_legacy_client_model: Annotated[Optional[CreateLegacyClientModel], Field(description="The model for creating a new client.")] = None,
455
+ register_temporary_customer_model: Annotated[Optional[RegisterTemporaryCustomerModel], Field(description="The model to register the temporary customer with.")] = None,
736
456
  _request_timeout: Union[
737
457
  None,
738
458
  Annotated[StrictFloat, Field(gt=0)],
@@ -746,12 +466,11 @@ class IdentityApi:
746
466
  _headers: Optional[Dict[StrictStr, Any]] = None,
747
467
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
748
468
  ) -> RESTResponseType:
749
- """Creates a new client for a customer.
469
+ """Registers and logs in a temporary customer.
750
470
 
751
- A client represents an application or project that a customer might use to access the API. The clients are used for machine-to-machine communication.
752
471
 
753
- :param create_legacy_client_model: The model for creating a new client.
754
- :type create_legacy_client_model: CreateLegacyClientModel
472
+ :param register_temporary_customer_model: The model to register the temporary customer with.
473
+ :type register_temporary_customer_model: RegisterTemporaryCustomerModel
755
474
  :param _request_timeout: timeout setting for this request. If one
756
475
  number provided, it will be total request
757
476
  timeout. It can also be a pair (tuple) of
@@ -774,8 +493,8 @@ class IdentityApi:
774
493
  :return: Returns the result object.
775
494
  """ # noqa: E501
776
495
 
777
- _param = self._identity_create_legacy_client_post_serialize(
778
- create_legacy_client_model=create_legacy_client_model,
496
+ _param = self._identity_register_temporary_post_serialize(
497
+ register_temporary_customer_model=register_temporary_customer_model,
779
498
  _request_auth=_request_auth,
780
499
  _content_type=_content_type,
781
500
  _headers=_headers,
@@ -792,9 +511,9 @@ class IdentityApi:
792
511
  return response_data.response
793
512
 
794
513
 
795
- def _identity_create_legacy_client_post_serialize(
514
+ def _identity_register_temporary_post_serialize(
796
515
  self,
797
- create_legacy_client_model,
516
+ register_temporary_customer_model,
798
517
  _request_auth,
799
518
  _content_type,
800
519
  _headers,
@@ -820,8 +539,8 @@ class IdentityApi:
820
539
  # process the header parameters
821
540
  # process the form parameters
822
541
  # process the body parameter
823
- if create_legacy_client_model is not None:
824
- _body_params = create_legacy_client_model
542
+ if register_temporary_customer_model is not None:
543
+ _body_params = register_temporary_customer_model
825
544
 
826
545
 
827
546
 
@@ -849,2880 +568,7 @@ class IdentityApi:
849
568
 
850
569
  return self.api_client.param_serialize(
851
570
  method='POST',
852
- resource_path='/Identity/CreateLegacyClient',
853
- path_params=_path_params,
854
- query_params=_query_params,
855
- header_params=_header_params,
856
- body=_body_params,
857
- post_params=_form_params,
858
- files=_files,
859
- auth_settings=_auth_settings,
860
- collection_formats=_collection_formats,
861
- _host=_host,
862
- _request_auth=_request_auth
863
- )
864
-
865
-
866
-
867
-
868
- @validate_call
869
- def identity_external_login_callback_get(
870
- self,
871
- return_url: Annotated[Optional[StrictStr], Field(description="The URL to redirect to after logging in.")] = None,
872
- _request_timeout: Union[
873
- None,
874
- Annotated[StrictFloat, Field(gt=0)],
875
- Tuple[
876
- Annotated[StrictFloat, Field(gt=0)],
877
- Annotated[StrictFloat, Field(gt=0)]
878
- ]
879
- ] = None,
880
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
881
- _content_type: Optional[StrictStr] = None,
882
- _headers: Optional[Dict[StrictStr, Any]] = None,
883
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
884
- ) -> None:
885
- """Logs in a user using after receiving a grant from an external provider.
886
-
887
-
888
- :param return_url: The URL to redirect to after logging in.
889
- :type return_url: str
890
- :param _request_timeout: timeout setting for this request. If one
891
- number provided, it will be total request
892
- timeout. It can also be a pair (tuple) of
893
- (connection, read) timeouts.
894
- :type _request_timeout: int, tuple(int, int), optional
895
- :param _request_auth: set to override the auth_settings for an a single
896
- request; this effectively ignores the
897
- authentication in the spec for a single request.
898
- :type _request_auth: dict, optional
899
- :param _content_type: force content-type for the request.
900
- :type _content_type: str, Optional
901
- :param _headers: set to override the headers for a single
902
- request; this effectively ignores the headers
903
- in the spec for a single request.
904
- :type _headers: dict, optional
905
- :param _host_index: set to override the host_index for a single
906
- request; this effectively ignores the host_index
907
- in the spec for a single request.
908
- :type _host_index: int, optional
909
- :return: Returns the result object.
910
- """ # noqa: E501
911
-
912
- _param = self._identity_external_login_callback_get_serialize(
913
- return_url=return_url,
914
- _request_auth=_request_auth,
915
- _content_type=_content_type,
916
- _headers=_headers,
917
- _host_index=_host_index
918
- )
919
-
920
- _response_types_map: Dict[str, Optional[str]] = {
921
- '302': None,
922
- }
923
- response_data = self.api_client.call_api(
924
- *_param,
925
- _request_timeout=_request_timeout
926
- )
927
- response_data.read()
928
- return self.api_client.response_deserialize(
929
- response_data=response_data,
930
- response_types_map=_response_types_map,
931
- ).data
932
-
933
-
934
- @validate_call
935
- def identity_external_login_callback_get_with_http_info(
936
- self,
937
- return_url: Annotated[Optional[StrictStr], Field(description="The URL to redirect to after logging in.")] = None,
938
- _request_timeout: Union[
939
- None,
940
- Annotated[StrictFloat, Field(gt=0)],
941
- Tuple[
942
- Annotated[StrictFloat, Field(gt=0)],
943
- Annotated[StrictFloat, Field(gt=0)]
944
- ]
945
- ] = None,
946
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
947
- _content_type: Optional[StrictStr] = None,
948
- _headers: Optional[Dict[StrictStr, Any]] = None,
949
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
950
- ) -> ApiResponse[None]:
951
- """Logs in a user using after receiving a grant from an external provider.
952
-
953
-
954
- :param return_url: The URL to redirect to after logging in.
955
- :type return_url: str
956
- :param _request_timeout: timeout setting for this request. If one
957
- number provided, it will be total request
958
- timeout. It can also be a pair (tuple) of
959
- (connection, read) timeouts.
960
- :type _request_timeout: int, tuple(int, int), optional
961
- :param _request_auth: set to override the auth_settings for an a single
962
- request; this effectively ignores the
963
- authentication in the spec for a single request.
964
- :type _request_auth: dict, optional
965
- :param _content_type: force content-type for the request.
966
- :type _content_type: str, Optional
967
- :param _headers: set to override the headers for a single
968
- request; this effectively ignores the headers
969
- in the spec for a single request.
970
- :type _headers: dict, optional
971
- :param _host_index: set to override the host_index for a single
972
- request; this effectively ignores the host_index
973
- in the spec for a single request.
974
- :type _host_index: int, optional
975
- :return: Returns the result object.
976
- """ # noqa: E501
977
-
978
- _param = self._identity_external_login_callback_get_serialize(
979
- return_url=return_url,
980
- _request_auth=_request_auth,
981
- _content_type=_content_type,
982
- _headers=_headers,
983
- _host_index=_host_index
984
- )
985
-
986
- _response_types_map: Dict[str, Optional[str]] = {
987
- '302': None,
988
- }
989
- response_data = self.api_client.call_api(
990
- *_param,
991
- _request_timeout=_request_timeout
992
- )
993
- response_data.read()
994
- return self.api_client.response_deserialize(
995
- response_data=response_data,
996
- response_types_map=_response_types_map,
997
- )
998
-
999
-
1000
- @validate_call
1001
- def identity_external_login_callback_get_without_preload_content(
1002
- self,
1003
- return_url: Annotated[Optional[StrictStr], Field(description="The URL to redirect to after logging in.")] = None,
1004
- _request_timeout: Union[
1005
- None,
1006
- Annotated[StrictFloat, Field(gt=0)],
1007
- Tuple[
1008
- Annotated[StrictFloat, Field(gt=0)],
1009
- Annotated[StrictFloat, Field(gt=0)]
1010
- ]
1011
- ] = None,
1012
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1013
- _content_type: Optional[StrictStr] = None,
1014
- _headers: Optional[Dict[StrictStr, Any]] = None,
1015
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1016
- ) -> RESTResponseType:
1017
- """Logs in a user using after receiving a grant from an external provider.
1018
-
1019
-
1020
- :param return_url: The URL to redirect to after logging in.
1021
- :type return_url: str
1022
- :param _request_timeout: timeout setting for this request. If one
1023
- number provided, it will be total request
1024
- timeout. It can also be a pair (tuple) of
1025
- (connection, read) timeouts.
1026
- :type _request_timeout: int, tuple(int, int), optional
1027
- :param _request_auth: set to override the auth_settings for an a single
1028
- request; this effectively ignores the
1029
- authentication in the spec for a single request.
1030
- :type _request_auth: dict, optional
1031
- :param _content_type: force content-type for the request.
1032
- :type _content_type: str, Optional
1033
- :param _headers: set to override the headers for a single
1034
- request; this effectively ignores the headers
1035
- in the spec for a single request.
1036
- :type _headers: dict, optional
1037
- :param _host_index: set to override the host_index for a single
1038
- request; this effectively ignores the host_index
1039
- in the spec for a single request.
1040
- :type _host_index: int, optional
1041
- :return: Returns the result object.
1042
- """ # noqa: E501
1043
-
1044
- _param = self._identity_external_login_callback_get_serialize(
1045
- return_url=return_url,
1046
- _request_auth=_request_auth,
1047
- _content_type=_content_type,
1048
- _headers=_headers,
1049
- _host_index=_host_index
1050
- )
1051
-
1052
- _response_types_map: Dict[str, Optional[str]] = {
1053
- '302': None,
1054
- }
1055
- response_data = self.api_client.call_api(
1056
- *_param,
1057
- _request_timeout=_request_timeout
1058
- )
1059
- return response_data.response
1060
-
1061
-
1062
- def _identity_external_login_callback_get_serialize(
1063
- self,
1064
- return_url,
1065
- _request_auth,
1066
- _content_type,
1067
- _headers,
1068
- _host_index,
1069
- ) -> RequestSerialized:
1070
-
1071
- _host = None
1072
-
1073
- _collection_formats: Dict[str, str] = {
1074
- }
1075
-
1076
- _path_params: Dict[str, str] = {}
1077
- _query_params: List[Tuple[str, str]] = []
1078
- _header_params: Dict[str, Optional[str]] = _headers or {}
1079
- _form_params: List[Tuple[str, str]] = []
1080
- _files: Dict[
1081
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1082
- ] = {}
1083
- _body_params: Optional[bytes] = None
1084
-
1085
- # process the path parameters
1086
- # process the query parameters
1087
- if return_url is not None:
1088
-
1089
- _query_params.append(('returnUrl', return_url))
1090
-
1091
- # process the header parameters
1092
- # process the form parameters
1093
- # process the body parameter
1094
-
1095
-
1096
-
1097
-
1098
- # authentication setting
1099
- _auth_settings: List[str] = [
1100
- 'bearer',
1101
- 'oauth2'
1102
- ]
1103
-
1104
- return self.api_client.param_serialize(
1105
- method='GET',
1106
- resource_path='/Identity/ExternalLoginCallback',
1107
- path_params=_path_params,
1108
- query_params=_query_params,
1109
- header_params=_header_params,
1110
- body=_body_params,
1111
- post_params=_form_params,
1112
- files=_files,
1113
- auth_settings=_auth_settings,
1114
- collection_formats=_collection_formats,
1115
- _host=_host,
1116
- _request_auth=_request_auth
1117
- )
1118
-
1119
-
1120
-
1121
-
1122
- @validate_call
1123
- def identity_external_login_post(
1124
- self,
1125
- provider: Annotated[Optional[StrictStr], Field(description="The name of the external provider.")] = None,
1126
- return_url: Annotated[Optional[StrictStr], Field(description="The URL to redirect to after logging in.")] = None,
1127
- _request_timeout: Union[
1128
- None,
1129
- Annotated[StrictFloat, Field(gt=0)],
1130
- Tuple[
1131
- Annotated[StrictFloat, Field(gt=0)],
1132
- Annotated[StrictFloat, Field(gt=0)]
1133
- ]
1134
- ] = None,
1135
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1136
- _content_type: Optional[StrictStr] = None,
1137
- _headers: Optional[Dict[StrictStr, Any]] = None,
1138
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1139
- ) -> None:
1140
- """Logs in a user using an external provider.
1141
-
1142
-
1143
- :param provider: The name of the external provider.
1144
- :type provider: str
1145
- :param return_url: The URL to redirect to after logging in.
1146
- :type return_url: str
1147
- :param _request_timeout: timeout setting for this request. If one
1148
- number provided, it will be total request
1149
- timeout. It can also be a pair (tuple) of
1150
- (connection, read) timeouts.
1151
- :type _request_timeout: int, tuple(int, int), optional
1152
- :param _request_auth: set to override the auth_settings for an a single
1153
- request; this effectively ignores the
1154
- authentication in the spec for a single request.
1155
- :type _request_auth: dict, optional
1156
- :param _content_type: force content-type for the request.
1157
- :type _content_type: str, Optional
1158
- :param _headers: set to override the headers for a single
1159
- request; this effectively ignores the headers
1160
- in the spec for a single request.
1161
- :type _headers: dict, optional
1162
- :param _host_index: set to override the host_index for a single
1163
- request; this effectively ignores the host_index
1164
- in the spec for a single request.
1165
- :type _host_index: int, optional
1166
- :return: Returns the result object.
1167
- """ # noqa: E501
1168
-
1169
- _param = self._identity_external_login_post_serialize(
1170
- provider=provider,
1171
- return_url=return_url,
1172
- _request_auth=_request_auth,
1173
- _content_type=_content_type,
1174
- _headers=_headers,
1175
- _host_index=_host_index
1176
- )
1177
-
1178
- _response_types_map: Dict[str, Optional[str]] = {
1179
- '302': None,
1180
- }
1181
- response_data = self.api_client.call_api(
1182
- *_param,
1183
- _request_timeout=_request_timeout
1184
- )
1185
- response_data.read()
1186
- return self.api_client.response_deserialize(
1187
- response_data=response_data,
1188
- response_types_map=_response_types_map,
1189
- ).data
1190
-
1191
-
1192
- @validate_call
1193
- def identity_external_login_post_with_http_info(
1194
- self,
1195
- provider: Annotated[Optional[StrictStr], Field(description="The name of the external provider.")] = None,
1196
- return_url: Annotated[Optional[StrictStr], Field(description="The URL to redirect to after logging in.")] = None,
1197
- _request_timeout: Union[
1198
- None,
1199
- Annotated[StrictFloat, Field(gt=0)],
1200
- Tuple[
1201
- Annotated[StrictFloat, Field(gt=0)],
1202
- Annotated[StrictFloat, Field(gt=0)]
1203
- ]
1204
- ] = None,
1205
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1206
- _content_type: Optional[StrictStr] = None,
1207
- _headers: Optional[Dict[StrictStr, Any]] = None,
1208
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1209
- ) -> ApiResponse[None]:
1210
- """Logs in a user using an external provider.
1211
-
1212
-
1213
- :param provider: The name of the external provider.
1214
- :type provider: str
1215
- :param return_url: The URL to redirect to after logging in.
1216
- :type return_url: str
1217
- :param _request_timeout: timeout setting for this request. If one
1218
- number provided, it will be total request
1219
- timeout. It can also be a pair (tuple) of
1220
- (connection, read) timeouts.
1221
- :type _request_timeout: int, tuple(int, int), optional
1222
- :param _request_auth: set to override the auth_settings for an a single
1223
- request; this effectively ignores the
1224
- authentication in the spec for a single request.
1225
- :type _request_auth: dict, optional
1226
- :param _content_type: force content-type for the request.
1227
- :type _content_type: str, Optional
1228
- :param _headers: set to override the headers for a single
1229
- request; this effectively ignores the headers
1230
- in the spec for a single request.
1231
- :type _headers: dict, optional
1232
- :param _host_index: set to override the host_index for a single
1233
- request; this effectively ignores the host_index
1234
- in the spec for a single request.
1235
- :type _host_index: int, optional
1236
- :return: Returns the result object.
1237
- """ # noqa: E501
1238
-
1239
- _param = self._identity_external_login_post_serialize(
1240
- provider=provider,
1241
- return_url=return_url,
1242
- _request_auth=_request_auth,
1243
- _content_type=_content_type,
1244
- _headers=_headers,
1245
- _host_index=_host_index
1246
- )
1247
-
1248
- _response_types_map: Dict[str, Optional[str]] = {
1249
- '302': None,
1250
- }
1251
- response_data = self.api_client.call_api(
1252
- *_param,
1253
- _request_timeout=_request_timeout
1254
- )
1255
- response_data.read()
1256
- return self.api_client.response_deserialize(
1257
- response_data=response_data,
1258
- response_types_map=_response_types_map,
1259
- )
1260
-
1261
-
1262
- @validate_call
1263
- def identity_external_login_post_without_preload_content(
1264
- self,
1265
- provider: Annotated[Optional[StrictStr], Field(description="The name of the external provider.")] = None,
1266
- return_url: Annotated[Optional[StrictStr], Field(description="The URL to redirect to after logging in.")] = None,
1267
- _request_timeout: Union[
1268
- None,
1269
- Annotated[StrictFloat, Field(gt=0)],
1270
- Tuple[
1271
- Annotated[StrictFloat, Field(gt=0)],
1272
- Annotated[StrictFloat, Field(gt=0)]
1273
- ]
1274
- ] = None,
1275
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1276
- _content_type: Optional[StrictStr] = None,
1277
- _headers: Optional[Dict[StrictStr, Any]] = None,
1278
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1279
- ) -> RESTResponseType:
1280
- """Logs in a user using an external provider.
1281
-
1282
-
1283
- :param provider: The name of the external provider.
1284
- :type provider: str
1285
- :param return_url: The URL to redirect to after logging in.
1286
- :type return_url: str
1287
- :param _request_timeout: timeout setting for this request. If one
1288
- number provided, it will be total request
1289
- timeout. It can also be a pair (tuple) of
1290
- (connection, read) timeouts.
1291
- :type _request_timeout: int, tuple(int, int), optional
1292
- :param _request_auth: set to override the auth_settings for an a single
1293
- request; this effectively ignores the
1294
- authentication in the spec for a single request.
1295
- :type _request_auth: dict, optional
1296
- :param _content_type: force content-type for the request.
1297
- :type _content_type: str, Optional
1298
- :param _headers: set to override the headers for a single
1299
- request; this effectively ignores the headers
1300
- in the spec for a single request.
1301
- :type _headers: dict, optional
1302
- :param _host_index: set to override the host_index for a single
1303
- request; this effectively ignores the host_index
1304
- in the spec for a single request.
1305
- :type _host_index: int, optional
1306
- :return: Returns the result object.
1307
- """ # noqa: E501
1308
-
1309
- _param = self._identity_external_login_post_serialize(
1310
- provider=provider,
1311
- return_url=return_url,
1312
- _request_auth=_request_auth,
1313
- _content_type=_content_type,
1314
- _headers=_headers,
1315
- _host_index=_host_index
1316
- )
1317
-
1318
- _response_types_map: Dict[str, Optional[str]] = {
1319
- '302': None,
1320
- }
1321
- response_data = self.api_client.call_api(
1322
- *_param,
1323
- _request_timeout=_request_timeout
1324
- )
1325
- return response_data.response
1326
-
1327
-
1328
- def _identity_external_login_post_serialize(
1329
- self,
1330
- provider,
1331
- return_url,
1332
- _request_auth,
1333
- _content_type,
1334
- _headers,
1335
- _host_index,
1336
- ) -> RequestSerialized:
1337
-
1338
- _host = None
1339
-
1340
- _collection_formats: Dict[str, str] = {
1341
- }
1342
-
1343
- _path_params: Dict[str, str] = {}
1344
- _query_params: List[Tuple[str, str]] = []
1345
- _header_params: Dict[str, Optional[str]] = _headers or {}
1346
- _form_params: List[Tuple[str, str]] = []
1347
- _files: Dict[
1348
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1349
- ] = {}
1350
- _body_params: Optional[bytes] = None
1351
-
1352
- # process the path parameters
1353
- # process the query parameters
1354
- if provider is not None:
1355
-
1356
- _query_params.append(('provider', provider))
1357
-
1358
- if return_url is not None:
1359
-
1360
- _query_params.append(('returnUrl', return_url))
1361
-
1362
- # process the header parameters
1363
- # process the form parameters
1364
- # process the body parameter
1365
-
1366
-
1367
-
1368
-
1369
- # authentication setting
1370
- _auth_settings: List[str] = [
1371
- 'bearer',
1372
- 'oauth2'
1373
- ]
1374
-
1375
- return self.api_client.param_serialize(
1376
- method='POST',
1377
- resource_path='/Identity/ExternalLogin',
1378
- path_params=_path_params,
1379
- query_params=_query_params,
1380
- header_params=_header_params,
1381
- body=_body_params,
1382
- post_params=_form_params,
1383
- files=_files,
1384
- auth_settings=_auth_settings,
1385
- collection_formats=_collection_formats,
1386
- _host=_host,
1387
- _request_auth=_request_auth
1388
- )
1389
-
1390
-
1391
-
1392
-
1393
- @validate_call
1394
- def identity_get_auth_token_get(
1395
- self,
1396
- _request_timeout: Union[
1397
- None,
1398
- Annotated[StrictFloat, Field(gt=0)],
1399
- Tuple[
1400
- Annotated[StrictFloat, Field(gt=0)],
1401
- Annotated[StrictFloat, Field(gt=0)]
1402
- ]
1403
- ] = None,
1404
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1405
- _content_type: Optional[StrictStr] = None,
1406
- _headers: Optional[Dict[StrictStr, Any]] = None,
1407
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1408
- ) -> IssueAuthTokenResult:
1409
- """Issues a new auth token using the refresh token.
1410
-
1411
-
1412
- :param _request_timeout: timeout setting for this request. If one
1413
- number provided, it will be total request
1414
- timeout. It can also be a pair (tuple) of
1415
- (connection, read) timeouts.
1416
- :type _request_timeout: int, tuple(int, int), optional
1417
- :param _request_auth: set to override the auth_settings for an a single
1418
- request; this effectively ignores the
1419
- authentication in the spec for a single request.
1420
- :type _request_auth: dict, optional
1421
- :param _content_type: force content-type for the request.
1422
- :type _content_type: str, Optional
1423
- :param _headers: set to override the headers for a single
1424
- request; this effectively ignores the headers
1425
- in the spec for a single request.
1426
- :type _headers: dict, optional
1427
- :param _host_index: set to override the host_index for a single
1428
- request; this effectively ignores the host_index
1429
- in the spec for a single request.
1430
- :type _host_index: int, optional
1431
- :return: Returns the result object.
1432
- """ # noqa: E501
1433
-
1434
- _param = self._identity_get_auth_token_get_serialize(
1435
- _request_auth=_request_auth,
1436
- _content_type=_content_type,
1437
- _headers=_headers,
1438
- _host_index=_host_index
1439
- )
1440
-
1441
- _response_types_map: Dict[str, Optional[str]] = {
1442
- '200': "IssueAuthTokenResult",
1443
- }
1444
- response_data = self.api_client.call_api(
1445
- *_param,
1446
- _request_timeout=_request_timeout
1447
- )
1448
- response_data.read()
1449
- return self.api_client.response_deserialize(
1450
- response_data=response_data,
1451
- response_types_map=_response_types_map,
1452
- ).data
1453
-
1454
-
1455
- @validate_call
1456
- def identity_get_auth_token_get_with_http_info(
1457
- self,
1458
- _request_timeout: Union[
1459
- None,
1460
- Annotated[StrictFloat, Field(gt=0)],
1461
- Tuple[
1462
- Annotated[StrictFloat, Field(gt=0)],
1463
- Annotated[StrictFloat, Field(gt=0)]
1464
- ]
1465
- ] = None,
1466
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1467
- _content_type: Optional[StrictStr] = None,
1468
- _headers: Optional[Dict[StrictStr, Any]] = None,
1469
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1470
- ) -> ApiResponse[IssueAuthTokenResult]:
1471
- """Issues a new auth token using the refresh token.
1472
-
1473
-
1474
- :param _request_timeout: timeout setting for this request. If one
1475
- number provided, it will be total request
1476
- timeout. It can also be a pair (tuple) of
1477
- (connection, read) timeouts.
1478
- :type _request_timeout: int, tuple(int, int), optional
1479
- :param _request_auth: set to override the auth_settings for an a single
1480
- request; this effectively ignores the
1481
- authentication in the spec for a single request.
1482
- :type _request_auth: dict, optional
1483
- :param _content_type: force content-type for the request.
1484
- :type _content_type: str, Optional
1485
- :param _headers: set to override the headers for a single
1486
- request; this effectively ignores the headers
1487
- in the spec for a single request.
1488
- :type _headers: dict, optional
1489
- :param _host_index: set to override the host_index for a single
1490
- request; this effectively ignores the host_index
1491
- in the spec for a single request.
1492
- :type _host_index: int, optional
1493
- :return: Returns the result object.
1494
- """ # noqa: E501
1495
-
1496
- _param = self._identity_get_auth_token_get_serialize(
1497
- _request_auth=_request_auth,
1498
- _content_type=_content_type,
1499
- _headers=_headers,
1500
- _host_index=_host_index
1501
- )
1502
-
1503
- _response_types_map: Dict[str, Optional[str]] = {
1504
- '200': "IssueAuthTokenResult",
1505
- }
1506
- response_data = self.api_client.call_api(
1507
- *_param,
1508
- _request_timeout=_request_timeout
1509
- )
1510
- response_data.read()
1511
- return self.api_client.response_deserialize(
1512
- response_data=response_data,
1513
- response_types_map=_response_types_map,
1514
- )
1515
-
1516
-
1517
- @validate_call
1518
- def identity_get_auth_token_get_without_preload_content(
1519
- self,
1520
- _request_timeout: Union[
1521
- None,
1522
- Annotated[StrictFloat, Field(gt=0)],
1523
- Tuple[
1524
- Annotated[StrictFloat, Field(gt=0)],
1525
- Annotated[StrictFloat, Field(gt=0)]
1526
- ]
1527
- ] = None,
1528
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1529
- _content_type: Optional[StrictStr] = None,
1530
- _headers: Optional[Dict[StrictStr, Any]] = None,
1531
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1532
- ) -> RESTResponseType:
1533
- """Issues a new auth token using the refresh token.
1534
-
1535
-
1536
- :param _request_timeout: timeout setting for this request. If one
1537
- number provided, it will be total request
1538
- timeout. It can also be a pair (tuple) of
1539
- (connection, read) timeouts.
1540
- :type _request_timeout: int, tuple(int, int), optional
1541
- :param _request_auth: set to override the auth_settings for an a single
1542
- request; this effectively ignores the
1543
- authentication in the spec for a single request.
1544
- :type _request_auth: dict, optional
1545
- :param _content_type: force content-type for the request.
1546
- :type _content_type: str, Optional
1547
- :param _headers: set to override the headers for a single
1548
- request; this effectively ignores the headers
1549
- in the spec for a single request.
1550
- :type _headers: dict, optional
1551
- :param _host_index: set to override the host_index for a single
1552
- request; this effectively ignores the host_index
1553
- in the spec for a single request.
1554
- :type _host_index: int, optional
1555
- :return: Returns the result object.
1556
- """ # noqa: E501
1557
-
1558
- _param = self._identity_get_auth_token_get_serialize(
1559
- _request_auth=_request_auth,
1560
- _content_type=_content_type,
1561
- _headers=_headers,
1562
- _host_index=_host_index
1563
- )
1564
-
1565
- _response_types_map: Dict[str, Optional[str]] = {
1566
- '200': "IssueAuthTokenResult",
1567
- }
1568
- response_data = self.api_client.call_api(
1569
- *_param,
1570
- _request_timeout=_request_timeout
1571
- )
1572
- return response_data.response
1573
-
1574
-
1575
- def _identity_get_auth_token_get_serialize(
1576
- self,
1577
- _request_auth,
1578
- _content_type,
1579
- _headers,
1580
- _host_index,
1581
- ) -> RequestSerialized:
1582
-
1583
- _host = None
1584
-
1585
- _collection_formats: Dict[str, str] = {
1586
- }
1587
-
1588
- _path_params: Dict[str, str] = {}
1589
- _query_params: List[Tuple[str, str]] = []
1590
- _header_params: Dict[str, Optional[str]] = _headers or {}
1591
- _form_params: List[Tuple[str, str]] = []
1592
- _files: Dict[
1593
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1594
- ] = {}
1595
- _body_params: Optional[bytes] = None
1596
-
1597
- # process the path parameters
1598
- # process the query parameters
1599
- # process the header parameters
1600
- # process the form parameters
1601
- # process the body parameter
1602
-
1603
-
1604
- # set the HTTP header `Accept`
1605
- if 'Accept' not in _header_params:
1606
- _header_params['Accept'] = self.api_client.select_header_accept(
1607
- [
1608
- 'text/plain',
1609
- 'application/json',
1610
- 'text/json'
1611
- ]
1612
- )
1613
-
1614
-
1615
- # authentication setting
1616
- _auth_settings: List[str] = [
1617
- 'bearer',
1618
- 'oauth2'
1619
- ]
1620
-
1621
- return self.api_client.param_serialize(
1622
- method='GET',
1623
- resource_path='/Identity/GetAuthToken',
1624
- path_params=_path_params,
1625
- query_params=_query_params,
1626
- header_params=_header_params,
1627
- body=_body_params,
1628
- post_params=_form_params,
1629
- files=_files,
1630
- auth_settings=_auth_settings,
1631
- collection_formats=_collection_formats,
1632
- _host=_host,
1633
- _request_auth=_request_auth
1634
- )
1635
-
1636
-
1637
-
1638
-
1639
- @validate_call
1640
- def identity_get_client_auth_token_post(
1641
- self,
1642
- client_id: Annotated[Optional[StrictStr], Field(description="The id of the client to issue the token for.")] = None,
1643
- _request_timeout: Union[
1644
- None,
1645
- Annotated[StrictFloat, Field(gt=0)],
1646
- Tuple[
1647
- Annotated[StrictFloat, Field(gt=0)],
1648
- Annotated[StrictFloat, Field(gt=0)]
1649
- ]
1650
- ] = None,
1651
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1652
- _content_type: Optional[StrictStr] = None,
1653
- _headers: Optional[Dict[StrictStr, Any]] = None,
1654
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1655
- ) -> LegacyIssueClientAuthTokenResult:
1656
- """Issues a new auth token using the client credentials.
1657
-
1658
-
1659
- :param client_id: The id of the client to issue the token for.
1660
- :type client_id: str
1661
- :param _request_timeout: timeout setting for this request. If one
1662
- number provided, it will be total request
1663
- timeout. It can also be a pair (tuple) of
1664
- (connection, read) timeouts.
1665
- :type _request_timeout: int, tuple(int, int), optional
1666
- :param _request_auth: set to override the auth_settings for an a single
1667
- request; this effectively ignores the
1668
- authentication in the spec for a single request.
1669
- :type _request_auth: dict, optional
1670
- :param _content_type: force content-type for the request.
1671
- :type _content_type: str, Optional
1672
- :param _headers: set to override the headers for a single
1673
- request; this effectively ignores the headers
1674
- in the spec for a single request.
1675
- :type _headers: dict, optional
1676
- :param _host_index: set to override the host_index for a single
1677
- request; this effectively ignores the host_index
1678
- in the spec for a single request.
1679
- :type _host_index: int, optional
1680
- :return: Returns the result object.
1681
- """ # noqa: E501
1682
-
1683
- _param = self._identity_get_client_auth_token_post_serialize(
1684
- client_id=client_id,
1685
- _request_auth=_request_auth,
1686
- _content_type=_content_type,
1687
- _headers=_headers,
1688
- _host_index=_host_index
1689
- )
1690
-
1691
- _response_types_map: Dict[str, Optional[str]] = {
1692
- '200': "LegacyIssueClientAuthTokenResult",
1693
- }
1694
- response_data = self.api_client.call_api(
1695
- *_param,
1696
- _request_timeout=_request_timeout
1697
- )
1698
- response_data.read()
1699
- return self.api_client.response_deserialize(
1700
- response_data=response_data,
1701
- response_types_map=_response_types_map,
1702
- ).data
1703
-
1704
-
1705
- @validate_call
1706
- def identity_get_client_auth_token_post_with_http_info(
1707
- self,
1708
- client_id: Annotated[Optional[StrictStr], Field(description="The id of the client to issue the token for.")] = None,
1709
- _request_timeout: Union[
1710
- None,
1711
- Annotated[StrictFloat, Field(gt=0)],
1712
- Tuple[
1713
- Annotated[StrictFloat, Field(gt=0)],
1714
- Annotated[StrictFloat, Field(gt=0)]
1715
- ]
1716
- ] = None,
1717
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1718
- _content_type: Optional[StrictStr] = None,
1719
- _headers: Optional[Dict[StrictStr, Any]] = None,
1720
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1721
- ) -> ApiResponse[LegacyIssueClientAuthTokenResult]:
1722
- """Issues a new auth token using the client credentials.
1723
-
1724
-
1725
- :param client_id: The id of the client to issue the token for.
1726
- :type client_id: str
1727
- :param _request_timeout: timeout setting for this request. If one
1728
- number provided, it will be total request
1729
- timeout. It can also be a pair (tuple) of
1730
- (connection, read) timeouts.
1731
- :type _request_timeout: int, tuple(int, int), optional
1732
- :param _request_auth: set to override the auth_settings for an a single
1733
- request; this effectively ignores the
1734
- authentication in the spec for a single request.
1735
- :type _request_auth: dict, optional
1736
- :param _content_type: force content-type for the request.
1737
- :type _content_type: str, Optional
1738
- :param _headers: set to override the headers for a single
1739
- request; this effectively ignores the headers
1740
- in the spec for a single request.
1741
- :type _headers: dict, optional
1742
- :param _host_index: set to override the host_index for a single
1743
- request; this effectively ignores the host_index
1744
- in the spec for a single request.
1745
- :type _host_index: int, optional
1746
- :return: Returns the result object.
1747
- """ # noqa: E501
1748
-
1749
- _param = self._identity_get_client_auth_token_post_serialize(
1750
- client_id=client_id,
1751
- _request_auth=_request_auth,
1752
- _content_type=_content_type,
1753
- _headers=_headers,
1754
- _host_index=_host_index
1755
- )
1756
-
1757
- _response_types_map: Dict[str, Optional[str]] = {
1758
- '200': "LegacyIssueClientAuthTokenResult",
1759
- }
1760
- response_data = self.api_client.call_api(
1761
- *_param,
1762
- _request_timeout=_request_timeout
1763
- )
1764
- response_data.read()
1765
- return self.api_client.response_deserialize(
1766
- response_data=response_data,
1767
- response_types_map=_response_types_map,
1768
- )
1769
-
1770
-
1771
- @validate_call
1772
- def identity_get_client_auth_token_post_without_preload_content(
1773
- self,
1774
- client_id: Annotated[Optional[StrictStr], Field(description="The id of the client to issue the token for.")] = None,
1775
- _request_timeout: Union[
1776
- None,
1777
- Annotated[StrictFloat, Field(gt=0)],
1778
- Tuple[
1779
- Annotated[StrictFloat, Field(gt=0)],
1780
- Annotated[StrictFloat, Field(gt=0)]
1781
- ]
1782
- ] = None,
1783
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1784
- _content_type: Optional[StrictStr] = None,
1785
- _headers: Optional[Dict[StrictStr, Any]] = None,
1786
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1787
- ) -> RESTResponseType:
1788
- """Issues a new auth token using the client credentials.
1789
-
1790
-
1791
- :param client_id: The id of the client to issue the token for.
1792
- :type client_id: str
1793
- :param _request_timeout: timeout setting for this request. If one
1794
- number provided, it will be total request
1795
- timeout. It can also be a pair (tuple) of
1796
- (connection, read) timeouts.
1797
- :type _request_timeout: int, tuple(int, int), optional
1798
- :param _request_auth: set to override the auth_settings for an a single
1799
- request; this effectively ignores the
1800
- authentication in the spec for a single request.
1801
- :type _request_auth: dict, optional
1802
- :param _content_type: force content-type for the request.
1803
- :type _content_type: str, Optional
1804
- :param _headers: set to override the headers for a single
1805
- request; this effectively ignores the headers
1806
- in the spec for a single request.
1807
- :type _headers: dict, optional
1808
- :param _host_index: set to override the host_index for a single
1809
- request; this effectively ignores the host_index
1810
- in the spec for a single request.
1811
- :type _host_index: int, optional
1812
- :return: Returns the result object.
1813
- """ # noqa: E501
1814
-
1815
- _param = self._identity_get_client_auth_token_post_serialize(
1816
- client_id=client_id,
1817
- _request_auth=_request_auth,
1818
- _content_type=_content_type,
1819
- _headers=_headers,
1820
- _host_index=_host_index
1821
- )
1822
-
1823
- _response_types_map: Dict[str, Optional[str]] = {
1824
- '200': "LegacyIssueClientAuthTokenResult",
1825
- }
1826
- response_data = self.api_client.call_api(
1827
- *_param,
1828
- _request_timeout=_request_timeout
1829
- )
1830
- return response_data.response
1831
-
1832
-
1833
- def _identity_get_client_auth_token_post_serialize(
1834
- self,
1835
- client_id,
1836
- _request_auth,
1837
- _content_type,
1838
- _headers,
1839
- _host_index,
1840
- ) -> RequestSerialized:
1841
-
1842
- _host = None
1843
-
1844
- _collection_formats: Dict[str, str] = {
1845
- }
1846
-
1847
- _path_params: Dict[str, str] = {}
1848
- _query_params: List[Tuple[str, str]] = []
1849
- _header_params: Dict[str, Optional[str]] = _headers or {}
1850
- _form_params: List[Tuple[str, str]] = []
1851
- _files: Dict[
1852
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1853
- ] = {}
1854
- _body_params: Optional[bytes] = None
1855
-
1856
- # process the path parameters
1857
- # process the query parameters
1858
- if client_id is not None:
1859
-
1860
- _query_params.append(('clientId', client_id))
1861
-
1862
- # process the header parameters
1863
- # process the form parameters
1864
- # process the body parameter
1865
-
1866
-
1867
- # set the HTTP header `Accept`
1868
- if 'Accept' not in _header_params:
1869
- _header_params['Accept'] = self.api_client.select_header_accept(
1870
- [
1871
- 'text/plain',
1872
- 'application/json',
1873
- 'text/json'
1874
- ]
1875
- )
1876
-
1877
-
1878
- # authentication setting
1879
- _auth_settings: List[str] = [
1880
- 'bearer',
1881
- 'oauth2'
1882
- ]
1883
-
1884
- return self.api_client.param_serialize(
1885
- method='POST',
1886
- resource_path='/Identity/GetClientAuthToken',
1887
- path_params=_path_params,
1888
- query_params=_query_params,
1889
- header_params=_header_params,
1890
- body=_body_params,
1891
- post_params=_form_params,
1892
- files=_files,
1893
- auth_settings=_auth_settings,
1894
- collection_formats=_collection_formats,
1895
- _host=_host,
1896
- _request_auth=_request_auth
1897
- )
1898
-
1899
-
1900
-
1901
-
1902
- @validate_call
1903
- def identity_index_post(
1904
- self,
1905
- login_model: Annotated[Optional[LoginModel], Field(description="The model containing the username or email and password.")] = None,
1906
- _request_timeout: Union[
1907
- None,
1908
- Annotated[StrictFloat, Field(gt=0)],
1909
- Tuple[
1910
- Annotated[StrictFloat, Field(gt=0)],
1911
- Annotated[StrictFloat, Field(gt=0)]
1912
- ]
1913
- ] = None,
1914
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1915
- _content_type: Optional[StrictStr] = None,
1916
- _headers: Optional[Dict[StrictStr, Any]] = None,
1917
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1918
- ) -> None:
1919
- """Logs in a user by username or email and password.
1920
-
1921
-
1922
- :param login_model: The model containing the username or email and password.
1923
- :type login_model: LoginModel
1924
- :param _request_timeout: timeout setting for this request. If one
1925
- number provided, it will be total request
1926
- timeout. It can also be a pair (tuple) of
1927
- (connection, read) timeouts.
1928
- :type _request_timeout: int, tuple(int, int), optional
1929
- :param _request_auth: set to override the auth_settings for an a single
1930
- request; this effectively ignores the
1931
- authentication in the spec for a single request.
1932
- :type _request_auth: dict, optional
1933
- :param _content_type: force content-type for the request.
1934
- :type _content_type: str, Optional
1935
- :param _headers: set to override the headers for a single
1936
- request; this effectively ignores the headers
1937
- in the spec for a single request.
1938
- :type _headers: dict, optional
1939
- :param _host_index: set to override the host_index for a single
1940
- request; this effectively ignores the host_index
1941
- in the spec for a single request.
1942
- :type _host_index: int, optional
1943
- :return: Returns the result object.
1944
- """ # noqa: E501
1945
-
1946
- _param = self._identity_index_post_serialize(
1947
- login_model=login_model,
1948
- _request_auth=_request_auth,
1949
- _content_type=_content_type,
1950
- _headers=_headers,
1951
- _host_index=_host_index
1952
- )
1953
-
1954
- _response_types_map: Dict[str, Optional[str]] = {
1955
- '200': None,
1956
- }
1957
- response_data = self.api_client.call_api(
1958
- *_param,
1959
- _request_timeout=_request_timeout
1960
- )
1961
- response_data.read()
1962
- return self.api_client.response_deserialize(
1963
- response_data=response_data,
1964
- response_types_map=_response_types_map,
1965
- ).data
1966
-
1967
-
1968
- @validate_call
1969
- def identity_index_post_with_http_info(
1970
- self,
1971
- login_model: Annotated[Optional[LoginModel], Field(description="The model containing the username or email and password.")] = None,
1972
- _request_timeout: Union[
1973
- None,
1974
- Annotated[StrictFloat, Field(gt=0)],
1975
- Tuple[
1976
- Annotated[StrictFloat, Field(gt=0)],
1977
- Annotated[StrictFloat, Field(gt=0)]
1978
- ]
1979
- ] = None,
1980
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1981
- _content_type: Optional[StrictStr] = None,
1982
- _headers: Optional[Dict[StrictStr, Any]] = None,
1983
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1984
- ) -> ApiResponse[None]:
1985
- """Logs in a user by username or email and password.
1986
-
1987
-
1988
- :param login_model: The model containing the username or email and password.
1989
- :type login_model: LoginModel
1990
- :param _request_timeout: timeout setting for this request. If one
1991
- number provided, it will be total request
1992
- timeout. It can also be a pair (tuple) of
1993
- (connection, read) timeouts.
1994
- :type _request_timeout: int, tuple(int, int), optional
1995
- :param _request_auth: set to override the auth_settings for an a single
1996
- request; this effectively ignores the
1997
- authentication in the spec for a single request.
1998
- :type _request_auth: dict, optional
1999
- :param _content_type: force content-type for the request.
2000
- :type _content_type: str, Optional
2001
- :param _headers: set to override the headers for a single
2002
- request; this effectively ignores the headers
2003
- in the spec for a single request.
2004
- :type _headers: dict, optional
2005
- :param _host_index: set to override the host_index for a single
2006
- request; this effectively ignores the host_index
2007
- in the spec for a single request.
2008
- :type _host_index: int, optional
2009
- :return: Returns the result object.
2010
- """ # noqa: E501
2011
-
2012
- _param = self._identity_index_post_serialize(
2013
- login_model=login_model,
2014
- _request_auth=_request_auth,
2015
- _content_type=_content_type,
2016
- _headers=_headers,
2017
- _host_index=_host_index
2018
- )
2019
-
2020
- _response_types_map: Dict[str, Optional[str]] = {
2021
- '200': None,
2022
- }
2023
- response_data = self.api_client.call_api(
2024
- *_param,
2025
- _request_timeout=_request_timeout
2026
- )
2027
- response_data.read()
2028
- return self.api_client.response_deserialize(
2029
- response_data=response_data,
2030
- response_types_map=_response_types_map,
2031
- )
2032
-
2033
-
2034
- @validate_call
2035
- def identity_index_post_without_preload_content(
2036
- self,
2037
- login_model: Annotated[Optional[LoginModel], Field(description="The model containing the username or email and password.")] = None,
2038
- _request_timeout: Union[
2039
- None,
2040
- Annotated[StrictFloat, Field(gt=0)],
2041
- Tuple[
2042
- Annotated[StrictFloat, Field(gt=0)],
2043
- Annotated[StrictFloat, Field(gt=0)]
2044
- ]
2045
- ] = None,
2046
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2047
- _content_type: Optional[StrictStr] = None,
2048
- _headers: Optional[Dict[StrictStr, Any]] = None,
2049
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2050
- ) -> RESTResponseType:
2051
- """Logs in a user by username or email and password.
2052
-
2053
-
2054
- :param login_model: The model containing the username or email and password.
2055
- :type login_model: LoginModel
2056
- :param _request_timeout: timeout setting for this request. If one
2057
- number provided, it will be total request
2058
- timeout. It can also be a pair (tuple) of
2059
- (connection, read) timeouts.
2060
- :type _request_timeout: int, tuple(int, int), optional
2061
- :param _request_auth: set to override the auth_settings for an a single
2062
- request; this effectively ignores the
2063
- authentication in the spec for a single request.
2064
- :type _request_auth: dict, optional
2065
- :param _content_type: force content-type for the request.
2066
- :type _content_type: str, Optional
2067
- :param _headers: set to override the headers for a single
2068
- request; this effectively ignores the headers
2069
- in the spec for a single request.
2070
- :type _headers: dict, optional
2071
- :param _host_index: set to override the host_index for a single
2072
- request; this effectively ignores the host_index
2073
- in the spec for a single request.
2074
- :type _host_index: int, optional
2075
- :return: Returns the result object.
2076
- """ # noqa: E501
2077
-
2078
- _param = self._identity_index_post_serialize(
2079
- login_model=login_model,
2080
- _request_auth=_request_auth,
2081
- _content_type=_content_type,
2082
- _headers=_headers,
2083
- _host_index=_host_index
2084
- )
2085
-
2086
- _response_types_map: Dict[str, Optional[str]] = {
2087
- '200': None,
2088
- }
2089
- response_data = self.api_client.call_api(
2090
- *_param,
2091
- _request_timeout=_request_timeout
2092
- )
2093
- return response_data.response
2094
-
2095
-
2096
- def _identity_index_post_serialize(
2097
- self,
2098
- login_model,
2099
- _request_auth,
2100
- _content_type,
2101
- _headers,
2102
- _host_index,
2103
- ) -> RequestSerialized:
2104
-
2105
- _host = None
2106
-
2107
- _collection_formats: Dict[str, str] = {
2108
- }
2109
-
2110
- _path_params: Dict[str, str] = {}
2111
- _query_params: List[Tuple[str, str]] = []
2112
- _header_params: Dict[str, Optional[str]] = _headers or {}
2113
- _form_params: List[Tuple[str, str]] = []
2114
- _files: Dict[
2115
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2116
- ] = {}
2117
- _body_params: Optional[bytes] = None
2118
-
2119
- # process the path parameters
2120
- # process the query parameters
2121
- # process the header parameters
2122
- # process the form parameters
2123
- # process the body parameter
2124
- if login_model is not None:
2125
- _body_params = login_model
2126
-
2127
-
2128
-
2129
- # set the HTTP header `Content-Type`
2130
- if _content_type:
2131
- _header_params['Content-Type'] = _content_type
2132
- else:
2133
- _default_content_type = (
2134
- self.api_client.select_header_content_type(
2135
- [
2136
- 'application/json',
2137
- 'text/json',
2138
- 'application/*+json'
2139
- ]
2140
- )
2141
- )
2142
- if _default_content_type is not None:
2143
- _header_params['Content-Type'] = _default_content_type
2144
-
2145
- # authentication setting
2146
- _auth_settings: List[str] = [
2147
- 'bearer',
2148
- 'oauth2'
2149
- ]
2150
-
2151
- return self.api_client.param_serialize(
2152
- method='POST',
2153
- resource_path='/Identity/Index',
2154
- path_params=_path_params,
2155
- query_params=_query_params,
2156
- header_params=_header_params,
2157
- body=_body_params,
2158
- post_params=_form_params,
2159
- files=_files,
2160
- auth_settings=_auth_settings,
2161
- collection_formats=_collection_formats,
2162
- _host=_host,
2163
- _request_auth=_request_auth
2164
- )
2165
-
2166
-
2167
-
2168
-
2169
- @validate_call
2170
- def identity_logout_post(
2171
- self,
2172
- _request_timeout: Union[
2173
- None,
2174
- Annotated[StrictFloat, Field(gt=0)],
2175
- Tuple[
2176
- Annotated[StrictFloat, Field(gt=0)],
2177
- Annotated[StrictFloat, Field(gt=0)]
2178
- ]
2179
- ] = None,
2180
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2181
- _content_type: Optional[StrictStr] = None,
2182
- _headers: Optional[Dict[StrictStr, Any]] = None,
2183
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2184
- ) -> None:
2185
- """Logs out the current user by deleting the refresh token cookie.
2186
-
2187
-
2188
- :param _request_timeout: timeout setting for this request. If one
2189
- number provided, it will be total request
2190
- timeout. It can also be a pair (tuple) of
2191
- (connection, read) timeouts.
2192
- :type _request_timeout: int, tuple(int, int), optional
2193
- :param _request_auth: set to override the auth_settings for an a single
2194
- request; this effectively ignores the
2195
- authentication in the spec for a single request.
2196
- :type _request_auth: dict, optional
2197
- :param _content_type: force content-type for the request.
2198
- :type _content_type: str, Optional
2199
- :param _headers: set to override the headers for a single
2200
- request; this effectively ignores the headers
2201
- in the spec for a single request.
2202
- :type _headers: dict, optional
2203
- :param _host_index: set to override the host_index for a single
2204
- request; this effectively ignores the host_index
2205
- in the spec for a single request.
2206
- :type _host_index: int, optional
2207
- :return: Returns the result object.
2208
- """ # noqa: E501
2209
-
2210
- _param = self._identity_logout_post_serialize(
2211
- _request_auth=_request_auth,
2212
- _content_type=_content_type,
2213
- _headers=_headers,
2214
- _host_index=_host_index
2215
- )
2216
-
2217
- _response_types_map: Dict[str, Optional[str]] = {
2218
- '200': None,
2219
- }
2220
- response_data = self.api_client.call_api(
2221
- *_param,
2222
- _request_timeout=_request_timeout
2223
- )
2224
- response_data.read()
2225
- return self.api_client.response_deserialize(
2226
- response_data=response_data,
2227
- response_types_map=_response_types_map,
2228
- ).data
2229
-
2230
-
2231
- @validate_call
2232
- def identity_logout_post_with_http_info(
2233
- self,
2234
- _request_timeout: Union[
2235
- None,
2236
- Annotated[StrictFloat, Field(gt=0)],
2237
- Tuple[
2238
- Annotated[StrictFloat, Field(gt=0)],
2239
- Annotated[StrictFloat, Field(gt=0)]
2240
- ]
2241
- ] = None,
2242
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2243
- _content_type: Optional[StrictStr] = None,
2244
- _headers: Optional[Dict[StrictStr, Any]] = None,
2245
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2246
- ) -> ApiResponse[None]:
2247
- """Logs out the current user by deleting the refresh token cookie.
2248
-
2249
-
2250
- :param _request_timeout: timeout setting for this request. If one
2251
- number provided, it will be total request
2252
- timeout. It can also be a pair (tuple) of
2253
- (connection, read) timeouts.
2254
- :type _request_timeout: int, tuple(int, int), optional
2255
- :param _request_auth: set to override the auth_settings for an a single
2256
- request; this effectively ignores the
2257
- authentication in the spec for a single request.
2258
- :type _request_auth: dict, optional
2259
- :param _content_type: force content-type for the request.
2260
- :type _content_type: str, Optional
2261
- :param _headers: set to override the headers for a single
2262
- request; this effectively ignores the headers
2263
- in the spec for a single request.
2264
- :type _headers: dict, optional
2265
- :param _host_index: set to override the host_index for a single
2266
- request; this effectively ignores the host_index
2267
- in the spec for a single request.
2268
- :type _host_index: int, optional
2269
- :return: Returns the result object.
2270
- """ # noqa: E501
2271
-
2272
- _param = self._identity_logout_post_serialize(
2273
- _request_auth=_request_auth,
2274
- _content_type=_content_type,
2275
- _headers=_headers,
2276
- _host_index=_host_index
2277
- )
2278
-
2279
- _response_types_map: Dict[str, Optional[str]] = {
2280
- '200': None,
2281
- }
2282
- response_data = self.api_client.call_api(
2283
- *_param,
2284
- _request_timeout=_request_timeout
2285
- )
2286
- response_data.read()
2287
- return self.api_client.response_deserialize(
2288
- response_data=response_data,
2289
- response_types_map=_response_types_map,
2290
- )
2291
-
2292
-
2293
- @validate_call
2294
- def identity_logout_post_without_preload_content(
2295
- self,
2296
- _request_timeout: Union[
2297
- None,
2298
- Annotated[StrictFloat, Field(gt=0)],
2299
- Tuple[
2300
- Annotated[StrictFloat, Field(gt=0)],
2301
- Annotated[StrictFloat, Field(gt=0)]
2302
- ]
2303
- ] = None,
2304
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2305
- _content_type: Optional[StrictStr] = None,
2306
- _headers: Optional[Dict[StrictStr, Any]] = None,
2307
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2308
- ) -> RESTResponseType:
2309
- """Logs out the current user by deleting the refresh token cookie.
2310
-
2311
-
2312
- :param _request_timeout: timeout setting for this request. If one
2313
- number provided, it will be total request
2314
- timeout. It can also be a pair (tuple) of
2315
- (connection, read) timeouts.
2316
- :type _request_timeout: int, tuple(int, int), optional
2317
- :param _request_auth: set to override the auth_settings for an a single
2318
- request; this effectively ignores the
2319
- authentication in the spec for a single request.
2320
- :type _request_auth: dict, optional
2321
- :param _content_type: force content-type for the request.
2322
- :type _content_type: str, Optional
2323
- :param _headers: set to override the headers for a single
2324
- request; this effectively ignores the headers
2325
- in the spec for a single request.
2326
- :type _headers: dict, optional
2327
- :param _host_index: set to override the host_index for a single
2328
- request; this effectively ignores the host_index
2329
- in the spec for a single request.
2330
- :type _host_index: int, optional
2331
- :return: Returns the result object.
2332
- """ # noqa: E501
2333
-
2334
- _param = self._identity_logout_post_serialize(
2335
- _request_auth=_request_auth,
2336
- _content_type=_content_type,
2337
- _headers=_headers,
2338
- _host_index=_host_index
2339
- )
2340
-
2341
- _response_types_map: Dict[str, Optional[str]] = {
2342
- '200': None,
2343
- }
2344
- response_data = self.api_client.call_api(
2345
- *_param,
2346
- _request_timeout=_request_timeout
2347
- )
2348
- return response_data.response
2349
-
2350
-
2351
- def _identity_logout_post_serialize(
2352
- self,
2353
- _request_auth,
2354
- _content_type,
2355
- _headers,
2356
- _host_index,
2357
- ) -> RequestSerialized:
2358
-
2359
- _host = None
2360
-
2361
- _collection_formats: Dict[str, str] = {
2362
- }
2363
-
2364
- _path_params: Dict[str, str] = {}
2365
- _query_params: List[Tuple[str, str]] = []
2366
- _header_params: Dict[str, Optional[str]] = _headers or {}
2367
- _form_params: List[Tuple[str, str]] = []
2368
- _files: Dict[
2369
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2370
- ] = {}
2371
- _body_params: Optional[bytes] = None
2372
-
2373
- # process the path parameters
2374
- # process the query parameters
2375
- # process the header parameters
2376
- # process the form parameters
2377
- # process the body parameter
2378
-
2379
-
2380
-
2381
-
2382
- # authentication setting
2383
- _auth_settings: List[str] = [
2384
- 'bearer',
2385
- 'oauth2'
2386
- ]
2387
-
2388
- return self.api_client.param_serialize(
2389
- method='POST',
2390
- resource_path='/Identity/Logout',
2391
- path_params=_path_params,
2392
- query_params=_query_params,
2393
- header_params=_header_params,
2394
- body=_body_params,
2395
- post_params=_form_params,
2396
- files=_files,
2397
- auth_settings=_auth_settings,
2398
- collection_formats=_collection_formats,
2399
- _host=_host,
2400
- _request_auth=_request_auth
2401
- )
2402
-
2403
-
2404
-
2405
-
2406
- @validate_call
2407
- def identity_register_temporary_post(
2408
- self,
2409
- signup_shadow_customer_model: Annotated[Optional[SignupShadowCustomerModel], Field(description="The model to register the temporary customer with.")] = None,
2410
- _request_timeout: Union[
2411
- None,
2412
- Annotated[StrictFloat, Field(gt=0)],
2413
- Tuple[
2414
- Annotated[StrictFloat, Field(gt=0)],
2415
- Annotated[StrictFloat, Field(gt=0)]
2416
- ]
2417
- ] = None,
2418
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2419
- _content_type: Optional[StrictStr] = None,
2420
- _headers: Optional[Dict[StrictStr, Any]] = None,
2421
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2422
- ) -> None:
2423
- """Registers and logs in a temporary customer.
2424
-
2425
-
2426
- :param signup_shadow_customer_model: The model to register the temporary customer with.
2427
- :type signup_shadow_customer_model: SignupShadowCustomerModel
2428
- :param _request_timeout: timeout setting for this request. If one
2429
- number provided, it will be total request
2430
- timeout. It can also be a pair (tuple) of
2431
- (connection, read) timeouts.
2432
- :type _request_timeout: int, tuple(int, int), optional
2433
- :param _request_auth: set to override the auth_settings for an a single
2434
- request; this effectively ignores the
2435
- authentication in the spec for a single request.
2436
- :type _request_auth: dict, optional
2437
- :param _content_type: force content-type for the request.
2438
- :type _content_type: str, Optional
2439
- :param _headers: set to override the headers for a single
2440
- request; this effectively ignores the headers
2441
- in the spec for a single request.
2442
- :type _headers: dict, optional
2443
- :param _host_index: set to override the host_index for a single
2444
- request; this effectively ignores the host_index
2445
- in the spec for a single request.
2446
- :type _host_index: int, optional
2447
- :return: Returns the result object.
2448
- """ # noqa: E501
2449
-
2450
- _param = self._identity_register_temporary_post_serialize(
2451
- signup_shadow_customer_model=signup_shadow_customer_model,
2452
- _request_auth=_request_auth,
2453
- _content_type=_content_type,
2454
- _headers=_headers,
2455
- _host_index=_host_index
2456
- )
2457
-
2458
- _response_types_map: Dict[str, Optional[str]] = {
2459
- '200': None,
2460
- }
2461
- response_data = self.api_client.call_api(
2462
- *_param,
2463
- _request_timeout=_request_timeout
2464
- )
2465
- response_data.read()
2466
- return self.api_client.response_deserialize(
2467
- response_data=response_data,
2468
- response_types_map=_response_types_map,
2469
- ).data
2470
-
2471
-
2472
- @validate_call
2473
- def identity_register_temporary_post_with_http_info(
2474
- self,
2475
- signup_shadow_customer_model: Annotated[Optional[SignupShadowCustomerModel], Field(description="The model to register the temporary customer with.")] = None,
2476
- _request_timeout: Union[
2477
- None,
2478
- Annotated[StrictFloat, Field(gt=0)],
2479
- Tuple[
2480
- Annotated[StrictFloat, Field(gt=0)],
2481
- Annotated[StrictFloat, Field(gt=0)]
2482
- ]
2483
- ] = None,
2484
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2485
- _content_type: Optional[StrictStr] = None,
2486
- _headers: Optional[Dict[StrictStr, Any]] = None,
2487
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2488
- ) -> ApiResponse[None]:
2489
- """Registers and logs in a temporary customer.
2490
-
2491
-
2492
- :param signup_shadow_customer_model: The model to register the temporary customer with.
2493
- :type signup_shadow_customer_model: SignupShadowCustomerModel
2494
- :param _request_timeout: timeout setting for this request. If one
2495
- number provided, it will be total request
2496
- timeout. It can also be a pair (tuple) of
2497
- (connection, read) timeouts.
2498
- :type _request_timeout: int, tuple(int, int), optional
2499
- :param _request_auth: set to override the auth_settings for an a single
2500
- request; this effectively ignores the
2501
- authentication in the spec for a single request.
2502
- :type _request_auth: dict, optional
2503
- :param _content_type: force content-type for the request.
2504
- :type _content_type: str, Optional
2505
- :param _headers: set to override the headers for a single
2506
- request; this effectively ignores the headers
2507
- in the spec for a single request.
2508
- :type _headers: dict, optional
2509
- :param _host_index: set to override the host_index for a single
2510
- request; this effectively ignores the host_index
2511
- in the spec for a single request.
2512
- :type _host_index: int, optional
2513
- :return: Returns the result object.
2514
- """ # noqa: E501
2515
-
2516
- _param = self._identity_register_temporary_post_serialize(
2517
- signup_shadow_customer_model=signup_shadow_customer_model,
2518
- _request_auth=_request_auth,
2519
- _content_type=_content_type,
2520
- _headers=_headers,
2521
- _host_index=_host_index
2522
- )
2523
-
2524
- _response_types_map: Dict[str, Optional[str]] = {
2525
- '200': None,
2526
- }
2527
- response_data = self.api_client.call_api(
2528
- *_param,
2529
- _request_timeout=_request_timeout
2530
- )
2531
- response_data.read()
2532
- return self.api_client.response_deserialize(
2533
- response_data=response_data,
2534
- response_types_map=_response_types_map,
2535
- )
2536
-
2537
-
2538
- @validate_call
2539
- def identity_register_temporary_post_without_preload_content(
2540
- self,
2541
- signup_shadow_customer_model: Annotated[Optional[SignupShadowCustomerModel], Field(description="The model to register the temporary customer with.")] = None,
2542
- _request_timeout: Union[
2543
- None,
2544
- Annotated[StrictFloat, Field(gt=0)],
2545
- Tuple[
2546
- Annotated[StrictFloat, Field(gt=0)],
2547
- Annotated[StrictFloat, Field(gt=0)]
2548
- ]
2549
- ] = None,
2550
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2551
- _content_type: Optional[StrictStr] = None,
2552
- _headers: Optional[Dict[StrictStr, Any]] = None,
2553
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2554
- ) -> RESTResponseType:
2555
- """Registers and logs in a temporary customer.
2556
-
2557
-
2558
- :param signup_shadow_customer_model: The model to register the temporary customer with.
2559
- :type signup_shadow_customer_model: SignupShadowCustomerModel
2560
- :param _request_timeout: timeout setting for this request. If one
2561
- number provided, it will be total request
2562
- timeout. It can also be a pair (tuple) of
2563
- (connection, read) timeouts.
2564
- :type _request_timeout: int, tuple(int, int), optional
2565
- :param _request_auth: set to override the auth_settings for an a single
2566
- request; this effectively ignores the
2567
- authentication in the spec for a single request.
2568
- :type _request_auth: dict, optional
2569
- :param _content_type: force content-type for the request.
2570
- :type _content_type: str, Optional
2571
- :param _headers: set to override the headers for a single
2572
- request; this effectively ignores the headers
2573
- in the spec for a single request.
2574
- :type _headers: dict, optional
2575
- :param _host_index: set to override the host_index for a single
2576
- request; this effectively ignores the host_index
2577
- in the spec for a single request.
2578
- :type _host_index: int, optional
2579
- :return: Returns the result object.
2580
- """ # noqa: E501
2581
-
2582
- _param = self._identity_register_temporary_post_serialize(
2583
- signup_shadow_customer_model=signup_shadow_customer_model,
2584
- _request_auth=_request_auth,
2585
- _content_type=_content_type,
2586
- _headers=_headers,
2587
- _host_index=_host_index
2588
- )
2589
-
2590
- _response_types_map: Dict[str, Optional[str]] = {
2591
- '200': None,
2592
- }
2593
- response_data = self.api_client.call_api(
2594
- *_param,
2595
- _request_timeout=_request_timeout
2596
- )
2597
- return response_data.response
2598
-
2599
-
2600
- def _identity_register_temporary_post_serialize(
2601
- self,
2602
- signup_shadow_customer_model,
2603
- _request_auth,
2604
- _content_type,
2605
- _headers,
2606
- _host_index,
2607
- ) -> RequestSerialized:
2608
-
2609
- _host = None
2610
-
2611
- _collection_formats: Dict[str, str] = {
2612
- }
2613
-
2614
- _path_params: Dict[str, str] = {}
2615
- _query_params: List[Tuple[str, str]] = []
2616
- _header_params: Dict[str, Optional[str]] = _headers or {}
2617
- _form_params: List[Tuple[str, str]] = []
2618
- _files: Dict[
2619
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2620
- ] = {}
2621
- _body_params: Optional[bytes] = None
2622
-
2623
- # process the path parameters
2624
- # process the query parameters
2625
- # process the header parameters
2626
- # process the form parameters
2627
- # process the body parameter
2628
- if signup_shadow_customer_model is not None:
2629
- _body_params = signup_shadow_customer_model
2630
-
2631
-
2632
-
2633
- # set the HTTP header `Content-Type`
2634
- if _content_type:
2635
- _header_params['Content-Type'] = _content_type
2636
- else:
2637
- _default_content_type = (
2638
- self.api_client.select_header_content_type(
2639
- [
2640
- 'application/json',
2641
- 'text/json',
2642
- 'application/*+json'
2643
- ]
2644
- )
2645
- )
2646
- if _default_content_type is not None:
2647
- _header_params['Content-Type'] = _default_content_type
2648
-
2649
- # authentication setting
2650
- _auth_settings: List[str] = [
2651
- 'bearer',
2652
- 'oauth2'
2653
- ]
2654
-
2655
- return self.api_client.param_serialize(
2656
- method='POST',
2657
- resource_path='/Identity/RegisterTemporary',
2658
- path_params=_path_params,
2659
- query_params=_query_params,
2660
- header_params=_header_params,
2661
- body=_body_params,
2662
- post_params=_form_params,
2663
- files=_files,
2664
- auth_settings=_auth_settings,
2665
- collection_formats=_collection_formats,
2666
- _host=_host,
2667
- _request_auth=_request_auth
2668
- )
2669
-
2670
-
2671
-
2672
-
2673
- @validate_call
2674
- def identity_request_reset_post(
2675
- self,
2676
- legacy_request_password_reset_command: Annotated[Optional[LegacyRequestPasswordResetCommand], Field(description="The command containing the user's email.")] = None,
2677
- _request_timeout: Union[
2678
- None,
2679
- Annotated[StrictFloat, Field(gt=0)],
2680
- Tuple[
2681
- Annotated[StrictFloat, Field(gt=0)],
2682
- Annotated[StrictFloat, Field(gt=0)]
2683
- ]
2684
- ] = None,
2685
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2686
- _content_type: Optional[StrictStr] = None,
2687
- _headers: Optional[Dict[StrictStr, Any]] = None,
2688
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2689
- ) -> None:
2690
- """Request a password reset for a user.
2691
-
2692
-
2693
- :param legacy_request_password_reset_command: The command containing the user's email.
2694
- :type legacy_request_password_reset_command: LegacyRequestPasswordResetCommand
2695
- :param _request_timeout: timeout setting for this request. If one
2696
- number provided, it will be total request
2697
- timeout. It can also be a pair (tuple) of
2698
- (connection, read) timeouts.
2699
- :type _request_timeout: int, tuple(int, int), optional
2700
- :param _request_auth: set to override the auth_settings for an a single
2701
- request; this effectively ignores the
2702
- authentication in the spec for a single request.
2703
- :type _request_auth: dict, optional
2704
- :param _content_type: force content-type for the request.
2705
- :type _content_type: str, Optional
2706
- :param _headers: set to override the headers for a single
2707
- request; this effectively ignores the headers
2708
- in the spec for a single request.
2709
- :type _headers: dict, optional
2710
- :param _host_index: set to override the host_index for a single
2711
- request; this effectively ignores the host_index
2712
- in the spec for a single request.
2713
- :type _host_index: int, optional
2714
- :return: Returns the result object.
2715
- """ # noqa: E501
2716
-
2717
- _param = self._identity_request_reset_post_serialize(
2718
- legacy_request_password_reset_command=legacy_request_password_reset_command,
2719
- _request_auth=_request_auth,
2720
- _content_type=_content_type,
2721
- _headers=_headers,
2722
- _host_index=_host_index
2723
- )
2724
-
2725
- _response_types_map: Dict[str, Optional[str]] = {
2726
- '200': None,
2727
- }
2728
- response_data = self.api_client.call_api(
2729
- *_param,
2730
- _request_timeout=_request_timeout
2731
- )
2732
- response_data.read()
2733
- return self.api_client.response_deserialize(
2734
- response_data=response_data,
2735
- response_types_map=_response_types_map,
2736
- ).data
2737
-
2738
-
2739
- @validate_call
2740
- def identity_request_reset_post_with_http_info(
2741
- self,
2742
- legacy_request_password_reset_command: Annotated[Optional[LegacyRequestPasswordResetCommand], Field(description="The command containing the user's email.")] = None,
2743
- _request_timeout: Union[
2744
- None,
2745
- Annotated[StrictFloat, Field(gt=0)],
2746
- Tuple[
2747
- Annotated[StrictFloat, Field(gt=0)],
2748
- Annotated[StrictFloat, Field(gt=0)]
2749
- ]
2750
- ] = None,
2751
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2752
- _content_type: Optional[StrictStr] = None,
2753
- _headers: Optional[Dict[StrictStr, Any]] = None,
2754
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2755
- ) -> ApiResponse[None]:
2756
- """Request a password reset for a user.
2757
-
2758
-
2759
- :param legacy_request_password_reset_command: The command containing the user's email.
2760
- :type legacy_request_password_reset_command: LegacyRequestPasswordResetCommand
2761
- :param _request_timeout: timeout setting for this request. If one
2762
- number provided, it will be total request
2763
- timeout. It can also be a pair (tuple) of
2764
- (connection, read) timeouts.
2765
- :type _request_timeout: int, tuple(int, int), optional
2766
- :param _request_auth: set to override the auth_settings for an a single
2767
- request; this effectively ignores the
2768
- authentication in the spec for a single request.
2769
- :type _request_auth: dict, optional
2770
- :param _content_type: force content-type for the request.
2771
- :type _content_type: str, Optional
2772
- :param _headers: set to override the headers for a single
2773
- request; this effectively ignores the headers
2774
- in the spec for a single request.
2775
- :type _headers: dict, optional
2776
- :param _host_index: set to override the host_index for a single
2777
- request; this effectively ignores the host_index
2778
- in the spec for a single request.
2779
- :type _host_index: int, optional
2780
- :return: Returns the result object.
2781
- """ # noqa: E501
2782
-
2783
- _param = self._identity_request_reset_post_serialize(
2784
- legacy_request_password_reset_command=legacy_request_password_reset_command,
2785
- _request_auth=_request_auth,
2786
- _content_type=_content_type,
2787
- _headers=_headers,
2788
- _host_index=_host_index
2789
- )
2790
-
2791
- _response_types_map: Dict[str, Optional[str]] = {
2792
- '200': None,
2793
- }
2794
- response_data = self.api_client.call_api(
2795
- *_param,
2796
- _request_timeout=_request_timeout
2797
- )
2798
- response_data.read()
2799
- return self.api_client.response_deserialize(
2800
- response_data=response_data,
2801
- response_types_map=_response_types_map,
2802
- )
2803
-
2804
-
2805
- @validate_call
2806
- def identity_request_reset_post_without_preload_content(
2807
- self,
2808
- legacy_request_password_reset_command: Annotated[Optional[LegacyRequestPasswordResetCommand], Field(description="The command containing the user's email.")] = None,
2809
- _request_timeout: Union[
2810
- None,
2811
- Annotated[StrictFloat, Field(gt=0)],
2812
- Tuple[
2813
- Annotated[StrictFloat, Field(gt=0)],
2814
- Annotated[StrictFloat, Field(gt=0)]
2815
- ]
2816
- ] = None,
2817
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2818
- _content_type: Optional[StrictStr] = None,
2819
- _headers: Optional[Dict[StrictStr, Any]] = None,
2820
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2821
- ) -> RESTResponseType:
2822
- """Request a password reset for a user.
2823
-
2824
-
2825
- :param legacy_request_password_reset_command: The command containing the user's email.
2826
- :type legacy_request_password_reset_command: LegacyRequestPasswordResetCommand
2827
- :param _request_timeout: timeout setting for this request. If one
2828
- number provided, it will be total request
2829
- timeout. It can also be a pair (tuple) of
2830
- (connection, read) timeouts.
2831
- :type _request_timeout: int, tuple(int, int), optional
2832
- :param _request_auth: set to override the auth_settings for an a single
2833
- request; this effectively ignores the
2834
- authentication in the spec for a single request.
2835
- :type _request_auth: dict, optional
2836
- :param _content_type: force content-type for the request.
2837
- :type _content_type: str, Optional
2838
- :param _headers: set to override the headers for a single
2839
- request; this effectively ignores the headers
2840
- in the spec for a single request.
2841
- :type _headers: dict, optional
2842
- :param _host_index: set to override the host_index for a single
2843
- request; this effectively ignores the host_index
2844
- in the spec for a single request.
2845
- :type _host_index: int, optional
2846
- :return: Returns the result object.
2847
- """ # noqa: E501
2848
-
2849
- _param = self._identity_request_reset_post_serialize(
2850
- legacy_request_password_reset_command=legacy_request_password_reset_command,
2851
- _request_auth=_request_auth,
2852
- _content_type=_content_type,
2853
- _headers=_headers,
2854
- _host_index=_host_index
2855
- )
2856
-
2857
- _response_types_map: Dict[str, Optional[str]] = {
2858
- '200': None,
2859
- }
2860
- response_data = self.api_client.call_api(
2861
- *_param,
2862
- _request_timeout=_request_timeout
2863
- )
2864
- return response_data.response
2865
-
2866
-
2867
- def _identity_request_reset_post_serialize(
2868
- self,
2869
- legacy_request_password_reset_command,
2870
- _request_auth,
2871
- _content_type,
2872
- _headers,
2873
- _host_index,
2874
- ) -> RequestSerialized:
2875
-
2876
- _host = None
2877
-
2878
- _collection_formats: Dict[str, str] = {
2879
- }
2880
-
2881
- _path_params: Dict[str, str] = {}
2882
- _query_params: List[Tuple[str, str]] = []
2883
- _header_params: Dict[str, Optional[str]] = _headers or {}
2884
- _form_params: List[Tuple[str, str]] = []
2885
- _files: Dict[
2886
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2887
- ] = {}
2888
- _body_params: Optional[bytes] = None
2889
-
2890
- # process the path parameters
2891
- # process the query parameters
2892
- # process the header parameters
2893
- # process the form parameters
2894
- # process the body parameter
2895
- if legacy_request_password_reset_command is not None:
2896
- _body_params = legacy_request_password_reset_command
2897
-
2898
-
2899
-
2900
- # set the HTTP header `Content-Type`
2901
- if _content_type:
2902
- _header_params['Content-Type'] = _content_type
2903
- else:
2904
- _default_content_type = (
2905
- self.api_client.select_header_content_type(
2906
- [
2907
- 'application/json',
2908
- 'text/json',
2909
- 'application/*+json'
2910
- ]
2911
- )
2912
- )
2913
- if _default_content_type is not None:
2914
- _header_params['Content-Type'] = _default_content_type
2915
-
2916
- # authentication setting
2917
- _auth_settings: List[str] = [
2918
- 'bearer',
2919
- 'oauth2'
2920
- ]
2921
-
2922
- return self.api_client.param_serialize(
2923
- method='POST',
2924
- resource_path='/Identity/RequestReset',
2925
- path_params=_path_params,
2926
- query_params=_query_params,
2927
- header_params=_header_params,
2928
- body=_body_params,
2929
- post_params=_form_params,
2930
- files=_files,
2931
- auth_settings=_auth_settings,
2932
- collection_formats=_collection_formats,
2933
- _host=_host,
2934
- _request_auth=_request_auth
2935
- )
2936
-
2937
-
2938
-
2939
-
2940
- @validate_call
2941
- def identity_signup_post(
2942
- self,
2943
- signup_customer_model: Annotated[Optional[SignupCustomerModel], Field(description="The body to sign up the user with.")] = None,
2944
- _request_timeout: Union[
2945
- None,
2946
- Annotated[StrictFloat, Field(gt=0)],
2947
- Tuple[
2948
- Annotated[StrictFloat, Field(gt=0)],
2949
- Annotated[StrictFloat, Field(gt=0)]
2950
- ]
2951
- ] = None,
2952
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2953
- _content_type: Optional[StrictStr] = None,
2954
- _headers: Optional[Dict[StrictStr, Any]] = None,
2955
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2956
- ) -> None:
2957
- """Signs up a new user.
2958
-
2959
-
2960
- :param signup_customer_model: The body to sign up the user with.
2961
- :type signup_customer_model: SignupCustomerModel
2962
- :param _request_timeout: timeout setting for this request. If one
2963
- number provided, it will be total request
2964
- timeout. It can also be a pair (tuple) of
2965
- (connection, read) timeouts.
2966
- :type _request_timeout: int, tuple(int, int), optional
2967
- :param _request_auth: set to override the auth_settings for an a single
2968
- request; this effectively ignores the
2969
- authentication in the spec for a single request.
2970
- :type _request_auth: dict, optional
2971
- :param _content_type: force content-type for the request.
2972
- :type _content_type: str, Optional
2973
- :param _headers: set to override the headers for a single
2974
- request; this effectively ignores the headers
2975
- in the spec for a single request.
2976
- :type _headers: dict, optional
2977
- :param _host_index: set to override the host_index for a single
2978
- request; this effectively ignores the host_index
2979
- in the spec for a single request.
2980
- :type _host_index: int, optional
2981
- :return: Returns the result object.
2982
- """ # noqa: E501
2983
-
2984
- _param = self._identity_signup_post_serialize(
2985
- signup_customer_model=signup_customer_model,
2986
- _request_auth=_request_auth,
2987
- _content_type=_content_type,
2988
- _headers=_headers,
2989
- _host_index=_host_index
2990
- )
2991
-
2992
- _response_types_map: Dict[str, Optional[str]] = {
2993
- '200': None,
2994
- }
2995
- response_data = self.api_client.call_api(
2996
- *_param,
2997
- _request_timeout=_request_timeout
2998
- )
2999
- response_data.read()
3000
- return self.api_client.response_deserialize(
3001
- response_data=response_data,
3002
- response_types_map=_response_types_map,
3003
- ).data
3004
-
3005
-
3006
- @validate_call
3007
- def identity_signup_post_with_http_info(
3008
- self,
3009
- signup_customer_model: Annotated[Optional[SignupCustomerModel], Field(description="The body to sign up the user with.")] = None,
3010
- _request_timeout: Union[
3011
- None,
3012
- Annotated[StrictFloat, Field(gt=0)],
3013
- Tuple[
3014
- Annotated[StrictFloat, Field(gt=0)],
3015
- Annotated[StrictFloat, Field(gt=0)]
3016
- ]
3017
- ] = None,
3018
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3019
- _content_type: Optional[StrictStr] = None,
3020
- _headers: Optional[Dict[StrictStr, Any]] = None,
3021
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3022
- ) -> ApiResponse[None]:
3023
- """Signs up a new user.
3024
-
3025
-
3026
- :param signup_customer_model: The body to sign up the user with.
3027
- :type signup_customer_model: SignupCustomerModel
3028
- :param _request_timeout: timeout setting for this request. If one
3029
- number provided, it will be total request
3030
- timeout. It can also be a pair (tuple) of
3031
- (connection, read) timeouts.
3032
- :type _request_timeout: int, tuple(int, int), optional
3033
- :param _request_auth: set to override the auth_settings for an a single
3034
- request; this effectively ignores the
3035
- authentication in the spec for a single request.
3036
- :type _request_auth: dict, optional
3037
- :param _content_type: force content-type for the request.
3038
- :type _content_type: str, Optional
3039
- :param _headers: set to override the headers for a single
3040
- request; this effectively ignores the headers
3041
- in the spec for a single request.
3042
- :type _headers: dict, optional
3043
- :param _host_index: set to override the host_index for a single
3044
- request; this effectively ignores the host_index
3045
- in the spec for a single request.
3046
- :type _host_index: int, optional
3047
- :return: Returns the result object.
3048
- """ # noqa: E501
3049
-
3050
- _param = self._identity_signup_post_serialize(
3051
- signup_customer_model=signup_customer_model,
3052
- _request_auth=_request_auth,
3053
- _content_type=_content_type,
3054
- _headers=_headers,
3055
- _host_index=_host_index
3056
- )
3057
-
3058
- _response_types_map: Dict[str, Optional[str]] = {
3059
- '200': None,
3060
- }
3061
- response_data = self.api_client.call_api(
3062
- *_param,
3063
- _request_timeout=_request_timeout
3064
- )
3065
- response_data.read()
3066
- return self.api_client.response_deserialize(
3067
- response_data=response_data,
3068
- response_types_map=_response_types_map,
3069
- )
3070
-
3071
-
3072
- @validate_call
3073
- def identity_signup_post_without_preload_content(
3074
- self,
3075
- signup_customer_model: Annotated[Optional[SignupCustomerModel], Field(description="The body to sign up the user with.")] = None,
3076
- _request_timeout: Union[
3077
- None,
3078
- Annotated[StrictFloat, Field(gt=0)],
3079
- Tuple[
3080
- Annotated[StrictFloat, Field(gt=0)],
3081
- Annotated[StrictFloat, Field(gt=0)]
3082
- ]
3083
- ] = None,
3084
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3085
- _content_type: Optional[StrictStr] = None,
3086
- _headers: Optional[Dict[StrictStr, Any]] = None,
3087
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3088
- ) -> RESTResponseType:
3089
- """Signs up a new user.
3090
-
3091
-
3092
- :param signup_customer_model: The body to sign up the user with.
3093
- :type signup_customer_model: SignupCustomerModel
3094
- :param _request_timeout: timeout setting for this request. If one
3095
- number provided, it will be total request
3096
- timeout. It can also be a pair (tuple) of
3097
- (connection, read) timeouts.
3098
- :type _request_timeout: int, tuple(int, int), optional
3099
- :param _request_auth: set to override the auth_settings for an a single
3100
- request; this effectively ignores the
3101
- authentication in the spec for a single request.
3102
- :type _request_auth: dict, optional
3103
- :param _content_type: force content-type for the request.
3104
- :type _content_type: str, Optional
3105
- :param _headers: set to override the headers for a single
3106
- request; this effectively ignores the headers
3107
- in the spec for a single request.
3108
- :type _headers: dict, optional
3109
- :param _host_index: set to override the host_index for a single
3110
- request; this effectively ignores the host_index
3111
- in the spec for a single request.
3112
- :type _host_index: int, optional
3113
- :return: Returns the result object.
3114
- """ # noqa: E501
3115
-
3116
- _param = self._identity_signup_post_serialize(
3117
- signup_customer_model=signup_customer_model,
3118
- _request_auth=_request_auth,
3119
- _content_type=_content_type,
3120
- _headers=_headers,
3121
- _host_index=_host_index
3122
- )
3123
-
3124
- _response_types_map: Dict[str, Optional[str]] = {
3125
- '200': None,
3126
- }
3127
- response_data = self.api_client.call_api(
3128
- *_param,
3129
- _request_timeout=_request_timeout
3130
- )
3131
- return response_data.response
3132
-
3133
-
3134
- def _identity_signup_post_serialize(
3135
- self,
3136
- signup_customer_model,
3137
- _request_auth,
3138
- _content_type,
3139
- _headers,
3140
- _host_index,
3141
- ) -> RequestSerialized:
3142
-
3143
- _host = None
3144
-
3145
- _collection_formats: Dict[str, str] = {
3146
- }
3147
-
3148
- _path_params: Dict[str, str] = {}
3149
- _query_params: List[Tuple[str, str]] = []
3150
- _header_params: Dict[str, Optional[str]] = _headers or {}
3151
- _form_params: List[Tuple[str, str]] = []
3152
- _files: Dict[
3153
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3154
- ] = {}
3155
- _body_params: Optional[bytes] = None
3156
-
3157
- # process the path parameters
3158
- # process the query parameters
3159
- # process the header parameters
3160
- # process the form parameters
3161
- # process the body parameter
3162
- if signup_customer_model is not None:
3163
- _body_params = signup_customer_model
3164
-
3165
-
3166
-
3167
- # set the HTTP header `Content-Type`
3168
- if _content_type:
3169
- _header_params['Content-Type'] = _content_type
3170
- else:
3171
- _default_content_type = (
3172
- self.api_client.select_header_content_type(
3173
- [
3174
- 'application/json',
3175
- 'text/json',
3176
- 'application/*+json'
3177
- ]
3178
- )
3179
- )
3180
- if _default_content_type is not None:
3181
- _header_params['Content-Type'] = _default_content_type
3182
-
3183
- # authentication setting
3184
- _auth_settings: List[str] = [
3185
- 'bearer',
3186
- 'oauth2'
3187
- ]
3188
-
3189
- return self.api_client.param_serialize(
3190
- method='POST',
3191
- resource_path='/Identity/Signup',
3192
- path_params=_path_params,
3193
- query_params=_query_params,
3194
- header_params=_header_params,
3195
- body=_body_params,
3196
- post_params=_form_params,
3197
- files=_files,
3198
- auth_settings=_auth_settings,
3199
- collection_formats=_collection_formats,
3200
- _host=_host,
3201
- _request_auth=_request_auth
3202
- )
3203
-
3204
-
3205
-
3206
-
3207
- @validate_call
3208
- def identity_submit_reset_post(
3209
- self,
3210
- legacy_submit_password_reset_command: Annotated[Optional[LegacySubmitPasswordResetCommand], Field(description="The command containing the user's email, the reset token and the new password.")] = None,
3211
- _request_timeout: Union[
3212
- None,
3213
- Annotated[StrictFloat, Field(gt=0)],
3214
- Tuple[
3215
- Annotated[StrictFloat, Field(gt=0)],
3216
- Annotated[StrictFloat, Field(gt=0)]
3217
- ]
3218
- ] = None,
3219
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3220
- _content_type: Optional[StrictStr] = None,
3221
- _headers: Optional[Dict[StrictStr, Any]] = None,
3222
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3223
- ) -> None:
3224
- """Updates the password of a user after a password reset request.
3225
-
3226
-
3227
- :param legacy_submit_password_reset_command: The command containing the user's email, the reset token and the new password.
3228
- :type legacy_submit_password_reset_command: LegacySubmitPasswordResetCommand
3229
- :param _request_timeout: timeout setting for this request. If one
3230
- number provided, it will be total request
3231
- timeout. It can also be a pair (tuple) of
3232
- (connection, read) timeouts.
3233
- :type _request_timeout: int, tuple(int, int), optional
3234
- :param _request_auth: set to override the auth_settings for an a single
3235
- request; this effectively ignores the
3236
- authentication in the spec for a single request.
3237
- :type _request_auth: dict, optional
3238
- :param _content_type: force content-type for the request.
3239
- :type _content_type: str, Optional
3240
- :param _headers: set to override the headers for a single
3241
- request; this effectively ignores the headers
3242
- in the spec for a single request.
3243
- :type _headers: dict, optional
3244
- :param _host_index: set to override the host_index for a single
3245
- request; this effectively ignores the host_index
3246
- in the spec for a single request.
3247
- :type _host_index: int, optional
3248
- :return: Returns the result object.
3249
- """ # noqa: E501
3250
-
3251
- _param = self._identity_submit_reset_post_serialize(
3252
- legacy_submit_password_reset_command=legacy_submit_password_reset_command,
3253
- _request_auth=_request_auth,
3254
- _content_type=_content_type,
3255
- _headers=_headers,
3256
- _host_index=_host_index
3257
- )
3258
-
3259
- _response_types_map: Dict[str, Optional[str]] = {
3260
- '200': None,
3261
- }
3262
- response_data = self.api_client.call_api(
3263
- *_param,
3264
- _request_timeout=_request_timeout
3265
- )
3266
- response_data.read()
3267
- return self.api_client.response_deserialize(
3268
- response_data=response_data,
3269
- response_types_map=_response_types_map,
3270
- ).data
3271
-
3272
-
3273
- @validate_call
3274
- def identity_submit_reset_post_with_http_info(
3275
- self,
3276
- legacy_submit_password_reset_command: Annotated[Optional[LegacySubmitPasswordResetCommand], Field(description="The command containing the user's email, the reset token and the new password.")] = None,
3277
- _request_timeout: Union[
3278
- None,
3279
- Annotated[StrictFloat, Field(gt=0)],
3280
- Tuple[
3281
- Annotated[StrictFloat, Field(gt=0)],
3282
- Annotated[StrictFloat, Field(gt=0)]
3283
- ]
3284
- ] = None,
3285
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3286
- _content_type: Optional[StrictStr] = None,
3287
- _headers: Optional[Dict[StrictStr, Any]] = None,
3288
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3289
- ) -> ApiResponse[None]:
3290
- """Updates the password of a user after a password reset request.
3291
-
3292
-
3293
- :param legacy_submit_password_reset_command: The command containing the user's email, the reset token and the new password.
3294
- :type legacy_submit_password_reset_command: LegacySubmitPasswordResetCommand
3295
- :param _request_timeout: timeout setting for this request. If one
3296
- number provided, it will be total request
3297
- timeout. It can also be a pair (tuple) of
3298
- (connection, read) timeouts.
3299
- :type _request_timeout: int, tuple(int, int), optional
3300
- :param _request_auth: set to override the auth_settings for an a single
3301
- request; this effectively ignores the
3302
- authentication in the spec for a single request.
3303
- :type _request_auth: dict, optional
3304
- :param _content_type: force content-type for the request.
3305
- :type _content_type: str, Optional
3306
- :param _headers: set to override the headers for a single
3307
- request; this effectively ignores the headers
3308
- in the spec for a single request.
3309
- :type _headers: dict, optional
3310
- :param _host_index: set to override the host_index for a single
3311
- request; this effectively ignores the host_index
3312
- in the spec for a single request.
3313
- :type _host_index: int, optional
3314
- :return: Returns the result object.
3315
- """ # noqa: E501
3316
-
3317
- _param = self._identity_submit_reset_post_serialize(
3318
- legacy_submit_password_reset_command=legacy_submit_password_reset_command,
3319
- _request_auth=_request_auth,
3320
- _content_type=_content_type,
3321
- _headers=_headers,
3322
- _host_index=_host_index
3323
- )
3324
-
3325
- _response_types_map: Dict[str, Optional[str]] = {
3326
- '200': None,
3327
- }
3328
- response_data = self.api_client.call_api(
3329
- *_param,
3330
- _request_timeout=_request_timeout
3331
- )
3332
- response_data.read()
3333
- return self.api_client.response_deserialize(
3334
- response_data=response_data,
3335
- response_types_map=_response_types_map,
3336
- )
3337
-
3338
-
3339
- @validate_call
3340
- def identity_submit_reset_post_without_preload_content(
3341
- self,
3342
- legacy_submit_password_reset_command: Annotated[Optional[LegacySubmitPasswordResetCommand], Field(description="The command containing the user's email, the reset token and the new password.")] = None,
3343
- _request_timeout: Union[
3344
- None,
3345
- Annotated[StrictFloat, Field(gt=0)],
3346
- Tuple[
3347
- Annotated[StrictFloat, Field(gt=0)],
3348
- Annotated[StrictFloat, Field(gt=0)]
3349
- ]
3350
- ] = None,
3351
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3352
- _content_type: Optional[StrictStr] = None,
3353
- _headers: Optional[Dict[StrictStr, Any]] = None,
3354
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3355
- ) -> RESTResponseType:
3356
- """Updates the password of a user after a password reset request.
3357
-
3358
-
3359
- :param legacy_submit_password_reset_command: The command containing the user's email, the reset token and the new password.
3360
- :type legacy_submit_password_reset_command: LegacySubmitPasswordResetCommand
3361
- :param _request_timeout: timeout setting for this request. If one
3362
- number provided, it will be total request
3363
- timeout. It can also be a pair (tuple) of
3364
- (connection, read) timeouts.
3365
- :type _request_timeout: int, tuple(int, int), optional
3366
- :param _request_auth: set to override the auth_settings for an a single
3367
- request; this effectively ignores the
3368
- authentication in the spec for a single request.
3369
- :type _request_auth: dict, optional
3370
- :param _content_type: force content-type for the request.
3371
- :type _content_type: str, Optional
3372
- :param _headers: set to override the headers for a single
3373
- request; this effectively ignores the headers
3374
- in the spec for a single request.
3375
- :type _headers: dict, optional
3376
- :param _host_index: set to override the host_index for a single
3377
- request; this effectively ignores the host_index
3378
- in the spec for a single request.
3379
- :type _host_index: int, optional
3380
- :return: Returns the result object.
3381
- """ # noqa: E501
3382
-
3383
- _param = self._identity_submit_reset_post_serialize(
3384
- legacy_submit_password_reset_command=legacy_submit_password_reset_command,
3385
- _request_auth=_request_auth,
3386
- _content_type=_content_type,
3387
- _headers=_headers,
3388
- _host_index=_host_index
3389
- )
3390
-
3391
- _response_types_map: Dict[str, Optional[str]] = {
3392
- '200': None,
3393
- }
3394
- response_data = self.api_client.call_api(
3395
- *_param,
3396
- _request_timeout=_request_timeout
3397
- )
3398
- return response_data.response
3399
-
3400
-
3401
- def _identity_submit_reset_post_serialize(
3402
- self,
3403
- legacy_submit_password_reset_command,
3404
- _request_auth,
3405
- _content_type,
3406
- _headers,
3407
- _host_index,
3408
- ) -> RequestSerialized:
3409
-
3410
- _host = None
3411
-
3412
- _collection_formats: Dict[str, str] = {
3413
- }
3414
-
3415
- _path_params: Dict[str, str] = {}
3416
- _query_params: List[Tuple[str, str]] = []
3417
- _header_params: Dict[str, Optional[str]] = _headers or {}
3418
- _form_params: List[Tuple[str, str]] = []
3419
- _files: Dict[
3420
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3421
- ] = {}
3422
- _body_params: Optional[bytes] = None
3423
-
3424
- # process the path parameters
3425
- # process the query parameters
3426
- # process the header parameters
3427
- # process the form parameters
3428
- # process the body parameter
3429
- if legacy_submit_password_reset_command is not None:
3430
- _body_params = legacy_submit_password_reset_command
3431
-
3432
-
3433
-
3434
- # set the HTTP header `Content-Type`
3435
- if _content_type:
3436
- _header_params['Content-Type'] = _content_type
3437
- else:
3438
- _default_content_type = (
3439
- self.api_client.select_header_content_type(
3440
- [
3441
- 'application/json',
3442
- 'text/json',
3443
- 'application/*+json'
3444
- ]
3445
- )
3446
- )
3447
- if _default_content_type is not None:
3448
- _header_params['Content-Type'] = _default_content_type
3449
-
3450
- # authentication setting
3451
- _auth_settings: List[str] = [
3452
- 'bearer',
3453
- 'oauth2'
3454
- ]
3455
-
3456
- return self.api_client.param_serialize(
3457
- method='POST',
3458
- resource_path='/Identity/SubmitReset',
3459
- path_params=_path_params,
3460
- query_params=_query_params,
3461
- header_params=_header_params,
3462
- body=_body_params,
3463
- post_params=_form_params,
3464
- files=_files,
3465
- auth_settings=_auth_settings,
3466
- collection_formats=_collection_formats,
3467
- _host=_host,
3468
- _request_auth=_request_auth
3469
- )
3470
-
3471
-
3472
-
3473
-
3474
- @validate_call
3475
- def identity_temporary_post(
3476
- self,
3477
- signup_shadow_customer_model: Annotated[Optional[SignupShadowCustomerModel], Field(description="The model to create the temporary user with.")] = None,
3478
- _request_timeout: Union[
3479
- None,
3480
- Annotated[StrictFloat, Field(gt=0)],
3481
- Tuple[
3482
- Annotated[StrictFloat, Field(gt=0)],
3483
- Annotated[StrictFloat, Field(gt=0)]
3484
- ]
3485
- ] = None,
3486
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3487
- _content_type: Optional[StrictStr] = None,
3488
- _headers: Optional[Dict[StrictStr, Any]] = None,
3489
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3490
- ) -> None:
3491
- """Creates a new temporary user.
3492
-
3493
-
3494
- :param signup_shadow_customer_model: The model to create the temporary user with.
3495
- :type signup_shadow_customer_model: SignupShadowCustomerModel
3496
- :param _request_timeout: timeout setting for this request. If one
3497
- number provided, it will be total request
3498
- timeout. It can also be a pair (tuple) of
3499
- (connection, read) timeouts.
3500
- :type _request_timeout: int, tuple(int, int), optional
3501
- :param _request_auth: set to override the auth_settings for an a single
3502
- request; this effectively ignores the
3503
- authentication in the spec for a single request.
3504
- :type _request_auth: dict, optional
3505
- :param _content_type: force content-type for the request.
3506
- :type _content_type: str, Optional
3507
- :param _headers: set to override the headers for a single
3508
- request; this effectively ignores the headers
3509
- in the spec for a single request.
3510
- :type _headers: dict, optional
3511
- :param _host_index: set to override the host_index for a single
3512
- request; this effectively ignores the host_index
3513
- in the spec for a single request.
3514
- :type _host_index: int, optional
3515
- :return: Returns the result object.
3516
- """ # noqa: E501
3517
-
3518
- _param = self._identity_temporary_post_serialize(
3519
- signup_shadow_customer_model=signup_shadow_customer_model,
3520
- _request_auth=_request_auth,
3521
- _content_type=_content_type,
3522
- _headers=_headers,
3523
- _host_index=_host_index
3524
- )
3525
-
3526
- _response_types_map: Dict[str, Optional[str]] = {
3527
- '200': None,
3528
- }
3529
- response_data = self.api_client.call_api(
3530
- *_param,
3531
- _request_timeout=_request_timeout
3532
- )
3533
- response_data.read()
3534
- return self.api_client.response_deserialize(
3535
- response_data=response_data,
3536
- response_types_map=_response_types_map,
3537
- ).data
3538
-
3539
-
3540
- @validate_call
3541
- def identity_temporary_post_with_http_info(
3542
- self,
3543
- signup_shadow_customer_model: Annotated[Optional[SignupShadowCustomerModel], Field(description="The model to create the temporary user with.")] = None,
3544
- _request_timeout: Union[
3545
- None,
3546
- Annotated[StrictFloat, Field(gt=0)],
3547
- Tuple[
3548
- Annotated[StrictFloat, Field(gt=0)],
3549
- Annotated[StrictFloat, Field(gt=0)]
3550
- ]
3551
- ] = None,
3552
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3553
- _content_type: Optional[StrictStr] = None,
3554
- _headers: Optional[Dict[StrictStr, Any]] = None,
3555
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3556
- ) -> ApiResponse[None]:
3557
- """Creates a new temporary user.
3558
-
3559
-
3560
- :param signup_shadow_customer_model: The model to create the temporary user with.
3561
- :type signup_shadow_customer_model: SignupShadowCustomerModel
3562
- :param _request_timeout: timeout setting for this request. If one
3563
- number provided, it will be total request
3564
- timeout. It can also be a pair (tuple) of
3565
- (connection, read) timeouts.
3566
- :type _request_timeout: int, tuple(int, int), optional
3567
- :param _request_auth: set to override the auth_settings for an a single
3568
- request; this effectively ignores the
3569
- authentication in the spec for a single request.
3570
- :type _request_auth: dict, optional
3571
- :param _content_type: force content-type for the request.
3572
- :type _content_type: str, Optional
3573
- :param _headers: set to override the headers for a single
3574
- request; this effectively ignores the headers
3575
- in the spec for a single request.
3576
- :type _headers: dict, optional
3577
- :param _host_index: set to override the host_index for a single
3578
- request; this effectively ignores the host_index
3579
- in the spec for a single request.
3580
- :type _host_index: int, optional
3581
- :return: Returns the result object.
3582
- """ # noqa: E501
3583
-
3584
- _param = self._identity_temporary_post_serialize(
3585
- signup_shadow_customer_model=signup_shadow_customer_model,
3586
- _request_auth=_request_auth,
3587
- _content_type=_content_type,
3588
- _headers=_headers,
3589
- _host_index=_host_index
3590
- )
3591
-
3592
- _response_types_map: Dict[str, Optional[str]] = {
3593
- '200': None,
3594
- }
3595
- response_data = self.api_client.call_api(
3596
- *_param,
3597
- _request_timeout=_request_timeout
3598
- )
3599
- response_data.read()
3600
- return self.api_client.response_deserialize(
3601
- response_data=response_data,
3602
- response_types_map=_response_types_map,
3603
- )
3604
-
3605
-
3606
- @validate_call
3607
- def identity_temporary_post_without_preload_content(
3608
- self,
3609
- signup_shadow_customer_model: Annotated[Optional[SignupShadowCustomerModel], Field(description="The model to create the temporary user with.")] = None,
3610
- _request_timeout: Union[
3611
- None,
3612
- Annotated[StrictFloat, Field(gt=0)],
3613
- Tuple[
3614
- Annotated[StrictFloat, Field(gt=0)],
3615
- Annotated[StrictFloat, Field(gt=0)]
3616
- ]
3617
- ] = None,
3618
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3619
- _content_type: Optional[StrictStr] = None,
3620
- _headers: Optional[Dict[StrictStr, Any]] = None,
3621
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3622
- ) -> RESTResponseType:
3623
- """Creates a new temporary user.
3624
-
3625
-
3626
- :param signup_shadow_customer_model: The model to create the temporary user with.
3627
- :type signup_shadow_customer_model: SignupShadowCustomerModel
3628
- :param _request_timeout: timeout setting for this request. If one
3629
- number provided, it will be total request
3630
- timeout. It can also be a pair (tuple) of
3631
- (connection, read) timeouts.
3632
- :type _request_timeout: int, tuple(int, int), optional
3633
- :param _request_auth: set to override the auth_settings for an a single
3634
- request; this effectively ignores the
3635
- authentication in the spec for a single request.
3636
- :type _request_auth: dict, optional
3637
- :param _content_type: force content-type for the request.
3638
- :type _content_type: str, Optional
3639
- :param _headers: set to override the headers for a single
3640
- request; this effectively ignores the headers
3641
- in the spec for a single request.
3642
- :type _headers: dict, optional
3643
- :param _host_index: set to override the host_index for a single
3644
- request; this effectively ignores the host_index
3645
- in the spec for a single request.
3646
- :type _host_index: int, optional
3647
- :return: Returns the result object.
3648
- """ # noqa: E501
3649
-
3650
- _param = self._identity_temporary_post_serialize(
3651
- signup_shadow_customer_model=signup_shadow_customer_model,
3652
- _request_auth=_request_auth,
3653
- _content_type=_content_type,
3654
- _headers=_headers,
3655
- _host_index=_host_index
3656
- )
3657
-
3658
- _response_types_map: Dict[str, Optional[str]] = {
3659
- '200': None,
3660
- }
3661
- response_data = self.api_client.call_api(
3662
- *_param,
3663
- _request_timeout=_request_timeout
3664
- )
3665
- return response_data.response
3666
-
3667
-
3668
- def _identity_temporary_post_serialize(
3669
- self,
3670
- signup_shadow_customer_model,
3671
- _request_auth,
3672
- _content_type,
3673
- _headers,
3674
- _host_index,
3675
- ) -> RequestSerialized:
3676
-
3677
- _host = None
3678
-
3679
- _collection_formats: Dict[str, str] = {
3680
- }
3681
-
3682
- _path_params: Dict[str, str] = {}
3683
- _query_params: List[Tuple[str, str]] = []
3684
- _header_params: Dict[str, Optional[str]] = _headers or {}
3685
- _form_params: List[Tuple[str, str]] = []
3686
- _files: Dict[
3687
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3688
- ] = {}
3689
- _body_params: Optional[bytes] = None
3690
-
3691
- # process the path parameters
3692
- # process the query parameters
3693
- # process the header parameters
3694
- # process the form parameters
3695
- # process the body parameter
3696
- if signup_shadow_customer_model is not None:
3697
- _body_params = signup_shadow_customer_model
3698
-
3699
-
3700
-
3701
- # set the HTTP header `Content-Type`
3702
- if _content_type:
3703
- _header_params['Content-Type'] = _content_type
3704
- else:
3705
- _default_content_type = (
3706
- self.api_client.select_header_content_type(
3707
- [
3708
- 'application/json',
3709
- 'text/json',
3710
- 'application/*+json'
3711
- ]
3712
- )
3713
- )
3714
- if _default_content_type is not None:
3715
- _header_params['Content-Type'] = _default_content_type
3716
-
3717
- # authentication setting
3718
- _auth_settings: List[str] = [
3719
- 'bearer',
3720
- 'oauth2'
3721
- ]
3722
-
3723
- return self.api_client.param_serialize(
3724
- method='POST',
3725
- resource_path='/Identity/Temporary',
571
+ resource_path='/Identity/RegisterTemporary',
3726
572
  path_params=_path_params,
3727
573
  query_params=_query_params,
3728
574
  header_params=_header_params,