audithub-sdk 0.1.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 (197) hide show
  1. audithub_sdk/__init__.py +410 -0
  2. audithub_sdk/api/__init__.py +22 -0
  3. audithub_sdk/api/admin_api.py +6117 -0
  4. audithub_sdk/api/configuration_api.py +520 -0
  5. audithub_sdk/api/custom_detectors_org_lib_api.py +1461 -0
  6. audithub_sdk/api/custom_detectors_std_lib_api.py +546 -0
  7. audithub_sdk/api/editor_languages_api.py +1383 -0
  8. audithub_sdk/api/generic_api.py +1275 -0
  9. audithub_sdk/api/hints_org_lib_api.py +2049 -0
  10. audithub_sdk/api/hints_std_lib_api.py +546 -0
  11. audithub_sdk/api/issues_api.py +2742 -0
  12. audithub_sdk/api/organizations_api.py +12148 -0
  13. audithub_sdk/api/projects_api.py +7069 -0
  14. audithub_sdk/api/subscriptions_api.py +1490 -0
  15. audithub_sdk/api/tasks_api.py +4276 -0
  16. audithub_sdk/api/tools_api.py +2298 -0
  17. audithub_sdk/api/users_api.py +2657 -0
  18. audithub_sdk/api/v_specs_org_lib_api.py +1461 -0
  19. audithub_sdk/api/v_specs_std_lib_api.py +546 -0
  20. audithub_sdk/api/versions_api.py +5419 -0
  21. audithub_sdk/api_client.py +808 -0
  22. audithub_sdk/api_response.py +21 -0
  23. audithub_sdk/configuration.py +572 -0
  24. audithub_sdk/exceptions.py +218 -0
  25. audithub_sdk/models/__init__.py +180 -0
  26. audithub_sdk/models/accounting_data.py +138 -0
  27. audithub_sdk/models/active_organization_users.py +120 -0
  28. audithub_sdk/models/admin_resource_patch.py +94 -0
  29. audithub_sdk/models/api_blacklisted_hint.py +96 -0
  30. audithub_sdk/models/api_key.py +89 -0
  31. audithub_sdk/models/api_key_base.py +87 -0
  32. audithub_sdk/models/api_key_with_secret.py +91 -0
  33. audithub_sdk/models/application_function.py +97 -0
  34. audithub_sdk/models/archive_input.py +104 -0
  35. audithub_sdk/models/artifact.py +102 -0
  36. audithub_sdk/models/comment.py +121 -0
  37. audithub_sdk/models/comment_with_mutations.py +121 -0
  38. audithub_sdk/models/container_resources.py +93 -0
  39. audithub_sdk/models/contents_inner.py +136 -0
  40. audithub_sdk/models/custom_detector.py +101 -0
  41. audithub_sdk/models/custom_detector_from_organization_library.py +99 -0
  42. audithub_sdk/models/custom_detector_from_standard_library.py +108 -0
  43. audithub_sdk/models/custom_detector_from_version.py +99 -0
  44. audithub_sdk/models/custom_detector_with_id.py +103 -0
  45. audithub_sdk/models/data.py +134 -0
  46. audithub_sdk/models/defi_vanguard_v2_input.py +93 -0
  47. audithub_sdk/models/defi_vanguard_v2_parameters.py +132 -0
  48. audithub_sdk/models/directory.py +111 -0
  49. audithub_sdk/models/editor_language.py +99 -0
  50. audithub_sdk/models/editor_language_with_id.py +101 -0
  51. audithub_sdk/models/effective_user_access_restriction.py +94 -0
  52. audithub_sdk/models/env_var.py +89 -0
  53. audithub_sdk/models/extra_function_arguments.py +107 -0
  54. audithub_sdk/models/favorite_project_assignment.py +87 -0
  55. audithub_sdk/models/file.py +101 -0
  56. audithub_sdk/models/file_thread_subject.py +103 -0
  57. audithub_sdk/models/finding_action.py +101 -0
  58. audithub_sdk/models/finding_action_base.py +96 -0
  59. audithub_sdk/models/finding_reference.py +91 -0
  60. audithub_sdk/models/finding_thread_subject.py +103 -0
  61. audithub_sdk/models/fio_data.py +113 -0
  62. audithub_sdk/models/fork_network_public.py +89 -0
  63. audithub_sdk/models/fuzzing_blacklist_entry.py +89 -0
  64. audithub_sdk/models/git_input.py +113 -0
  65. audithub_sdk/models/hint.py +101 -0
  66. audithub_sdk/models/hint_ad_hoc.py +113 -0
  67. audithub_sdk/models/hint_from_organization_library.py +99 -0
  68. audithub_sdk/models/hint_from_standard_library.py +108 -0
  69. audithub_sdk/models/hint_from_version.py +99 -0
  70. audithub_sdk/models/hint_with_id.py +103 -0
  71. audithub_sdk/models/http_validation_error.py +95 -0
  72. audithub_sdk/models/id_and_message_response.py +89 -0
  73. audithub_sdk/models/included_user_info.py +87 -0
  74. audithub_sdk/models/input_info.py +134 -0
  75. audithub_sdk/models/invitation.py +128 -0
  76. audithub_sdk/models/invitation_patch.py +94 -0
  77. audithub_sdk/models/invited_user.py +101 -0
  78. audithub_sdk/models/issue.py +138 -0
  79. audithub_sdk/models/issue_action.py +93 -0
  80. audithub_sdk/models/issue_batch_announce.py +88 -0
  81. audithub_sdk/models/issue_complete.py +167 -0
  82. audithub_sdk/models/issue_configuration_options.py +125 -0
  83. audithub_sdk/models/issue_details.py +110 -0
  84. audithub_sdk/models/issue_for_list.py +118 -0
  85. audithub_sdk/models/issue_impact.py +89 -0
  86. audithub_sdk/models/issue_info_base_complete.py +126 -0
  87. audithub_sdk/models/issue_info_editable.py +142 -0
  88. audithub_sdk/models/issue_likelihood.py +89 -0
  89. audithub_sdk/models/issue_patch.py +103 -0
  90. audithub_sdk/models/issue_resolution.py +100 -0
  91. audithub_sdk/models/issue_severity.py +89 -0
  92. audithub_sdk/models/issue_state_transition_function.py +110 -0
  93. audithub_sdk/models/issue_status.py +91 -0
  94. audithub_sdk/models/issue_status_transition.py +104 -0
  95. audithub_sdk/models/issue_thread_subject.py +99 -0
  96. audithub_sdk/models/issue_type.py +91 -0
  97. audithub_sdk/models/issue_type_info.py +87 -0
  98. audithub_sdk/models/machine_info.py +109 -0
  99. audithub_sdk/models/model_tool_input.py +102 -0
  100. audithub_sdk/models/model_tool_phase_parameters.py +169 -0
  101. audithub_sdk/models/new_invitation.py +103 -0
  102. audithub_sdk/models/new_organization.py +101 -0
  103. audithub_sdk/models/new_organization_package.py +132 -0
  104. audithub_sdk/models/new_organization_subscription.py +125 -0
  105. audithub_sdk/models/npm_project_dependency.py +103 -0
  106. audithub_sdk/models/onboarding_request.py +113 -0
  107. audithub_sdk/models/or_ca_input.py +134 -0
  108. audithub_sdk/models/or_ca_parameters.py +149 -0
  109. audithub_sdk/models/orca_value.py +138 -0
  110. audithub_sdk/models/organization.py +108 -0
  111. audithub_sdk/models/organization_access_restriction.py +101 -0
  112. audithub_sdk/models/organization_active_quota.py +104 -0
  113. audithub_sdk/models/organization_admin.py +110 -0
  114. audithub_sdk/models/organization_consumption.py +104 -0
  115. audithub_sdk/models/organization_quota.py +96 -0
  116. audithub_sdk/models/organization_subscription.py +135 -0
  117. audithub_sdk/models/package_data.py +140 -0
  118. audithub_sdk/models/package_subscription.py +103 -0
  119. audithub_sdk/models/patch_user.py +108 -0
  120. audithub_sdk/models/pending_finding_actions.py +99 -0
  121. audithub_sdk/models/picus_input.py +93 -0
  122. audithub_sdk/models/picus_parameters.py +111 -0
  123. audithub_sdk/models/picus_v2_input.py +93 -0
  124. audithub_sdk/models/picus_v2_parameters.py +195 -0
  125. audithub_sdk/models/project.py +200 -0
  126. audithub_sdk/models/project_admin.py +206 -0
  127. audithub_sdk/models/project_data.py +97 -0
  128. audithub_sdk/models/project_dependency.py +103 -0
  129. audithub_sdk/models/project_git_hub_link.py +87 -0
  130. audithub_sdk/models/project_info_input.py +186 -0
  131. audithub_sdk/models/project_info_output.py +186 -0
  132. audithub_sdk/models/project_thread_subject.py +97 -0
  133. audithub_sdk/models/project_update_response.py +93 -0
  134. audithub_sdk/models/psa.py +96 -0
  135. audithub_sdk/models/psa_message.py +94 -0
  136. audithub_sdk/models/public_configuration.py +216 -0
  137. audithub_sdk/models/put_user.py +91 -0
  138. audithub_sdk/models/registered_user.py +94 -0
  139. audithub_sdk/models/resource_patch.py +94 -0
  140. audithub_sdk/models/resources.py +87 -0
  141. audithub_sdk/models/root_model_list_union_custom_detector_from_version_custom_detector_from_standard_library_custom_detector_from_organization_library_inner.py +149 -0
  142. audithub_sdk/models/root_model_list_union_hint_from_version_hint_from_standard_library_hint_from_organization_library_hint_ad_hoc_inner.py +164 -0
  143. audithub_sdk/models/root_model_list_union_v_spec_from_version_v_spec_from_standard_library_v_spec_from_organization_library_v_spec_ad_hoc_inner.py +164 -0
  144. audithub_sdk/models/security_tool.py +89 -0
  145. audithub_sdk/models/self_onboard_request.py +94 -0
  146. audithub_sdk/models/source_reference.py +103 -0
  147. audithub_sdk/models/step_definition.py +91 -0
  148. audithub_sdk/models/step_resources.py +103 -0
  149. audithub_sdk/models/subject.py +168 -0
  150. audithub_sdk/models/success_and_message_response.py +93 -0
  151. audithub_sdk/models/task.py +184 -0
  152. audithub_sdk/models/task_admin.py +144 -0
  153. audithub_sdk/models/task_creation.py +89 -0
  154. audithub_sdk/models/task_fio_data.py +97 -0
  155. audithub_sdk/models/task_patch.py +94 -0
  156. audithub_sdk/models/task_resources.py +103 -0
  157. audithub_sdk/models/task_status.py +94 -0
  158. audithub_sdk/models/task_step.py +145 -0
  159. audithub_sdk/models/temp_version.py +93 -0
  160. audithub_sdk/models/thread.py +146 -0
  161. audithub_sdk/models/thread_comment.py +87 -0
  162. audithub_sdk/models/thread_patch.py +101 -0
  163. audithub_sdk/models/user.py +106 -0
  164. audithub_sdk/models/user_access_restriction.py +108 -0
  165. audithub_sdk/models/user_for_admin.py +108 -0
  166. audithub_sdk/models/user_group.py +89 -0
  167. audithub_sdk/models/user_information.py +89 -0
  168. audithub_sdk/models/user_organization_setting.py +89 -0
  169. audithub_sdk/models/user_patch.py +103 -0
  170. audithub_sdk/models/user_project_setting.py +89 -0
  171. audithub_sdk/models/user_thread_setting.py +89 -0
  172. audithub_sdk/models/user_to_organization_assignment.py +87 -0
  173. audithub_sdk/models/v_spec.py +101 -0
  174. audithub_sdk/models/v_spec_ad_hoc.py +113 -0
  175. audithub_sdk/models/v_spec_from_organization_library.py +99 -0
  176. audithub_sdk/models/v_spec_from_standard_library.py +108 -0
  177. audithub_sdk/models/v_spec_from_version.py +99 -0
  178. audithub_sdk/models/v_spec_with_id.py +103 -0
  179. audithub_sdk/models/validation_error.py +108 -0
  180. audithub_sdk/models/vanguard_detector.py +91 -0
  181. audithub_sdk/models/version.py +134 -0
  182. audithub_sdk/models/version_admin.py +142 -0
  183. audithub_sdk/models/version_data.py +103 -0
  184. audithub_sdk/models/version_patch.py +120 -0
  185. audithub_sdk/models/version_resources.py +103 -0
  186. audithub_sdk/models/zk_vanguard_input.py +93 -0
  187. audithub_sdk/models/zk_vanguard_parameters.py +108 -0
  188. audithub_sdk/models/zk_vanguard_v2_input.py +93 -0
  189. audithub_sdk/models/zk_vanguard_v2_parameters.py +108 -0
  190. audithub_sdk/py.typed +0 -0
  191. audithub_sdk/rest.py +199 -0
  192. audithub_sdk-0.1.0.dist-info/METADATA +129 -0
  193. audithub_sdk-0.1.0.dist-info/RECORD +197 -0
  194. audithub_sdk-0.1.0.dist-info/WHEEL +5 -0
  195. audithub_sdk-0.1.0.dist-info/top_level.txt +2 -0
  196. audithub_sdk_ext/__init__.py +11 -0
  197. audithub_sdk_ext/auth.py +207 -0
