rxfoundry.clients.swifty-oauth-api 0.0.620__py3-none-any.whl → 1.0.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.
Files changed (116) hide show
  1. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/METADATA +1 -1
  2. rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info/RECORD +19 -0
  3. rxfoundry/clients/p2rx_api/__init__.py +0 -79
  4. rxfoundry/clients/p2rx_api/api/__init__.py +0 -17
  5. rxfoundry/clients/p2rx_api/api/async_api.py +0 -862
  6. rxfoundry/clients/p2rx_api/api/code_api.py +0 -337
  7. rxfoundry/clients/p2rx_api/api/fax_api.py +0 -632
  8. rxfoundry/clients/p2rx_api/api/medication_api.py +0 -666
  9. rxfoundry/clients/p2rx_api/api/patient_api.py +0 -981
  10. rxfoundry/clients/p2rx_api/api/pharmacist_api.py +0 -615
  11. rxfoundry/clients/p2rx_api/api/pharmacy_api.py +0 -684
  12. rxfoundry/clients/p2rx_api/api/prescriber_api.py +0 -615
  13. rxfoundry/clients/p2rx_api/api/prescription_api.py +0 -1864
  14. rxfoundry/clients/p2rx_api/api/token_api.py +0 -314
  15. rxfoundry/clients/p2rx_api/api/user_api.py +0 -306
  16. rxfoundry/clients/p2rx_api/api/version_api.py +0 -282
  17. rxfoundry/clients/p2rx_api/api/virtual_pharmacy_api.py +0 -284
  18. rxfoundry/clients/p2rx_api/api_client.py +0 -798
  19. rxfoundry/clients/p2rx_api/api_response.py +0 -21
  20. rxfoundry/clients/p2rx_api/configuration.py +0 -583
  21. rxfoundry/clients/p2rx_api/exceptions.py +0 -217
  22. rxfoundry/clients/p2rx_api/models/__init__.py +0 -50
  23. rxfoundry/clients/p2rx_api/models/address.py +0 -106
  24. rxfoundry/clients/p2rx_api/models/asynchronous_response.py +0 -90
  25. rxfoundry/clients/p2rx_api/models/code.py +0 -92
  26. rxfoundry/clients/p2rx_api/models/code_qualifier_code.py +0 -96
  27. rxfoundry/clients/p2rx_api/models/error_message.py +0 -90
  28. rxfoundry/clients/p2rx_api/models/fax.py +0 -141
  29. rxfoundry/clients/p2rx_api/models/medication.py +0 -137
  30. rxfoundry/clients/p2rx_api/models/medication_program_pricing.py +0 -99
  31. rxfoundry/clients/p2rx_api/models/medication_variant.py +0 -96
  32. rxfoundry/clients/p2rx_api/models/patient.py +0 -128
  33. rxfoundry/clients/p2rx_api/models/patient_activity_notification.py +0 -114
  34. rxfoundry/clients/p2rx_api/models/patient_external_identifier.py +0 -94
  35. rxfoundry/clients/p2rx_api/models/pharmacist.py +0 -104
  36. rxfoundry/clients/p2rx_api/models/pharmacy.py +0 -156
  37. rxfoundry/clients/p2rx_api/models/pharmacy_chain.py +0 -100
  38. rxfoundry/clients/p2rx_api/models/pharmacy_other_identifier.py +0 -98
  39. rxfoundry/clients/p2rx_api/models/pharmacy_program_pricing.py +0 -103
  40. rxfoundry/clients/p2rx_api/models/prescriber.py +0 -106
  41. rxfoundry/clients/p2rx_api/models/prescription.py +0 -278
  42. rxfoundry/clients/p2rx_api/models/prescription_change_request.py +0 -123
  43. rxfoundry/clients/p2rx_api/models/prescription_issue.py +0 -120
  44. rxfoundry/clients/p2rx_api/models/prescription_patch.py +0 -113
  45. rxfoundry/clients/p2rx_api/models/prescription_task.py +0 -130
  46. rxfoundry/clients/p2rx_api/models/prescription_task_status.py +0 -95
  47. rxfoundry/clients/p2rx_api/models/prescription_transfer_request.py +0 -93
  48. rxfoundry/clients/p2rx_api/models/prescription_verification.py +0 -107
  49. rxfoundry/clients/p2rx_api/models/pricing_program.py +0 -90
  50. rxfoundry/clients/p2rx_api/models/surescripts_message.py +0 -111
  51. rxfoundry/clients/p2rx_api/models/token.py +0 -92
  52. rxfoundry/clients/p2rx_api/models/user.py +0 -98
  53. rxfoundry/clients/p2rx_api/models/version.py +0 -88
  54. rxfoundry/clients/p2rx_api/models/virtual_pharmacy.py +0 -96
  55. rxfoundry/clients/p2rx_api/models/workflow_request.py +0 -90
  56. rxfoundry/clients/p2rx_api/py.typed +0 -0
  57. rxfoundry/clients/p2rx_api/rest.py +0 -259
  58. rxfoundry/clients/swifty_api/__init__.py +0 -79
  59. rxfoundry/clients/swifty_api/api/__init__.py +0 -17
  60. rxfoundry/clients/swifty_api/api/async_api.py +0 -862
  61. rxfoundry/clients/swifty_api/api/code_api.py +0 -337
  62. rxfoundry/clients/swifty_api/api/fax_api.py +0 -632
  63. rxfoundry/clients/swifty_api/api/medication_api.py +0 -666
  64. rxfoundry/clients/swifty_api/api/patient_api.py +0 -981
  65. rxfoundry/clients/swifty_api/api/pharmacist_api.py +0 -615
  66. rxfoundry/clients/swifty_api/api/pharmacy_api.py +0 -684
  67. rxfoundry/clients/swifty_api/api/prescriber_api.py +0 -615
  68. rxfoundry/clients/swifty_api/api/prescription_api.py +0 -1864
  69. rxfoundry/clients/swifty_api/api/token_api.py +0 -314
  70. rxfoundry/clients/swifty_api/api/user_api.py +0 -306
  71. rxfoundry/clients/swifty_api/api/version_api.py +0 -282
  72. rxfoundry/clients/swifty_api/api/virtual_pharmacy_api.py +0 -284
  73. rxfoundry/clients/swifty_api/api_client.py +0 -798
  74. rxfoundry/clients/swifty_api/api_response.py +0 -21
  75. rxfoundry/clients/swifty_api/configuration.py +0 -583
  76. rxfoundry/clients/swifty_api/exceptions.py +0 -217
  77. rxfoundry/clients/swifty_api/models/__init__.py +0 -50
  78. rxfoundry/clients/swifty_api/models/address.py +0 -106
  79. rxfoundry/clients/swifty_api/models/asynchronous_response.py +0 -90
  80. rxfoundry/clients/swifty_api/models/code.py +0 -92
  81. rxfoundry/clients/swifty_api/models/code_qualifier_code.py +0 -96
  82. rxfoundry/clients/swifty_api/models/error_message.py +0 -90
  83. rxfoundry/clients/swifty_api/models/fax.py +0 -141
  84. rxfoundry/clients/swifty_api/models/medication.py +0 -137
  85. rxfoundry/clients/swifty_api/models/medication_program_pricing.py +0 -99
  86. rxfoundry/clients/swifty_api/models/medication_variant.py +0 -96
  87. rxfoundry/clients/swifty_api/models/patient.py +0 -128
  88. rxfoundry/clients/swifty_api/models/patient_activity_notification.py +0 -114
  89. rxfoundry/clients/swifty_api/models/patient_external_identifier.py +0 -94
  90. rxfoundry/clients/swifty_api/models/pharmacist.py +0 -104
  91. rxfoundry/clients/swifty_api/models/pharmacy.py +0 -156
  92. rxfoundry/clients/swifty_api/models/pharmacy_chain.py +0 -100
  93. rxfoundry/clients/swifty_api/models/pharmacy_other_identifier.py +0 -98
  94. rxfoundry/clients/swifty_api/models/pharmacy_program_pricing.py +0 -103
  95. rxfoundry/clients/swifty_api/models/prescriber.py +0 -106
  96. rxfoundry/clients/swifty_api/models/prescription.py +0 -278
  97. rxfoundry/clients/swifty_api/models/prescription_change_request.py +0 -123
  98. rxfoundry/clients/swifty_api/models/prescription_issue.py +0 -120
  99. rxfoundry/clients/swifty_api/models/prescription_patch.py +0 -113
  100. rxfoundry/clients/swifty_api/models/prescription_task.py +0 -130
  101. rxfoundry/clients/swifty_api/models/prescription_task_status.py +0 -95
  102. rxfoundry/clients/swifty_api/models/prescription_transfer_request.py +0 -93
  103. rxfoundry/clients/swifty_api/models/prescription_verification.py +0 -107
  104. rxfoundry/clients/swifty_api/models/pricing_program.py +0 -90
  105. rxfoundry/clients/swifty_api/models/surescripts_message.py +0 -111
  106. rxfoundry/clients/swifty_api/models/token.py +0 -92
  107. rxfoundry/clients/swifty_api/models/user.py +0 -98
  108. rxfoundry/clients/swifty_api/models/version.py +0 -88
  109. rxfoundry/clients/swifty_api/models/virtual_pharmacy.py +0 -98
  110. rxfoundry/clients/swifty_api/models/workflow_request.py +0 -90
  111. rxfoundry/clients/swifty_api/py.typed +0 -0
  112. rxfoundry/clients/swifty_api/rest.py +0 -259
  113. rxfoundry/clients/swifty_oauth_api/models/token_post_request.py +0 -94
  114. rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info/RECORD +0 -130
  115. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/WHEEL +0 -0
  116. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/top_level.txt +0 -0
