sromaster 0.1.20__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 (217) hide show
  1. nexium_api_client/__init__.py +84 -0
  2. nexium_api_client/api/__init__.py +6 -0
  3. nexium_api_client/api/parser_api.py +586 -0
  4. nexium_api_client/api/users_api.py +280 -0
  5. nexium_api_client/api_client.py +805 -0
  6. nexium_api_client/api_response.py +21 -0
  7. nexium_api_client/configuration.py +578 -0
  8. nexium_api_client/exceptions.py +217 -0
  9. nexium_api_client/models/__init__.py +34 -0
  10. nexium_api_client/models/accordance_status.py +38 -0
  11. nexium_api_client/models/check_disciplinary_action.py +38 -0
  12. nexium_api_client/models/check_result.py +38 -0
  13. nexium_api_client/models/check_state.py +38 -0
  14. nexium_api_client/models/check_upsert_request.py +120 -0
  15. nexium_api_client/models/http_validation_error.py +96 -0
  16. nexium_api_client/models/insurance_upsert_request.py +131 -0
  17. nexium_api_client/models/legal_form.py +38 -0
  18. nexium_api_client/models/member_status.py +38 -0
  19. nexium_api_client/models/organization_schema.py +134 -0
  20. nexium_api_client/models/registry.py +38 -0
  21. nexium_api_client/models/response_data_user_response.py +97 -0
  22. nexium_api_client/models/sro_member_upsert_request.py +237 -0
  23. nexium_api_client/models/sro_upsert_request.py +112 -0
  24. nexium_api_client/models/user_response.py +92 -0
  25. nexium_api_client/models/validation_error.py +100 -0
  26. nexium_api_client/models/validation_error_loc_inner.py +139 -0
  27. nexium_api_client/py.typed +0 -0
  28. nexium_api_client/rest.py +214 -0
  29. openapi_client/__init__.py +84 -0
  30. openapi_client/api/__init__.py +6 -0
  31. openapi_client/api/parser_api.py +586 -0
  32. openapi_client/api/users_api.py +280 -0
  33. openapi_client/api_client.py +805 -0
  34. openapi_client/api_response.py +21 -0
  35. openapi_client/configuration.py +578 -0
  36. openapi_client/exceptions.py +217 -0
  37. openapi_client/models/__init__.py +34 -0
  38. openapi_client/models/accordance_status.py +38 -0
  39. openapi_client/models/check_disciplinary_action.py +38 -0
  40. openapi_client/models/check_result.py +38 -0
  41. openapi_client/models/check_state.py +38 -0
  42. openapi_client/models/check_upsert_request.py +120 -0
  43. openapi_client/models/http_validation_error.py +96 -0
  44. openapi_client/models/insurance_upsert_request.py +131 -0
  45. openapi_client/models/legal_form.py +38 -0
  46. openapi_client/models/member_status.py +38 -0
  47. openapi_client/models/organization_schema.py +134 -0
  48. openapi_client/models/registry.py +38 -0
  49. openapi_client/models/response_data_user_response.py +97 -0
  50. openapi_client/models/sro_member_upsert_request.py +237 -0
  51. openapi_client/models/sro_upsert_request.py +112 -0
  52. openapi_client/models/user_response.py +92 -0
  53. openapi_client/models/validation_error.py +100 -0
  54. openapi_client/models/validation_error_loc_inner.py +139 -0
  55. openapi_client/py.typed +0 -0
  56. openapi_client/rest.py +214 -0
  57. sromaster/__init__.py +292 -0
  58. sromaster/api/__init__.py +15 -0
  59. sromaster/api/customers_api.py +3691 -0
  60. sromaster/api/im_emails_api.py +1442 -0
  61. sromaster/api/im_insurers_api.py +1425 -0
  62. sromaster/api/im_mailing_api.py +1877 -0
  63. sromaster/api/im_mailing_invoices_api.py +1763 -0
  64. sromaster/api/im_sros_api.py +1458 -0
  65. sromaster/api/insurances_api.py +684 -0
  66. sromaster/api/organization_emails_api.py +1442 -0
  67. sromaster/api/organizations_api.py +2346 -0
  68. sromaster/api/parser_api.py +1772 -0
  69. sromaster/api/parser_write_api.py +595 -0
  70. sromaster/api/users_api.py +280 -0
  71. sromaster/api_client.py +805 -0
  72. sromaster/api_response.py +21 -0
  73. sromaster/configuration.py +578 -0
  74. sromaster/exceptions.py +217 -0
  75. sromaster/models/__init__.py +129 -0
  76. sromaster/models/accordance_status.py +38 -0
  77. sromaster/models/check_disciplinary_action.py +38 -0
  78. sromaster/models/check_out.py +122 -0
  79. sromaster/models/check_result.py +38 -0
  80. sromaster/models/check_state.py +38 -0
  81. sromaster/models/check_type.py +38 -0
  82. sromaster/models/check_upsert_request.py +120 -0
  83. sromaster/models/customer_create.py +143 -0
  84. sromaster/models/customer_email_in.py +111 -0
  85. sromaster/models/customer_email_out.py +99 -0
  86. sromaster/models/customer_out.py +134 -0
  87. sromaster/models/customer_phone_in.py +118 -0
  88. sromaster/models/customer_phone_out.py +99 -0
  89. sromaster/models/customer_status.py +38 -0
  90. sromaster/models/customer_update.py +153 -0
  91. sromaster/models/email_search_status.py +39 -0
  92. sromaster/models/http_validation_error.py +96 -0
  93. sromaster/models/im_email_create.py +90 -0
  94. sromaster/models/im_email_out.py +97 -0
  95. sromaster/models/im_email_update.py +100 -0
  96. sromaster/models/im_insurer_create.py +99 -0
  97. sromaster/models/im_insurer_out.py +100 -0
  98. sromaster/models/im_insurer_update.py +109 -0
  99. sromaster/models/im_mailing_create.py +148 -0
  100. sromaster/models/im_mailing_invoice_out.py +120 -0
  101. sromaster/models/im_mailing_invoice_summary.py +112 -0
  102. sromaster/models/im_mailing_out.py +138 -0
  103. sromaster/models/im_mailing_out_input.py +218 -0
  104. sromaster/models/im_mailing_out_output.py +231 -0
  105. sromaster/models/im_mailing_update.py +152 -0
  106. sromaster/models/im_sro_public.py +136 -0
  107. sromaster/models/im_sro_upsert_request.py +128 -0
  108. sromaster/models/insurance_out.py +133 -0
  109. sromaster/models/insurance_premium.py +146 -0
  110. sromaster/models/insurance_upsert_request.py +131 -0
  111. sromaster/models/insured_sum.py +146 -0
  112. sromaster/models/invoice_finalize_request.py +109 -0
  113. sromaster/models/invoice_status.py +39 -0
  114. sromaster/models/invoice_upload_url_request.py +98 -0
  115. sromaster/models/invoice_upload_url_response.py +92 -0
  116. sromaster/models/legal_form.py +38 -0
  117. sromaster/models/mailing_result.py +38 -0
  118. sromaster/models/mailing_status.py +39 -0
  119. sromaster/models/member_status.py +38 -0
  120. sromaster/models/message_status.py +39 -0
  121. sromaster/models/organization_create.py +147 -0
  122. sromaster/models/organization_email_create.py +90 -0
  123. sromaster/models/organization_email_out.py +97 -0
  124. sromaster/models/organization_email_update.py +100 -0
  125. sromaster/models/organization_out.py +153 -0
  126. sromaster/models/organization_public.py +156 -0
  127. sromaster/models/organization_schema.py +139 -0
  128. sromaster/models/organization_update.py +152 -0
  129. sromaster/models/page_customer_out.py +104 -0
  130. sromaster/models/page_customer_out_input.py +104 -0
  131. sromaster/models/page_customer_out_output.py +104 -0
  132. sromaster/models/page_im_email_out.py +104 -0
  133. sromaster/models/page_im_insurer_out.py +104 -0
  134. sromaster/models/page_im_insurer_out_input.py +104 -0
  135. sromaster/models/page_im_insurer_out_output.py +104 -0
  136. sromaster/models/page_im_mailing_invoice_out.py +104 -0
  137. sromaster/models/page_im_mailing_out.py +104 -0
  138. sromaster/models/page_im_mailing_out_input.py +104 -0
  139. sromaster/models/page_im_mailing_out_output.py +104 -0
  140. sromaster/models/page_im_sro_public.py +104 -0
  141. sromaster/models/page_im_sro_public_input.py +104 -0
  142. sromaster/models/page_im_sro_public_output.py +104 -0
  143. sromaster/models/page_insurance_out.py +104 -0
  144. sromaster/models/page_organization_email_out.py +104 -0
  145. sromaster/models/page_organization_out_input.py +104 -0
  146. sromaster/models/page_organization_out_output.py +104 -0
  147. sromaster/models/page_sro_member_list_item_input.py +104 -0
  148. sromaster/models/page_sro_member_list_item_output.py +104 -0
  149. sromaster/models/page_sro_member_public.py +104 -0
  150. sromaster/models/page_sro_member_public_input.py +104 -0
  151. sromaster/models/page_sro_member_public_output.py +104 -0
  152. sromaster/models/page_sro_public.py +104 -0
  153. sromaster/models/page_sro_public_input.py +104 -0
  154. sromaster/models/page_sro_public_output.py +104 -0
  155. sromaster/models/participation_status.py +38 -0
  156. sromaster/models/registry.py +38 -0
  157. sromaster/models/response_data_customer_email_out.py +97 -0
  158. sromaster/models/response_data_customer_out.py +97 -0
  159. sromaster/models/response_data_customer_phone_out.py +97 -0
  160. sromaster/models/response_data_im_email_out.py +97 -0
  161. sromaster/models/response_data_im_insurer_out.py +97 -0
  162. sromaster/models/response_data_im_mailing_invoice_out.py +97 -0
  163. sromaster/models/response_data_im_mailing_out.py +97 -0
  164. sromaster/models/response_data_im_sro_public.py +97 -0
  165. sromaster/models/response_data_insurance_out.py +97 -0
  166. sromaster/models/response_data_invoice_upload_url_response.py +97 -0
  167. sromaster/models/response_data_list_customer_email_out.py +101 -0
  168. sromaster/models/response_data_list_customer_phone_out.py +101 -0
  169. sromaster/models/response_data_list_im_mailing_out.py +101 -0
  170. sromaster/models/response_data_list_organization_email_out.py +101 -0
  171. sromaster/models/response_data_organization_email_out.py +97 -0
  172. sromaster/models/response_data_organization_out.py +97 -0
  173. sromaster/models/response_data_page_customer_out.py +97 -0
  174. sromaster/models/response_data_page_im_email_out.py +97 -0
  175. sromaster/models/response_data_page_im_insurer_out.py +97 -0
  176. sromaster/models/response_data_page_im_mailing_invoice_out.py +97 -0
  177. sromaster/models/response_data_page_im_mailing_out.py +97 -0
  178. sromaster/models/response_data_page_im_sro_public.py +97 -0
  179. sromaster/models/response_data_page_insurance_out.py +97 -0
  180. sromaster/models/response_data_page_organization_email_out.py +97 -0
  181. sromaster/models/response_data_page_organization_out.py +97 -0
  182. sromaster/models/response_data_page_sro_member_list_item.py +97 -0
  183. sromaster/models/response_data_page_sro_member_public.py +97 -0
  184. sromaster/models/response_data_page_sro_public.py +97 -0
  185. sromaster/models/response_data_sro_member_details.py +97 -0
  186. sromaster/models/response_data_sro_member_public.py +97 -0
  187. sromaster/models/response_data_sro_public.py +97 -0
  188. sromaster/models/response_data_str.py +93 -0
  189. sromaster/models/response_data_user_response.py +97 -0
  190. sromaster/models/responsibility_level.py +41 -0
  191. sromaster/models/right_status.py +38 -0
  192. sromaster/models/source_registry.py +38 -0
  193. sromaster/models/src_models_sro_member_registry.py +38 -0
  194. sromaster/models/src_models_sro_registry.py +38 -0
  195. sromaster/models/sro_member_details.py +246 -0
  196. sromaster/models/sro_member_details_input.py +246 -0
  197. sromaster/models/sro_member_details_output.py +246 -0
  198. sromaster/models/sro_member_list_item_input.py +248 -0
  199. sromaster/models/sro_member_list_item_output.py +248 -0
  200. sromaster/models/sro_member_public.py +226 -0
  201. sromaster/models/sro_member_public_input.py +226 -0
  202. sromaster/models/sro_member_public_output.py +226 -0
  203. sromaster/models/sro_member_upsert_request.py +246 -0
  204. sromaster/models/sro_public.py +190 -0
  205. sromaster/models/sro_short.py +131 -0
  206. sromaster/models/sro_status.py +38 -0
  207. sromaster/models/sro_upsert_request.py +127 -0
  208. sromaster/models/tariff_entry.py +121 -0
  209. sromaster/models/user_response.py +92 -0
  210. sromaster/models/validation_error.py +100 -0
  211. sromaster/models/validation_error_loc_inner.py +139 -0
  212. sromaster/py.typed +0 -0
  213. sromaster/rest.py +214 -0
  214. sromaster-0.1.20.dist-info/METADATA +311 -0
  215. sromaster-0.1.20.dist-info/RECORD +217 -0
  216. sromaster-0.1.20.dist-info/WHEEL +5 -0
  217. sromaster-0.1.20.dist-info/top_level.txt +3 -0