@@ -0,0 +1,1275 @@
1
+ """
2
+ FastAPI
3
+
4
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+
9
+ Do not edit the class manually.
10
+ """ # noqa: E501
11
+
12
+
13
+ import warnings
14
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
+ from typing import Any, Dict, List, Optional, Tuple, Union
16
+ from typing_extensions import Annotated
17
+
18
+ from pydantic import StrictInt
19
+ from typing import Any
20
+ from audithub_sdk.models.psa import PSA
21
+
22
+ from audithub_sdk.api_client import ApiClient, RequestSerialized
23
+ from audithub_sdk.api_response import ApiResponse
24
+ from audithub_sdk.rest import RESTResponseType
25
+
26
+
27
+ class GenericApi:
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None) -> None:
35
+ if api_client is None:
36
+ api_client = ApiClient.get_default()
37
+ self.api_client = api_client
38
+
39
+
40
+ @validate_call
41
+ async def about_about_get(
42
+ self,
43
+ _request_timeout: Union[
44
+ None,
45
+ Annotated[StrictFloat, Field(gt=0)],
46
+ Tuple[
47
+ Annotated[StrictFloat, Field(gt=0)],
48
+ Annotated[StrictFloat, Field(gt=0)]
49
+ ]
50
+ ] = None,
51
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
52
+ _content_type: Optional[StrictStr] = None,
53
+ _headers: Optional[Dict[StrictStr, Any]] = None,
54
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
55
+ ) -> object:
56
+ """About
57
+
58
+
59
+ :param _request_timeout: timeout setting for this request. If one
60
+ number provided, it will be total request
61
+ timeout. It can also be a pair (tuple) of
62
+ (connection, read) timeouts.
63
+ :type _request_timeout: int, tuple(int, int), optional
64
+ :param _request_auth: set to override the auth_settings for an a single
65
+ request; this effectively ignores the
66
+ authentication in the spec for a single request.
67
+ :type _request_auth: dict, optional
68
+ :param _content_type: force content-type for the request.
69
+ :type _content_type: str, Optional
70
+ :param _headers: set to override the headers for a single
71
+ request; this effectively ignores the headers
72
+ in the spec for a single request.
73
+ :type _headers: dict, optional
74
+ :param _host_index: set to override the host_index for a single
75
+ request; this effectively ignores the host_index
76
+ in the spec for a single request.
77
+ :type _host_index: int, optional
78
+ :return: Returns the result object.
79
+ """ # noqa: E501
80
+
81
+ _param = self._about_about_get_serialize(
82
+ _request_auth=_request_auth,
83
+ _content_type=_content_type,
84
+ _headers=_headers,
85
+ _host_index=_host_index
86
+ )
87
+
88
+ _response_types_map: Dict[str, Optional[str]] = {
89
+ '200': "object",
90
+ }
91
+ response_data = await self.api_client.call_api(
92
+ *_param,
93
+ _request_timeout=_request_timeout
94
+ )
95
+ await response_data.read()
96
+ return self.api_client.response_deserialize(
97
+ response_data=response_data,
98
+ response_types_map=_response_types_map,
99
+ ).data
100
+
101
+
102
+ @validate_call
103
+ async def about_about_get_with_http_info(
104
+ self,
105
+ _request_timeout: Union[
106
+ None,
107
+ Annotated[StrictFloat, Field(gt=0)],
108
+ Tuple[
109
+ Annotated[StrictFloat, Field(gt=0)],
110
+ Annotated[StrictFloat, Field(gt=0)]
111
+ ]
112
+ ] = None,
113
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
114
+ _content_type: Optional[StrictStr] = None,
115
+ _headers: Optional[Dict[StrictStr, Any]] = None,
116
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
117
+ ) -> ApiResponse[object]:
118
+ """About
119
+
120
+
121
+ :param _request_timeout: timeout setting for this request. If one
122
+ number provided, it will be total request
123
+ timeout. It can also be a pair (tuple) of
124
+ (connection, read) timeouts.
125
+ :type _request_timeout: int, tuple(int, int), optional
126
+ :param _request_auth: set to override the auth_settings for an a single
127
+ request; this effectively ignores the
128
+ authentication in the spec for a single request.
129
+ :type _request_auth: dict, optional
130
+ :param _content_type: force content-type for the request.
131
+ :type _content_type: str, Optional
132
+ :param _headers: set to override the headers for a single
133
+ request; this effectively ignores the headers
134
+ in the spec for a single request.
135
+ :type _headers: dict, optional
136
+ :param _host_index: set to override the host_index for a single
137
+ request; this effectively ignores the host_index
138
+ in the spec for a single request.
139
+ :type _host_index: int, optional
140
+ :return: Returns the result object.
141
+ """ # noqa: E501
142
+
143
+ _param = self._about_about_get_serialize(
144
+ _request_auth=_request_auth,
145
+ _content_type=_content_type,
146
+ _headers=_headers,
147
+ _host_index=_host_index
148
+ )
149
+
150
+ _response_types_map: Dict[str, Optional[str]] = {
151
+ '200': "object",
152
+ }
153
+ response_data = await self.api_client.call_api(
154
+ *_param,
155
+ _request_timeout=_request_timeout
156
+ )
157
+ await response_data.read()
158
+ return self.api_client.response_deserialize(
159
+ response_data=response_data,
160
+ response_types_map=_response_types_map,
161
+ )
162
+
163
+
164
+ @validate_call
165
+ async def about_about_get_without_preload_content(
166
+ self,
167
+ _request_timeout: Union[
168
+ None,
169
+ Annotated[StrictFloat, Field(gt=0)],
170
+ Tuple[
171
+ Annotated[StrictFloat, Field(gt=0)],
172
+ Annotated[StrictFloat, Field(gt=0)]
173
+ ]
174
+ ] = None,
175
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
176
+ _content_type: Optional[StrictStr] = None,
177
+ _headers: Optional[Dict[StrictStr, Any]] = None,
178
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
179
+ ) -> RESTResponseType:
180
+ """About
181
+
182
+
183
+ :param _request_timeout: timeout setting for this request. If one
184
+ number provided, it will be total request
185
+ timeout. It can also be a pair (tuple) of
186
+ (connection, read) timeouts.
187
+ :type _request_timeout: int, tuple(int, int), optional
188
+ :param _request_auth: set to override the auth_settings for an a single
189
+ request; this effectively ignores the
190
+ authentication in the spec for a single request.
191
+ :type _request_auth: dict, optional
192
+ :param _content_type: force content-type for the request.
193
+ :type _content_type: str, Optional
194
+ :param _headers: set to override the headers for a single
195
+ request; this effectively ignores the headers
196
+ in the spec for a single request.
197
+ :type _headers: dict, optional
198
+ :param _host_index: set to override the host_index for a single
199
+ request; this effectively ignores the host_index
200
+ in the spec for a single request.
201
+ :type _host_index: int, optional
202
+ :return: Returns the result object.
203
+ """ # noqa: E501
204
+
205
+ _param = self._about_about_get_serialize(
206
+ _request_auth=_request_auth,
207
+ _content_type=_content_type,
208
+ _headers=_headers,
209
+ _host_index=_host_index
210
+ )
211
+
212
+ _response_types_map: Dict[str, Optional[str]] = {
213
+ '200': "object",
214
+ }
215
+ response_data = await self.api_client.call_api(
216
+ *_param,
217
+ _request_timeout=_request_timeout
218
+ )
219
+ return response_data.response
220
+
221
+
222
+ def _about_about_get_serialize(
223
+ self,
224
+ _request_auth,
225
+ _content_type,
226
+ _headers,
227
+ _host_index,
228
+ ) -> RequestSerialized:
229
+
230
+ _host = None
231
+
232
+ _collection_formats: Dict[str, str] = {
233
+ }
234
+
235
+ _path_params: Dict[str, str] = {}
236
+ _query_params: List[Tuple[str, str]] = []
237
+ _header_params: Dict[str, Optional[str]] = _headers or {}
238
+ _form_params: List[Tuple[str, str]] = []
239
+ _files: Dict[
240
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
241
+ ] = {}
242
+ _body_params: Optional[bytes] = None
243
+
244
+ # process the path parameters
245
+ # process the query parameters
246
+ # process the header parameters
247
+ # process the form parameters
248
+ # process the body parameter
249
+
250
+
251
+ # set the HTTP header `Accept`
252
+ if 'Accept' not in _header_params:
253
+ _header_params['Accept'] = self.api_client.select_header_accept(
254
+ [
255
+ 'application/json'
256
+ ]
257
+ )
258
+
259
+
260
+ # authentication setting
261
+ _auth_settings: List[str] = [
262
+ ]
263
+
264
+ return self.api_client.param_serialize(
265
+ method='GET',
266
+ resource_path='/about',
267
+ path_params=_path_params,
268
+ query_params=_query_params,
269
+ header_params=_header_params,
270
+ body=_body_params,
271
+ post_params=_form_params,
272
+ files=_files,
273
+ auth_settings=_auth_settings,
274
+ collection_formats=_collection_formats,
275
+ _host=_host,
276
+ _request_auth=_request_auth
277
+ )
278
+
279
+
280
+
281
+
282
+ @validate_call
283
+ async def get_psa_psa_get(
284
+ self,
285
+ _request_timeout: Union[
286
+ None,
287
+ Annotated[StrictFloat, Field(gt=0)],
288
+ Tuple[
289
+ Annotated[StrictFloat, Field(gt=0)],
290
+ Annotated[StrictFloat, Field(gt=0)]
291
+ ]
292
+ ] = None,
293
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
294
+ _content_type: Optional[StrictStr] = None,
295
+ _headers: Optional[Dict[StrictStr, Any]] = None,
296
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
297
+ ) -> PSA:
298
+ """Get Psa
299
+
300
+
301
+ :param _request_timeout: timeout setting for this request. If one
302
+ number provided, it will be total request
303
+ timeout. It can also be a pair (tuple) of
304
+ (connection, read) timeouts.
305
+ :type _request_timeout: int, tuple(int, int), optional
306
+ :param _request_auth: set to override the auth_settings for an a single
307
+ request; this effectively ignores the
308
+ authentication in the spec for a single request.
309
+ :type _request_auth: dict, optional
310
+ :param _content_type: force content-type for the request.
311
+ :type _content_type: str, Optional
312
+ :param _headers: set to override the headers for a single
313
+ request; this effectively ignores the headers
314
+ in the spec for a single request.
315
+ :type _headers: dict, optional
316
+ :param _host_index: set to override the host_index for a single
317
+ request; this effectively ignores the host_index
318
+ in the spec for a single request.
319
+ :type _host_index: int, optional
320
+ :return: Returns the result object.
321
+ """ # noqa: E501
322
+
323
+ _param = self._get_psa_psa_get_serialize(
324
+ _request_auth=_request_auth,
325
+ _content_type=_content_type,
326
+ _headers=_headers,
327
+ _host_index=_host_index
328
+ )
329
+
330
+ _response_types_map: Dict[str, Optional[str]] = {
331
+ '200': "PSA",
332
+ }
333
+ response_data = await self.api_client.call_api(
334
+ *_param,
335
+ _request_timeout=_request_timeout
336
+ )
337
+ await response_data.read()
338
+ return self.api_client.response_deserialize(
339
+ response_data=response_data,
340
+ response_types_map=_response_types_map,
341
+ ).data
342
+
343
+
344
+ @validate_call
345
+ async def get_psa_psa_get_with_http_info(
346
+ self,
347
+ _request_timeout: Union[
348
+ None,
349
+ Annotated[StrictFloat, Field(gt=0)],
350
+ Tuple[
351
+ Annotated[StrictFloat, Field(gt=0)],
352
+ Annotated[StrictFloat, Field(gt=0)]
353
+ ]
354
+ ] = None,
355
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
356
+ _content_type: Optional[StrictStr] = None,
357
+ _headers: Optional[Dict[StrictStr, Any]] = None,
358
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
359
+ ) -> ApiResponse[PSA]:
360
+ """Get Psa
361
+
362
+
363
+ :param _request_timeout: timeout setting for this request. If one
364
+ number provided, it will be total request
365
+ timeout. It can also be a pair (tuple) of
366
+ (connection, read) timeouts.
367
+ :type _request_timeout: int, tuple(int, int), optional
368
+ :param _request_auth: set to override the auth_settings for an a single
369
+ request; this effectively ignores the
370
+ authentication in the spec for a single request.
371
+ :type _request_auth: dict, optional
372
+ :param _content_type: force content-type for the request.
373
+ :type _content_type: str, Optional
374
+ :param _headers: set to override the headers for a single
375
+ request; this effectively ignores the headers
376
+ in the spec for a single request.
377
+ :type _headers: dict, optional
378
+ :param _host_index: set to override the host_index for a single
379
+ request; this effectively ignores the host_index
380
+ in the spec for a single request.
381
+ :type _host_index: int, optional
382
+ :return: Returns the result object.
383
+ """ # noqa: E501
384
+
385
+ _param = self._get_psa_psa_get_serialize(
386
+ _request_auth=_request_auth,
387
+ _content_type=_content_type,
388
+ _headers=_headers,
389
+ _host_index=_host_index
390
+ )
391
+
392
+ _response_types_map: Dict[str, Optional[str]] = {
393
+ '200': "PSA",
394
+ }
395
+ response_data = await self.api_client.call_api(
396
+ *_param,
397
+ _request_timeout=_request_timeout
398
+ )
399
+ await response_data.read()
400
+ return self.api_client.response_deserialize(
401
+ response_data=response_data,
402
+ response_types_map=_response_types_map,
403
+ )
404
+
405
+
406
+ @validate_call
407
+ async def get_psa_psa_get_without_preload_content(
408
+ self,
409
+ _request_timeout: Union[
410
+ None,
411
+ Annotated[StrictFloat, Field(gt=0)],
412
+ Tuple[
413
+ Annotated[StrictFloat, Field(gt=0)],
414
+ Annotated[StrictFloat, Field(gt=0)]
415
+ ]
416
+ ] = None,
417
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
418
+ _content_type: Optional[StrictStr] = None,
419
+ _headers: Optional[Dict[StrictStr, Any]] = None,
420
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
421
+ ) -> RESTResponseType:
422
+ """Get Psa
423
+
424
+
425
+ :param _request_timeout: timeout setting for this request. If one
426
+ number provided, it will be total request
427
+ timeout. It can also be a pair (tuple) of
428
+ (connection, read) timeouts.
429
+ :type _request_timeout: int, tuple(int, int), optional
430
+ :param _request_auth: set to override the auth_settings for an a single
431
+ request; this effectively ignores the
432
+ authentication in the spec for a single request.
433
+ :type _request_auth: dict, optional
434
+ :param _content_type: force content-type for the request.
435
+ :type _content_type: str, Optional
436
+ :param _headers: set to override the headers for a single
437
+ request; this effectively ignores the headers
438
+ in the spec for a single request.
439
+ :type _headers: dict, optional
440
+ :param _host_index: set to override the host_index for a single
441
+ request; this effectively ignores the host_index
442
+ in the spec for a single request.
443
+ :type _host_index: int, optional
444
+ :return: Returns the result object.
445
+ """ # noqa: E501
446
+
447
+ _param = self._get_psa_psa_get_serialize(
448
+ _request_auth=_request_auth,
449
+ _content_type=_content_type,
450
+ _headers=_headers,
451
+ _host_index=_host_index
452
+ )
453
+
454
+ _response_types_map: Dict[str, Optional[str]] = {
455
+ '200': "PSA",
456
+ }
457
+ response_data = await self.api_client.call_api(
458
+ *_param,
459
+ _request_timeout=_request_timeout
460
+ )
461
+ return response_data.response
462
+
463
+
464
+ def _get_psa_psa_get_serialize(
465
+ self,
466
+ _request_auth,
467
+ _content_type,
468
+ _headers,
469
+ _host_index,
470
+ ) -> RequestSerialized:
471
+
472
+ _host = None
473
+
474
+ _collection_formats: Dict[str, str] = {
475
+ }
476
+
477
+ _path_params: Dict[str, str] = {}
478
+ _query_params: List[Tuple[str, str]] = []
479
+ _header_params: Dict[str, Optional[str]] = _headers or {}
480
+ _form_params: List[Tuple[str, str]] = []
481
+ _files: Dict[
482
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
483
+ ] = {}
484
+ _body_params: Optional[bytes] = None
485
+
486
+ # process the path parameters
487
+ # process the query parameters
488
+ # process the header parameters
489
+ # process the form parameters
490
+ # process the body parameter
491
+
492
+
493
+ # set the HTTP header `Accept`
494
+ if 'Accept' not in _header_params:
495
+ _header_params['Accept'] = self.api_client.select_header_accept(
496
+ [
497
+ 'application/json'
498
+ ]
499
+ )
500
+
501
+
502
+ # authentication setting
503
+ _auth_settings: List[str] = [
504
+ 'OpenIdConnect'
505
+ ]
506
+
507
+ return self.api_client.param_serialize(
508
+ method='GET',
509
+ resource_path='/psa',
510
+ path_params=_path_params,
511
+ query_params=_query_params,
512
+ header_params=_header_params,
513
+ body=_body_params,
514
+ post_params=_form_params,
515
+ files=_files,
516
+ auth_settings=_auth_settings,
517
+ collection_formats=_collection_formats,
518
+ _host=_host,
519
+ _request_auth=_request_auth
520
+ )
521
+
522
+
523
+
524
+
525
+ @validate_call
526
+ async def get_task_redirect_task_redirect_get(
527
+ self,
528
+ id: StrictInt,
529
+ _request_timeout: Union[
530
+ None,
531
+ Annotated[StrictFloat, Field(gt=0)],
532
+ Tuple[
533
+ Annotated[StrictFloat, Field(gt=0)],
534
+ Annotated[StrictFloat, Field(gt=0)]
535
+ ]
536
+ ] = None,
537
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
538
+ _content_type: Optional[StrictStr] = None,
539
+ _headers: Optional[Dict[StrictStr, Any]] = None,
540
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
541
+ ) -> object:
542
+ """Get Task Redirect
543
+
544
+ Get UI endpoint of task analysis page
545
+
546
+ :param id: (required)
547
+ :type id: int
548
+ :param _request_timeout: timeout setting for this request. If one
549
+ number provided, it will be total request
550
+ timeout. It can also be a pair (tuple) of
551
+ (connection, read) timeouts.
552
+ :type _request_timeout: int, tuple(int, int), optional
553
+ :param _request_auth: set to override the auth_settings for an a single
554
+ request; this effectively ignores the
555
+ authentication in the spec for a single request.
556
+ :type _request_auth: dict, optional
557
+ :param _content_type: force content-type for the request.
558
+ :type _content_type: str, Optional
559
+ :param _headers: set to override the headers for a single
560
+ request; this effectively ignores the headers
561
+ in the spec for a single request.
562
+ :type _headers: dict, optional
563
+ :param _host_index: set to override the host_index for a single
564
+ request; this effectively ignores the host_index
565
+ in the spec for a single request.
566
+ :type _host_index: int, optional
567
+ :return: Returns the result object.
568
+ """ # noqa: E501
569
+
570
+ _param = self._get_task_redirect_task_redirect_get_serialize(
571
+ id=id,
572
+ _request_auth=_request_auth,
573
+ _content_type=_content_type,
574
+ _headers=_headers,
575
+ _host_index=_host_index
576
+ )
577
+
578
+ _response_types_map: Dict[str, Optional[str]] = {
579
+ '200': "object",
580
+ '422': "HTTPValidationError",
581
+ }
582
+ response_data = await self.api_client.call_api(
583
+ *_param,
584
+ _request_timeout=_request_timeout
585
+ )
586
+ await response_data.read()
587
+ return self.api_client.response_deserialize(
588
+ response_data=response_data,
589
+ response_types_map=_response_types_map,
590
+ ).data
591
+
592
+
593
+ @validate_call
594
+ async def get_task_redirect_task_redirect_get_with_http_info(
595
+ self,
596
+ id: StrictInt,
597
+ _request_timeout: Union[
598
+ None,
599
+ Annotated[StrictFloat, Field(gt=0)],
600
+ Tuple[
601
+ Annotated[StrictFloat, Field(gt=0)],
602
+ Annotated[StrictFloat, Field(gt=0)]
603
+ ]
604
+ ] = None,
605
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
606
+ _content_type: Optional[StrictStr] = None,
607
+ _headers: Optional[Dict[StrictStr, Any]] = None,
608
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
609
+ ) -> ApiResponse[object]:
610
+ """Get Task Redirect
611
+
612
+ Get UI endpoint of task analysis page
613
+
614
+ :param id: (required)
615
+ :type id: int
616
+ :param _request_timeout: timeout setting for this request. If one
617
+ number provided, it will be total request
618
+ timeout. It can also be a pair (tuple) of
619
+ (connection, read) timeouts.
620
+ :type _request_timeout: int, tuple(int, int), optional
621
+ :param _request_auth: set to override the auth_settings for an a single
622
+ request; this effectively ignores the
623
+ authentication in the spec for a single request.
624
+ :type _request_auth: dict, optional
625
+ :param _content_type: force content-type for the request.
626
+ :type _content_type: str, Optional
627
+ :param _headers: set to override the headers for a single
628
+ request; this effectively ignores the headers
629
+ in the spec for a single request.
630
+ :type _headers: dict, optional
631
+ :param _host_index: set to override the host_index for a single
632
+ request; this effectively ignores the host_index
633
+ in the spec for a single request.
634
+ :type _host_index: int, optional
635
+ :return: Returns the result object.
636
+ """ # noqa: E501
637
+
638
+ _param = self._get_task_redirect_task_redirect_get_serialize(
639
+ id=id,
640
+ _request_auth=_request_auth,
641
+ _content_type=_content_type,
642
+ _headers=_headers,
643
+ _host_index=_host_index
644
+ )
645
+
646
+ _response_types_map: Dict[str, Optional[str]] = {
647
+ '200': "object",
648
+ '422': "HTTPValidationError",
649
+ }
650
+ response_data = await self.api_client.call_api(
651
+ *_param,
652
+ _request_timeout=_request_timeout
653
+ )
654
+ await response_data.read()
655
+ return self.api_client.response_deserialize(
656
+ response_data=response_data,
657
+ response_types_map=_response_types_map,
658
+ )
659
+
660
+
661
+ @validate_call
662
+ async def get_task_redirect_task_redirect_get_without_preload_content(
663
+ self,
664
+ id: StrictInt,
665
+ _request_timeout: Union[
666
+ None,
667
+ Annotated[StrictFloat, Field(gt=0)],
668
+ Tuple[
669
+ Annotated[StrictFloat, Field(gt=0)],
670
+ Annotated[StrictFloat, Field(gt=0)]
671
+ ]
672
+ ] = None,
673
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
674
+ _content_type: Optional[StrictStr] = None,
675
+ _headers: Optional[Dict[StrictStr, Any]] = None,
676
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
677
+ ) -> RESTResponseType:
678
+ """Get Task Redirect
679
+
680
+ Get UI endpoint of task analysis page
681
+
682
+ :param id: (required)
683
+ :type id: int
684
+ :param _request_timeout: timeout setting for this request. If one
685
+ number provided, it will be total request
686
+ timeout. It can also be a pair (tuple) of
687
+ (connection, read) timeouts.
688
+ :type _request_timeout: int, tuple(int, int), optional
689
+ :param _request_auth: set to override the auth_settings for an a single
690
+ request; this effectively ignores the
691
+ authentication in the spec for a single request.
692
+ :type _request_auth: dict, optional
693
+ :param _content_type: force content-type for the request.
694
+ :type _content_type: str, Optional
695
+ :param _headers: set to override the headers for a single
696
+ request; this effectively ignores the headers
697
+ in the spec for a single request.
698
+ :type _headers: dict, optional
699
+ :param _host_index: set to override the host_index for a single
700
+ request; this effectively ignores the host_index
701
+ in the spec for a single request.
702
+ :type _host_index: int, optional
703
+ :return: Returns the result object.
704
+ """ # noqa: E501
705
+
706
+ _param = self._get_task_redirect_task_redirect_get_serialize(
707
+ id=id,
708
+ _request_auth=_request_auth,
709
+ _content_type=_content_type,
710
+ _headers=_headers,
711
+ _host_index=_host_index
712
+ )
713
+
714
+ _response_types_map: Dict[str, Optional[str]] = {
715
+ '200': "object",
716
+ '422': "HTTPValidationError",
717
+ }
718
+ response_data = await self.api_client.call_api(
719
+ *_param,
720
+ _request_timeout=_request_timeout
721
+ )
722
+ return response_data.response
723
+
724
+
725
+ def _get_task_redirect_task_redirect_get_serialize(
726
+ self,
727
+ id,
728
+ _request_auth,
729
+ _content_type,
730
+ _headers,
731
+ _host_index,
732
+ ) -> RequestSerialized:
733
+
734
+ _host = None
735
+
736
+ _collection_formats: Dict[str, str] = {
737
+ }
738
+
739
+ _path_params: Dict[str, str] = {}
740
+ _query_params: List[Tuple[str, str]] = []
741
+ _header_params: Dict[str, Optional[str]] = _headers or {}
742
+ _form_params: List[Tuple[str, str]] = []
743
+ _files: Dict[
744
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
745
+ ] = {}
746
+ _body_params: Optional[bytes] = None
747
+
748
+ # process the path parameters
749
+ # process the query parameters
750
+ if id is not None:
751
+
752
+ _query_params.append(('id', id))
753
+
754
+ # process the header parameters
755
+ # process the form parameters
756
+ # process the body parameter
757
+
758
+
759
+ # set the HTTP header `Accept`
760
+ if 'Accept' not in _header_params:
761
+ _header_params['Accept'] = self.api_client.select_header_accept(
762
+ [
763
+ 'application/json'
764
+ ]
765
+ )
766
+
767
+
768
+ # authentication setting
769
+ _auth_settings: List[str] = [
770
+ ]
771
+
772
+ return self.api_client.param_serialize(
773
+ method='GET',
774
+ resource_path='/task-redirect',
775
+ path_params=_path_params,
776
+ query_params=_query_params,
777
+ header_params=_header_params,
778
+ body=_body_params,
779
+ post_params=_form_params,
780
+ files=_files,
781
+ auth_settings=_auth_settings,
782
+ collection_formats=_collection_formats,
783
+ _host=_host,
784
+ _request_auth=_request_auth
785
+ )
786
+
787
+
788
+
789
+
790
+ @validate_call
791
+ async def health_check_health_check_get(
792
+ self,
793
+ _request_timeout: Union[
794
+ None,
795
+ Annotated[StrictFloat, Field(gt=0)],
796
+ Tuple[
797
+ Annotated[StrictFloat, Field(gt=0)],
798
+ Annotated[StrictFloat, Field(gt=0)]
799
+ ]
800
+ ] = None,
801
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
802
+ _content_type: Optional[StrictStr] = None,
803
+ _headers: Optional[Dict[StrictStr, Any]] = None,
804
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
805
+ ) -> object:
806
+ """Health Check
807
+
808
+
809
+ :param _request_timeout: timeout setting for this request. If one
810
+ number provided, it will be total request
811
+ timeout. It can also be a pair (tuple) of
812
+ (connection, read) timeouts.
813
+ :type _request_timeout: int, tuple(int, int), optional
814
+ :param _request_auth: set to override the auth_settings for an a single
815
+ request; this effectively ignores the
816
+ authentication in the spec for a single request.
817
+ :type _request_auth: dict, optional
818
+ :param _content_type: force content-type for the request.
819
+ :type _content_type: str, Optional
820
+ :param _headers: set to override the headers for a single
821
+ request; this effectively ignores the headers
822
+ in the spec for a single request.
823
+ :type _headers: dict, optional
824
+ :param _host_index: set to override the host_index for a single
825
+ request; this effectively ignores the host_index
826
+ in the spec for a single request.
827
+ :type _host_index: int, optional
828
+ :return: Returns the result object.
829
+ """ # noqa: E501
830
+
831
+ _param = self._health_check_health_check_get_serialize(
832
+ _request_auth=_request_auth,
833
+ _content_type=_content_type,
834
+ _headers=_headers,
835
+ _host_index=_host_index
836
+ )
837
+
838
+ _response_types_map: Dict[str, Optional[str]] = {
839
+ '200': "object",
840
+ }
841
+ response_data = await self.api_client.call_api(
842
+ *_param,
843
+ _request_timeout=_request_timeout
844
+ )
845
+ await response_data.read()
846
+ return self.api_client.response_deserialize(
847
+ response_data=response_data,
848
+ response_types_map=_response_types_map,
849
+ ).data
850
+
851
+
852
+ @validate_call
853
+ async def health_check_health_check_get_with_http_info(
854
+ self,
855
+ _request_timeout: Union[
856
+ None,
857
+ Annotated[StrictFloat, Field(gt=0)],
858
+ Tuple[
859
+ Annotated[StrictFloat, Field(gt=0)],
860
+ Annotated[StrictFloat, Field(gt=0)]
861
+ ]
862
+ ] = None,
863
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
864
+ _content_type: Optional[StrictStr] = None,
865
+ _headers: Optional[Dict[StrictStr, Any]] = None,
866
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
867
+ ) -> ApiResponse[object]:
868
+ """Health Check
869
+
870
+
871
+ :param _request_timeout: timeout setting for this request. If one
872
+ number provided, it will be total request
873
+ timeout. It can also be a pair (tuple) of
874
+ (connection, read) timeouts.
875
+ :type _request_timeout: int, tuple(int, int), optional
876
+ :param _request_auth: set to override the auth_settings for an a single
877
+ request; this effectively ignores the
878
+ authentication in the spec for a single request.
879
+ :type _request_auth: dict, optional
880
+ :param _content_type: force content-type for the request.
881
+ :type _content_type: str, Optional
882
+ :param _headers: set to override the headers for a single
883
+ request; this effectively ignores the headers
884
+ in the spec for a single request.
885
+ :type _headers: dict, optional
886
+ :param _host_index: set to override the host_index for a single
887
+ request; this effectively ignores the host_index
888
+ in the spec for a single request.
889
+ :type _host_index: int, optional
890
+ :return: Returns the result object.
891
+ """ # noqa: E501
892
+
893
+ _param = self._health_check_health_check_get_serialize(
894
+ _request_auth=_request_auth,
895
+ _content_type=_content_type,
896
+ _headers=_headers,
897
+ _host_index=_host_index
898
+ )
899
+
900
+ _response_types_map: Dict[str, Optional[str]] = {
901
+ '200': "object",
902
+ }
903
+ response_data = await self.api_client.call_api(
904
+ *_param,
905
+ _request_timeout=_request_timeout
906
+ )
907
+ await response_data.read()
908
+ return self.api_client.response_deserialize(
909
+ response_data=response_data,
910
+ response_types_map=_response_types_map,
911
+ )
912
+
913
+
914
+ @validate_call
915
+ async def health_check_health_check_get_without_preload_content(
916
+ self,
917
+ _request_timeout: Union[
918
+ None,
919
+ Annotated[StrictFloat, Field(gt=0)],
920
+ Tuple[
921
+ Annotated[StrictFloat, Field(gt=0)],
922
+ Annotated[StrictFloat, Field(gt=0)]
923
+ ]
924
+ ] = None,
925
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
926
+ _content_type: Optional[StrictStr] = None,
927
+ _headers: Optional[Dict[StrictStr, Any]] = None,
928
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
929
+ ) -> RESTResponseType:
930
+ """Health Check
931
+
932
+
933
+ :param _request_timeout: timeout setting for this request. If one
934
+ number provided, it will be total request
935
+ timeout. It can also be a pair (tuple) of
936
+ (connection, read) timeouts.
937
+ :type _request_timeout: int, tuple(int, int), optional
938
+ :param _request_auth: set to override the auth_settings for an a single
939
+ request; this effectively ignores the
940
+ authentication in the spec for a single request.
941
+ :type _request_auth: dict, optional
942
+ :param _content_type: force content-type for the request.
943
+ :type _content_type: str, Optional
944
+ :param _headers: set to override the headers for a single
945
+ request; this effectively ignores the headers
946
+ in the spec for a single request.
947
+ :type _headers: dict, optional
948
+ :param _host_index: set to override the host_index for a single
949
+ request; this effectively ignores the host_index
950
+ in the spec for a single request.
951
+ :type _host_index: int, optional
952
+ :return: Returns the result object.
953
+ """ # noqa: E501
954
+
955
+ _param = self._health_check_health_check_get_serialize(
956
+ _request_auth=_request_auth,
957
+ _content_type=_content_type,
958
+ _headers=_headers,
959
+ _host_index=_host_index
960
+ )
961
+
962
+ _response_types_map: Dict[str, Optional[str]] = {
963
+ '200': "object",
964
+ }
965
+ response_data = await self.api_client.call_api(
966
+ *_param,
967
+ _request_timeout=_request_timeout
968
+ )
969
+ return response_data.response
970
+
971
+
972
+ def _health_check_health_check_get_serialize(
973
+ self,
974
+ _request_auth,
975
+ _content_type,
976
+ _headers,
977
+ _host_index,
978
+ ) -> RequestSerialized:
979
+
980
+ _host = None
981
+
982
+ _collection_formats: Dict[str, str] = {
983
+ }
984
+
985
+ _path_params: Dict[str, str] = {}
986
+ _query_params: List[Tuple[str, str]] = []
987
+ _header_params: Dict[str, Optional[str]] = _headers or {}
988
+ _form_params: List[Tuple[str, str]] = []
989
+ _files: Dict[
990
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
991
+ ] = {}
992
+ _body_params: Optional[bytes] = None
993
+
994
+ # process the path parameters
995
+ # process the query parameters
996
+ # process the header parameters
997
+ # process the form parameters
998
+ # process the body parameter
999
+
1000
+
1001
+ # set the HTTP header `Accept`
1002
+ if 'Accept' not in _header_params:
1003
+ _header_params['Accept'] = self.api_client.select_header_accept(
1004
+ [
1005
+ 'application/json'
1006
+ ]
1007
+ )
1008
+
1009
+
1010
+ # authentication setting
1011
+ _auth_settings: List[str] = [
1012
+ ]
1013
+
1014
+ return self.api_client.param_serialize(
1015
+ method='GET',
1016
+ resource_path='/health_check',
1017
+ path_params=_path_params,
1018
+ query_params=_query_params,
1019
+ header_params=_header_params,
1020
+ body=_body_params,
1021
+ post_params=_form_params,
1022
+ files=_files,
1023
+ auth_settings=_auth_settings,
1024
+ collection_formats=_collection_formats,
1025
+ _host=_host,
1026
+ _request_auth=_request_auth
1027
+ )
1028
+
1029
+
1030
+
1031
+
1032
+ @validate_call
1033
+ async def private_private_get(
1034
+ self,
1035
+ _request_timeout: Union[
1036
+ None,
1037
+ Annotated[StrictFloat, Field(gt=0)],
1038
+ Tuple[
1039
+ Annotated[StrictFloat, Field(gt=0)],
1040
+ Annotated[StrictFloat, Field(gt=0)]
1041
+ ]
1042
+ ] = None,
1043
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1044
+ _content_type: Optional[StrictStr] = None,
1045
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1046
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1047
+ ) -> object:
1048
+ """Private
1049
+
1050
+ A private endpoint for inspecting the attrs of the current user
1051
+
1052
+ :param _request_timeout: timeout setting for this request. If one
1053
+ number provided, it will be total request
1054
+ timeout. It can also be a pair (tuple) of
1055
+ (connection, read) timeouts.
1056
+ :type _request_timeout: int, tuple(int, int), optional
1057
+ :param _request_auth: set to override the auth_settings for an a single
1058
+ request; this effectively ignores the
1059
+ authentication in the spec for a single request.
1060
+ :type _request_auth: dict, optional
1061
+ :param _content_type: force content-type for the request.
1062
+ :type _content_type: str, Optional
1063
+ :param _headers: set to override the headers for a single
1064
+ request; this effectively ignores the headers
1065
+ in the spec for a single request.
1066
+ :type _headers: dict, optional
1067
+ :param _host_index: set to override the host_index for a single
1068
+ request; this effectively ignores the host_index
1069
+ in the spec for a single request.
1070
+ :type _host_index: int, optional
1071
+ :return: Returns the result object.
1072
+ """ # noqa: E501
1073
+
1074
+ _param = self._private_private_get_serialize(
1075
+ _request_auth=_request_auth,
1076
+ _content_type=_content_type,
1077
+ _headers=_headers,
1078
+ _host_index=_host_index
1079
+ )
1080
+
1081
+ _response_types_map: Dict[str, Optional[str]] = {
1082
+ '200': "object",
1083
+ }
1084
+ response_data = await self.api_client.call_api(
1085
+ *_param,
1086
+ _request_timeout=_request_timeout
1087
+ )
1088
+ await response_data.read()
1089
+ return self.api_client.response_deserialize(
1090
+ response_data=response_data,
1091
+ response_types_map=_response_types_map,
1092
+ ).data
1093
+
1094
+
1095
+ @validate_call
1096
+ async def private_private_get_with_http_info(
1097
+ self,
1098
+ _request_timeout: Union[
1099
+ None,
1100
+ Annotated[StrictFloat, Field(gt=0)],
1101
+ Tuple[
1102
+ Annotated[StrictFloat, Field(gt=0)],
1103
+ Annotated[StrictFloat, Field(gt=0)]
1104
+ ]
1105
+ ] = None,
1106
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1107
+ _content_type: Optional[StrictStr] = None,
1108
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1109
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1110
+ ) -> ApiResponse[object]:
1111
+ """Private
1112
+
1113
+ A private endpoint for inspecting the attrs of the current user
1114
+
1115
+ :param _request_timeout: timeout setting for this request. If one
1116
+ number provided, it will be total request
1117
+ timeout. It can also be a pair (tuple) of
1118
+ (connection, read) timeouts.
1119
+ :type _request_timeout: int, tuple(int, int), optional
1120
+ :param _request_auth: set to override the auth_settings for an a single
1121
+ request; this effectively ignores the
1122
+ authentication in the spec for a single request.
1123
+ :type _request_auth: dict, optional
1124
+ :param _content_type: force content-type for the request.
1125
+ :type _content_type: str, Optional
1126
+ :param _headers: set to override the headers for a single
1127
+ request; this effectively ignores the headers
1128
+ in the spec for a single request.
1129
+ :type _headers: dict, optional
1130
+ :param _host_index: set to override the host_index for a single
1131
+ request; this effectively ignores the host_index
1132
+ in the spec for a single request.
1133
+ :type _host_index: int, optional
1134
+ :return: Returns the result object.
1135
+ """ # noqa: E501
1136
+
1137
+ _param = self._private_private_get_serialize(
1138
+ _request_auth=_request_auth,
1139
+ _content_type=_content_type,
1140
+ _headers=_headers,
1141
+ _host_index=_host_index
1142
+ )
1143
+
1144
+ _response_types_map: Dict[str, Optional[str]] = {
1145
+ '200': "object",
1146
+ }
1147
+ response_data = await self.api_client.call_api(
1148
+ *_param,
1149
+ _request_timeout=_request_timeout
1150
+ )
1151
+ await response_data.read()
1152
+ return self.api_client.response_deserialize(
1153
+ response_data=response_data,
1154
+ response_types_map=_response_types_map,
1155
+ )
1156
+
1157
+
1158
+ @validate_call
1159
+ async def private_private_get_without_preload_content(
1160
+ self,
1161
+ _request_timeout: Union[
1162
+ None,
1163
+ Annotated[StrictFloat, Field(gt=0)],
1164
+ Tuple[
1165
+ Annotated[StrictFloat, Field(gt=0)],
1166
+ Annotated[StrictFloat, Field(gt=0)]
1167
+ ]
1168
+ ] = None,
1169
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1170
+ _content_type: Optional[StrictStr] = None,
1171
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1172
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1173
+ ) -> RESTResponseType:
1174
+ """Private
1175
+
1176
+ A private endpoint for inspecting the attrs of the current user
1177
+
1178
+ :param _request_timeout: timeout setting for this request. If one
1179
+ number provided, it will be total request
1180
+ timeout. It can also be a pair (tuple) of
1181
+ (connection, read) timeouts.
1182
+ :type _request_timeout: int, tuple(int, int), optional
1183
+ :param _request_auth: set to override the auth_settings for an a single
1184
+ request; this effectively ignores the
1185
+ authentication in the spec for a single request.
1186
+ :type _request_auth: dict, optional
1187
+ :param _content_type: force content-type for the request.
1188
+ :type _content_type: str, Optional
1189
+ :param _headers: set to override the headers for a single
1190
+ request; this effectively ignores the headers
1191
+ in the spec for a single request.
1192
+ :type _headers: dict, optional
1193
+ :param _host_index: set to override the host_index for a single
1194
+ request; this effectively ignores the host_index
1195
+ in the spec for a single request.
1196
+ :type _host_index: int, optional
1197
+ :return: Returns the result object.
1198
+ """ # noqa: E501
1199
+
1200
+ _param = self._private_private_get_serialize(
1201
+ _request_auth=_request_auth,
1202
+ _content_type=_content_type,
1203
+ _headers=_headers,
1204
+ _host_index=_host_index
1205
+ )
1206
+
1207
+ _response_types_map: Dict[str, Optional[str]] = {
1208
+ '200': "object",
1209
+ }
1210
+ response_data = await self.api_client.call_api(
1211
+ *_param,
1212
+ _request_timeout=_request_timeout
1213
+ )
1214
+ return response_data.response
1215
+
1216
+
1217
+ def _private_private_get_serialize(
1218
+ self,
1219
+ _request_auth,
1220
+ _content_type,
1221
+ _headers,
1222
+ _host_index,
1223
+ ) -> RequestSerialized:
1224
+
1225
+ _host = None
1226
+
1227
+ _collection_formats: Dict[str, str] = {
1228
+ }
1229
+
1230
+ _path_params: Dict[str, str] = {}
1231
+ _query_params: List[Tuple[str, str]] = []
1232
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1233
+ _form_params: List[Tuple[str, str]] = []
1234
+ _files: Dict[
1235
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1236
+ ] = {}
1237
+ _body_params: Optional[bytes] = None
1238
+
1239
+ # process the path parameters
1240
+ # process the query parameters
1241
+ # process the header parameters
1242
+ # process the form parameters
1243
+ # process the body parameter
1244
+
1245
+
1246
+ # set the HTTP header `Accept`
1247
+ if 'Accept' not in _header_params:
1248
+ _header_params['Accept'] = self.api_client.select_header_accept(
1249
+ [
1250
+ 'application/json'
1251
+ ]
1252
+ )
1253
+
1254
+
1255
+ # authentication setting
1256
+ _auth_settings: List[str] = [
1257
+ 'OpenIdConnect'
1258
+ ]
1259
+
1260
+ return self.api_client.param_serialize(
1261
+ method='GET',
1262
+ resource_path='/private',
1263
+ path_params=_path_params,
1264
+ query_params=_query_params,
1265
+ header_params=_header_params,
1266
+ body=_body_params,
1267
+ post_params=_form_params,
1268
+ files=_files,
1269
+ auth_settings=_auth_settings,
1270
+ collection_formats=_collection_formats,
1271
+ _host=_host,
1272
+ _request_auth=_request_auth
1273
+ )
1274
+
1275
+