@@ -1,314 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- P2RX API
5
-
6
- API for the P2RX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
- import warnings
16
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
- from typing import Any, Dict, List, Optional, Tuple, Union
18
- from typing_extensions import Annotated
19
-
20
- from typing import Optional
21
- from rxfoundry.clients.swifty_api.models.token import Token
22
-
23
- from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
24
- from rxfoundry.clients.swifty_api.api_response import ApiResponse
25
- from rxfoundry.clients.swifty_api.rest import RESTResponseType
26
-
27
-
28
- class TokenApi:
29
- """NOTE: This class is auto generated by OpenAPI Generator
30
- Ref: https://openapi-generator.tech
31
-
32
- Do not edit the class manually.
33
- """
34
-
35
- def __init__(self, api_client=None) -> None:
36
- if api_client is None:
37
- api_client = ApiClient.get_default()
38
- self.api_client = api_client
39
-
40
-
41
- @validate_call
42
- def get_token_for_token(
43
- self,
44
- token: Optional[Token] = None,
45
- _request_timeout: Union[
46
- None,
47
- Annotated[StrictFloat, Field(gt=0)],
48
- Tuple[
49
- Annotated[StrictFloat, Field(gt=0)],
50
- Annotated[StrictFloat, Field(gt=0)]
51
- ]
52
- ] = None,
53
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
54
- _content_type: Optional[StrictStr] = None,
55
- _headers: Optional[Dict[StrictStr, Any]] = None,
56
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
- ) -> Token:
58
- """Get a delegated token based upon an already authorized token
59
-
60
- Creates a token for p2rx using an authenticated token from the user's frontend system.
61
-
62
- :param token:
63
- :type token: Token
64
- :param _request_timeout: timeout setting for this request. If one
65
- number provided, it will be total request
66
- timeout. It can also be a pair (tuple) of
67
- (connection, read) timeouts.
68
- :type _request_timeout: int, tuple(int, int), optional
69
- :param _request_auth: set to override the auth_settings for an a single
70
- request; this effectively ignores the
71
- authentication in the spec for a single request.
72
- :type _request_auth: dict, optional
73
- :param _content_type: force content-type for the request.
74
- :type _content_type: str, Optional
75
- :param _headers: set to override the headers for a single
76
- request; this effectively ignores the headers
77
- in the spec for a single request.
78
- :type _headers: dict, optional
79
- :param _host_index: set to override the host_index for a single
80
- request; this effectively ignores the host_index
81
- in the spec for a single request.
82
- :type _host_index: int, optional
83
- :return: Returns the result object.
84
- """ # noqa: E501
85
-
86
- _param = self._get_token_for_token_serialize(
87
- token=token,
88
- _request_auth=_request_auth,
89
- _content_type=_content_type,
90
- _headers=_headers,
91
- _host_index=_host_index
92
- )
93
-
94
- _response_types_map: Dict[str, Optional[str]] = {
95
- '200': "Token",
96
- '404': None,
97
- }
98
- response_data = self.api_client.call_api(
99
- *_param,
100
- _request_timeout=_request_timeout
101
- )
102
- response_data.read()
103
- return self.api_client.response_deserialize(
104
- response_data=response_data,
105
- response_types_map=_response_types_map,
106
- ).data
107
-
108
-
109
- @validate_call
110
- def get_token_for_token_with_http_info(
111
- self,
112
- token: Optional[Token] = None,
113
- _request_timeout: Union[
114
- None,
115
- Annotated[StrictFloat, Field(gt=0)],
116
- Tuple[
117
- Annotated[StrictFloat, Field(gt=0)],
118
- Annotated[StrictFloat, Field(gt=0)]
119
- ]
120
- ] = None,
121
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
122
- _content_type: Optional[StrictStr] = None,
123
- _headers: Optional[Dict[StrictStr, Any]] = None,
124
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
125
- ) -> ApiResponse[Token]:
126
- """Get a delegated token based upon an already authorized token
127
-
128
- Creates a token for p2rx using an authenticated token from the user's frontend system.
129
-
130
- :param token:
131
- :type token: Token
132
- :param _request_timeout: timeout setting for this request. If one
133
- number provided, it will be total request
134
- timeout. It can also be a pair (tuple) of
135
- (connection, read) timeouts.
136
- :type _request_timeout: int, tuple(int, int), optional
137
- :param _request_auth: set to override the auth_settings for an a single
138
- request; this effectively ignores the
139
- authentication in the spec for a single request.
140
- :type _request_auth: dict, optional
141
- :param _content_type: force content-type for the request.
142
- :type _content_type: str, Optional
143
- :param _headers: set to override the headers for a single
144
- request; this effectively ignores the headers
145
- in the spec for a single request.
146
- :type _headers: dict, optional
147
- :param _host_index: set to override the host_index for a single
148
- request; this effectively ignores the host_index
149
- in the spec for a single request.
150
- :type _host_index: int, optional
151
- :return: Returns the result object.
152
- """ # noqa: E501
153
-
154
- _param = self._get_token_for_token_serialize(
155
- token=token,
156
- _request_auth=_request_auth,
157
- _content_type=_content_type,
158
- _headers=_headers,
159
- _host_index=_host_index
160
- )
161
-
162
- _response_types_map: Dict[str, Optional[str]] = {
163
- '200': "Token",
164
- '404': None,
165
- }
166
- response_data = self.api_client.call_api(
167
- *_param,
168
- _request_timeout=_request_timeout
169
- )
170
- response_data.read()
171
- return self.api_client.response_deserialize(
172
- response_data=response_data,
173
- response_types_map=_response_types_map,
174
- )
175
-
176
-
177
- @validate_call
178
- def get_token_for_token_without_preload_content(
179
- self,
180
- token: Optional[Token] = None,
181
- _request_timeout: Union[
182
- None,
183
- Annotated[StrictFloat, Field(gt=0)],
184
- Tuple[
185
- Annotated[StrictFloat, Field(gt=0)],
186
- Annotated[StrictFloat, Field(gt=0)]
187
- ]
188
- ] = None,
189
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
190
- _content_type: Optional[StrictStr] = None,
191
- _headers: Optional[Dict[StrictStr, Any]] = None,
192
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
193
- ) -> RESTResponseType:
194
- """Get a delegated token based upon an already authorized token
195
-
196
- Creates a token for p2rx using an authenticated token from the user's frontend system.
197
-
198
- :param token:
199
- :type token: Token
200
- :param _request_timeout: timeout setting for this request. If one
201
- number provided, it will be total request
202
- timeout. It can also be a pair (tuple) of
203
- (connection, read) timeouts.
204
- :type _request_timeout: int, tuple(int, int), optional
205
- :param _request_auth: set to override the auth_settings for an a single
206
- request; this effectively ignores the
207
- authentication in the spec for a single request.
208
- :type _request_auth: dict, optional
209
- :param _content_type: force content-type for the request.
210
- :type _content_type: str, Optional
211
- :param _headers: set to override the headers for a single
212
- request; this effectively ignores the headers
213
- in the spec for a single request.
214
- :type _headers: dict, optional
215
- :param _host_index: set to override the host_index for a single
216
- request; this effectively ignores the host_index
217
- in the spec for a single request.
218
- :type _host_index: int, optional
219
- :return: Returns the result object.
220
- """ # noqa: E501
221
-
222
- _param = self._get_token_for_token_serialize(
223
- token=token,
224
- _request_auth=_request_auth,
225
- _content_type=_content_type,
226
- _headers=_headers,
227
- _host_index=_host_index
228
- )
229
-
230
- _response_types_map: Dict[str, Optional[str]] = {
231
- '200': "Token",
232
- '404': None,
233
- }
234
- response_data = self.api_client.call_api(
235
- *_param,
236
- _request_timeout=_request_timeout
237
- )
238
- return response_data.response
239
-
240
-
241
- def _get_token_for_token_serialize(
242
- self,
243
- token,
244
- _request_auth,
245
- _content_type,
246
- _headers,
247
- _host_index,
248
- ) -> RequestSerialized:
249
-
250
- _host = None
251
-
252
- _collection_formats: Dict[str, str] = {
253
- }
254
-
255
- _path_params: Dict[str, str] = {}
256
- _query_params: List[Tuple[str, str]] = []
257
- _header_params: Dict[str, Optional[str]] = _headers or {}
258
- _form_params: List[Tuple[str, str]] = []
259
- _files: Dict[
260
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
261
- ] = {}
262
- _body_params: Optional[bytes] = None
263
-
264
- # process the path parameters
265
- # process the query parameters
266
- # process the header parameters
267
- # process the form parameters
268
- # process the body parameter
269
- if token is not None:
270
- _body_params = token
271
-
272
-
273
- # set the HTTP header `Accept`
274
- if 'Accept' not in _header_params:
275
- _header_params['Accept'] = self.api_client.select_header_accept(
276
- [
277
- 'application/json'
278
- ]
279
- )
280
-
281
- # set the HTTP header `Content-Type`
282
- if _content_type:
283
- _header_params['Content-Type'] = _content_type
284
- else:
285
- _default_content_type = (
286
- self.api_client.select_header_content_type(
287
- [
288
- 'application/json'
289
- ]
290
- )
291
- )
292
- if _default_content_type is not None:
293
- _header_params['Content-Type'] = _default_content_type
294
-
295
- # authentication setting
296
- _auth_settings: List[str] = [
297
- ]
298
-
299
- return self.api_client.param_serialize(
300
- method='POST',
301
- resource_path='/p2rx/1/token',
302
- path_params=_path_params,
303
- query_params=_query_params,
304
- header_params=_header_params,
305
- body=_body_params,
306
- post_params=_form_params,
307
- files=_files,
308
- auth_settings=_auth_settings,
309
- collection_formats=_collection_formats,
310
- _host=_host,
311
- _request_auth=_request_auth
312
- )
313
-
314
-
@@ -1,306 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- P2RX API
5
-
6
- API for the P2RX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
- import warnings
16
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
- from typing import Any, Dict, List, Optional, Tuple, Union
18
- from typing_extensions import Annotated
19
-
20
- from pydantic import Field, StrictStr
21
- from typing import List
22
- from typing_extensions import Annotated
23
- from rxfoundry.clients.swifty_api.models.user import User
24
-
25
- from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
26
- from rxfoundry.clients.swifty_api.api_response import ApiResponse
27
- from rxfoundry.clients.swifty_api.rest import RESTResponseType
28
-
29
-
30
- class UserApi:
31
- """NOTE: This class is auto generated by OpenAPI Generator
32
- Ref: https://openapi-generator.tech
33
-
34
- Do not edit the class manually.
35
- """
36
-
37
- def __init__(self, api_client=None) -> None:
38
- if api_client is None:
39
- api_client = ApiClient.get_default()
40
- self.api_client = api_client
41
-
42
-
43
- @validate_call
44
- def get_users(
45
- self,
46
- email: Annotated[StrictStr, Field(description="The user's email address")],
47
- _request_timeout: Union[
48
- None,
49
- Annotated[StrictFloat, Field(gt=0)],
50
- Tuple[
51
- Annotated[StrictFloat, Field(gt=0)],
52
- Annotated[StrictFloat, Field(gt=0)]
53
- ]
54
- ] = None,
55
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
- _content_type: Optional[StrictStr] = None,
57
- _headers: Optional[Dict[StrictStr, Any]] = None,
58
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
- ) -> List[User]:
60
- """Get one or more users
61
-
62
- Get one or more users
63
-
64
- :param email: The user's email address (required)
65
- :type email: str
66
- :param _request_timeout: timeout setting for this request. If one
67
- number provided, it will be total request
68
- timeout. It can also be a pair (tuple) of
69
- (connection, read) timeouts.
70
- :type _request_timeout: int, tuple(int, int), optional
71
- :param _request_auth: set to override the auth_settings for an a single
72
- request; this effectively ignores the
73
- authentication in the spec for a single request.
74
- :type _request_auth: dict, optional
75
- :param _content_type: force content-type for the request.
76
- :type _content_type: str, Optional
77
- :param _headers: set to override the headers for a single
78
- request; this effectively ignores the headers
79
- in the spec for a single request.
80
- :type _headers: dict, optional
81
- :param _host_index: set to override the host_index for a single
82
- request; this effectively ignores the host_index
83
- in the spec for a single request.
84
- :type _host_index: int, optional
85
- :return: Returns the result object.
86
- """ # noqa: E501
87
-
88
- _param = self._get_users_serialize(
89
- email=email,
90
- _request_auth=_request_auth,
91
- _content_type=_content_type,
92
- _headers=_headers,
93
- _host_index=_host_index
94
- )
95
-
96
- _response_types_map: Dict[str, Optional[str]] = {
97
- '200': "List[User]",
98
- '404': None,
99
- }
100
- response_data = self.api_client.call_api(
101
- *_param,
102
- _request_timeout=_request_timeout
103
- )
104
- response_data.read()
105
- return self.api_client.response_deserialize(
106
- response_data=response_data,
107
- response_types_map=_response_types_map,
108
- ).data
109
-
110
-
111
- @validate_call
112
- def get_users_with_http_info(
113
- self,
114
- email: Annotated[StrictStr, Field(description="The user's email address")],
115
- _request_timeout: Union[
116
- None,
117
- Annotated[StrictFloat, Field(gt=0)],
118
- Tuple[
119
- Annotated[StrictFloat, Field(gt=0)],
120
- Annotated[StrictFloat, Field(gt=0)]
121
- ]
122
- ] = None,
123
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
124
- _content_type: Optional[StrictStr] = None,
125
- _headers: Optional[Dict[StrictStr, Any]] = None,
126
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
- ) -> ApiResponse[List[User]]:
128
- """Get one or more users
129
-
130
- Get one or more users
131
-
132
- :param email: The user's email address (required)
133
- :type email: str
134
- :param _request_timeout: timeout setting for this request. If one
135
- number provided, it will be total request
136
- timeout. It can also be a pair (tuple) of
137
- (connection, read) timeouts.
138
- :type _request_timeout: int, tuple(int, int), optional
139
- :param _request_auth: set to override the auth_settings for an a single
140
- request; this effectively ignores the
141
- authentication in the spec for a single request.
142
- :type _request_auth: dict, optional
143
- :param _content_type: force content-type for the request.
144
- :type _content_type: str, Optional
145
- :param _headers: set to override the headers for a single
146
- request; this effectively ignores the headers
147
- in the spec for a single request.
148
- :type _headers: dict, optional
149
- :param _host_index: set to override the host_index for a single
150
- request; this effectively ignores the host_index
151
- in the spec for a single request.
152
- :type _host_index: int, optional
153
- :return: Returns the result object.
154
- """ # noqa: E501
155
-
156
- _param = self._get_users_serialize(
157
- email=email,
158
- _request_auth=_request_auth,
159
- _content_type=_content_type,
160
- _headers=_headers,
161
- _host_index=_host_index
162
- )
163
-
164
- _response_types_map: Dict[str, Optional[str]] = {
165
- '200': "List[User]",
166
- '404': None,
167
- }
168
- response_data = self.api_client.call_api(
169
- *_param,
170
- _request_timeout=_request_timeout
171
- )
172
- response_data.read()
173
- return self.api_client.response_deserialize(
174
- response_data=response_data,
175
- response_types_map=_response_types_map,
176
- )
177
-
178
-
179
- @validate_call
180
- def get_users_without_preload_content(
181
- self,
182
- email: Annotated[StrictStr, Field(description="The user's email address")],
183
- _request_timeout: Union[
184
- None,
185
- Annotated[StrictFloat, Field(gt=0)],
186
- Tuple[
187
- Annotated[StrictFloat, Field(gt=0)],
188
- Annotated[StrictFloat, Field(gt=0)]
189
- ]
190
- ] = None,
191
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
192
- _content_type: Optional[StrictStr] = None,
193
- _headers: Optional[Dict[StrictStr, Any]] = None,
194
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
195
- ) -> RESTResponseType:
196
- """Get one or more users
197
-
198
- Get one or more users
199
-
200
- :param email: The user's email address (required)
201
- :type email: str
202
- :param _request_timeout: timeout setting for this request. If one
203
- number provided, it will be total request
204
- timeout. It can also be a pair (tuple) of
205
- (connection, read) timeouts.
206
- :type _request_timeout: int, tuple(int, int), optional
207
- :param _request_auth: set to override the auth_settings for an a single
208
- request; this effectively ignores the
209
- authentication in the spec for a single request.
210
- :type _request_auth: dict, optional
211
- :param _content_type: force content-type for the request.
212
- :type _content_type: str, Optional
213
- :param _headers: set to override the headers for a single
214
- request; this effectively ignores the headers
215
- in the spec for a single request.
216
- :type _headers: dict, optional
217
- :param _host_index: set to override the host_index for a single
218
- request; this effectively ignores the host_index
219
- in the spec for a single request.
220
- :type _host_index: int, optional
221
- :return: Returns the result object.
222
- """ # noqa: E501
223
-
224
- _param = self._get_users_serialize(
225
- email=email,
226
- _request_auth=_request_auth,
227
- _content_type=_content_type,
228
- _headers=_headers,
229
- _host_index=_host_index
230
- )
231
-
232
- _response_types_map: Dict[str, Optional[str]] = {
233
- '200': "List[User]",
234
- '404': None,
235
- }
236
- response_data = self.api_client.call_api(
237
- *_param,
238
- _request_timeout=_request_timeout
239
- )
240
- return response_data.response
241
-
242
-
243
- def _get_users_serialize(
244
- self,
245
- email,
246
- _request_auth,
247
- _content_type,
248
- _headers,
249
- _host_index,
250
- ) -> RequestSerialized:
251
-
252
- _host = None
253
-
254
- _collection_formats: Dict[str, str] = {
255
- }
256
-
257
- _path_params: Dict[str, str] = {}
258
- _query_params: List[Tuple[str, str]] = []
259
- _header_params: Dict[str, Optional[str]] = _headers or {}
260
- _form_params: List[Tuple[str, str]] = []
261
- _files: Dict[
262
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
263
- ] = {}
264
- _body_params: Optional[bytes] = None
265
-
266
- # process the path parameters
267
- # process the query parameters
268
- if email is not None:
269
-
270
- _query_params.append(('email', email))
271
-
272
- # process the header parameters
273
- # process the form parameters
274
- # process the body parameter
275
-
276
-
277
- # set the HTTP header `Accept`
278
- if 'Accept' not in _header_params:
279
- _header_params['Accept'] = self.api_client.select_header_accept(
280
- [
281
- 'application/json'
282
- ]
283
- )
284
-
285
-
286
- # authentication setting
287
- _auth_settings: List[str] = [
288
- 'opaque_token'
289
- ]
290
-
291
- return self.api_client.param_serialize(
292
- method='GET',
293
- resource_path='/p2rx/1/users',
294
- path_params=_path_params,
295
- query_params=_query_params,
296
- header_params=_header_params,
297
- body=_body_params,
298
- post_params=_form_params,
299
- files=_files,
300
- auth_settings=_auth_settings,
301
- collection_formats=_collection_formats,
302
- _host=_host,
303
- _request_auth=_request_auth
304
- )
305
-
306
-