@@ -0,0 +1,84 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ SRO Master API
7
+
8
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
9
+
10
+ The version of the OpenAPI document: 0.1.1
11
+ Contact: info@nexium.me
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
+
14
+ Do not edit the class manually.
15
+ """ # noqa: E501
16
+
17
+
18
+ __version__ = "%VER%"
19
+
20
+ # Define package exports
21
+ __all__ = [
22
+ "ParserApi",
23
+ "UsersApi",
24
+ "ApiResponse",
25
+ "ApiClient",
26
+ "Configuration",
27
+ "OpenApiException",
28
+ "ApiTypeError",
29
+ "ApiValueError",
30
+ "ApiKeyError",
31
+ "ApiAttributeError",
32
+ "ApiException",
33
+ "AccordanceStatus",
34
+ "CheckDisciplinaryAction",
35
+ "CheckResult",
36
+ "CheckState",
37
+ "CheckUpsertRequest",
38
+ "HTTPValidationError",
39
+ "InsuranceUpsertRequest",
40
+ "LegalForm",
41
+ "MemberStatus",
42
+ "OrganizationSchema",
43
+ "Registry",
44
+ "ResponseDataUserResponse",
45
+ "SROMemberUpsertRequest",
46
+ "SROUpsertRequest",
47
+ "UserResponse",
48
+ "ValidationError",
49
+ "ValidationErrorLocInner",
50
+ ]
51
+
52
+ # import apis into sdk package
53
+ from nexium_api_client.api.parser_api import ParserApi as ParserApi
54
+ from nexium_api_client.api.users_api import UsersApi as UsersApi
55
+
56
+ # import ApiClient
57
+ from nexium_api_client.api_response import ApiResponse as ApiResponse
58
+ from nexium_api_client.api_client import ApiClient as ApiClient
59
+ from nexium_api_client.configuration import Configuration as Configuration
60
+ from nexium_api_client.exceptions import OpenApiException as OpenApiException
61
+ from nexium_api_client.exceptions import ApiTypeError as ApiTypeError
62
+ from nexium_api_client.exceptions import ApiValueError as ApiValueError
63
+ from nexium_api_client.exceptions import ApiKeyError as ApiKeyError
64
+ from nexium_api_client.exceptions import ApiAttributeError as ApiAttributeError
65
+ from nexium_api_client.exceptions import ApiException as ApiException
66
+
67
+ # import models into sdk package
68
+ from nexium_api_client.models.accordance_status import AccordanceStatus as AccordanceStatus
69
+ from nexium_api_client.models.check_disciplinary_action import CheckDisciplinaryAction as CheckDisciplinaryAction
70
+ from nexium_api_client.models.check_result import CheckResult as CheckResult
71
+ from nexium_api_client.models.check_state import CheckState as CheckState
72
+ from nexium_api_client.models.check_upsert_request import CheckUpsertRequest as CheckUpsertRequest
73
+ from nexium_api_client.models.http_validation_error import HTTPValidationError as HTTPValidationError
74
+ from nexium_api_client.models.insurance_upsert_request import InsuranceUpsertRequest as InsuranceUpsertRequest
75
+ from nexium_api_client.models.legal_form import LegalForm as LegalForm
76
+ from nexium_api_client.models.member_status import MemberStatus as MemberStatus
77
+ from nexium_api_client.models.organization_schema import OrganizationSchema as OrganizationSchema
78
+ from nexium_api_client.models.registry import Registry as Registry
79
+ from nexium_api_client.models.response_data_user_response import ResponseDataUserResponse as ResponseDataUserResponse
80
+ from nexium_api_client.models.sro_member_upsert_request import SROMemberUpsertRequest as SROMemberUpsertRequest
81
+ from nexium_api_client.models.sro_upsert_request import SROUpsertRequest as SROUpsertRequest
82
+ from nexium_api_client.models.user_response import UserResponse as UserResponse
83
+ from nexium_api_client.models.validation_error import ValidationError as ValidationError
84
+ from nexium_api_client.models.validation_error_loc_inner import ValidationErrorLocInner as ValidationErrorLocInner
@@ -0,0 +1,6 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from nexium_api_client.api.parser_api import ParserApi
5
+ from nexium_api_client.api.users_api import UsersApi
6
+
@@ -0,0 +1,586 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ SRO Master API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.1
9
+ Contact: info@nexium.me
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 nexium_api_client.models.sro_member_upsert_request import SROMemberUpsertRequest
21
+ from nexium_api_client.models.sro_upsert_request import SROUpsertRequest
22
+
23
+ from nexium_api_client.api_client import ApiClient, RequestSerialized
24
+ from nexium_api_client.api_response import ApiResponse
25
+ from nexium_api_client.rest import RESTResponseType
26
+
27
+
28
+ class ParserApi:
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
+ async def upsert_sro_member_parser_sro_member_post(
43
+ self,
44
+ sro_member_upsert_request: SROMemberUpsertRequest,
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
+ ) -> None:
58
+ """Upsert Sro Member
59
+
60
+
61
+ :param sro_member_upsert_request: (required)
62
+ :type sro_member_upsert_request: SROMemberUpsertRequest
63
+ :param _request_timeout: timeout setting for this request. If one
64
+ number provided, it will be total request
65
+ timeout. It can also be a pair (tuple) of
66
+ (connection, read) timeouts.
67
+ :type _request_timeout: int, tuple(int, int), optional
68
+ :param _request_auth: set to override the auth_settings for an a single
69
+ request; this effectively ignores the
70
+ authentication in the spec for a single request.
71
+ :type _request_auth: dict, optional
72
+ :param _content_type: force content-type for the request.
73
+ :type _content_type: str, Optional
74
+ :param _headers: set to override the headers for a single
75
+ request; this effectively ignores the headers
76
+ in the spec for a single request.
77
+ :type _headers: dict, optional
78
+ :param _host_index: set to override the host_index for a single
79
+ request; this effectively ignores the host_index
80
+ in the spec for a single request.
81
+ :type _host_index: int, optional
82
+ :return: Returns the result object.
83
+ """ # noqa: E501
84
+
85
+ _param = self._upsert_sro_member_parser_sro_member_post_serialize(
86
+ sro_member_upsert_request=sro_member_upsert_request,
87
+ _request_auth=_request_auth,
88
+ _content_type=_content_type,
89
+ _headers=_headers,
90
+ _host_index=_host_index
91
+ )
92
+
93
+ _response_types_map: Dict[str, Optional[str]] = {
94
+ '204': None,
95
+ '422': "HTTPValidationError",
96
+ }
97
+ response_data = await self.api_client.call_api(
98
+ *_param,
99
+ _request_timeout=_request_timeout
100
+ )
101
+ await response_data.read()
102
+ return self.api_client.response_deserialize(
103
+ response_data=response_data,
104
+ response_types_map=_response_types_map,
105
+ ).data
106
+
107
+
108
+ @validate_call
109
+ async def upsert_sro_member_parser_sro_member_post_with_http_info(
110
+ self,
111
+ sro_member_upsert_request: SROMemberUpsertRequest,
112
+ _request_timeout: Union[
113
+ None,
114
+ Annotated[StrictFloat, Field(gt=0)],
115
+ Tuple[
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Annotated[StrictFloat, Field(gt=0)]
118
+ ]
119
+ ] = None,
120
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
121
+ _content_type: Optional[StrictStr] = None,
122
+ _headers: Optional[Dict[StrictStr, Any]] = None,
123
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
+ ) -> ApiResponse[None]:
125
+ """Upsert Sro Member
126
+
127
+
128
+ :param sro_member_upsert_request: (required)
129
+ :type sro_member_upsert_request: SROMemberUpsertRequest
130
+ :param _request_timeout: timeout setting for this request. If one
131
+ number provided, it will be total request
132
+ timeout. It can also be a pair (tuple) of
133
+ (connection, read) timeouts.
134
+ :type _request_timeout: int, tuple(int, int), optional
135
+ :param _request_auth: set to override the auth_settings for an a single
136
+ request; this effectively ignores the
137
+ authentication in the spec for a single request.
138
+ :type _request_auth: dict, optional
139
+ :param _content_type: force content-type for the request.
140
+ :type _content_type: str, Optional
141
+ :param _headers: set to override the headers for a single
142
+ request; this effectively ignores the headers
143
+ in the spec for a single request.
144
+ :type _headers: dict, optional
145
+ :param _host_index: set to override the host_index for a single
146
+ request; this effectively ignores the host_index
147
+ in the spec for a single request.
148
+ :type _host_index: int, optional
149
+ :return: Returns the result object.
150
+ """ # noqa: E501
151
+
152
+ _param = self._upsert_sro_member_parser_sro_member_post_serialize(
153
+ sro_member_upsert_request=sro_member_upsert_request,
154
+ _request_auth=_request_auth,
155
+ _content_type=_content_type,
156
+ _headers=_headers,
157
+ _host_index=_host_index
158
+ )
159
+
160
+ _response_types_map: Dict[str, Optional[str]] = {
161
+ '204': None,
162
+ '422': "HTTPValidationError",
163
+ }
164
+ response_data = await self.api_client.call_api(
165
+ *_param,
166
+ _request_timeout=_request_timeout
167
+ )
168
+ await response_data.read()
169
+ return self.api_client.response_deserialize(
170
+ response_data=response_data,
171
+ response_types_map=_response_types_map,
172
+ )
173
+
174
+
175
+ @validate_call
176
+ async def upsert_sro_member_parser_sro_member_post_without_preload_content(
177
+ self,
178
+ sro_member_upsert_request: SROMemberUpsertRequest,
179
+ _request_timeout: Union[
180
+ None,
181
+ Annotated[StrictFloat, Field(gt=0)],
182
+ Tuple[
183
+ Annotated[StrictFloat, Field(gt=0)],
184
+ Annotated[StrictFloat, Field(gt=0)]
185
+ ]
186
+ ] = None,
187
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
188
+ _content_type: Optional[StrictStr] = None,
189
+ _headers: Optional[Dict[StrictStr, Any]] = None,
190
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
191
+ ) -> RESTResponseType:
192
+ """Upsert Sro Member
193
+
194
+
195
+ :param sro_member_upsert_request: (required)
196
+ :type sro_member_upsert_request: SROMemberUpsertRequest
197
+ :param _request_timeout: timeout setting for this request. If one
198
+ number provided, it will be total request
199
+ timeout. It can also be a pair (tuple) of
200
+ (connection, read) timeouts.
201
+ :type _request_timeout: int, tuple(int, int), optional
202
+ :param _request_auth: set to override the auth_settings for an a single
203
+ request; this effectively ignores the
204
+ authentication in the spec for a single request.
205
+ :type _request_auth: dict, optional
206
+ :param _content_type: force content-type for the request.
207
+ :type _content_type: str, Optional
208
+ :param _headers: set to override the headers for a single
209
+ request; this effectively ignores the headers
210
+ in the spec for a single request.
211
+ :type _headers: dict, optional
212
+ :param _host_index: set to override the host_index for a single
213
+ request; this effectively ignores the host_index
214
+ in the spec for a single request.
215
+ :type _host_index: int, optional
216
+ :return: Returns the result object.
217
+ """ # noqa: E501
218
+
219
+ _param = self._upsert_sro_member_parser_sro_member_post_serialize(
220
+ sro_member_upsert_request=sro_member_upsert_request,
221
+ _request_auth=_request_auth,
222
+ _content_type=_content_type,
223
+ _headers=_headers,
224
+ _host_index=_host_index
225
+ )
226
+
227
+ _response_types_map: Dict[str, Optional[str]] = {
228
+ '204': None,
229
+ '422': "HTTPValidationError",
230
+ }
231
+ response_data = await self.api_client.call_api(
232
+ *_param,
233
+ _request_timeout=_request_timeout
234
+ )
235
+ return response_data.response
236
+
237
+
238
+ def _upsert_sro_member_parser_sro_member_post_serialize(
239
+ self,
240
+ sro_member_upsert_request,
241
+ _request_auth,
242
+ _content_type,
243
+ _headers,
244
+ _host_index,
245
+ ) -> RequestSerialized:
246
+
247
+ _host = None
248
+
249
+ _collection_formats: Dict[str, str] = {
250
+ }
251
+
252
+ _path_params: Dict[str, str] = {}
253
+ _query_params: List[Tuple[str, str]] = []
254
+ _header_params: Dict[str, Optional[str]] = _headers or {}
255
+ _form_params: List[Tuple[str, str]] = []
256
+ _files: Dict[
257
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
258
+ ] = {}
259
+ _body_params: Optional[bytes] = None
260
+
261
+ # process the path parameters
262
+ # process the query parameters
263
+ # process the header parameters
264
+ # process the form parameters
265
+ # process the body parameter
266
+ if sro_member_upsert_request is not None:
267
+ _body_params = sro_member_upsert_request
268
+
269
+
270
+ # set the HTTP header `Accept`
271
+ if 'Accept' not in _header_params:
272
+ _header_params['Accept'] = self.api_client.select_header_accept(
273
+ [
274
+ 'application/json'
275
+ ]
276
+ )
277
+
278
+ # set the HTTP header `Content-Type`
279
+ if _content_type:
280
+ _header_params['Content-Type'] = _content_type
281
+ else:
282
+ _default_content_type = (
283
+ self.api_client.select_header_content_type(
284
+ [
285
+ 'application/json'
286
+ ]
287
+ )
288
+ )
289
+ if _default_content_type is not None:
290
+ _header_params['Content-Type'] = _default_content_type
291
+
292
+ # authentication setting
293
+ _auth_settings: List[str] = [
294
+ 'OAuth2PasswordBearer'
295
+ ]
296
+
297
+ return self.api_client.param_serialize(
298
+ method='POST',
299
+ resource_path='/parser/sro-member',
300
+ path_params=_path_params,
301
+ query_params=_query_params,
302
+ header_params=_header_params,
303
+ body=_body_params,
304
+ post_params=_form_params,
305
+ files=_files,
306
+ auth_settings=_auth_settings,
307
+ collection_formats=_collection_formats,
308
+ _host=_host,
309
+ _request_auth=_request_auth
310
+ )
311
+
312
+
313
+
314
+
315
+ @validate_call
316
+ async def upsert_sro_parser_sro_post(
317
+ self,
318
+ sro_upsert_request: SROUpsertRequest,
319
+ _request_timeout: Union[
320
+ None,
321
+ Annotated[StrictFloat, Field(gt=0)],
322
+ Tuple[
323
+ Annotated[StrictFloat, Field(gt=0)],
324
+ Annotated[StrictFloat, Field(gt=0)]
325
+ ]
326
+ ] = None,
327
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
328
+ _content_type: Optional[StrictStr] = None,
329
+ _headers: Optional[Dict[StrictStr, Any]] = None,
330
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
331
+ ) -> None:
332
+ """Upsert Sro
333
+
334
+
335
+ :param sro_upsert_request: (required)
336
+ :type sro_upsert_request: SROUpsertRequest
337
+ :param _request_timeout: timeout setting for this request. If one
338
+ number provided, it will be total request
339
+ timeout. It can also be a pair (tuple) of
340
+ (connection, read) timeouts.
341
+ :type _request_timeout: int, tuple(int, int), optional
342
+ :param _request_auth: set to override the auth_settings for an a single
343
+ request; this effectively ignores the
344
+ authentication in the spec for a single request.
345
+ :type _request_auth: dict, optional
346
+ :param _content_type: force content-type for the request.
347
+ :type _content_type: str, Optional
348
+ :param _headers: set to override the headers for a single
349
+ request; this effectively ignores the headers
350
+ in the spec for a single request.
351
+ :type _headers: dict, optional
352
+ :param _host_index: set to override the host_index for a single
353
+ request; this effectively ignores the host_index
354
+ in the spec for a single request.
355
+ :type _host_index: int, optional
356
+ :return: Returns the result object.
357
+ """ # noqa: E501
358
+
359
+ _param = self._upsert_sro_parser_sro_post_serialize(
360
+ sro_upsert_request=sro_upsert_request,
361
+ _request_auth=_request_auth,
362
+ _content_type=_content_type,
363
+ _headers=_headers,
364
+ _host_index=_host_index
365
+ )
366
+
367
+ _response_types_map: Dict[str, Optional[str]] = {
368
+ '204': None,
369
+ '422': "HTTPValidationError",
370
+ }
371
+ response_data = await self.api_client.call_api(
372
+ *_param,
373
+ _request_timeout=_request_timeout
374
+ )
375
+ await response_data.read()
376
+ return self.api_client.response_deserialize(
377
+ response_data=response_data,
378
+ response_types_map=_response_types_map,
379
+ ).data
380
+
381
+
382
+ @validate_call
383
+ async def upsert_sro_parser_sro_post_with_http_info(
384
+ self,
385
+ sro_upsert_request: SROUpsertRequest,
386
+ _request_timeout: Union[
387
+ None,
388
+ Annotated[StrictFloat, Field(gt=0)],
389
+ Tuple[
390
+ Annotated[StrictFloat, Field(gt=0)],
391
+ Annotated[StrictFloat, Field(gt=0)]
392
+ ]
393
+ ] = None,
394
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
395
+ _content_type: Optional[StrictStr] = None,
396
+ _headers: Optional[Dict[StrictStr, Any]] = None,
397
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
398
+ ) -> ApiResponse[None]:
399
+ """Upsert Sro
400
+
401
+
402
+ :param sro_upsert_request: (required)
403
+ :type sro_upsert_request: SROUpsertRequest
404
+ :param _request_timeout: timeout setting for this request. If one
405
+ number provided, it will be total request
406
+ timeout. It can also be a pair (tuple) of
407
+ (connection, read) timeouts.
408
+ :type _request_timeout: int, tuple(int, int), optional
409
+ :param _request_auth: set to override the auth_settings for an a single
410
+ request; this effectively ignores the
411
+ authentication in the spec for a single request.
412
+ :type _request_auth: dict, optional
413
+ :param _content_type: force content-type for the request.
414
+ :type _content_type: str, Optional
415
+ :param _headers: set to override the headers for a single
416
+ request; this effectively ignores the headers
417
+ in the spec for a single request.
418
+ :type _headers: dict, optional
419
+ :param _host_index: set to override the host_index for a single
420
+ request; this effectively ignores the host_index
421
+ in the spec for a single request.
422
+ :type _host_index: int, optional
423
+ :return: Returns the result object.
424
+ """ # noqa: E501
425
+
426
+ _param = self._upsert_sro_parser_sro_post_serialize(
427
+ sro_upsert_request=sro_upsert_request,
428
+ _request_auth=_request_auth,
429
+ _content_type=_content_type,
430
+ _headers=_headers,
431
+ _host_index=_host_index
432
+ )
433
+
434
+ _response_types_map: Dict[str, Optional[str]] = {
435
+ '204': None,
436
+ '422': "HTTPValidationError",
437
+ }
438
+ response_data = await self.api_client.call_api(
439
+ *_param,
440
+ _request_timeout=_request_timeout
441
+ )
442
+ await response_data.read()
443
+ return self.api_client.response_deserialize(
444
+ response_data=response_data,
445
+ response_types_map=_response_types_map,
446
+ )
447
+
448
+
449
+ @validate_call
450
+ async def upsert_sro_parser_sro_post_without_preload_content(
451
+ self,
452
+ sro_upsert_request: SROUpsertRequest,
453
+ _request_timeout: Union[
454
+ None,
455
+ Annotated[StrictFloat, Field(gt=0)],
456
+ Tuple[
457
+ Annotated[StrictFloat, Field(gt=0)],
458
+ Annotated[StrictFloat, Field(gt=0)]
459
+ ]
460
+ ] = None,
461
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
462
+ _content_type: Optional[StrictStr] = None,
463
+ _headers: Optional[Dict[StrictStr, Any]] = None,
464
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
465
+ ) -> RESTResponseType:
466
+ """Upsert Sro
467
+
468
+
469
+ :param sro_upsert_request: (required)
470
+ :type sro_upsert_request: SROUpsertRequest
471
+ :param _request_timeout: timeout setting for this request. If one
472
+ number provided, it will be total request
473
+ timeout. It can also be a pair (tuple) of
474
+ (connection, read) timeouts.
475
+ :type _request_timeout: int, tuple(int, int), optional
476
+ :param _request_auth: set to override the auth_settings for an a single
477
+ request; this effectively ignores the
478
+ authentication in the spec for a single request.
479
+ :type _request_auth: dict, optional
480
+ :param _content_type: force content-type for the request.
481
+ :type _content_type: str, Optional
482
+ :param _headers: set to override the headers for a single
483
+ request; this effectively ignores the headers
484
+ in the spec for a single request.
485
+ :type _headers: dict, optional
486
+ :param _host_index: set to override the host_index for a single
487
+ request; this effectively ignores the host_index
488
+ in the spec for a single request.
489
+ :type _host_index: int, optional
490
+ :return: Returns the result object.
491
+ """ # noqa: E501
492
+
493
+ _param = self._upsert_sro_parser_sro_post_serialize(
494
+ sro_upsert_request=sro_upsert_request,
495
+ _request_auth=_request_auth,
496
+ _content_type=_content_type,
497
+ _headers=_headers,
498
+ _host_index=_host_index
499
+ )
500
+
501
+ _response_types_map: Dict[str, Optional[str]] = {
502
+ '204': None,
503
+ '422': "HTTPValidationError",
504
+ }
505
+ response_data = await self.api_client.call_api(
506
+ *_param,
507
+ _request_timeout=_request_timeout
508
+ )
509
+ return response_data.response
510
+
511
+
512
+ def _upsert_sro_parser_sro_post_serialize(
513
+ self,
514
+ sro_upsert_request,
515
+ _request_auth,
516
+ _content_type,
517
+ _headers,
518
+ _host_index,
519
+ ) -> RequestSerialized:
520
+
521
+ _host = None
522
+
523
+ _collection_formats: Dict[str, str] = {
524
+ }
525
+
526
+ _path_params: Dict[str, str] = {}
527
+ _query_params: List[Tuple[str, str]] = []
528
+ _header_params: Dict[str, Optional[str]] = _headers or {}
529
+ _form_params: List[Tuple[str, str]] = []
530
+ _files: Dict[
531
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
532
+ ] = {}
533
+ _body_params: Optional[bytes] = None
534
+
535
+ # process the path parameters
536
+ # process the query parameters
537
+ # process the header parameters
538
+ # process the form parameters
539
+ # process the body parameter
540
+ if sro_upsert_request is not None:
541
+ _body_params = sro_upsert_request
542
+
543
+
544
+ # set the HTTP header `Accept`
545
+ if 'Accept' not in _header_params:
546
+ _header_params['Accept'] = self.api_client.select_header_accept(
547
+ [
548
+ 'application/json'
549
+ ]
550
+ )
551
+
552
+ # set the HTTP header `Content-Type`
553
+ if _content_type:
554
+ _header_params['Content-Type'] = _content_type
555
+ else:
556
+ _default_content_type = (
557
+ self.api_client.select_header_content_type(
558
+ [
559
+ 'application/json'
560
+ ]
561
+ )
562
+ )
563
+ if _default_content_type is not None:
564
+ _header_params['Content-Type'] = _default_content_type
565
+
566
+ # authentication setting
567
+ _auth_settings: List[str] = [
568
+ 'OAuth2PasswordBearer'
569
+ ]
570
+
571
+ return self.api_client.param_serialize(
572
+ method='POST',
573
+ resource_path='/parser/sro',
574
+ path_params=_path_params,
575
+ query_params=_query_params,
576
+ header_params=_header_params,
577
+ body=_body_params,
578
+ post_params=_form_params,
579
+ files=_files,
580
+ auth_settings=_auth_settings,
581
+ collection_formats=_collection_formats,
582
+ _host=_host,
583
+ _request_auth=_request_auth
584
+ )
585
+
586
+