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,4276 @@
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 datetime import datetime
19
+ from pydantic import Field, StrictBool, StrictInt, StrictStr
20
+ from typing import Any, List, Optional
21
+ from typing_extensions import Annotated
22
+ from audithub_sdk.models.accounting_data import AccountingData
23
+ from audithub_sdk.models.directory import Directory
24
+ from audithub_sdk.models.fio_data import FIOData
25
+ from audithub_sdk.models.pending_finding_actions import PendingFindingActions
26
+ from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse
27
+ from audithub_sdk.models.task import Task
28
+ from audithub_sdk.models.task_patch import TaskPatch
29
+ from audithub_sdk.models.task_status import TaskStatus
30
+
31
+ from audithub_sdk.api_client import ApiClient, RequestSerialized
32
+ from audithub_sdk.api_response import ApiResponse
33
+ from audithub_sdk.rest import RESTResponseType
34
+
35
+
36
+ class TasksApi:
37
+ """NOTE: This class is auto generated by OpenAPI Generator
38
+ Ref: https://openapi-generator.tech
39
+
40
+ Do not edit the class manually.
41
+ """
42
+
43
+ def __init__(self, api_client=None) -> None:
44
+ if api_client is None:
45
+ api_client = ApiClient.get_default()
46
+ self.api_client = api_client
47
+
48
+
49
+ @validate_call
50
+ async def delete_task_organizations_organization_id_tasks_task_id_delete(
51
+ self,
52
+ organization_id: StrictInt,
53
+ task_id: StrictInt,
54
+ _request_timeout: Union[
55
+ None,
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Tuple[
58
+ Annotated[StrictFloat, Field(gt=0)],
59
+ Annotated[StrictFloat, Field(gt=0)]
60
+ ]
61
+ ] = None,
62
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
63
+ _content_type: Optional[StrictStr] = None,
64
+ _headers: Optional[Dict[StrictStr, Any]] = None,
65
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
66
+ ) -> SuccessAndMessageResponse:
67
+ """Delete Task
68
+
69
+ Delete task
70
+
71
+ :param organization_id: (required)
72
+ :type organization_id: int
73
+ :param task_id: (required)
74
+ :type task_id: int
75
+ :param _request_timeout: timeout setting for this request. If one
76
+ number provided, it will be total request
77
+ timeout. It can also be a pair (tuple) of
78
+ (connection, read) timeouts.
79
+ :type _request_timeout: int, tuple(int, int), optional
80
+ :param _request_auth: set to override the auth_settings for an a single
81
+ request; this effectively ignores the
82
+ authentication in the spec for a single request.
83
+ :type _request_auth: dict, optional
84
+ :param _content_type: force content-type for the request.
85
+ :type _content_type: str, Optional
86
+ :param _headers: set to override the headers for a single
87
+ request; this effectively ignores the headers
88
+ in the spec for a single request.
89
+ :type _headers: dict, optional
90
+ :param _host_index: set to override the host_index for a single
91
+ request; this effectively ignores the host_index
92
+ in the spec for a single request.
93
+ :type _host_index: int, optional
94
+ :return: Returns the result object.
95
+ """ # noqa: E501
96
+
97
+ _param = self._delete_task_organizations_organization_id_tasks_task_id_delete_serialize(
98
+ organization_id=organization_id,
99
+ task_id=task_id,
100
+ _request_auth=_request_auth,
101
+ _content_type=_content_type,
102
+ _headers=_headers,
103
+ _host_index=_host_index
104
+ )
105
+
106
+ _response_types_map: Dict[str, Optional[str]] = {
107
+ '200': "SuccessAndMessageResponse",
108
+ '422': "HTTPValidationError",
109
+ }
110
+ response_data = await self.api_client.call_api(
111
+ *_param,
112
+ _request_timeout=_request_timeout
113
+ )
114
+ await response_data.read()
115
+ return self.api_client.response_deserialize(
116
+ response_data=response_data,
117
+ response_types_map=_response_types_map,
118
+ ).data
119
+
120
+
121
+ @validate_call
122
+ async def delete_task_organizations_organization_id_tasks_task_id_delete_with_http_info(
123
+ self,
124
+ organization_id: StrictInt,
125
+ task_id: StrictInt,
126
+ _request_timeout: Union[
127
+ None,
128
+ Annotated[StrictFloat, Field(gt=0)],
129
+ Tuple[
130
+ Annotated[StrictFloat, Field(gt=0)],
131
+ Annotated[StrictFloat, Field(gt=0)]
132
+ ]
133
+ ] = None,
134
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
135
+ _content_type: Optional[StrictStr] = None,
136
+ _headers: Optional[Dict[StrictStr, Any]] = None,
137
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
138
+ ) -> ApiResponse[SuccessAndMessageResponse]:
139
+ """Delete Task
140
+
141
+ Delete task
142
+
143
+ :param organization_id: (required)
144
+ :type organization_id: int
145
+ :param task_id: (required)
146
+ :type task_id: int
147
+ :param _request_timeout: timeout setting for this request. If one
148
+ number provided, it will be total request
149
+ timeout. It can also be a pair (tuple) of
150
+ (connection, read) timeouts.
151
+ :type _request_timeout: int, tuple(int, int), optional
152
+ :param _request_auth: set to override the auth_settings for an a single
153
+ request; this effectively ignores the
154
+ authentication in the spec for a single request.
155
+ :type _request_auth: dict, optional
156
+ :param _content_type: force content-type for the request.
157
+ :type _content_type: str, Optional
158
+ :param _headers: set to override the headers for a single
159
+ request; this effectively ignores the headers
160
+ in the spec for a single request.
161
+ :type _headers: dict, optional
162
+ :param _host_index: set to override the host_index for a single
163
+ request; this effectively ignores the host_index
164
+ in the spec for a single request.
165
+ :type _host_index: int, optional
166
+ :return: Returns the result object.
167
+ """ # noqa: E501
168
+
169
+ _param = self._delete_task_organizations_organization_id_tasks_task_id_delete_serialize(
170
+ organization_id=organization_id,
171
+ task_id=task_id,
172
+ _request_auth=_request_auth,
173
+ _content_type=_content_type,
174
+ _headers=_headers,
175
+ _host_index=_host_index
176
+ )
177
+
178
+ _response_types_map: Dict[str, Optional[str]] = {
179
+ '200': "SuccessAndMessageResponse",
180
+ '422': "HTTPValidationError",
181
+ }
182
+ response_data = await self.api_client.call_api(
183
+ *_param,
184
+ _request_timeout=_request_timeout
185
+ )
186
+ await response_data.read()
187
+ return self.api_client.response_deserialize(
188
+ response_data=response_data,
189
+ response_types_map=_response_types_map,
190
+ )
191
+
192
+
193
+ @validate_call
194
+ async def delete_task_organizations_organization_id_tasks_task_id_delete_without_preload_content(
195
+ self,
196
+ organization_id: StrictInt,
197
+ task_id: StrictInt,
198
+ _request_timeout: Union[
199
+ None,
200
+ Annotated[StrictFloat, Field(gt=0)],
201
+ Tuple[
202
+ Annotated[StrictFloat, Field(gt=0)],
203
+ Annotated[StrictFloat, Field(gt=0)]
204
+ ]
205
+ ] = None,
206
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
207
+ _content_type: Optional[StrictStr] = None,
208
+ _headers: Optional[Dict[StrictStr, Any]] = None,
209
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
210
+ ) -> RESTResponseType:
211
+ """Delete Task
212
+
213
+ Delete task
214
+
215
+ :param organization_id: (required)
216
+ :type organization_id: int
217
+ :param task_id: (required)
218
+ :type task_id: int
219
+ :param _request_timeout: timeout setting for this request. If one
220
+ number provided, it will be total request
221
+ timeout. It can also be a pair (tuple) of
222
+ (connection, read) timeouts.
223
+ :type _request_timeout: int, tuple(int, int), optional
224
+ :param _request_auth: set to override the auth_settings for an a single
225
+ request; this effectively ignores the
226
+ authentication in the spec for a single request.
227
+ :type _request_auth: dict, optional
228
+ :param _content_type: force content-type for the request.
229
+ :type _content_type: str, Optional
230
+ :param _headers: set to override the headers for a single
231
+ request; this effectively ignores the headers
232
+ in the spec for a single request.
233
+ :type _headers: dict, optional
234
+ :param _host_index: set to override the host_index for a single
235
+ request; this effectively ignores the host_index
236
+ in the spec for a single request.
237
+ :type _host_index: int, optional
238
+ :return: Returns the result object.
239
+ """ # noqa: E501
240
+
241
+ _param = self._delete_task_organizations_organization_id_tasks_task_id_delete_serialize(
242
+ organization_id=organization_id,
243
+ task_id=task_id,
244
+ _request_auth=_request_auth,
245
+ _content_type=_content_type,
246
+ _headers=_headers,
247
+ _host_index=_host_index
248
+ )
249
+
250
+ _response_types_map: Dict[str, Optional[str]] = {
251
+ '200': "SuccessAndMessageResponse",
252
+ '422': "HTTPValidationError",
253
+ }
254
+ response_data = await self.api_client.call_api(
255
+ *_param,
256
+ _request_timeout=_request_timeout
257
+ )
258
+ return response_data.response
259
+
260
+
261
+ def _delete_task_organizations_organization_id_tasks_task_id_delete_serialize(
262
+ self,
263
+ organization_id,
264
+ task_id,
265
+ _request_auth,
266
+ _content_type,
267
+ _headers,
268
+ _host_index,
269
+ ) -> RequestSerialized:
270
+
271
+ _host = None
272
+
273
+ _collection_formats: Dict[str, str] = {
274
+ }
275
+
276
+ _path_params: Dict[str, str] = {}
277
+ _query_params: List[Tuple[str, str]] = []
278
+ _header_params: Dict[str, Optional[str]] = _headers or {}
279
+ _form_params: List[Tuple[str, str]] = []
280
+ _files: Dict[
281
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
282
+ ] = {}
283
+ _body_params: Optional[bytes] = None
284
+
285
+ # process the path parameters
286
+ if organization_id is not None:
287
+ _path_params['organization_id'] = organization_id
288
+ if task_id is not None:
289
+ _path_params['task_id'] = task_id
290
+ # process the query parameters
291
+ # process the header parameters
292
+ # process the form parameters
293
+ # process the body parameter
294
+
295
+
296
+ # set the HTTP header `Accept`
297
+ if 'Accept' not in _header_params:
298
+ _header_params['Accept'] = self.api_client.select_header_accept(
299
+ [
300
+ 'application/json'
301
+ ]
302
+ )
303
+
304
+
305
+ # authentication setting
306
+ _auth_settings: List[str] = [
307
+ 'OpenIdConnect'
308
+ ]
309
+
310
+ return self.api_client.param_serialize(
311
+ method='DELETE',
312
+ resource_path='/organizations/{organization_id}/tasks/{task_id}',
313
+ path_params=_path_params,
314
+ query_params=_query_params,
315
+ header_params=_header_params,
316
+ body=_body_params,
317
+ post_params=_form_params,
318
+ files=_files,
319
+ auth_settings=_auth_settings,
320
+ collection_formats=_collection_formats,
321
+ _host=_host,
322
+ _request_auth=_request_auth
323
+ )
324
+
325
+
326
+
327
+
328
+ @validate_call
329
+ async def get_artifact_organizations_organization_id_tasks_task_id_artifacts_artifact_id_get(
330
+ self,
331
+ organization_id: StrictInt,
332
+ task_id: StrictInt,
333
+ artifact_id: StrictStr,
334
+ _request_timeout: Union[
335
+ None,
336
+ Annotated[StrictFloat, Field(gt=0)],
337
+ Tuple[
338
+ Annotated[StrictFloat, Field(gt=0)],
339
+ Annotated[StrictFloat, Field(gt=0)]
340
+ ]
341
+ ] = None,
342
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
343
+ _content_type: Optional[StrictStr] = None,
344
+ _headers: Optional[Dict[StrictStr, Any]] = None,
345
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
346
+ ) -> None:
347
+ """Get Artifact
348
+
349
+ Download the content of an artifact
350
+
351
+ :param organization_id: (required)
352
+ :type organization_id: int
353
+ :param task_id: (required)
354
+ :type task_id: int
355
+ :param artifact_id: (required)
356
+ :type artifact_id: str
357
+ :param _request_timeout: timeout setting for this request. If one
358
+ number provided, it will be total request
359
+ timeout. It can also be a pair (tuple) of
360
+ (connection, read) timeouts.
361
+ :type _request_timeout: int, tuple(int, int), optional
362
+ :param _request_auth: set to override the auth_settings for an a single
363
+ request; this effectively ignores the
364
+ authentication in the spec for a single request.
365
+ :type _request_auth: dict, optional
366
+ :param _content_type: force content-type for the request.
367
+ :type _content_type: str, Optional
368
+ :param _headers: set to override the headers for a single
369
+ request; this effectively ignores the headers
370
+ in the spec for a single request.
371
+ :type _headers: dict, optional
372
+ :param _host_index: set to override the host_index for a single
373
+ request; this effectively ignores the host_index
374
+ in the spec for a single request.
375
+ :type _host_index: int, optional
376
+ :return: Returns the result object.
377
+ """ # noqa: E501
378
+
379
+ _param = self._get_artifact_organizations_organization_id_tasks_task_id_artifacts_artifact_id_get_serialize(
380
+ organization_id=organization_id,
381
+ task_id=task_id,
382
+ artifact_id=artifact_id,
383
+ _request_auth=_request_auth,
384
+ _content_type=_content_type,
385
+ _headers=_headers,
386
+ _host_index=_host_index
387
+ )
388
+
389
+ _response_types_map: Dict[str, Optional[str]] = {
390
+ '200': None,
391
+ '422': "HTTPValidationError",
392
+ }
393
+ response_data = await self.api_client.call_api(
394
+ *_param,
395
+ _request_timeout=_request_timeout
396
+ )
397
+ await response_data.read()
398
+ return self.api_client.response_deserialize(
399
+ response_data=response_data,
400
+ response_types_map=_response_types_map,
401
+ ).data
402
+
403
+
404
+ @validate_call
405
+ async def get_artifact_organizations_organization_id_tasks_task_id_artifacts_artifact_id_get_with_http_info(
406
+ self,
407
+ organization_id: StrictInt,
408
+ task_id: StrictInt,
409
+ artifact_id: StrictStr,
410
+ _request_timeout: Union[
411
+ None,
412
+ Annotated[StrictFloat, Field(gt=0)],
413
+ Tuple[
414
+ Annotated[StrictFloat, Field(gt=0)],
415
+ Annotated[StrictFloat, Field(gt=0)]
416
+ ]
417
+ ] = None,
418
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
419
+ _content_type: Optional[StrictStr] = None,
420
+ _headers: Optional[Dict[StrictStr, Any]] = None,
421
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
422
+ ) -> ApiResponse[None]:
423
+ """Get Artifact
424
+
425
+ Download the content of an artifact
426
+
427
+ :param organization_id: (required)
428
+ :type organization_id: int
429
+ :param task_id: (required)
430
+ :type task_id: int
431
+ :param artifact_id: (required)
432
+ :type artifact_id: str
433
+ :param _request_timeout: timeout setting for this request. If one
434
+ number provided, it will be total request
435
+ timeout. It can also be a pair (tuple) of
436
+ (connection, read) timeouts.
437
+ :type _request_timeout: int, tuple(int, int), optional
438
+ :param _request_auth: set to override the auth_settings for an a single
439
+ request; this effectively ignores the
440
+ authentication in the spec for a single request.
441
+ :type _request_auth: dict, optional
442
+ :param _content_type: force content-type for the request.
443
+ :type _content_type: str, Optional
444
+ :param _headers: set to override the headers for a single
445
+ request; this effectively ignores the headers
446
+ in the spec for a single request.
447
+ :type _headers: dict, optional
448
+ :param _host_index: set to override the host_index for a single
449
+ request; this effectively ignores the host_index
450
+ in the spec for a single request.
451
+ :type _host_index: int, optional
452
+ :return: Returns the result object.
453
+ """ # noqa: E501
454
+
455
+ _param = self._get_artifact_organizations_organization_id_tasks_task_id_artifacts_artifact_id_get_serialize(
456
+ organization_id=organization_id,
457
+ task_id=task_id,
458
+ artifact_id=artifact_id,
459
+ _request_auth=_request_auth,
460
+ _content_type=_content_type,
461
+ _headers=_headers,
462
+ _host_index=_host_index
463
+ )
464
+
465
+ _response_types_map: Dict[str, Optional[str]] = {
466
+ '200': None,
467
+ '422': "HTTPValidationError",
468
+ }
469
+ response_data = await self.api_client.call_api(
470
+ *_param,
471
+ _request_timeout=_request_timeout
472
+ )
473
+ await response_data.read()
474
+ return self.api_client.response_deserialize(
475
+ response_data=response_data,
476
+ response_types_map=_response_types_map,
477
+ )
478
+
479
+
480
+ @validate_call
481
+ async def get_artifact_organizations_organization_id_tasks_task_id_artifacts_artifact_id_get_without_preload_content(
482
+ self,
483
+ organization_id: StrictInt,
484
+ task_id: StrictInt,
485
+ artifact_id: StrictStr,
486
+ _request_timeout: Union[
487
+ None,
488
+ Annotated[StrictFloat, Field(gt=0)],
489
+ Tuple[
490
+ Annotated[StrictFloat, Field(gt=0)],
491
+ Annotated[StrictFloat, Field(gt=0)]
492
+ ]
493
+ ] = None,
494
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
495
+ _content_type: Optional[StrictStr] = None,
496
+ _headers: Optional[Dict[StrictStr, Any]] = None,
497
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
498
+ ) -> RESTResponseType:
499
+ """Get Artifact
500
+
501
+ Download the content of an artifact
502
+
503
+ :param organization_id: (required)
504
+ :type organization_id: int
505
+ :param task_id: (required)
506
+ :type task_id: int
507
+ :param artifact_id: (required)
508
+ :type artifact_id: str
509
+ :param _request_timeout: timeout setting for this request. If one
510
+ number provided, it will be total request
511
+ timeout. It can also be a pair (tuple) of
512
+ (connection, read) timeouts.
513
+ :type _request_timeout: int, tuple(int, int), optional
514
+ :param _request_auth: set to override the auth_settings for an a single
515
+ request; this effectively ignores the
516
+ authentication in the spec for a single request.
517
+ :type _request_auth: dict, optional
518
+ :param _content_type: force content-type for the request.
519
+ :type _content_type: str, Optional
520
+ :param _headers: set to override the headers for a single
521
+ request; this effectively ignores the headers
522
+ in the spec for a single request.
523
+ :type _headers: dict, optional
524
+ :param _host_index: set to override the host_index for a single
525
+ request; this effectively ignores the host_index
526
+ in the spec for a single request.
527
+ :type _host_index: int, optional
528
+ :return: Returns the result object.
529
+ """ # noqa: E501
530
+
531
+ _param = self._get_artifact_organizations_organization_id_tasks_task_id_artifacts_artifact_id_get_serialize(
532
+ organization_id=organization_id,
533
+ task_id=task_id,
534
+ artifact_id=artifact_id,
535
+ _request_auth=_request_auth,
536
+ _content_type=_content_type,
537
+ _headers=_headers,
538
+ _host_index=_host_index
539
+ )
540
+
541
+ _response_types_map: Dict[str, Optional[str]] = {
542
+ '200': None,
543
+ '422': "HTTPValidationError",
544
+ }
545
+ response_data = await self.api_client.call_api(
546
+ *_param,
547
+ _request_timeout=_request_timeout
548
+ )
549
+ return response_data.response
550
+
551
+
552
+ def _get_artifact_organizations_organization_id_tasks_task_id_artifacts_artifact_id_get_serialize(
553
+ self,
554
+ organization_id,
555
+ task_id,
556
+ artifact_id,
557
+ _request_auth,
558
+ _content_type,
559
+ _headers,
560
+ _host_index,
561
+ ) -> RequestSerialized:
562
+
563
+ _host = None
564
+
565
+ _collection_formats: Dict[str, str] = {
566
+ }
567
+
568
+ _path_params: Dict[str, str] = {}
569
+ _query_params: List[Tuple[str, str]] = []
570
+ _header_params: Dict[str, Optional[str]] = _headers or {}
571
+ _form_params: List[Tuple[str, str]] = []
572
+ _files: Dict[
573
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
574
+ ] = {}
575
+ _body_params: Optional[bytes] = None
576
+
577
+ # process the path parameters
578
+ if organization_id is not None:
579
+ _path_params['organization_id'] = organization_id
580
+ if task_id is not None:
581
+ _path_params['task_id'] = task_id
582
+ if artifact_id is not None:
583
+ _path_params['artifact_id'] = artifact_id
584
+ # process the query parameters
585
+ # process the header parameters
586
+ # process the form parameters
587
+ # process the body parameter
588
+
589
+
590
+ # set the HTTP header `Accept`
591
+ if 'Accept' not in _header_params:
592
+ _header_params['Accept'] = self.api_client.select_header_accept(
593
+ [
594
+ 'application/json'
595
+ ]
596
+ )
597
+
598
+
599
+ # authentication setting
600
+ _auth_settings: List[str] = [
601
+ 'OpenIdConnect'
602
+ ]
603
+
604
+ return self.api_client.param_serialize(
605
+ method='GET',
606
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/artifacts/{artifact_id}',
607
+ path_params=_path_params,
608
+ query_params=_query_params,
609
+ header_params=_header_params,
610
+ body=_body_params,
611
+ post_params=_form_params,
612
+ files=_files,
613
+ auth_settings=_auth_settings,
614
+ collection_formats=_collection_formats,
615
+ _host=_host,
616
+ _request_auth=_request_auth
617
+ )
618
+
619
+
620
+
621
+
622
+ @validate_call
623
+ async def get_info_organizations_organization_id_tasks_task_id_get(
624
+ self,
625
+ organization_id: StrictInt,
626
+ task_id: StrictInt,
627
+ _request_timeout: Union[
628
+ None,
629
+ Annotated[StrictFloat, Field(gt=0)],
630
+ Tuple[
631
+ Annotated[StrictFloat, Field(gt=0)],
632
+ Annotated[StrictFloat, Field(gt=0)]
633
+ ]
634
+ ] = None,
635
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
636
+ _content_type: Optional[StrictStr] = None,
637
+ _headers: Optional[Dict[StrictStr, Any]] = None,
638
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
639
+ ) -> Task:
640
+ """Get Info
641
+
642
+ Get task info
643
+
644
+ :param organization_id: (required)
645
+ :type organization_id: int
646
+ :param task_id: (required)
647
+ :type task_id: int
648
+ :param _request_timeout: timeout setting for this request. If one
649
+ number provided, it will be total request
650
+ timeout. It can also be a pair (tuple) of
651
+ (connection, read) timeouts.
652
+ :type _request_timeout: int, tuple(int, int), optional
653
+ :param _request_auth: set to override the auth_settings for an a single
654
+ request; this effectively ignores the
655
+ authentication in the spec for a single request.
656
+ :type _request_auth: dict, optional
657
+ :param _content_type: force content-type for the request.
658
+ :type _content_type: str, Optional
659
+ :param _headers: set to override the headers for a single
660
+ request; this effectively ignores the headers
661
+ in the spec for a single request.
662
+ :type _headers: dict, optional
663
+ :param _host_index: set to override the host_index for a single
664
+ request; this effectively ignores the host_index
665
+ in the spec for a single request.
666
+ :type _host_index: int, optional
667
+ :return: Returns the result object.
668
+ """ # noqa: E501
669
+
670
+ _param = self._get_info_organizations_organization_id_tasks_task_id_get_serialize(
671
+ organization_id=organization_id,
672
+ task_id=task_id,
673
+ _request_auth=_request_auth,
674
+ _content_type=_content_type,
675
+ _headers=_headers,
676
+ _host_index=_host_index
677
+ )
678
+
679
+ _response_types_map: Dict[str, Optional[str]] = {
680
+ '200': "Task",
681
+ '422': "HTTPValidationError",
682
+ }
683
+ response_data = await self.api_client.call_api(
684
+ *_param,
685
+ _request_timeout=_request_timeout
686
+ )
687
+ await response_data.read()
688
+ return self.api_client.response_deserialize(
689
+ response_data=response_data,
690
+ response_types_map=_response_types_map,
691
+ ).data
692
+
693
+
694
+ @validate_call
695
+ async def get_info_organizations_organization_id_tasks_task_id_get_with_http_info(
696
+ self,
697
+ organization_id: StrictInt,
698
+ task_id: StrictInt,
699
+ _request_timeout: Union[
700
+ None,
701
+ Annotated[StrictFloat, Field(gt=0)],
702
+ Tuple[
703
+ Annotated[StrictFloat, Field(gt=0)],
704
+ Annotated[StrictFloat, Field(gt=0)]
705
+ ]
706
+ ] = None,
707
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
708
+ _content_type: Optional[StrictStr] = None,
709
+ _headers: Optional[Dict[StrictStr, Any]] = None,
710
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
711
+ ) -> ApiResponse[Task]:
712
+ """Get Info
713
+
714
+ Get task info
715
+
716
+ :param organization_id: (required)
717
+ :type organization_id: int
718
+ :param task_id: (required)
719
+ :type task_id: int
720
+ :param _request_timeout: timeout setting for this request. If one
721
+ number provided, it will be total request
722
+ timeout. It can also be a pair (tuple) of
723
+ (connection, read) timeouts.
724
+ :type _request_timeout: int, tuple(int, int), optional
725
+ :param _request_auth: set to override the auth_settings for an a single
726
+ request; this effectively ignores the
727
+ authentication in the spec for a single request.
728
+ :type _request_auth: dict, optional
729
+ :param _content_type: force content-type for the request.
730
+ :type _content_type: str, Optional
731
+ :param _headers: set to override the headers for a single
732
+ request; this effectively ignores the headers
733
+ in the spec for a single request.
734
+ :type _headers: dict, optional
735
+ :param _host_index: set to override the host_index for a single
736
+ request; this effectively ignores the host_index
737
+ in the spec for a single request.
738
+ :type _host_index: int, optional
739
+ :return: Returns the result object.
740
+ """ # noqa: E501
741
+
742
+ _param = self._get_info_organizations_organization_id_tasks_task_id_get_serialize(
743
+ organization_id=organization_id,
744
+ task_id=task_id,
745
+ _request_auth=_request_auth,
746
+ _content_type=_content_type,
747
+ _headers=_headers,
748
+ _host_index=_host_index
749
+ )
750
+
751
+ _response_types_map: Dict[str, Optional[str]] = {
752
+ '200': "Task",
753
+ '422': "HTTPValidationError",
754
+ }
755
+ response_data = await self.api_client.call_api(
756
+ *_param,
757
+ _request_timeout=_request_timeout
758
+ )
759
+ await response_data.read()
760
+ return self.api_client.response_deserialize(
761
+ response_data=response_data,
762
+ response_types_map=_response_types_map,
763
+ )
764
+
765
+
766
+ @validate_call
767
+ async def get_info_organizations_organization_id_tasks_task_id_get_without_preload_content(
768
+ self,
769
+ organization_id: StrictInt,
770
+ task_id: StrictInt,
771
+ _request_timeout: Union[
772
+ None,
773
+ Annotated[StrictFloat, Field(gt=0)],
774
+ Tuple[
775
+ Annotated[StrictFloat, Field(gt=0)],
776
+ Annotated[StrictFloat, Field(gt=0)]
777
+ ]
778
+ ] = None,
779
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
780
+ _content_type: Optional[StrictStr] = None,
781
+ _headers: Optional[Dict[StrictStr, Any]] = None,
782
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
783
+ ) -> RESTResponseType:
784
+ """Get Info
785
+
786
+ Get task info
787
+
788
+ :param organization_id: (required)
789
+ :type organization_id: int
790
+ :param task_id: (required)
791
+ :type task_id: int
792
+ :param _request_timeout: timeout setting for this request. If one
793
+ number provided, it will be total request
794
+ timeout. It can also be a pair (tuple) of
795
+ (connection, read) timeouts.
796
+ :type _request_timeout: int, tuple(int, int), optional
797
+ :param _request_auth: set to override the auth_settings for an a single
798
+ request; this effectively ignores the
799
+ authentication in the spec for a single request.
800
+ :type _request_auth: dict, optional
801
+ :param _content_type: force content-type for the request.
802
+ :type _content_type: str, Optional
803
+ :param _headers: set to override the headers for a single
804
+ request; this effectively ignores the headers
805
+ in the spec for a single request.
806
+ :type _headers: dict, optional
807
+ :param _host_index: set to override the host_index for a single
808
+ request; this effectively ignores the host_index
809
+ in the spec for a single request.
810
+ :type _host_index: int, optional
811
+ :return: Returns the result object.
812
+ """ # noqa: E501
813
+
814
+ _param = self._get_info_organizations_organization_id_tasks_task_id_get_serialize(
815
+ organization_id=organization_id,
816
+ task_id=task_id,
817
+ _request_auth=_request_auth,
818
+ _content_type=_content_type,
819
+ _headers=_headers,
820
+ _host_index=_host_index
821
+ )
822
+
823
+ _response_types_map: Dict[str, Optional[str]] = {
824
+ '200': "Task",
825
+ '422': "HTTPValidationError",
826
+ }
827
+ response_data = await self.api_client.call_api(
828
+ *_param,
829
+ _request_timeout=_request_timeout
830
+ )
831
+ return response_data.response
832
+
833
+
834
+ def _get_info_organizations_organization_id_tasks_task_id_get_serialize(
835
+ self,
836
+ organization_id,
837
+ task_id,
838
+ _request_auth,
839
+ _content_type,
840
+ _headers,
841
+ _host_index,
842
+ ) -> RequestSerialized:
843
+
844
+ _host = None
845
+
846
+ _collection_formats: Dict[str, str] = {
847
+ }
848
+
849
+ _path_params: Dict[str, str] = {}
850
+ _query_params: List[Tuple[str, str]] = []
851
+ _header_params: Dict[str, Optional[str]] = _headers or {}
852
+ _form_params: List[Tuple[str, str]] = []
853
+ _files: Dict[
854
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
855
+ ] = {}
856
+ _body_params: Optional[bytes] = None
857
+
858
+ # process the path parameters
859
+ if organization_id is not None:
860
+ _path_params['organization_id'] = organization_id
861
+ if task_id is not None:
862
+ _path_params['task_id'] = task_id
863
+ # process the query parameters
864
+ # process the header parameters
865
+ # process the form parameters
866
+ # process the body parameter
867
+
868
+
869
+ # set the HTTP header `Accept`
870
+ if 'Accept' not in _header_params:
871
+ _header_params['Accept'] = self.api_client.select_header_accept(
872
+ [
873
+ 'application/json'
874
+ ]
875
+ )
876
+
877
+
878
+ # authentication setting
879
+ _auth_settings: List[str] = [
880
+ 'OpenIdConnect'
881
+ ]
882
+
883
+ return self.api_client.param_serialize(
884
+ method='GET',
885
+ resource_path='/organizations/{organization_id}/tasks/{task_id}',
886
+ path_params=_path_params,
887
+ query_params=_query_params,
888
+ header_params=_header_params,
889
+ body=_body_params,
890
+ post_params=_form_params,
891
+ files=_files,
892
+ auth_settings=_auth_settings,
893
+ collection_formats=_collection_formats,
894
+ _host=_host,
895
+ _request_auth=_request_auth
896
+ )
897
+
898
+
899
+
900
+
901
+ @validate_call
902
+ async def get_output_organizations_organization_id_tasks_task_id_step_code_output_get(
903
+ self,
904
+ task_id: StrictInt,
905
+ organization_id: StrictInt,
906
+ step_code: StrictStr,
907
+ disable_filtering: Annotated[Optional[StrictBool], Field(description="When set to true, the raw, unfiltered output of the task will be provided.")] = None,
908
+ show_timestamp: Annotated[Optional[StrictBool], Field(description="When set to true, the log entry is prepended with timestamp")] = None,
909
+ _request_timeout: Union[
910
+ None,
911
+ Annotated[StrictFloat, Field(gt=0)],
912
+ Tuple[
913
+ Annotated[StrictFloat, Field(gt=0)],
914
+ Annotated[StrictFloat, Field(gt=0)]
915
+ ]
916
+ ] = None,
917
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
918
+ _content_type: Optional[StrictStr] = None,
919
+ _headers: Optional[Dict[StrictStr, Any]] = None,
920
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
921
+ ) -> List[str]:
922
+ """Get Output
923
+
924
+
925
+ :param task_id: (required)
926
+ :type task_id: int
927
+ :param organization_id: (required)
928
+ :type organization_id: int
929
+ :param step_code: (required)
930
+ :type step_code: str
931
+ :param disable_filtering: When set to true, the raw, unfiltered output of the task will be provided.
932
+ :type disable_filtering: bool
933
+ :param show_timestamp: When set to true, the log entry is prepended with timestamp
934
+ :type show_timestamp: bool
935
+ :param _request_timeout: timeout setting for this request. If one
936
+ number provided, it will be total request
937
+ timeout. It can also be a pair (tuple) of
938
+ (connection, read) timeouts.
939
+ :type _request_timeout: int, tuple(int, int), optional
940
+ :param _request_auth: set to override the auth_settings for an a single
941
+ request; this effectively ignores the
942
+ authentication in the spec for a single request.
943
+ :type _request_auth: dict, optional
944
+ :param _content_type: force content-type for the request.
945
+ :type _content_type: str, Optional
946
+ :param _headers: set to override the headers for a single
947
+ request; this effectively ignores the headers
948
+ in the spec for a single request.
949
+ :type _headers: dict, optional
950
+ :param _host_index: set to override the host_index for a single
951
+ request; this effectively ignores the host_index
952
+ in the spec for a single request.
953
+ :type _host_index: int, optional
954
+ :return: Returns the result object.
955
+ """ # noqa: E501
956
+
957
+ _param = self._get_output_organizations_organization_id_tasks_task_id_step_code_output_get_serialize(
958
+ task_id=task_id,
959
+ organization_id=organization_id,
960
+ step_code=step_code,
961
+ disable_filtering=disable_filtering,
962
+ show_timestamp=show_timestamp,
963
+ _request_auth=_request_auth,
964
+ _content_type=_content_type,
965
+ _headers=_headers,
966
+ _host_index=_host_index
967
+ )
968
+
969
+ _response_types_map: Dict[str, Optional[str]] = {
970
+ '200': "List[str]",
971
+ '422': "HTTPValidationError",
972
+ }
973
+ response_data = await self.api_client.call_api(
974
+ *_param,
975
+ _request_timeout=_request_timeout
976
+ )
977
+ await response_data.read()
978
+ return self.api_client.response_deserialize(
979
+ response_data=response_data,
980
+ response_types_map=_response_types_map,
981
+ ).data
982
+
983
+
984
+ @validate_call
985
+ async def get_output_organizations_organization_id_tasks_task_id_step_code_output_get_with_http_info(
986
+ self,
987
+ task_id: StrictInt,
988
+ organization_id: StrictInt,
989
+ step_code: StrictStr,
990
+ disable_filtering: Annotated[Optional[StrictBool], Field(description="When set to true, the raw, unfiltered output of the task will be provided.")] = None,
991
+ show_timestamp: Annotated[Optional[StrictBool], Field(description="When set to true, the log entry is prepended with timestamp")] = None,
992
+ _request_timeout: Union[
993
+ None,
994
+ Annotated[StrictFloat, Field(gt=0)],
995
+ Tuple[
996
+ Annotated[StrictFloat, Field(gt=0)],
997
+ Annotated[StrictFloat, Field(gt=0)]
998
+ ]
999
+ ] = None,
1000
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1001
+ _content_type: Optional[StrictStr] = None,
1002
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1003
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1004
+ ) -> ApiResponse[List[str]]:
1005
+ """Get Output
1006
+
1007
+
1008
+ :param task_id: (required)
1009
+ :type task_id: int
1010
+ :param organization_id: (required)
1011
+ :type organization_id: int
1012
+ :param step_code: (required)
1013
+ :type step_code: str
1014
+ :param disable_filtering: When set to true, the raw, unfiltered output of the task will be provided.
1015
+ :type disable_filtering: bool
1016
+ :param show_timestamp: When set to true, the log entry is prepended with timestamp
1017
+ :type show_timestamp: bool
1018
+ :param _request_timeout: timeout setting for this request. If one
1019
+ number provided, it will be total request
1020
+ timeout. It can also be a pair (tuple) of
1021
+ (connection, read) timeouts.
1022
+ :type _request_timeout: int, tuple(int, int), optional
1023
+ :param _request_auth: set to override the auth_settings for an a single
1024
+ request; this effectively ignores the
1025
+ authentication in the spec for a single request.
1026
+ :type _request_auth: dict, optional
1027
+ :param _content_type: force content-type for the request.
1028
+ :type _content_type: str, Optional
1029
+ :param _headers: set to override the headers for a single
1030
+ request; this effectively ignores the headers
1031
+ in the spec for a single request.
1032
+ :type _headers: dict, optional
1033
+ :param _host_index: set to override the host_index for a single
1034
+ request; this effectively ignores the host_index
1035
+ in the spec for a single request.
1036
+ :type _host_index: int, optional
1037
+ :return: Returns the result object.
1038
+ """ # noqa: E501
1039
+
1040
+ _param = self._get_output_organizations_organization_id_tasks_task_id_step_code_output_get_serialize(
1041
+ task_id=task_id,
1042
+ organization_id=organization_id,
1043
+ step_code=step_code,
1044
+ disable_filtering=disable_filtering,
1045
+ show_timestamp=show_timestamp,
1046
+ _request_auth=_request_auth,
1047
+ _content_type=_content_type,
1048
+ _headers=_headers,
1049
+ _host_index=_host_index
1050
+ )
1051
+
1052
+ _response_types_map: Dict[str, Optional[str]] = {
1053
+ '200': "List[str]",
1054
+ '422': "HTTPValidationError",
1055
+ }
1056
+ response_data = await self.api_client.call_api(
1057
+ *_param,
1058
+ _request_timeout=_request_timeout
1059
+ )
1060
+ await response_data.read()
1061
+ return self.api_client.response_deserialize(
1062
+ response_data=response_data,
1063
+ response_types_map=_response_types_map,
1064
+ )
1065
+
1066
+
1067
+ @validate_call
1068
+ async def get_output_organizations_organization_id_tasks_task_id_step_code_output_get_without_preload_content(
1069
+ self,
1070
+ task_id: StrictInt,
1071
+ organization_id: StrictInt,
1072
+ step_code: StrictStr,
1073
+ disable_filtering: Annotated[Optional[StrictBool], Field(description="When set to true, the raw, unfiltered output of the task will be provided.")] = None,
1074
+ show_timestamp: Annotated[Optional[StrictBool], Field(description="When set to true, the log entry is prepended with timestamp")] = None,
1075
+ _request_timeout: Union[
1076
+ None,
1077
+ Annotated[StrictFloat, Field(gt=0)],
1078
+ Tuple[
1079
+ Annotated[StrictFloat, Field(gt=0)],
1080
+ Annotated[StrictFloat, Field(gt=0)]
1081
+ ]
1082
+ ] = None,
1083
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1084
+ _content_type: Optional[StrictStr] = None,
1085
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1086
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1087
+ ) -> RESTResponseType:
1088
+ """Get Output
1089
+
1090
+
1091
+ :param task_id: (required)
1092
+ :type task_id: int
1093
+ :param organization_id: (required)
1094
+ :type organization_id: int
1095
+ :param step_code: (required)
1096
+ :type step_code: str
1097
+ :param disable_filtering: When set to true, the raw, unfiltered output of the task will be provided.
1098
+ :type disable_filtering: bool
1099
+ :param show_timestamp: When set to true, the log entry is prepended with timestamp
1100
+ :type show_timestamp: bool
1101
+ :param _request_timeout: timeout setting for this request. If one
1102
+ number provided, it will be total request
1103
+ timeout. It can also be a pair (tuple) of
1104
+ (connection, read) timeouts.
1105
+ :type _request_timeout: int, tuple(int, int), optional
1106
+ :param _request_auth: set to override the auth_settings for an a single
1107
+ request; this effectively ignores the
1108
+ authentication in the spec for a single request.
1109
+ :type _request_auth: dict, optional
1110
+ :param _content_type: force content-type for the request.
1111
+ :type _content_type: str, Optional
1112
+ :param _headers: set to override the headers for a single
1113
+ request; this effectively ignores the headers
1114
+ in the spec for a single request.
1115
+ :type _headers: dict, optional
1116
+ :param _host_index: set to override the host_index for a single
1117
+ request; this effectively ignores the host_index
1118
+ in the spec for a single request.
1119
+ :type _host_index: int, optional
1120
+ :return: Returns the result object.
1121
+ """ # noqa: E501
1122
+
1123
+ _param = self._get_output_organizations_organization_id_tasks_task_id_step_code_output_get_serialize(
1124
+ task_id=task_id,
1125
+ organization_id=organization_id,
1126
+ step_code=step_code,
1127
+ disable_filtering=disable_filtering,
1128
+ show_timestamp=show_timestamp,
1129
+ _request_auth=_request_auth,
1130
+ _content_type=_content_type,
1131
+ _headers=_headers,
1132
+ _host_index=_host_index
1133
+ )
1134
+
1135
+ _response_types_map: Dict[str, Optional[str]] = {
1136
+ '200': "List[str]",
1137
+ '422': "HTTPValidationError",
1138
+ }
1139
+ response_data = await self.api_client.call_api(
1140
+ *_param,
1141
+ _request_timeout=_request_timeout
1142
+ )
1143
+ return response_data.response
1144
+
1145
+
1146
+ def _get_output_organizations_organization_id_tasks_task_id_step_code_output_get_serialize(
1147
+ self,
1148
+ task_id,
1149
+ organization_id,
1150
+ step_code,
1151
+ disable_filtering,
1152
+ show_timestamp,
1153
+ _request_auth,
1154
+ _content_type,
1155
+ _headers,
1156
+ _host_index,
1157
+ ) -> RequestSerialized:
1158
+
1159
+ _host = None
1160
+
1161
+ _collection_formats: Dict[str, str] = {
1162
+ }
1163
+
1164
+ _path_params: Dict[str, str] = {}
1165
+ _query_params: List[Tuple[str, str]] = []
1166
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1167
+ _form_params: List[Tuple[str, str]] = []
1168
+ _files: Dict[
1169
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1170
+ ] = {}
1171
+ _body_params: Optional[bytes] = None
1172
+
1173
+ # process the path parameters
1174
+ if task_id is not None:
1175
+ _path_params['task_id'] = task_id
1176
+ if organization_id is not None:
1177
+ _path_params['organization_id'] = organization_id
1178
+ if step_code is not None:
1179
+ _path_params['step_code'] = step_code
1180
+ # process the query parameters
1181
+ if disable_filtering is not None:
1182
+
1183
+ _query_params.append(('disable_filtering', disable_filtering))
1184
+
1185
+ if show_timestamp is not None:
1186
+
1187
+ _query_params.append(('show_timestamp', show_timestamp))
1188
+
1189
+ # process the header parameters
1190
+ # process the form parameters
1191
+ # process the body parameter
1192
+
1193
+
1194
+ # set the HTTP header `Accept`
1195
+ if 'Accept' not in _header_params:
1196
+ _header_params['Accept'] = self.api_client.select_header_accept(
1197
+ [
1198
+ 'application/json',
1199
+ 'text/plain'
1200
+ ]
1201
+ )
1202
+
1203
+
1204
+ # authentication setting
1205
+ _auth_settings: List[str] = [
1206
+ 'OpenIdConnect'
1207
+ ]
1208
+
1209
+ return self.api_client.param_serialize(
1210
+ method='GET',
1211
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/{step_code}/output',
1212
+ path_params=_path_params,
1213
+ query_params=_query_params,
1214
+ header_params=_header_params,
1215
+ body=_body_params,
1216
+ post_params=_form_params,
1217
+ files=_files,
1218
+ auth_settings=_auth_settings,
1219
+ collection_formats=_collection_formats,
1220
+ _host=_host,
1221
+ _request_auth=_request_auth
1222
+ )
1223
+
1224
+
1225
+
1226
+
1227
+ @validate_call
1228
+ async def get_status_organizations_organization_id_tasks_task_id_status_get(
1229
+ self,
1230
+ organization_id: StrictInt,
1231
+ task_id: StrictInt,
1232
+ _request_timeout: Union[
1233
+ None,
1234
+ Annotated[StrictFloat, Field(gt=0)],
1235
+ Tuple[
1236
+ Annotated[StrictFloat, Field(gt=0)],
1237
+ Annotated[StrictFloat, Field(gt=0)]
1238
+ ]
1239
+ ] = None,
1240
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1241
+ _content_type: Optional[StrictStr] = None,
1242
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1243
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1244
+ ) -> TaskStatus:
1245
+ """Get Status
1246
+
1247
+ Get task status
1248
+
1249
+ :param organization_id: (required)
1250
+ :type organization_id: int
1251
+ :param task_id: (required)
1252
+ :type task_id: int
1253
+ :param _request_timeout: timeout setting for this request. If one
1254
+ number provided, it will be total request
1255
+ timeout. It can also be a pair (tuple) of
1256
+ (connection, read) timeouts.
1257
+ :type _request_timeout: int, tuple(int, int), optional
1258
+ :param _request_auth: set to override the auth_settings for an a single
1259
+ request; this effectively ignores the
1260
+ authentication in the spec for a single request.
1261
+ :type _request_auth: dict, optional
1262
+ :param _content_type: force content-type for the request.
1263
+ :type _content_type: str, Optional
1264
+ :param _headers: set to override the headers for a single
1265
+ request; this effectively ignores the headers
1266
+ in the spec for a single request.
1267
+ :type _headers: dict, optional
1268
+ :param _host_index: set to override the host_index for a single
1269
+ request; this effectively ignores the host_index
1270
+ in the spec for a single request.
1271
+ :type _host_index: int, optional
1272
+ :return: Returns the result object.
1273
+ """ # noqa: E501
1274
+
1275
+ _param = self._get_status_organizations_organization_id_tasks_task_id_status_get_serialize(
1276
+ organization_id=organization_id,
1277
+ task_id=task_id,
1278
+ _request_auth=_request_auth,
1279
+ _content_type=_content_type,
1280
+ _headers=_headers,
1281
+ _host_index=_host_index
1282
+ )
1283
+
1284
+ _response_types_map: Dict[str, Optional[str]] = {
1285
+ '200': "TaskStatus",
1286
+ '422': "HTTPValidationError",
1287
+ }
1288
+ response_data = await self.api_client.call_api(
1289
+ *_param,
1290
+ _request_timeout=_request_timeout
1291
+ )
1292
+ await response_data.read()
1293
+ return self.api_client.response_deserialize(
1294
+ response_data=response_data,
1295
+ response_types_map=_response_types_map,
1296
+ ).data
1297
+
1298
+
1299
+ @validate_call
1300
+ async def get_status_organizations_organization_id_tasks_task_id_status_get_with_http_info(
1301
+ self,
1302
+ organization_id: StrictInt,
1303
+ task_id: StrictInt,
1304
+ _request_timeout: Union[
1305
+ None,
1306
+ Annotated[StrictFloat, Field(gt=0)],
1307
+ Tuple[
1308
+ Annotated[StrictFloat, Field(gt=0)],
1309
+ Annotated[StrictFloat, Field(gt=0)]
1310
+ ]
1311
+ ] = None,
1312
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1313
+ _content_type: Optional[StrictStr] = None,
1314
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1315
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1316
+ ) -> ApiResponse[TaskStatus]:
1317
+ """Get Status
1318
+
1319
+ Get task status
1320
+
1321
+ :param organization_id: (required)
1322
+ :type organization_id: int
1323
+ :param task_id: (required)
1324
+ :type task_id: int
1325
+ :param _request_timeout: timeout setting for this request. If one
1326
+ number provided, it will be total request
1327
+ timeout. It can also be a pair (tuple) of
1328
+ (connection, read) timeouts.
1329
+ :type _request_timeout: int, tuple(int, int), optional
1330
+ :param _request_auth: set to override the auth_settings for an a single
1331
+ request; this effectively ignores the
1332
+ authentication in the spec for a single request.
1333
+ :type _request_auth: dict, optional
1334
+ :param _content_type: force content-type for the request.
1335
+ :type _content_type: str, Optional
1336
+ :param _headers: set to override the headers for a single
1337
+ request; this effectively ignores the headers
1338
+ in the spec for a single request.
1339
+ :type _headers: dict, optional
1340
+ :param _host_index: set to override the host_index for a single
1341
+ request; this effectively ignores the host_index
1342
+ in the spec for a single request.
1343
+ :type _host_index: int, optional
1344
+ :return: Returns the result object.
1345
+ """ # noqa: E501
1346
+
1347
+ _param = self._get_status_organizations_organization_id_tasks_task_id_status_get_serialize(
1348
+ organization_id=organization_id,
1349
+ task_id=task_id,
1350
+ _request_auth=_request_auth,
1351
+ _content_type=_content_type,
1352
+ _headers=_headers,
1353
+ _host_index=_host_index
1354
+ )
1355
+
1356
+ _response_types_map: Dict[str, Optional[str]] = {
1357
+ '200': "TaskStatus",
1358
+ '422': "HTTPValidationError",
1359
+ }
1360
+ response_data = await self.api_client.call_api(
1361
+ *_param,
1362
+ _request_timeout=_request_timeout
1363
+ )
1364
+ await response_data.read()
1365
+ return self.api_client.response_deserialize(
1366
+ response_data=response_data,
1367
+ response_types_map=_response_types_map,
1368
+ )
1369
+
1370
+
1371
+ @validate_call
1372
+ async def get_status_organizations_organization_id_tasks_task_id_status_get_without_preload_content(
1373
+ self,
1374
+ organization_id: StrictInt,
1375
+ task_id: StrictInt,
1376
+ _request_timeout: Union[
1377
+ None,
1378
+ Annotated[StrictFloat, Field(gt=0)],
1379
+ Tuple[
1380
+ Annotated[StrictFloat, Field(gt=0)],
1381
+ Annotated[StrictFloat, Field(gt=0)]
1382
+ ]
1383
+ ] = None,
1384
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1385
+ _content_type: Optional[StrictStr] = None,
1386
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1387
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1388
+ ) -> RESTResponseType:
1389
+ """Get Status
1390
+
1391
+ Get task status
1392
+
1393
+ :param organization_id: (required)
1394
+ :type organization_id: int
1395
+ :param task_id: (required)
1396
+ :type task_id: int
1397
+ :param _request_timeout: timeout setting for this request. If one
1398
+ number provided, it will be total request
1399
+ timeout. It can also be a pair (tuple) of
1400
+ (connection, read) timeouts.
1401
+ :type _request_timeout: int, tuple(int, int), optional
1402
+ :param _request_auth: set to override the auth_settings for an a single
1403
+ request; this effectively ignores the
1404
+ authentication in the spec for a single request.
1405
+ :type _request_auth: dict, optional
1406
+ :param _content_type: force content-type for the request.
1407
+ :type _content_type: str, Optional
1408
+ :param _headers: set to override the headers for a single
1409
+ request; this effectively ignores the headers
1410
+ in the spec for a single request.
1411
+ :type _headers: dict, optional
1412
+ :param _host_index: set to override the host_index for a single
1413
+ request; this effectively ignores the host_index
1414
+ in the spec for a single request.
1415
+ :type _host_index: int, optional
1416
+ :return: Returns the result object.
1417
+ """ # noqa: E501
1418
+
1419
+ _param = self._get_status_organizations_organization_id_tasks_task_id_status_get_serialize(
1420
+ organization_id=organization_id,
1421
+ task_id=task_id,
1422
+ _request_auth=_request_auth,
1423
+ _content_type=_content_type,
1424
+ _headers=_headers,
1425
+ _host_index=_host_index
1426
+ )
1427
+
1428
+ _response_types_map: Dict[str, Optional[str]] = {
1429
+ '200': "TaskStatus",
1430
+ '422': "HTTPValidationError",
1431
+ }
1432
+ response_data = await self.api_client.call_api(
1433
+ *_param,
1434
+ _request_timeout=_request_timeout
1435
+ )
1436
+ return response_data.response
1437
+
1438
+
1439
+ def _get_status_organizations_organization_id_tasks_task_id_status_get_serialize(
1440
+ self,
1441
+ organization_id,
1442
+ task_id,
1443
+ _request_auth,
1444
+ _content_type,
1445
+ _headers,
1446
+ _host_index,
1447
+ ) -> RequestSerialized:
1448
+
1449
+ _host = None
1450
+
1451
+ _collection_formats: Dict[str, str] = {
1452
+ }
1453
+
1454
+ _path_params: Dict[str, str] = {}
1455
+ _query_params: List[Tuple[str, str]] = []
1456
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1457
+ _form_params: List[Tuple[str, str]] = []
1458
+ _files: Dict[
1459
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1460
+ ] = {}
1461
+ _body_params: Optional[bytes] = None
1462
+
1463
+ # process the path parameters
1464
+ if organization_id is not None:
1465
+ _path_params['organization_id'] = organization_id
1466
+ if task_id is not None:
1467
+ _path_params['task_id'] = task_id
1468
+ # process the query parameters
1469
+ # process the header parameters
1470
+ # process the form parameters
1471
+ # process the body parameter
1472
+
1473
+
1474
+ # set the HTTP header `Accept`
1475
+ if 'Accept' not in _header_params:
1476
+ _header_params['Accept'] = self.api_client.select_header_accept(
1477
+ [
1478
+ 'application/json'
1479
+ ]
1480
+ )
1481
+
1482
+
1483
+ # authentication setting
1484
+ _auth_settings: List[str] = [
1485
+ 'OpenIdConnect'
1486
+ ]
1487
+
1488
+ return self.api_client.param_serialize(
1489
+ method='GET',
1490
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/status',
1491
+ path_params=_path_params,
1492
+ query_params=_query_params,
1493
+ header_params=_header_params,
1494
+ body=_body_params,
1495
+ post_params=_form_params,
1496
+ files=_files,
1497
+ auth_settings=_auth_settings,
1498
+ collection_formats=_collection_formats,
1499
+ _host=_host,
1500
+ _request_auth=_request_auth
1501
+ )
1502
+
1503
+
1504
+
1505
+
1506
+ @validate_call
1507
+ async def get_task_accounting_organizations_organization_id_tasks_task_id_accounting_get(
1508
+ self,
1509
+ organization_id: StrictInt,
1510
+ task_id: StrictInt,
1511
+ step_code: Optional[StrictStr] = None,
1512
+ container_name: Optional[StrictStr] = None,
1513
+ _request_timeout: Union[
1514
+ None,
1515
+ Annotated[StrictFloat, Field(gt=0)],
1516
+ Tuple[
1517
+ Annotated[StrictFloat, Field(gt=0)],
1518
+ Annotated[StrictFloat, Field(gt=0)]
1519
+ ]
1520
+ ] = None,
1521
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1522
+ _content_type: Optional[StrictStr] = None,
1523
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1524
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1525
+ ) -> List[AccountingData]:
1526
+ """Get Task Accounting
1527
+
1528
+ Get all accounting entries of a task
1529
+
1530
+ :param organization_id: (required)
1531
+ :type organization_id: int
1532
+ :param task_id: (required)
1533
+ :type task_id: int
1534
+ :param step_code:
1535
+ :type step_code: str
1536
+ :param container_name:
1537
+ :type container_name: str
1538
+ :param _request_timeout: timeout setting for this request. If one
1539
+ number provided, it will be total request
1540
+ timeout. It can also be a pair (tuple) of
1541
+ (connection, read) timeouts.
1542
+ :type _request_timeout: int, tuple(int, int), optional
1543
+ :param _request_auth: set to override the auth_settings for an a single
1544
+ request; this effectively ignores the
1545
+ authentication in the spec for a single request.
1546
+ :type _request_auth: dict, optional
1547
+ :param _content_type: force content-type for the request.
1548
+ :type _content_type: str, Optional
1549
+ :param _headers: set to override the headers for a single
1550
+ request; this effectively ignores the headers
1551
+ in the spec for a single request.
1552
+ :type _headers: dict, optional
1553
+ :param _host_index: set to override the host_index for a single
1554
+ request; this effectively ignores the host_index
1555
+ in the spec for a single request.
1556
+ :type _host_index: int, optional
1557
+ :return: Returns the result object.
1558
+ """ # noqa: E501
1559
+
1560
+ _param = self._get_task_accounting_organizations_organization_id_tasks_task_id_accounting_get_serialize(
1561
+ organization_id=organization_id,
1562
+ task_id=task_id,
1563
+ step_code=step_code,
1564
+ container_name=container_name,
1565
+ _request_auth=_request_auth,
1566
+ _content_type=_content_type,
1567
+ _headers=_headers,
1568
+ _host_index=_host_index
1569
+ )
1570
+
1571
+ _response_types_map: Dict[str, Optional[str]] = {
1572
+ '200': "List[AccountingData]",
1573
+ '422': "HTTPValidationError",
1574
+ }
1575
+ response_data = await self.api_client.call_api(
1576
+ *_param,
1577
+ _request_timeout=_request_timeout
1578
+ )
1579
+ await response_data.read()
1580
+ return self.api_client.response_deserialize(
1581
+ response_data=response_data,
1582
+ response_types_map=_response_types_map,
1583
+ ).data
1584
+
1585
+
1586
+ @validate_call
1587
+ async def get_task_accounting_organizations_organization_id_tasks_task_id_accounting_get_with_http_info(
1588
+ self,
1589
+ organization_id: StrictInt,
1590
+ task_id: StrictInt,
1591
+ step_code: Optional[StrictStr] = None,
1592
+ container_name: Optional[StrictStr] = None,
1593
+ _request_timeout: Union[
1594
+ None,
1595
+ Annotated[StrictFloat, Field(gt=0)],
1596
+ Tuple[
1597
+ Annotated[StrictFloat, Field(gt=0)],
1598
+ Annotated[StrictFloat, Field(gt=0)]
1599
+ ]
1600
+ ] = None,
1601
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1602
+ _content_type: Optional[StrictStr] = None,
1603
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1604
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1605
+ ) -> ApiResponse[List[AccountingData]]:
1606
+ """Get Task Accounting
1607
+
1608
+ Get all accounting entries of a task
1609
+
1610
+ :param organization_id: (required)
1611
+ :type organization_id: int
1612
+ :param task_id: (required)
1613
+ :type task_id: int
1614
+ :param step_code:
1615
+ :type step_code: str
1616
+ :param container_name:
1617
+ :type container_name: str
1618
+ :param _request_timeout: timeout setting for this request. If one
1619
+ number provided, it will be total request
1620
+ timeout. It can also be a pair (tuple) of
1621
+ (connection, read) timeouts.
1622
+ :type _request_timeout: int, tuple(int, int), optional
1623
+ :param _request_auth: set to override the auth_settings for an a single
1624
+ request; this effectively ignores the
1625
+ authentication in the spec for a single request.
1626
+ :type _request_auth: dict, optional
1627
+ :param _content_type: force content-type for the request.
1628
+ :type _content_type: str, Optional
1629
+ :param _headers: set to override the headers for a single
1630
+ request; this effectively ignores the headers
1631
+ in the spec for a single request.
1632
+ :type _headers: dict, optional
1633
+ :param _host_index: set to override the host_index for a single
1634
+ request; this effectively ignores the host_index
1635
+ in the spec for a single request.
1636
+ :type _host_index: int, optional
1637
+ :return: Returns the result object.
1638
+ """ # noqa: E501
1639
+
1640
+ _param = self._get_task_accounting_organizations_organization_id_tasks_task_id_accounting_get_serialize(
1641
+ organization_id=organization_id,
1642
+ task_id=task_id,
1643
+ step_code=step_code,
1644
+ container_name=container_name,
1645
+ _request_auth=_request_auth,
1646
+ _content_type=_content_type,
1647
+ _headers=_headers,
1648
+ _host_index=_host_index
1649
+ )
1650
+
1651
+ _response_types_map: Dict[str, Optional[str]] = {
1652
+ '200': "List[AccountingData]",
1653
+ '422': "HTTPValidationError",
1654
+ }
1655
+ response_data = await self.api_client.call_api(
1656
+ *_param,
1657
+ _request_timeout=_request_timeout
1658
+ )
1659
+ await response_data.read()
1660
+ return self.api_client.response_deserialize(
1661
+ response_data=response_data,
1662
+ response_types_map=_response_types_map,
1663
+ )
1664
+
1665
+
1666
+ @validate_call
1667
+ async def get_task_accounting_organizations_organization_id_tasks_task_id_accounting_get_without_preload_content(
1668
+ self,
1669
+ organization_id: StrictInt,
1670
+ task_id: StrictInt,
1671
+ step_code: Optional[StrictStr] = None,
1672
+ container_name: Optional[StrictStr] = None,
1673
+ _request_timeout: Union[
1674
+ None,
1675
+ Annotated[StrictFloat, Field(gt=0)],
1676
+ Tuple[
1677
+ Annotated[StrictFloat, Field(gt=0)],
1678
+ Annotated[StrictFloat, Field(gt=0)]
1679
+ ]
1680
+ ] = None,
1681
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1682
+ _content_type: Optional[StrictStr] = None,
1683
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1684
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1685
+ ) -> RESTResponseType:
1686
+ """Get Task Accounting
1687
+
1688
+ Get all accounting entries of a task
1689
+
1690
+ :param organization_id: (required)
1691
+ :type organization_id: int
1692
+ :param task_id: (required)
1693
+ :type task_id: int
1694
+ :param step_code:
1695
+ :type step_code: str
1696
+ :param container_name:
1697
+ :type container_name: str
1698
+ :param _request_timeout: timeout setting for this request. If one
1699
+ number provided, it will be total request
1700
+ timeout. It can also be a pair (tuple) of
1701
+ (connection, read) timeouts.
1702
+ :type _request_timeout: int, tuple(int, int), optional
1703
+ :param _request_auth: set to override the auth_settings for an a single
1704
+ request; this effectively ignores the
1705
+ authentication in the spec for a single request.
1706
+ :type _request_auth: dict, optional
1707
+ :param _content_type: force content-type for the request.
1708
+ :type _content_type: str, Optional
1709
+ :param _headers: set to override the headers for a single
1710
+ request; this effectively ignores the headers
1711
+ in the spec for a single request.
1712
+ :type _headers: dict, optional
1713
+ :param _host_index: set to override the host_index for a single
1714
+ request; this effectively ignores the host_index
1715
+ in the spec for a single request.
1716
+ :type _host_index: int, optional
1717
+ :return: Returns the result object.
1718
+ """ # noqa: E501
1719
+
1720
+ _param = self._get_task_accounting_organizations_organization_id_tasks_task_id_accounting_get_serialize(
1721
+ organization_id=organization_id,
1722
+ task_id=task_id,
1723
+ step_code=step_code,
1724
+ container_name=container_name,
1725
+ _request_auth=_request_auth,
1726
+ _content_type=_content_type,
1727
+ _headers=_headers,
1728
+ _host_index=_host_index
1729
+ )
1730
+
1731
+ _response_types_map: Dict[str, Optional[str]] = {
1732
+ '200': "List[AccountingData]",
1733
+ '422': "HTTPValidationError",
1734
+ }
1735
+ response_data = await self.api_client.call_api(
1736
+ *_param,
1737
+ _request_timeout=_request_timeout
1738
+ )
1739
+ return response_data.response
1740
+
1741
+
1742
+ def _get_task_accounting_organizations_organization_id_tasks_task_id_accounting_get_serialize(
1743
+ self,
1744
+ organization_id,
1745
+ task_id,
1746
+ step_code,
1747
+ container_name,
1748
+ _request_auth,
1749
+ _content_type,
1750
+ _headers,
1751
+ _host_index,
1752
+ ) -> RequestSerialized:
1753
+
1754
+ _host = None
1755
+
1756
+ _collection_formats: Dict[str, str] = {
1757
+ }
1758
+
1759
+ _path_params: Dict[str, str] = {}
1760
+ _query_params: List[Tuple[str, str]] = []
1761
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1762
+ _form_params: List[Tuple[str, str]] = []
1763
+ _files: Dict[
1764
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1765
+ ] = {}
1766
+ _body_params: Optional[bytes] = None
1767
+
1768
+ # process the path parameters
1769
+ if organization_id is not None:
1770
+ _path_params['organization_id'] = organization_id
1771
+ if task_id is not None:
1772
+ _path_params['task_id'] = task_id
1773
+ # process the query parameters
1774
+ if step_code is not None:
1775
+
1776
+ _query_params.append(('step_code', step_code))
1777
+
1778
+ if container_name is not None:
1779
+
1780
+ _query_params.append(('container_name', container_name))
1781
+
1782
+ # process the header parameters
1783
+ # process the form parameters
1784
+ # process the body parameter
1785
+
1786
+
1787
+ # set the HTTP header `Accept`
1788
+ if 'Accept' not in _header_params:
1789
+ _header_params['Accept'] = self.api_client.select_header_accept(
1790
+ [
1791
+ 'application/json'
1792
+ ]
1793
+ )
1794
+
1795
+
1796
+ # authentication setting
1797
+ _auth_settings: List[str] = [
1798
+ 'OpenIdConnect'
1799
+ ]
1800
+
1801
+ return self.api_client.param_serialize(
1802
+ method='GET',
1803
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/accounting',
1804
+ path_params=_path_params,
1805
+ query_params=_query_params,
1806
+ header_params=_header_params,
1807
+ body=_body_params,
1808
+ post_params=_form_params,
1809
+ files=_files,
1810
+ auth_settings=_auth_settings,
1811
+ collection_formats=_collection_formats,
1812
+ _host=_host,
1813
+ _request_auth=_request_auth
1814
+ )
1815
+
1816
+
1817
+
1818
+
1819
+ @validate_call
1820
+ async def get_task_archive_organizations_organization_id_tasks_task_id_archive_get(
1821
+ self,
1822
+ organization_id: StrictInt,
1823
+ task_id: StrictInt,
1824
+ _request_timeout: Union[
1825
+ None,
1826
+ Annotated[StrictFloat, Field(gt=0)],
1827
+ Tuple[
1828
+ Annotated[StrictFloat, Field(gt=0)],
1829
+ Annotated[StrictFloat, Field(gt=0)]
1830
+ ]
1831
+ ] = None,
1832
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1833
+ _content_type: Optional[StrictStr] = None,
1834
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1835
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1836
+ ) -> str:
1837
+ """Get Task Archive
1838
+
1839
+ Download the content of a project's version augmented with the task execution output
1840
+
1841
+ :param organization_id: (required)
1842
+ :type organization_id: int
1843
+ :param task_id: (required)
1844
+ :type task_id: int
1845
+ :param _request_timeout: timeout setting for this request. If one
1846
+ number provided, it will be total request
1847
+ timeout. It can also be a pair (tuple) of
1848
+ (connection, read) timeouts.
1849
+ :type _request_timeout: int, tuple(int, int), optional
1850
+ :param _request_auth: set to override the auth_settings for an a single
1851
+ request; this effectively ignores the
1852
+ authentication in the spec for a single request.
1853
+ :type _request_auth: dict, optional
1854
+ :param _content_type: force content-type for the request.
1855
+ :type _content_type: str, Optional
1856
+ :param _headers: set to override the headers for a single
1857
+ request; this effectively ignores the headers
1858
+ in the spec for a single request.
1859
+ :type _headers: dict, optional
1860
+ :param _host_index: set to override the host_index for a single
1861
+ request; this effectively ignores the host_index
1862
+ in the spec for a single request.
1863
+ :type _host_index: int, optional
1864
+ :return: Returns the result object.
1865
+ """ # noqa: E501
1866
+
1867
+ _param = self._get_task_archive_organizations_organization_id_tasks_task_id_archive_get_serialize(
1868
+ organization_id=organization_id,
1869
+ task_id=task_id,
1870
+ _request_auth=_request_auth,
1871
+ _content_type=_content_type,
1872
+ _headers=_headers,
1873
+ _host_index=_host_index
1874
+ )
1875
+
1876
+ _response_types_map: Dict[str, Optional[str]] = {
1877
+ '200': "str",
1878
+ '422': "HTTPValidationError",
1879
+ }
1880
+ response_data = await self.api_client.call_api(
1881
+ *_param,
1882
+ _request_timeout=_request_timeout
1883
+ )
1884
+ await response_data.read()
1885
+ return self.api_client.response_deserialize(
1886
+ response_data=response_data,
1887
+ response_types_map=_response_types_map,
1888
+ ).data
1889
+
1890
+
1891
+ @validate_call
1892
+ async def get_task_archive_organizations_organization_id_tasks_task_id_archive_get_with_http_info(
1893
+ self,
1894
+ organization_id: StrictInt,
1895
+ task_id: StrictInt,
1896
+ _request_timeout: Union[
1897
+ None,
1898
+ Annotated[StrictFloat, Field(gt=0)],
1899
+ Tuple[
1900
+ Annotated[StrictFloat, Field(gt=0)],
1901
+ Annotated[StrictFloat, Field(gt=0)]
1902
+ ]
1903
+ ] = None,
1904
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1905
+ _content_type: Optional[StrictStr] = None,
1906
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1907
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1908
+ ) -> ApiResponse[str]:
1909
+ """Get Task Archive
1910
+
1911
+ Download the content of a project's version augmented with the task execution output
1912
+
1913
+ :param organization_id: (required)
1914
+ :type organization_id: int
1915
+ :param task_id: (required)
1916
+ :type task_id: int
1917
+ :param _request_timeout: timeout setting for this request. If one
1918
+ number provided, it will be total request
1919
+ timeout. It can also be a pair (tuple) of
1920
+ (connection, read) timeouts.
1921
+ :type _request_timeout: int, tuple(int, int), optional
1922
+ :param _request_auth: set to override the auth_settings for an a single
1923
+ request; this effectively ignores the
1924
+ authentication in the spec for a single request.
1925
+ :type _request_auth: dict, optional
1926
+ :param _content_type: force content-type for the request.
1927
+ :type _content_type: str, Optional
1928
+ :param _headers: set to override the headers for a single
1929
+ request; this effectively ignores the headers
1930
+ in the spec for a single request.
1931
+ :type _headers: dict, optional
1932
+ :param _host_index: set to override the host_index for a single
1933
+ request; this effectively ignores the host_index
1934
+ in the spec for a single request.
1935
+ :type _host_index: int, optional
1936
+ :return: Returns the result object.
1937
+ """ # noqa: E501
1938
+
1939
+ _param = self._get_task_archive_organizations_organization_id_tasks_task_id_archive_get_serialize(
1940
+ organization_id=organization_id,
1941
+ task_id=task_id,
1942
+ _request_auth=_request_auth,
1943
+ _content_type=_content_type,
1944
+ _headers=_headers,
1945
+ _host_index=_host_index
1946
+ )
1947
+
1948
+ _response_types_map: Dict[str, Optional[str]] = {
1949
+ '200': "str",
1950
+ '422': "HTTPValidationError",
1951
+ }
1952
+ response_data = await self.api_client.call_api(
1953
+ *_param,
1954
+ _request_timeout=_request_timeout
1955
+ )
1956
+ await response_data.read()
1957
+ return self.api_client.response_deserialize(
1958
+ response_data=response_data,
1959
+ response_types_map=_response_types_map,
1960
+ )
1961
+
1962
+
1963
+ @validate_call
1964
+ async def get_task_archive_organizations_organization_id_tasks_task_id_archive_get_without_preload_content(
1965
+ self,
1966
+ organization_id: StrictInt,
1967
+ task_id: StrictInt,
1968
+ _request_timeout: Union[
1969
+ None,
1970
+ Annotated[StrictFloat, Field(gt=0)],
1971
+ Tuple[
1972
+ Annotated[StrictFloat, Field(gt=0)],
1973
+ Annotated[StrictFloat, Field(gt=0)]
1974
+ ]
1975
+ ] = None,
1976
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1977
+ _content_type: Optional[StrictStr] = None,
1978
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1979
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1980
+ ) -> RESTResponseType:
1981
+ """Get Task Archive
1982
+
1983
+ Download the content of a project's version augmented with the task execution output
1984
+
1985
+ :param organization_id: (required)
1986
+ :type organization_id: int
1987
+ :param task_id: (required)
1988
+ :type task_id: int
1989
+ :param _request_timeout: timeout setting for this request. If one
1990
+ number provided, it will be total request
1991
+ timeout. It can also be a pair (tuple) of
1992
+ (connection, read) timeouts.
1993
+ :type _request_timeout: int, tuple(int, int), optional
1994
+ :param _request_auth: set to override the auth_settings for an a single
1995
+ request; this effectively ignores the
1996
+ authentication in the spec for a single request.
1997
+ :type _request_auth: dict, optional
1998
+ :param _content_type: force content-type for the request.
1999
+ :type _content_type: str, Optional
2000
+ :param _headers: set to override the headers for a single
2001
+ request; this effectively ignores the headers
2002
+ in the spec for a single request.
2003
+ :type _headers: dict, optional
2004
+ :param _host_index: set to override the host_index for a single
2005
+ request; this effectively ignores the host_index
2006
+ in the spec for a single request.
2007
+ :type _host_index: int, optional
2008
+ :return: Returns the result object.
2009
+ """ # noqa: E501
2010
+
2011
+ _param = self._get_task_archive_organizations_organization_id_tasks_task_id_archive_get_serialize(
2012
+ organization_id=organization_id,
2013
+ task_id=task_id,
2014
+ _request_auth=_request_auth,
2015
+ _content_type=_content_type,
2016
+ _headers=_headers,
2017
+ _host_index=_host_index
2018
+ )
2019
+
2020
+ _response_types_map: Dict[str, Optional[str]] = {
2021
+ '200': "str",
2022
+ '422': "HTTPValidationError",
2023
+ }
2024
+ response_data = await self.api_client.call_api(
2025
+ *_param,
2026
+ _request_timeout=_request_timeout
2027
+ )
2028
+ return response_data.response
2029
+
2030
+
2031
+ def _get_task_archive_organizations_organization_id_tasks_task_id_archive_get_serialize(
2032
+ self,
2033
+ organization_id,
2034
+ task_id,
2035
+ _request_auth,
2036
+ _content_type,
2037
+ _headers,
2038
+ _host_index,
2039
+ ) -> RequestSerialized:
2040
+
2041
+ _host = None
2042
+
2043
+ _collection_formats: Dict[str, str] = {
2044
+ }
2045
+
2046
+ _path_params: Dict[str, str] = {}
2047
+ _query_params: List[Tuple[str, str]] = []
2048
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2049
+ _form_params: List[Tuple[str, str]] = []
2050
+ _files: Dict[
2051
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2052
+ ] = {}
2053
+ _body_params: Optional[bytes] = None
2054
+
2055
+ # process the path parameters
2056
+ if organization_id is not None:
2057
+ _path_params['organization_id'] = organization_id
2058
+ if task_id is not None:
2059
+ _path_params['task_id'] = task_id
2060
+ # process the query parameters
2061
+ # process the header parameters
2062
+ # process the form parameters
2063
+ # process the body parameter
2064
+
2065
+
2066
+ # set the HTTP header `Accept`
2067
+ if 'Accept' not in _header_params:
2068
+ _header_params['Accept'] = self.api_client.select_header_accept(
2069
+ [
2070
+ 'application/zip',
2071
+ 'application/json'
2072
+ ]
2073
+ )
2074
+
2075
+
2076
+ # authentication setting
2077
+ _auth_settings: List[str] = [
2078
+ 'OpenIdConnect'
2079
+ ]
2080
+
2081
+ return self.api_client.param_serialize(
2082
+ method='GET',
2083
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/archive',
2084
+ path_params=_path_params,
2085
+ query_params=_query_params,
2086
+ header_params=_header_params,
2087
+ body=_body_params,
2088
+ post_params=_form_params,
2089
+ files=_files,
2090
+ auth_settings=_auth_settings,
2091
+ collection_formats=_collection_formats,
2092
+ _host=_host,
2093
+ _request_auth=_request_auth
2094
+ )
2095
+
2096
+
2097
+
2098
+
2099
+ @validate_call
2100
+ async def get_task_catalog_organizations_organization_id_tasks_task_id_catalog_get(
2101
+ self,
2102
+ organization_id: StrictInt,
2103
+ task_id: StrictInt,
2104
+ _request_timeout: Union[
2105
+ None,
2106
+ Annotated[StrictFloat, Field(gt=0)],
2107
+ Tuple[
2108
+ Annotated[StrictFloat, Field(gt=0)],
2109
+ Annotated[StrictFloat, Field(gt=0)]
2110
+ ]
2111
+ ] = None,
2112
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2113
+ _content_type: Optional[StrictStr] = None,
2114
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2115
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2116
+ ) -> Directory:
2117
+ """Get Task Catalog
2118
+
2119
+ Get the catalog of a project's version augmented with the task execution output
2120
+
2121
+ :param organization_id: (required)
2122
+ :type organization_id: int
2123
+ :param task_id: (required)
2124
+ :type task_id: int
2125
+ :param _request_timeout: timeout setting for this request. If one
2126
+ number provided, it will be total request
2127
+ timeout. It can also be a pair (tuple) of
2128
+ (connection, read) timeouts.
2129
+ :type _request_timeout: int, tuple(int, int), optional
2130
+ :param _request_auth: set to override the auth_settings for an a single
2131
+ request; this effectively ignores the
2132
+ authentication in the spec for a single request.
2133
+ :type _request_auth: dict, optional
2134
+ :param _content_type: force content-type for the request.
2135
+ :type _content_type: str, Optional
2136
+ :param _headers: set to override the headers for a single
2137
+ request; this effectively ignores the headers
2138
+ in the spec for a single request.
2139
+ :type _headers: dict, optional
2140
+ :param _host_index: set to override the host_index for a single
2141
+ request; this effectively ignores the host_index
2142
+ in the spec for a single request.
2143
+ :type _host_index: int, optional
2144
+ :return: Returns the result object.
2145
+ """ # noqa: E501
2146
+
2147
+ _param = self._get_task_catalog_organizations_organization_id_tasks_task_id_catalog_get_serialize(
2148
+ organization_id=organization_id,
2149
+ task_id=task_id,
2150
+ _request_auth=_request_auth,
2151
+ _content_type=_content_type,
2152
+ _headers=_headers,
2153
+ _host_index=_host_index
2154
+ )
2155
+
2156
+ _response_types_map: Dict[str, Optional[str]] = {
2157
+ '200': "Directory",
2158
+ '422': "HTTPValidationError",
2159
+ }
2160
+ response_data = await self.api_client.call_api(
2161
+ *_param,
2162
+ _request_timeout=_request_timeout
2163
+ )
2164
+ await response_data.read()
2165
+ return self.api_client.response_deserialize(
2166
+ response_data=response_data,
2167
+ response_types_map=_response_types_map,
2168
+ ).data
2169
+
2170
+
2171
+ @validate_call
2172
+ async def get_task_catalog_organizations_organization_id_tasks_task_id_catalog_get_with_http_info(
2173
+ self,
2174
+ organization_id: StrictInt,
2175
+ task_id: StrictInt,
2176
+ _request_timeout: Union[
2177
+ None,
2178
+ Annotated[StrictFloat, Field(gt=0)],
2179
+ Tuple[
2180
+ Annotated[StrictFloat, Field(gt=0)],
2181
+ Annotated[StrictFloat, Field(gt=0)]
2182
+ ]
2183
+ ] = None,
2184
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2185
+ _content_type: Optional[StrictStr] = None,
2186
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2187
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2188
+ ) -> ApiResponse[Directory]:
2189
+ """Get Task Catalog
2190
+
2191
+ Get the catalog of a project's version augmented with the task execution output
2192
+
2193
+ :param organization_id: (required)
2194
+ :type organization_id: int
2195
+ :param task_id: (required)
2196
+ :type task_id: int
2197
+ :param _request_timeout: timeout setting for this request. If one
2198
+ number provided, it will be total request
2199
+ timeout. It can also be a pair (tuple) of
2200
+ (connection, read) timeouts.
2201
+ :type _request_timeout: int, tuple(int, int), optional
2202
+ :param _request_auth: set to override the auth_settings for an a single
2203
+ request; this effectively ignores the
2204
+ authentication in the spec for a single request.
2205
+ :type _request_auth: dict, optional
2206
+ :param _content_type: force content-type for the request.
2207
+ :type _content_type: str, Optional
2208
+ :param _headers: set to override the headers for a single
2209
+ request; this effectively ignores the headers
2210
+ in the spec for a single request.
2211
+ :type _headers: dict, optional
2212
+ :param _host_index: set to override the host_index for a single
2213
+ request; this effectively ignores the host_index
2214
+ in the spec for a single request.
2215
+ :type _host_index: int, optional
2216
+ :return: Returns the result object.
2217
+ """ # noqa: E501
2218
+
2219
+ _param = self._get_task_catalog_organizations_organization_id_tasks_task_id_catalog_get_serialize(
2220
+ organization_id=organization_id,
2221
+ task_id=task_id,
2222
+ _request_auth=_request_auth,
2223
+ _content_type=_content_type,
2224
+ _headers=_headers,
2225
+ _host_index=_host_index
2226
+ )
2227
+
2228
+ _response_types_map: Dict[str, Optional[str]] = {
2229
+ '200': "Directory",
2230
+ '422': "HTTPValidationError",
2231
+ }
2232
+ response_data = await self.api_client.call_api(
2233
+ *_param,
2234
+ _request_timeout=_request_timeout
2235
+ )
2236
+ await response_data.read()
2237
+ return self.api_client.response_deserialize(
2238
+ response_data=response_data,
2239
+ response_types_map=_response_types_map,
2240
+ )
2241
+
2242
+
2243
+ @validate_call
2244
+ async def get_task_catalog_organizations_organization_id_tasks_task_id_catalog_get_without_preload_content(
2245
+ self,
2246
+ organization_id: StrictInt,
2247
+ task_id: StrictInt,
2248
+ _request_timeout: Union[
2249
+ None,
2250
+ Annotated[StrictFloat, Field(gt=0)],
2251
+ Tuple[
2252
+ Annotated[StrictFloat, Field(gt=0)],
2253
+ Annotated[StrictFloat, Field(gt=0)]
2254
+ ]
2255
+ ] = None,
2256
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2257
+ _content_type: Optional[StrictStr] = None,
2258
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2259
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2260
+ ) -> RESTResponseType:
2261
+ """Get Task Catalog
2262
+
2263
+ Get the catalog of a project's version augmented with the task execution output
2264
+
2265
+ :param organization_id: (required)
2266
+ :type organization_id: int
2267
+ :param task_id: (required)
2268
+ :type task_id: int
2269
+ :param _request_timeout: timeout setting for this request. If one
2270
+ number provided, it will be total request
2271
+ timeout. It can also be a pair (tuple) of
2272
+ (connection, read) timeouts.
2273
+ :type _request_timeout: int, tuple(int, int), optional
2274
+ :param _request_auth: set to override the auth_settings for an a single
2275
+ request; this effectively ignores the
2276
+ authentication in the spec for a single request.
2277
+ :type _request_auth: dict, optional
2278
+ :param _content_type: force content-type for the request.
2279
+ :type _content_type: str, Optional
2280
+ :param _headers: set to override the headers for a single
2281
+ request; this effectively ignores the headers
2282
+ in the spec for a single request.
2283
+ :type _headers: dict, optional
2284
+ :param _host_index: set to override the host_index for a single
2285
+ request; this effectively ignores the host_index
2286
+ in the spec for a single request.
2287
+ :type _host_index: int, optional
2288
+ :return: Returns the result object.
2289
+ """ # noqa: E501
2290
+
2291
+ _param = self._get_task_catalog_organizations_organization_id_tasks_task_id_catalog_get_serialize(
2292
+ organization_id=organization_id,
2293
+ task_id=task_id,
2294
+ _request_auth=_request_auth,
2295
+ _content_type=_content_type,
2296
+ _headers=_headers,
2297
+ _host_index=_host_index
2298
+ )
2299
+
2300
+ _response_types_map: Dict[str, Optional[str]] = {
2301
+ '200': "Directory",
2302
+ '422': "HTTPValidationError",
2303
+ }
2304
+ response_data = await self.api_client.call_api(
2305
+ *_param,
2306
+ _request_timeout=_request_timeout
2307
+ )
2308
+ return response_data.response
2309
+
2310
+
2311
+ def _get_task_catalog_organizations_organization_id_tasks_task_id_catalog_get_serialize(
2312
+ self,
2313
+ organization_id,
2314
+ task_id,
2315
+ _request_auth,
2316
+ _content_type,
2317
+ _headers,
2318
+ _host_index,
2319
+ ) -> RequestSerialized:
2320
+
2321
+ _host = None
2322
+
2323
+ _collection_formats: Dict[str, str] = {
2324
+ }
2325
+
2326
+ _path_params: Dict[str, str] = {}
2327
+ _query_params: List[Tuple[str, str]] = []
2328
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2329
+ _form_params: List[Tuple[str, str]] = []
2330
+ _files: Dict[
2331
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2332
+ ] = {}
2333
+ _body_params: Optional[bytes] = None
2334
+
2335
+ # process the path parameters
2336
+ if organization_id is not None:
2337
+ _path_params['organization_id'] = organization_id
2338
+ if task_id is not None:
2339
+ _path_params['task_id'] = task_id
2340
+ # process the query parameters
2341
+ # process the header parameters
2342
+ # process the form parameters
2343
+ # process the body parameter
2344
+
2345
+
2346
+ # set the HTTP header `Accept`
2347
+ if 'Accept' not in _header_params:
2348
+ _header_params['Accept'] = self.api_client.select_header_accept(
2349
+ [
2350
+ 'application/json'
2351
+ ]
2352
+ )
2353
+
2354
+
2355
+ # authentication setting
2356
+ _auth_settings: List[str] = [
2357
+ 'OpenIdConnect'
2358
+ ]
2359
+
2360
+ return self.api_client.param_serialize(
2361
+ method='GET',
2362
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/catalog',
2363
+ path_params=_path_params,
2364
+ query_params=_query_params,
2365
+ header_params=_header_params,
2366
+ body=_body_params,
2367
+ post_params=_form_params,
2368
+ files=_files,
2369
+ auth_settings=_auth_settings,
2370
+ collection_formats=_collection_formats,
2371
+ _host=_host,
2372
+ _request_auth=_request_auth
2373
+ )
2374
+
2375
+
2376
+
2377
+
2378
+ @validate_call
2379
+ async def get_task_file_organizations_organization_id_tasks_task_id_file_get(
2380
+ self,
2381
+ organization_id: StrictInt,
2382
+ task_id: StrictInt,
2383
+ relative_path: StrictStr,
2384
+ _request_timeout: Union[
2385
+ None,
2386
+ Annotated[StrictFloat, Field(gt=0)],
2387
+ Tuple[
2388
+ Annotated[StrictFloat, Field(gt=0)],
2389
+ Annotated[StrictFloat, Field(gt=0)]
2390
+ ]
2391
+ ] = None,
2392
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2393
+ _content_type: Optional[StrictStr] = None,
2394
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2395
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2396
+ ) -> None:
2397
+ """Get Task File
2398
+
2399
+ Get the contents of a task's file.
2400
+
2401
+ :param organization_id: (required)
2402
+ :type organization_id: int
2403
+ :param task_id: (required)
2404
+ :type task_id: int
2405
+ :param relative_path: (required)
2406
+ :type relative_path: str
2407
+ :param _request_timeout: timeout setting for this request. If one
2408
+ number provided, it will be total request
2409
+ timeout. It can also be a pair (tuple) of
2410
+ (connection, read) timeouts.
2411
+ :type _request_timeout: int, tuple(int, int), optional
2412
+ :param _request_auth: set to override the auth_settings for an a single
2413
+ request; this effectively ignores the
2414
+ authentication in the spec for a single request.
2415
+ :type _request_auth: dict, optional
2416
+ :param _content_type: force content-type for the request.
2417
+ :type _content_type: str, Optional
2418
+ :param _headers: set to override the headers for a single
2419
+ request; this effectively ignores the headers
2420
+ in the spec for a single request.
2421
+ :type _headers: dict, optional
2422
+ :param _host_index: set to override the host_index for a single
2423
+ request; this effectively ignores the host_index
2424
+ in the spec for a single request.
2425
+ :type _host_index: int, optional
2426
+ :return: Returns the result object.
2427
+ """ # noqa: E501
2428
+
2429
+ _param = self._get_task_file_organizations_organization_id_tasks_task_id_file_get_serialize(
2430
+ organization_id=organization_id,
2431
+ task_id=task_id,
2432
+ relative_path=relative_path,
2433
+ _request_auth=_request_auth,
2434
+ _content_type=_content_type,
2435
+ _headers=_headers,
2436
+ _host_index=_host_index
2437
+ )
2438
+
2439
+ _response_types_map: Dict[str, Optional[str]] = {
2440
+ '200': None,
2441
+ '422': "HTTPValidationError",
2442
+ }
2443
+ response_data = await self.api_client.call_api(
2444
+ *_param,
2445
+ _request_timeout=_request_timeout
2446
+ )
2447
+ await response_data.read()
2448
+ return self.api_client.response_deserialize(
2449
+ response_data=response_data,
2450
+ response_types_map=_response_types_map,
2451
+ ).data
2452
+
2453
+
2454
+ @validate_call
2455
+ async def get_task_file_organizations_organization_id_tasks_task_id_file_get_with_http_info(
2456
+ self,
2457
+ organization_id: StrictInt,
2458
+ task_id: StrictInt,
2459
+ relative_path: StrictStr,
2460
+ _request_timeout: Union[
2461
+ None,
2462
+ Annotated[StrictFloat, Field(gt=0)],
2463
+ Tuple[
2464
+ Annotated[StrictFloat, Field(gt=0)],
2465
+ Annotated[StrictFloat, Field(gt=0)]
2466
+ ]
2467
+ ] = None,
2468
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2469
+ _content_type: Optional[StrictStr] = None,
2470
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2471
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2472
+ ) -> ApiResponse[None]:
2473
+ """Get Task File
2474
+
2475
+ Get the contents of a task's file.
2476
+
2477
+ :param organization_id: (required)
2478
+ :type organization_id: int
2479
+ :param task_id: (required)
2480
+ :type task_id: int
2481
+ :param relative_path: (required)
2482
+ :type relative_path: str
2483
+ :param _request_timeout: timeout setting for this request. If one
2484
+ number provided, it will be total request
2485
+ timeout. It can also be a pair (tuple) of
2486
+ (connection, read) timeouts.
2487
+ :type _request_timeout: int, tuple(int, int), optional
2488
+ :param _request_auth: set to override the auth_settings for an a single
2489
+ request; this effectively ignores the
2490
+ authentication in the spec for a single request.
2491
+ :type _request_auth: dict, optional
2492
+ :param _content_type: force content-type for the request.
2493
+ :type _content_type: str, Optional
2494
+ :param _headers: set to override the headers for a single
2495
+ request; this effectively ignores the headers
2496
+ in the spec for a single request.
2497
+ :type _headers: dict, optional
2498
+ :param _host_index: set to override the host_index for a single
2499
+ request; this effectively ignores the host_index
2500
+ in the spec for a single request.
2501
+ :type _host_index: int, optional
2502
+ :return: Returns the result object.
2503
+ """ # noqa: E501
2504
+
2505
+ _param = self._get_task_file_organizations_organization_id_tasks_task_id_file_get_serialize(
2506
+ organization_id=organization_id,
2507
+ task_id=task_id,
2508
+ relative_path=relative_path,
2509
+ _request_auth=_request_auth,
2510
+ _content_type=_content_type,
2511
+ _headers=_headers,
2512
+ _host_index=_host_index
2513
+ )
2514
+
2515
+ _response_types_map: Dict[str, Optional[str]] = {
2516
+ '200': None,
2517
+ '422': "HTTPValidationError",
2518
+ }
2519
+ response_data = await self.api_client.call_api(
2520
+ *_param,
2521
+ _request_timeout=_request_timeout
2522
+ )
2523
+ await response_data.read()
2524
+ return self.api_client.response_deserialize(
2525
+ response_data=response_data,
2526
+ response_types_map=_response_types_map,
2527
+ )
2528
+
2529
+
2530
+ @validate_call
2531
+ async def get_task_file_organizations_organization_id_tasks_task_id_file_get_without_preload_content(
2532
+ self,
2533
+ organization_id: StrictInt,
2534
+ task_id: StrictInt,
2535
+ relative_path: StrictStr,
2536
+ _request_timeout: Union[
2537
+ None,
2538
+ Annotated[StrictFloat, Field(gt=0)],
2539
+ Tuple[
2540
+ Annotated[StrictFloat, Field(gt=0)],
2541
+ Annotated[StrictFloat, Field(gt=0)]
2542
+ ]
2543
+ ] = None,
2544
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2545
+ _content_type: Optional[StrictStr] = None,
2546
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2547
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2548
+ ) -> RESTResponseType:
2549
+ """Get Task File
2550
+
2551
+ Get the contents of a task's file.
2552
+
2553
+ :param organization_id: (required)
2554
+ :type organization_id: int
2555
+ :param task_id: (required)
2556
+ :type task_id: int
2557
+ :param relative_path: (required)
2558
+ :type relative_path: str
2559
+ :param _request_timeout: timeout setting for this request. If one
2560
+ number provided, it will be total request
2561
+ timeout. It can also be a pair (tuple) of
2562
+ (connection, read) timeouts.
2563
+ :type _request_timeout: int, tuple(int, int), optional
2564
+ :param _request_auth: set to override the auth_settings for an a single
2565
+ request; this effectively ignores the
2566
+ authentication in the spec for a single request.
2567
+ :type _request_auth: dict, optional
2568
+ :param _content_type: force content-type for the request.
2569
+ :type _content_type: str, Optional
2570
+ :param _headers: set to override the headers for a single
2571
+ request; this effectively ignores the headers
2572
+ in the spec for a single request.
2573
+ :type _headers: dict, optional
2574
+ :param _host_index: set to override the host_index for a single
2575
+ request; this effectively ignores the host_index
2576
+ in the spec for a single request.
2577
+ :type _host_index: int, optional
2578
+ :return: Returns the result object.
2579
+ """ # noqa: E501
2580
+
2581
+ _param = self._get_task_file_organizations_organization_id_tasks_task_id_file_get_serialize(
2582
+ organization_id=organization_id,
2583
+ task_id=task_id,
2584
+ relative_path=relative_path,
2585
+ _request_auth=_request_auth,
2586
+ _content_type=_content_type,
2587
+ _headers=_headers,
2588
+ _host_index=_host_index
2589
+ )
2590
+
2591
+ _response_types_map: Dict[str, Optional[str]] = {
2592
+ '200': None,
2593
+ '422': "HTTPValidationError",
2594
+ }
2595
+ response_data = await self.api_client.call_api(
2596
+ *_param,
2597
+ _request_timeout=_request_timeout
2598
+ )
2599
+ return response_data.response
2600
+
2601
+
2602
+ def _get_task_file_organizations_organization_id_tasks_task_id_file_get_serialize(
2603
+ self,
2604
+ organization_id,
2605
+ task_id,
2606
+ relative_path,
2607
+ _request_auth,
2608
+ _content_type,
2609
+ _headers,
2610
+ _host_index,
2611
+ ) -> RequestSerialized:
2612
+
2613
+ _host = None
2614
+
2615
+ _collection_formats: Dict[str, str] = {
2616
+ }
2617
+
2618
+ _path_params: Dict[str, str] = {}
2619
+ _query_params: List[Tuple[str, str]] = []
2620
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2621
+ _form_params: List[Tuple[str, str]] = []
2622
+ _files: Dict[
2623
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2624
+ ] = {}
2625
+ _body_params: Optional[bytes] = None
2626
+
2627
+ # process the path parameters
2628
+ if organization_id is not None:
2629
+ _path_params['organization_id'] = organization_id
2630
+ if task_id is not None:
2631
+ _path_params['task_id'] = task_id
2632
+ # process the query parameters
2633
+ if relative_path is not None:
2634
+
2635
+ _query_params.append(('relative_path', relative_path))
2636
+
2637
+ # process the header parameters
2638
+ # process the form parameters
2639
+ # process the body parameter
2640
+
2641
+
2642
+ # set the HTTP header `Accept`
2643
+ if 'Accept' not in _header_params:
2644
+ _header_params['Accept'] = self.api_client.select_header_accept(
2645
+ [
2646
+ 'application/json'
2647
+ ]
2648
+ )
2649
+
2650
+
2651
+ # authentication setting
2652
+ _auth_settings: List[str] = [
2653
+ 'OpenIdConnect'
2654
+ ]
2655
+
2656
+ return self.api_client.param_serialize(
2657
+ method='GET',
2658
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/file',
2659
+ path_params=_path_params,
2660
+ query_params=_query_params,
2661
+ header_params=_header_params,
2662
+ body=_body_params,
2663
+ post_params=_form_params,
2664
+ files=_files,
2665
+ auth_settings=_auth_settings,
2666
+ collection_formats=_collection_formats,
2667
+ _host=_host,
2668
+ _request_auth=_request_auth
2669
+ )
2670
+
2671
+
2672
+
2673
+
2674
+ @validate_call
2675
+ async def get_task_findings_for_analysis_result_organizations_organization_id_tasks_task_id_findings_analysis_result_id_get(
2676
+ self,
2677
+ organization_id: StrictInt,
2678
+ task_id: StrictInt,
2679
+ analysis_result_id: StrictStr,
2680
+ state_digest: Optional[StrictInt] = None,
2681
+ _request_timeout: Union[
2682
+ None,
2683
+ Annotated[StrictFloat, Field(gt=0)],
2684
+ Tuple[
2685
+ Annotated[StrictFloat, Field(gt=0)],
2686
+ Annotated[StrictFloat, Field(gt=0)]
2687
+ ]
2688
+ ] = None,
2689
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2690
+ _content_type: Optional[StrictStr] = None,
2691
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2692
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2693
+ ) -> List[FIOData]:
2694
+ """Get Task Findings For Analysis Result
2695
+
2696
+ Get the findings of a specific analysis_result_id
2697
+
2698
+ :param organization_id: (required)
2699
+ :type organization_id: int
2700
+ :param task_id: (required)
2701
+ :type task_id: int
2702
+ :param analysis_result_id: (required)
2703
+ :type analysis_result_id: str
2704
+ :param state_digest:
2705
+ :type state_digest: int
2706
+ :param _request_timeout: timeout setting for this request. If one
2707
+ number provided, it will be total request
2708
+ timeout. It can also be a pair (tuple) of
2709
+ (connection, read) timeouts.
2710
+ :type _request_timeout: int, tuple(int, int), optional
2711
+ :param _request_auth: set to override the auth_settings for an a single
2712
+ request; this effectively ignores the
2713
+ authentication in the spec for a single request.
2714
+ :type _request_auth: dict, optional
2715
+ :param _content_type: force content-type for the request.
2716
+ :type _content_type: str, Optional
2717
+ :param _headers: set to override the headers for a single
2718
+ request; this effectively ignores the headers
2719
+ in the spec for a single request.
2720
+ :type _headers: dict, optional
2721
+ :param _host_index: set to override the host_index for a single
2722
+ request; this effectively ignores the host_index
2723
+ in the spec for a single request.
2724
+ :type _host_index: int, optional
2725
+ :return: Returns the result object.
2726
+ """ # noqa: E501
2727
+
2728
+ _param = self._get_task_findings_for_analysis_result_organizations_organization_id_tasks_task_id_findings_analysis_result_id_get_serialize(
2729
+ organization_id=organization_id,
2730
+ task_id=task_id,
2731
+ analysis_result_id=analysis_result_id,
2732
+ state_digest=state_digest,
2733
+ _request_auth=_request_auth,
2734
+ _content_type=_content_type,
2735
+ _headers=_headers,
2736
+ _host_index=_host_index
2737
+ )
2738
+
2739
+ _response_types_map: Dict[str, Optional[str]] = {
2740
+ '200': "List[FIOData]",
2741
+ '422': "HTTPValidationError",
2742
+ }
2743
+ response_data = await self.api_client.call_api(
2744
+ *_param,
2745
+ _request_timeout=_request_timeout
2746
+ )
2747
+ await response_data.read()
2748
+ return self.api_client.response_deserialize(
2749
+ response_data=response_data,
2750
+ response_types_map=_response_types_map,
2751
+ ).data
2752
+
2753
+
2754
+ @validate_call
2755
+ async def get_task_findings_for_analysis_result_organizations_organization_id_tasks_task_id_findings_analysis_result_id_get_with_http_info(
2756
+ self,
2757
+ organization_id: StrictInt,
2758
+ task_id: StrictInt,
2759
+ analysis_result_id: StrictStr,
2760
+ state_digest: Optional[StrictInt] = None,
2761
+ _request_timeout: Union[
2762
+ None,
2763
+ Annotated[StrictFloat, Field(gt=0)],
2764
+ Tuple[
2765
+ Annotated[StrictFloat, Field(gt=0)],
2766
+ Annotated[StrictFloat, Field(gt=0)]
2767
+ ]
2768
+ ] = None,
2769
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2770
+ _content_type: Optional[StrictStr] = None,
2771
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2772
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2773
+ ) -> ApiResponse[List[FIOData]]:
2774
+ """Get Task Findings For Analysis Result
2775
+
2776
+ Get the findings of a specific analysis_result_id
2777
+
2778
+ :param organization_id: (required)
2779
+ :type organization_id: int
2780
+ :param task_id: (required)
2781
+ :type task_id: int
2782
+ :param analysis_result_id: (required)
2783
+ :type analysis_result_id: str
2784
+ :param state_digest:
2785
+ :type state_digest: int
2786
+ :param _request_timeout: timeout setting for this request. If one
2787
+ number provided, it will be total request
2788
+ timeout. It can also be a pair (tuple) of
2789
+ (connection, read) timeouts.
2790
+ :type _request_timeout: int, tuple(int, int), optional
2791
+ :param _request_auth: set to override the auth_settings for an a single
2792
+ request; this effectively ignores the
2793
+ authentication in the spec for a single request.
2794
+ :type _request_auth: dict, optional
2795
+ :param _content_type: force content-type for the request.
2796
+ :type _content_type: str, Optional
2797
+ :param _headers: set to override the headers for a single
2798
+ request; this effectively ignores the headers
2799
+ in the spec for a single request.
2800
+ :type _headers: dict, optional
2801
+ :param _host_index: set to override the host_index for a single
2802
+ request; this effectively ignores the host_index
2803
+ in the spec for a single request.
2804
+ :type _host_index: int, optional
2805
+ :return: Returns the result object.
2806
+ """ # noqa: E501
2807
+
2808
+ _param = self._get_task_findings_for_analysis_result_organizations_organization_id_tasks_task_id_findings_analysis_result_id_get_serialize(
2809
+ organization_id=organization_id,
2810
+ task_id=task_id,
2811
+ analysis_result_id=analysis_result_id,
2812
+ state_digest=state_digest,
2813
+ _request_auth=_request_auth,
2814
+ _content_type=_content_type,
2815
+ _headers=_headers,
2816
+ _host_index=_host_index
2817
+ )
2818
+
2819
+ _response_types_map: Dict[str, Optional[str]] = {
2820
+ '200': "List[FIOData]",
2821
+ '422': "HTTPValidationError",
2822
+ }
2823
+ response_data = await self.api_client.call_api(
2824
+ *_param,
2825
+ _request_timeout=_request_timeout
2826
+ )
2827
+ await response_data.read()
2828
+ return self.api_client.response_deserialize(
2829
+ response_data=response_data,
2830
+ response_types_map=_response_types_map,
2831
+ )
2832
+
2833
+
2834
+ @validate_call
2835
+ async def get_task_findings_for_analysis_result_organizations_organization_id_tasks_task_id_findings_analysis_result_id_get_without_preload_content(
2836
+ self,
2837
+ organization_id: StrictInt,
2838
+ task_id: StrictInt,
2839
+ analysis_result_id: StrictStr,
2840
+ state_digest: Optional[StrictInt] = None,
2841
+ _request_timeout: Union[
2842
+ None,
2843
+ Annotated[StrictFloat, Field(gt=0)],
2844
+ Tuple[
2845
+ Annotated[StrictFloat, Field(gt=0)],
2846
+ Annotated[StrictFloat, Field(gt=0)]
2847
+ ]
2848
+ ] = None,
2849
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2850
+ _content_type: Optional[StrictStr] = None,
2851
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2852
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2853
+ ) -> RESTResponseType:
2854
+ """Get Task Findings For Analysis Result
2855
+
2856
+ Get the findings of a specific analysis_result_id
2857
+
2858
+ :param organization_id: (required)
2859
+ :type organization_id: int
2860
+ :param task_id: (required)
2861
+ :type task_id: int
2862
+ :param analysis_result_id: (required)
2863
+ :type analysis_result_id: str
2864
+ :param state_digest:
2865
+ :type state_digest: int
2866
+ :param _request_timeout: timeout setting for this request. If one
2867
+ number provided, it will be total request
2868
+ timeout. It can also be a pair (tuple) of
2869
+ (connection, read) timeouts.
2870
+ :type _request_timeout: int, tuple(int, int), optional
2871
+ :param _request_auth: set to override the auth_settings for an a single
2872
+ request; this effectively ignores the
2873
+ authentication in the spec for a single request.
2874
+ :type _request_auth: dict, optional
2875
+ :param _content_type: force content-type for the request.
2876
+ :type _content_type: str, Optional
2877
+ :param _headers: set to override the headers for a single
2878
+ request; this effectively ignores the headers
2879
+ in the spec for a single request.
2880
+ :type _headers: dict, optional
2881
+ :param _host_index: set to override the host_index for a single
2882
+ request; this effectively ignores the host_index
2883
+ in the spec for a single request.
2884
+ :type _host_index: int, optional
2885
+ :return: Returns the result object.
2886
+ """ # noqa: E501
2887
+
2888
+ _param = self._get_task_findings_for_analysis_result_organizations_organization_id_tasks_task_id_findings_analysis_result_id_get_serialize(
2889
+ organization_id=organization_id,
2890
+ task_id=task_id,
2891
+ analysis_result_id=analysis_result_id,
2892
+ state_digest=state_digest,
2893
+ _request_auth=_request_auth,
2894
+ _content_type=_content_type,
2895
+ _headers=_headers,
2896
+ _host_index=_host_index
2897
+ )
2898
+
2899
+ _response_types_map: Dict[str, Optional[str]] = {
2900
+ '200': "List[FIOData]",
2901
+ '422': "HTTPValidationError",
2902
+ }
2903
+ response_data = await self.api_client.call_api(
2904
+ *_param,
2905
+ _request_timeout=_request_timeout
2906
+ )
2907
+ return response_data.response
2908
+
2909
+
2910
+ def _get_task_findings_for_analysis_result_organizations_organization_id_tasks_task_id_findings_analysis_result_id_get_serialize(
2911
+ self,
2912
+ organization_id,
2913
+ task_id,
2914
+ analysis_result_id,
2915
+ state_digest,
2916
+ _request_auth,
2917
+ _content_type,
2918
+ _headers,
2919
+ _host_index,
2920
+ ) -> RequestSerialized:
2921
+
2922
+ _host = None
2923
+
2924
+ _collection_formats: Dict[str, str] = {
2925
+ }
2926
+
2927
+ _path_params: Dict[str, str] = {}
2928
+ _query_params: List[Tuple[str, str]] = []
2929
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2930
+ _form_params: List[Tuple[str, str]] = []
2931
+ _files: Dict[
2932
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2933
+ ] = {}
2934
+ _body_params: Optional[bytes] = None
2935
+
2936
+ # process the path parameters
2937
+ if organization_id is not None:
2938
+ _path_params['organization_id'] = organization_id
2939
+ if task_id is not None:
2940
+ _path_params['task_id'] = task_id
2941
+ if analysis_result_id is not None:
2942
+ _path_params['analysis_result_id'] = analysis_result_id
2943
+ # process the query parameters
2944
+ if state_digest is not None:
2945
+
2946
+ _query_params.append(('state_digest', state_digest))
2947
+
2948
+ # process the header parameters
2949
+ # process the form parameters
2950
+ # process the body parameter
2951
+
2952
+
2953
+ # set the HTTP header `Accept`
2954
+ if 'Accept' not in _header_params:
2955
+ _header_params['Accept'] = self.api_client.select_header_accept(
2956
+ [
2957
+ 'application/json'
2958
+ ]
2959
+ )
2960
+
2961
+
2962
+ # authentication setting
2963
+ _auth_settings: List[str] = [
2964
+ 'OpenIdConnect'
2965
+ ]
2966
+
2967
+ return self.api_client.param_serialize(
2968
+ method='GET',
2969
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/findings/{analysis_result_id}',
2970
+ path_params=_path_params,
2971
+ query_params=_query_params,
2972
+ header_params=_header_params,
2973
+ body=_body_params,
2974
+ post_params=_form_params,
2975
+ files=_files,
2976
+ auth_settings=_auth_settings,
2977
+ collection_formats=_collection_formats,
2978
+ _host=_host,
2979
+ _request_auth=_request_auth
2980
+ )
2981
+
2982
+
2983
+
2984
+
2985
+ @validate_call
2986
+ async def get_task_findings_organizations_organization_id_tasks_task_id_findings_get(
2987
+ self,
2988
+ organization_id: StrictInt,
2989
+ task_id: StrictInt,
2990
+ _request_timeout: Union[
2991
+ None,
2992
+ Annotated[StrictFloat, Field(gt=0)],
2993
+ Tuple[
2994
+ Annotated[StrictFloat, Field(gt=0)],
2995
+ Annotated[StrictFloat, Field(gt=0)]
2996
+ ]
2997
+ ] = None,
2998
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2999
+ _content_type: Optional[StrictStr] = None,
3000
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3001
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3002
+ ) -> List[FIOData]:
3003
+ """Get Task Findings
3004
+
3005
+ Get the findings of a task's execution
3006
+
3007
+ :param organization_id: (required)
3008
+ :type organization_id: int
3009
+ :param task_id: (required)
3010
+ :type task_id: int
3011
+ :param _request_timeout: timeout setting for this request. If one
3012
+ number provided, it will be total request
3013
+ timeout. It can also be a pair (tuple) of
3014
+ (connection, read) timeouts.
3015
+ :type _request_timeout: int, tuple(int, int), optional
3016
+ :param _request_auth: set to override the auth_settings for an a single
3017
+ request; this effectively ignores the
3018
+ authentication in the spec for a single request.
3019
+ :type _request_auth: dict, optional
3020
+ :param _content_type: force content-type for the request.
3021
+ :type _content_type: str, Optional
3022
+ :param _headers: set to override the headers for a single
3023
+ request; this effectively ignores the headers
3024
+ in the spec for a single request.
3025
+ :type _headers: dict, optional
3026
+ :param _host_index: set to override the host_index for a single
3027
+ request; this effectively ignores the host_index
3028
+ in the spec for a single request.
3029
+ :type _host_index: int, optional
3030
+ :return: Returns the result object.
3031
+ """ # noqa: E501
3032
+
3033
+ _param = self._get_task_findings_organizations_organization_id_tasks_task_id_findings_get_serialize(
3034
+ organization_id=organization_id,
3035
+ task_id=task_id,
3036
+ _request_auth=_request_auth,
3037
+ _content_type=_content_type,
3038
+ _headers=_headers,
3039
+ _host_index=_host_index
3040
+ )
3041
+
3042
+ _response_types_map: Dict[str, Optional[str]] = {
3043
+ '200': "List[FIOData]",
3044
+ '422': "HTTPValidationError",
3045
+ }
3046
+ response_data = await self.api_client.call_api(
3047
+ *_param,
3048
+ _request_timeout=_request_timeout
3049
+ )
3050
+ await response_data.read()
3051
+ return self.api_client.response_deserialize(
3052
+ response_data=response_data,
3053
+ response_types_map=_response_types_map,
3054
+ ).data
3055
+
3056
+
3057
+ @validate_call
3058
+ async def get_task_findings_organizations_organization_id_tasks_task_id_findings_get_with_http_info(
3059
+ self,
3060
+ organization_id: StrictInt,
3061
+ task_id: StrictInt,
3062
+ _request_timeout: Union[
3063
+ None,
3064
+ Annotated[StrictFloat, Field(gt=0)],
3065
+ Tuple[
3066
+ Annotated[StrictFloat, Field(gt=0)],
3067
+ Annotated[StrictFloat, Field(gt=0)]
3068
+ ]
3069
+ ] = None,
3070
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3071
+ _content_type: Optional[StrictStr] = None,
3072
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3073
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3074
+ ) -> ApiResponse[List[FIOData]]:
3075
+ """Get Task Findings
3076
+
3077
+ Get the findings of a task's execution
3078
+
3079
+ :param organization_id: (required)
3080
+ :type organization_id: int
3081
+ :param task_id: (required)
3082
+ :type task_id: int
3083
+ :param _request_timeout: timeout setting for this request. If one
3084
+ number provided, it will be total request
3085
+ timeout. It can also be a pair (tuple) of
3086
+ (connection, read) timeouts.
3087
+ :type _request_timeout: int, tuple(int, int), optional
3088
+ :param _request_auth: set to override the auth_settings for an a single
3089
+ request; this effectively ignores the
3090
+ authentication in the spec for a single request.
3091
+ :type _request_auth: dict, optional
3092
+ :param _content_type: force content-type for the request.
3093
+ :type _content_type: str, Optional
3094
+ :param _headers: set to override the headers for a single
3095
+ request; this effectively ignores the headers
3096
+ in the spec for a single request.
3097
+ :type _headers: dict, optional
3098
+ :param _host_index: set to override the host_index for a single
3099
+ request; this effectively ignores the host_index
3100
+ in the spec for a single request.
3101
+ :type _host_index: int, optional
3102
+ :return: Returns the result object.
3103
+ """ # noqa: E501
3104
+
3105
+ _param = self._get_task_findings_organizations_organization_id_tasks_task_id_findings_get_serialize(
3106
+ organization_id=organization_id,
3107
+ task_id=task_id,
3108
+ _request_auth=_request_auth,
3109
+ _content_type=_content_type,
3110
+ _headers=_headers,
3111
+ _host_index=_host_index
3112
+ )
3113
+
3114
+ _response_types_map: Dict[str, Optional[str]] = {
3115
+ '200': "List[FIOData]",
3116
+ '422': "HTTPValidationError",
3117
+ }
3118
+ response_data = await self.api_client.call_api(
3119
+ *_param,
3120
+ _request_timeout=_request_timeout
3121
+ )
3122
+ await response_data.read()
3123
+ return self.api_client.response_deserialize(
3124
+ response_data=response_data,
3125
+ response_types_map=_response_types_map,
3126
+ )
3127
+
3128
+
3129
+ @validate_call
3130
+ async def get_task_findings_organizations_organization_id_tasks_task_id_findings_get_without_preload_content(
3131
+ self,
3132
+ organization_id: StrictInt,
3133
+ task_id: StrictInt,
3134
+ _request_timeout: Union[
3135
+ None,
3136
+ Annotated[StrictFloat, Field(gt=0)],
3137
+ Tuple[
3138
+ Annotated[StrictFloat, Field(gt=0)],
3139
+ Annotated[StrictFloat, Field(gt=0)]
3140
+ ]
3141
+ ] = None,
3142
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3143
+ _content_type: Optional[StrictStr] = None,
3144
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3145
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3146
+ ) -> RESTResponseType:
3147
+ """Get Task Findings
3148
+
3149
+ Get the findings of a task's execution
3150
+
3151
+ :param organization_id: (required)
3152
+ :type organization_id: int
3153
+ :param task_id: (required)
3154
+ :type task_id: int
3155
+ :param _request_timeout: timeout setting for this request. If one
3156
+ number provided, it will be total request
3157
+ timeout. It can also be a pair (tuple) of
3158
+ (connection, read) timeouts.
3159
+ :type _request_timeout: int, tuple(int, int), optional
3160
+ :param _request_auth: set to override the auth_settings for an a single
3161
+ request; this effectively ignores the
3162
+ authentication in the spec for a single request.
3163
+ :type _request_auth: dict, optional
3164
+ :param _content_type: force content-type for the request.
3165
+ :type _content_type: str, Optional
3166
+ :param _headers: set to override the headers for a single
3167
+ request; this effectively ignores the headers
3168
+ in the spec for a single request.
3169
+ :type _headers: dict, optional
3170
+ :param _host_index: set to override the host_index for a single
3171
+ request; this effectively ignores the host_index
3172
+ in the spec for a single request.
3173
+ :type _host_index: int, optional
3174
+ :return: Returns the result object.
3175
+ """ # noqa: E501
3176
+
3177
+ _param = self._get_task_findings_organizations_organization_id_tasks_task_id_findings_get_serialize(
3178
+ organization_id=organization_id,
3179
+ task_id=task_id,
3180
+ _request_auth=_request_auth,
3181
+ _content_type=_content_type,
3182
+ _headers=_headers,
3183
+ _host_index=_host_index
3184
+ )
3185
+
3186
+ _response_types_map: Dict[str, Optional[str]] = {
3187
+ '200': "List[FIOData]",
3188
+ '422': "HTTPValidationError",
3189
+ }
3190
+ response_data = await self.api_client.call_api(
3191
+ *_param,
3192
+ _request_timeout=_request_timeout
3193
+ )
3194
+ return response_data.response
3195
+
3196
+
3197
+ def _get_task_findings_organizations_organization_id_tasks_task_id_findings_get_serialize(
3198
+ self,
3199
+ organization_id,
3200
+ task_id,
3201
+ _request_auth,
3202
+ _content_type,
3203
+ _headers,
3204
+ _host_index,
3205
+ ) -> RequestSerialized:
3206
+
3207
+ _host = None
3208
+
3209
+ _collection_formats: Dict[str, str] = {
3210
+ }
3211
+
3212
+ _path_params: Dict[str, str] = {}
3213
+ _query_params: List[Tuple[str, str]] = []
3214
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3215
+ _form_params: List[Tuple[str, str]] = []
3216
+ _files: Dict[
3217
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3218
+ ] = {}
3219
+ _body_params: Optional[bytes] = None
3220
+
3221
+ # process the path parameters
3222
+ if organization_id is not None:
3223
+ _path_params['organization_id'] = organization_id
3224
+ if task_id is not None:
3225
+ _path_params['task_id'] = task_id
3226
+ # process the query parameters
3227
+ # process the header parameters
3228
+ # process the form parameters
3229
+ # process the body parameter
3230
+
3231
+
3232
+ # set the HTTP header `Accept`
3233
+ if 'Accept' not in _header_params:
3234
+ _header_params['Accept'] = self.api_client.select_header_accept(
3235
+ [
3236
+ 'application/json'
3237
+ ]
3238
+ )
3239
+
3240
+
3241
+ # authentication setting
3242
+ _auth_settings: List[str] = [
3243
+ 'OpenIdConnect'
3244
+ ]
3245
+
3246
+ return self.api_client.param_serialize(
3247
+ method='GET',
3248
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/findings',
3249
+ path_params=_path_params,
3250
+ query_params=_query_params,
3251
+ header_params=_header_params,
3252
+ body=_body_params,
3253
+ post_params=_form_params,
3254
+ files=_files,
3255
+ auth_settings=_auth_settings,
3256
+ collection_formats=_collection_formats,
3257
+ _host=_host,
3258
+ _request_auth=_request_auth
3259
+ )
3260
+
3261
+
3262
+
3263
+
3264
+ @validate_call
3265
+ async def get_tasks_organizations_organization_id_tasks_get(
3266
+ self,
3267
+ organization_id: StrictInt,
3268
+ offset: Annotated[Optional[StrictInt], Field(description="Offset. If specified, skip the first offset tasks from results.")] = None,
3269
+ limit: Annotated[Optional[StrictInt], Field(description="Limit. If specified, limits the number of results to this number.")] = None,
3270
+ project_id: Annotated[Optional[StrictInt], Field(description="Project id. If specified, limits the results to this project.")] = None,
3271
+ version_id: Annotated[Optional[StrictInt], Field(description="Version id. If specified, limits the results to this version.")] = None,
3272
+ from_created_at: Annotated[Optional[datetime], Field(description="Timestamp in UTC. If specified, limits results to tasks started on or after (>=) this time")] = None,
3273
+ to_created_at: Annotated[Optional[datetime], Field(description="Timestamp in UTC. If specified, limits results to tasks started before (<) this time")] = None,
3274
+ order_by: Annotated[Optional[StrictStr], Field(description="Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: project_id, version_id, task_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user. ")] = None,
3275
+ _request_timeout: Union[
3276
+ None,
3277
+ Annotated[StrictFloat, Field(gt=0)],
3278
+ Tuple[
3279
+ Annotated[StrictFloat, Field(gt=0)],
3280
+ Annotated[StrictFloat, Field(gt=0)]
3281
+ ]
3282
+ ] = None,
3283
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3284
+ _content_type: Optional[StrictStr] = None,
3285
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3286
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3287
+ ) -> List[Task]:
3288
+ """Get Tasks
3289
+
3290
+ Get list of a organization's tasks, potentially limiting them with query parameters
3291
+
3292
+ :param organization_id: (required)
3293
+ :type organization_id: int
3294
+ :param offset: Offset. If specified, skip the first offset tasks from results.
3295
+ :type offset: int
3296
+ :param limit: Limit. If specified, limits the number of results to this number.
3297
+ :type limit: int
3298
+ :param project_id: Project id. If specified, limits the results to this project.
3299
+ :type project_id: int
3300
+ :param version_id: Version id. If specified, limits the results to this version.
3301
+ :type version_id: int
3302
+ :param from_created_at: Timestamp in UTC. If specified, limits results to tasks started on or after (>=) this time
3303
+ :type from_created_at: datetime
3304
+ :param to_created_at: Timestamp in UTC. If specified, limits results to tasks started before (<) this time
3305
+ :type to_created_at: datetime
3306
+ :param order_by: Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: project_id, version_id, task_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user.
3307
+ :type order_by: str
3308
+ :param _request_timeout: timeout setting for this request. If one
3309
+ number provided, it will be total request
3310
+ timeout. It can also be a pair (tuple) of
3311
+ (connection, read) timeouts.
3312
+ :type _request_timeout: int, tuple(int, int), optional
3313
+ :param _request_auth: set to override the auth_settings for an a single
3314
+ request; this effectively ignores the
3315
+ authentication in the spec for a single request.
3316
+ :type _request_auth: dict, optional
3317
+ :param _content_type: force content-type for the request.
3318
+ :type _content_type: str, Optional
3319
+ :param _headers: set to override the headers for a single
3320
+ request; this effectively ignores the headers
3321
+ in the spec for a single request.
3322
+ :type _headers: dict, optional
3323
+ :param _host_index: set to override the host_index for a single
3324
+ request; this effectively ignores the host_index
3325
+ in the spec for a single request.
3326
+ :type _host_index: int, optional
3327
+ :return: Returns the result object.
3328
+ """ # noqa: E501
3329
+
3330
+ _param = self._get_tasks_organizations_organization_id_tasks_get_serialize(
3331
+ organization_id=organization_id,
3332
+ offset=offset,
3333
+ limit=limit,
3334
+ project_id=project_id,
3335
+ version_id=version_id,
3336
+ from_created_at=from_created_at,
3337
+ to_created_at=to_created_at,
3338
+ order_by=order_by,
3339
+ _request_auth=_request_auth,
3340
+ _content_type=_content_type,
3341
+ _headers=_headers,
3342
+ _host_index=_host_index
3343
+ )
3344
+
3345
+ _response_types_map: Dict[str, Optional[str]] = {
3346
+ '200': "List[Task]",
3347
+ '422': "HTTPValidationError",
3348
+ }
3349
+ response_data = await self.api_client.call_api(
3350
+ *_param,
3351
+ _request_timeout=_request_timeout
3352
+ )
3353
+ await response_data.read()
3354
+ return self.api_client.response_deserialize(
3355
+ response_data=response_data,
3356
+ response_types_map=_response_types_map,
3357
+ ).data
3358
+
3359
+
3360
+ @validate_call
3361
+ async def get_tasks_organizations_organization_id_tasks_get_with_http_info(
3362
+ self,
3363
+ organization_id: StrictInt,
3364
+ offset: Annotated[Optional[StrictInt], Field(description="Offset. If specified, skip the first offset tasks from results.")] = None,
3365
+ limit: Annotated[Optional[StrictInt], Field(description="Limit. If specified, limits the number of results to this number.")] = None,
3366
+ project_id: Annotated[Optional[StrictInt], Field(description="Project id. If specified, limits the results to this project.")] = None,
3367
+ version_id: Annotated[Optional[StrictInt], Field(description="Version id. If specified, limits the results to this version.")] = None,
3368
+ from_created_at: Annotated[Optional[datetime], Field(description="Timestamp in UTC. If specified, limits results to tasks started on or after (>=) this time")] = None,
3369
+ to_created_at: Annotated[Optional[datetime], Field(description="Timestamp in UTC. If specified, limits results to tasks started before (<) this time")] = None,
3370
+ order_by: Annotated[Optional[StrictStr], Field(description="Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: project_id, version_id, task_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user. ")] = None,
3371
+ _request_timeout: Union[
3372
+ None,
3373
+ Annotated[StrictFloat, Field(gt=0)],
3374
+ Tuple[
3375
+ Annotated[StrictFloat, Field(gt=0)],
3376
+ Annotated[StrictFloat, Field(gt=0)]
3377
+ ]
3378
+ ] = None,
3379
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3380
+ _content_type: Optional[StrictStr] = None,
3381
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3382
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3383
+ ) -> ApiResponse[List[Task]]:
3384
+ """Get Tasks
3385
+
3386
+ Get list of a organization's tasks, potentially limiting them with query parameters
3387
+
3388
+ :param organization_id: (required)
3389
+ :type organization_id: int
3390
+ :param offset: Offset. If specified, skip the first offset tasks from results.
3391
+ :type offset: int
3392
+ :param limit: Limit. If specified, limits the number of results to this number.
3393
+ :type limit: int
3394
+ :param project_id: Project id. If specified, limits the results to this project.
3395
+ :type project_id: int
3396
+ :param version_id: Version id. If specified, limits the results to this version.
3397
+ :type version_id: int
3398
+ :param from_created_at: Timestamp in UTC. If specified, limits results to tasks started on or after (>=) this time
3399
+ :type from_created_at: datetime
3400
+ :param to_created_at: Timestamp in UTC. If specified, limits results to tasks started before (<) this time
3401
+ :type to_created_at: datetime
3402
+ :param order_by: Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: project_id, version_id, task_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user.
3403
+ :type order_by: str
3404
+ :param _request_timeout: timeout setting for this request. If one
3405
+ number provided, it will be total request
3406
+ timeout. It can also be a pair (tuple) of
3407
+ (connection, read) timeouts.
3408
+ :type _request_timeout: int, tuple(int, int), optional
3409
+ :param _request_auth: set to override the auth_settings for an a single
3410
+ request; this effectively ignores the
3411
+ authentication in the spec for a single request.
3412
+ :type _request_auth: dict, optional
3413
+ :param _content_type: force content-type for the request.
3414
+ :type _content_type: str, Optional
3415
+ :param _headers: set to override the headers for a single
3416
+ request; this effectively ignores the headers
3417
+ in the spec for a single request.
3418
+ :type _headers: dict, optional
3419
+ :param _host_index: set to override the host_index for a single
3420
+ request; this effectively ignores the host_index
3421
+ in the spec for a single request.
3422
+ :type _host_index: int, optional
3423
+ :return: Returns the result object.
3424
+ """ # noqa: E501
3425
+
3426
+ _param = self._get_tasks_organizations_organization_id_tasks_get_serialize(
3427
+ organization_id=organization_id,
3428
+ offset=offset,
3429
+ limit=limit,
3430
+ project_id=project_id,
3431
+ version_id=version_id,
3432
+ from_created_at=from_created_at,
3433
+ to_created_at=to_created_at,
3434
+ order_by=order_by,
3435
+ _request_auth=_request_auth,
3436
+ _content_type=_content_type,
3437
+ _headers=_headers,
3438
+ _host_index=_host_index
3439
+ )
3440
+
3441
+ _response_types_map: Dict[str, Optional[str]] = {
3442
+ '200': "List[Task]",
3443
+ '422': "HTTPValidationError",
3444
+ }
3445
+ response_data = await self.api_client.call_api(
3446
+ *_param,
3447
+ _request_timeout=_request_timeout
3448
+ )
3449
+ await response_data.read()
3450
+ return self.api_client.response_deserialize(
3451
+ response_data=response_data,
3452
+ response_types_map=_response_types_map,
3453
+ )
3454
+
3455
+
3456
+ @validate_call
3457
+ async def get_tasks_organizations_organization_id_tasks_get_without_preload_content(
3458
+ self,
3459
+ organization_id: StrictInt,
3460
+ offset: Annotated[Optional[StrictInt], Field(description="Offset. If specified, skip the first offset tasks from results.")] = None,
3461
+ limit: Annotated[Optional[StrictInt], Field(description="Limit. If specified, limits the number of results to this number.")] = None,
3462
+ project_id: Annotated[Optional[StrictInt], Field(description="Project id. If specified, limits the results to this project.")] = None,
3463
+ version_id: Annotated[Optional[StrictInt], Field(description="Version id. If specified, limits the results to this version.")] = None,
3464
+ from_created_at: Annotated[Optional[datetime], Field(description="Timestamp in UTC. If specified, limits results to tasks started on or after (>=) this time")] = None,
3465
+ to_created_at: Annotated[Optional[datetime], Field(description="Timestamp in UTC. If specified, limits results to tasks started before (<) this time")] = None,
3466
+ order_by: Annotated[Optional[StrictStr], Field(description="Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: project_id, version_id, task_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user. ")] = None,
3467
+ _request_timeout: Union[
3468
+ None,
3469
+ Annotated[StrictFloat, Field(gt=0)],
3470
+ Tuple[
3471
+ Annotated[StrictFloat, Field(gt=0)],
3472
+ Annotated[StrictFloat, Field(gt=0)]
3473
+ ]
3474
+ ] = None,
3475
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3476
+ _content_type: Optional[StrictStr] = None,
3477
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3478
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3479
+ ) -> RESTResponseType:
3480
+ """Get Tasks
3481
+
3482
+ Get list of a organization's tasks, potentially limiting them with query parameters
3483
+
3484
+ :param organization_id: (required)
3485
+ :type organization_id: int
3486
+ :param offset: Offset. If specified, skip the first offset tasks from results.
3487
+ :type offset: int
3488
+ :param limit: Limit. If specified, limits the number of results to this number.
3489
+ :type limit: int
3490
+ :param project_id: Project id. If specified, limits the results to this project.
3491
+ :type project_id: int
3492
+ :param version_id: Version id. If specified, limits the results to this version.
3493
+ :type version_id: int
3494
+ :param from_created_at: Timestamp in UTC. If specified, limits results to tasks started on or after (>=) this time
3495
+ :type from_created_at: datetime
3496
+ :param to_created_at: Timestamp in UTC. If specified, limits results to tasks started before (<) this time
3497
+ :type to_created_at: datetime
3498
+ :param order_by: Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: project_id, version_id, task_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user.
3499
+ :type order_by: str
3500
+ :param _request_timeout: timeout setting for this request. If one
3501
+ number provided, it will be total request
3502
+ timeout. It can also be a pair (tuple) of
3503
+ (connection, read) timeouts.
3504
+ :type _request_timeout: int, tuple(int, int), optional
3505
+ :param _request_auth: set to override the auth_settings for an a single
3506
+ request; this effectively ignores the
3507
+ authentication in the spec for a single request.
3508
+ :type _request_auth: dict, optional
3509
+ :param _content_type: force content-type for the request.
3510
+ :type _content_type: str, Optional
3511
+ :param _headers: set to override the headers for a single
3512
+ request; this effectively ignores the headers
3513
+ in the spec for a single request.
3514
+ :type _headers: dict, optional
3515
+ :param _host_index: set to override the host_index for a single
3516
+ request; this effectively ignores the host_index
3517
+ in the spec for a single request.
3518
+ :type _host_index: int, optional
3519
+ :return: Returns the result object.
3520
+ """ # noqa: E501
3521
+
3522
+ _param = self._get_tasks_organizations_organization_id_tasks_get_serialize(
3523
+ organization_id=organization_id,
3524
+ offset=offset,
3525
+ limit=limit,
3526
+ project_id=project_id,
3527
+ version_id=version_id,
3528
+ from_created_at=from_created_at,
3529
+ to_created_at=to_created_at,
3530
+ order_by=order_by,
3531
+ _request_auth=_request_auth,
3532
+ _content_type=_content_type,
3533
+ _headers=_headers,
3534
+ _host_index=_host_index
3535
+ )
3536
+
3537
+ _response_types_map: Dict[str, Optional[str]] = {
3538
+ '200': "List[Task]",
3539
+ '422': "HTTPValidationError",
3540
+ }
3541
+ response_data = await self.api_client.call_api(
3542
+ *_param,
3543
+ _request_timeout=_request_timeout
3544
+ )
3545
+ return response_data.response
3546
+
3547
+
3548
+ def _get_tasks_organizations_organization_id_tasks_get_serialize(
3549
+ self,
3550
+ organization_id,
3551
+ offset,
3552
+ limit,
3553
+ project_id,
3554
+ version_id,
3555
+ from_created_at,
3556
+ to_created_at,
3557
+ order_by,
3558
+ _request_auth,
3559
+ _content_type,
3560
+ _headers,
3561
+ _host_index,
3562
+ ) -> RequestSerialized:
3563
+
3564
+ _host = None
3565
+
3566
+ _collection_formats: Dict[str, str] = {
3567
+ }
3568
+
3569
+ _path_params: Dict[str, str] = {}
3570
+ _query_params: List[Tuple[str, str]] = []
3571
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3572
+ _form_params: List[Tuple[str, str]] = []
3573
+ _files: Dict[
3574
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3575
+ ] = {}
3576
+ _body_params: Optional[bytes] = None
3577
+
3578
+ # process the path parameters
3579
+ if organization_id is not None:
3580
+ _path_params['organization_id'] = organization_id
3581
+ # process the query parameters
3582
+ if offset is not None:
3583
+
3584
+ _query_params.append(('offset', offset))
3585
+
3586
+ if limit is not None:
3587
+
3588
+ _query_params.append(('limit', limit))
3589
+
3590
+ if project_id is not None:
3591
+
3592
+ _query_params.append(('project_id', project_id))
3593
+
3594
+ if version_id is not None:
3595
+
3596
+ _query_params.append(('version_id', version_id))
3597
+
3598
+ if from_created_at is not None:
3599
+ if isinstance(from_created_at, datetime):
3600
+ _query_params.append(
3601
+ (
3602
+ 'from_created_at',
3603
+ from_created_at.strftime(
3604
+ self.api_client.configuration.datetime_format
3605
+ )
3606
+ )
3607
+ )
3608
+ else:
3609
+ _query_params.append(('from_created_at', from_created_at))
3610
+
3611
+ if to_created_at is not None:
3612
+ if isinstance(to_created_at, datetime):
3613
+ _query_params.append(
3614
+ (
3615
+ 'to_created_at',
3616
+ to_created_at.strftime(
3617
+ self.api_client.configuration.datetime_format
3618
+ )
3619
+ )
3620
+ )
3621
+ else:
3622
+ _query_params.append(('to_created_at', to_created_at))
3623
+
3624
+ if order_by is not None:
3625
+
3626
+ _query_params.append(('order_by', order_by))
3627
+
3628
+ # process the header parameters
3629
+ # process the form parameters
3630
+ # process the body parameter
3631
+
3632
+
3633
+ # set the HTTP header `Accept`
3634
+ if 'Accept' not in _header_params:
3635
+ _header_params['Accept'] = self.api_client.select_header_accept(
3636
+ [
3637
+ 'application/json'
3638
+ ]
3639
+ )
3640
+
3641
+
3642
+ # authentication setting
3643
+ _auth_settings: List[str] = [
3644
+ 'OpenIdConnect'
3645
+ ]
3646
+
3647
+ return self.api_client.param_serialize(
3648
+ method='GET',
3649
+ resource_path='/organizations/{organization_id}/tasks',
3650
+ path_params=_path_params,
3651
+ query_params=_query_params,
3652
+ header_params=_header_params,
3653
+ body=_body_params,
3654
+ post_params=_form_params,
3655
+ files=_files,
3656
+ auth_settings=_auth_settings,
3657
+ collection_formats=_collection_formats,
3658
+ _host=_host,
3659
+ _request_auth=_request_auth
3660
+ )
3661
+
3662
+
3663
+
3664
+
3665
+ @validate_call
3666
+ async def patch_task_organizations_organization_id_tasks_task_id_patch(
3667
+ self,
3668
+ organization_id: StrictInt,
3669
+ task_id: StrictInt,
3670
+ task_patch: TaskPatch,
3671
+ _request_timeout: Union[
3672
+ None,
3673
+ Annotated[StrictFloat, Field(gt=0)],
3674
+ Tuple[
3675
+ Annotated[StrictFloat, Field(gt=0)],
3676
+ Annotated[StrictFloat, Field(gt=0)]
3677
+ ]
3678
+ ] = None,
3679
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3680
+ _content_type: Optional[StrictStr] = None,
3681
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3682
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3683
+ ) -> SuccessAndMessageResponse:
3684
+ """Patch Task
3685
+
3686
+ Patch task
3687
+
3688
+ :param organization_id: (required)
3689
+ :type organization_id: int
3690
+ :param task_id: (required)
3691
+ :type task_id: int
3692
+ :param task_patch: (required)
3693
+ :type task_patch: TaskPatch
3694
+ :param _request_timeout: timeout setting for this request. If one
3695
+ number provided, it will be total request
3696
+ timeout. It can also be a pair (tuple) of
3697
+ (connection, read) timeouts.
3698
+ :type _request_timeout: int, tuple(int, int), optional
3699
+ :param _request_auth: set to override the auth_settings for an a single
3700
+ request; this effectively ignores the
3701
+ authentication in the spec for a single request.
3702
+ :type _request_auth: dict, optional
3703
+ :param _content_type: force content-type for the request.
3704
+ :type _content_type: str, Optional
3705
+ :param _headers: set to override the headers for a single
3706
+ request; this effectively ignores the headers
3707
+ in the spec for a single request.
3708
+ :type _headers: dict, optional
3709
+ :param _host_index: set to override the host_index for a single
3710
+ request; this effectively ignores the host_index
3711
+ in the spec for a single request.
3712
+ :type _host_index: int, optional
3713
+ :return: Returns the result object.
3714
+ """ # noqa: E501
3715
+
3716
+ _param = self._patch_task_organizations_organization_id_tasks_task_id_patch_serialize(
3717
+ organization_id=organization_id,
3718
+ task_id=task_id,
3719
+ task_patch=task_patch,
3720
+ _request_auth=_request_auth,
3721
+ _content_type=_content_type,
3722
+ _headers=_headers,
3723
+ _host_index=_host_index
3724
+ )
3725
+
3726
+ _response_types_map: Dict[str, Optional[str]] = {
3727
+ '200': "SuccessAndMessageResponse",
3728
+ '422': "HTTPValidationError",
3729
+ }
3730
+ response_data = await self.api_client.call_api(
3731
+ *_param,
3732
+ _request_timeout=_request_timeout
3733
+ )
3734
+ await response_data.read()
3735
+ return self.api_client.response_deserialize(
3736
+ response_data=response_data,
3737
+ response_types_map=_response_types_map,
3738
+ ).data
3739
+
3740
+
3741
+ @validate_call
3742
+ async def patch_task_organizations_organization_id_tasks_task_id_patch_with_http_info(
3743
+ self,
3744
+ organization_id: StrictInt,
3745
+ task_id: StrictInt,
3746
+ task_patch: TaskPatch,
3747
+ _request_timeout: Union[
3748
+ None,
3749
+ Annotated[StrictFloat, Field(gt=0)],
3750
+ Tuple[
3751
+ Annotated[StrictFloat, Field(gt=0)],
3752
+ Annotated[StrictFloat, Field(gt=0)]
3753
+ ]
3754
+ ] = None,
3755
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3756
+ _content_type: Optional[StrictStr] = None,
3757
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3758
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3759
+ ) -> ApiResponse[SuccessAndMessageResponse]:
3760
+ """Patch Task
3761
+
3762
+ Patch task
3763
+
3764
+ :param organization_id: (required)
3765
+ :type organization_id: int
3766
+ :param task_id: (required)
3767
+ :type task_id: int
3768
+ :param task_patch: (required)
3769
+ :type task_patch: TaskPatch
3770
+ :param _request_timeout: timeout setting for this request. If one
3771
+ number provided, it will be total request
3772
+ timeout. It can also be a pair (tuple) of
3773
+ (connection, read) timeouts.
3774
+ :type _request_timeout: int, tuple(int, int), optional
3775
+ :param _request_auth: set to override the auth_settings for an a single
3776
+ request; this effectively ignores the
3777
+ authentication in the spec for a single request.
3778
+ :type _request_auth: dict, optional
3779
+ :param _content_type: force content-type for the request.
3780
+ :type _content_type: str, Optional
3781
+ :param _headers: set to override the headers for a single
3782
+ request; this effectively ignores the headers
3783
+ in the spec for a single request.
3784
+ :type _headers: dict, optional
3785
+ :param _host_index: set to override the host_index for a single
3786
+ request; this effectively ignores the host_index
3787
+ in the spec for a single request.
3788
+ :type _host_index: int, optional
3789
+ :return: Returns the result object.
3790
+ """ # noqa: E501
3791
+
3792
+ _param = self._patch_task_organizations_organization_id_tasks_task_id_patch_serialize(
3793
+ organization_id=organization_id,
3794
+ task_id=task_id,
3795
+ task_patch=task_patch,
3796
+ _request_auth=_request_auth,
3797
+ _content_type=_content_type,
3798
+ _headers=_headers,
3799
+ _host_index=_host_index
3800
+ )
3801
+
3802
+ _response_types_map: Dict[str, Optional[str]] = {
3803
+ '200': "SuccessAndMessageResponse",
3804
+ '422': "HTTPValidationError",
3805
+ }
3806
+ response_data = await self.api_client.call_api(
3807
+ *_param,
3808
+ _request_timeout=_request_timeout
3809
+ )
3810
+ await response_data.read()
3811
+ return self.api_client.response_deserialize(
3812
+ response_data=response_data,
3813
+ response_types_map=_response_types_map,
3814
+ )
3815
+
3816
+
3817
+ @validate_call
3818
+ async def patch_task_organizations_organization_id_tasks_task_id_patch_without_preload_content(
3819
+ self,
3820
+ organization_id: StrictInt,
3821
+ task_id: StrictInt,
3822
+ task_patch: TaskPatch,
3823
+ _request_timeout: Union[
3824
+ None,
3825
+ Annotated[StrictFloat, Field(gt=0)],
3826
+ Tuple[
3827
+ Annotated[StrictFloat, Field(gt=0)],
3828
+ Annotated[StrictFloat, Field(gt=0)]
3829
+ ]
3830
+ ] = None,
3831
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3832
+ _content_type: Optional[StrictStr] = None,
3833
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3834
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3835
+ ) -> RESTResponseType:
3836
+ """Patch Task
3837
+
3838
+ Patch task
3839
+
3840
+ :param organization_id: (required)
3841
+ :type organization_id: int
3842
+ :param task_id: (required)
3843
+ :type task_id: int
3844
+ :param task_patch: (required)
3845
+ :type task_patch: TaskPatch
3846
+ :param _request_timeout: timeout setting for this request. If one
3847
+ number provided, it will be total request
3848
+ timeout. It can also be a pair (tuple) of
3849
+ (connection, read) timeouts.
3850
+ :type _request_timeout: int, tuple(int, int), optional
3851
+ :param _request_auth: set to override the auth_settings for an a single
3852
+ request; this effectively ignores the
3853
+ authentication in the spec for a single request.
3854
+ :type _request_auth: dict, optional
3855
+ :param _content_type: force content-type for the request.
3856
+ :type _content_type: str, Optional
3857
+ :param _headers: set to override the headers for a single
3858
+ request; this effectively ignores the headers
3859
+ in the spec for a single request.
3860
+ :type _headers: dict, optional
3861
+ :param _host_index: set to override the host_index for a single
3862
+ request; this effectively ignores the host_index
3863
+ in the spec for a single request.
3864
+ :type _host_index: int, optional
3865
+ :return: Returns the result object.
3866
+ """ # noqa: E501
3867
+
3868
+ _param = self._patch_task_organizations_organization_id_tasks_task_id_patch_serialize(
3869
+ organization_id=organization_id,
3870
+ task_id=task_id,
3871
+ task_patch=task_patch,
3872
+ _request_auth=_request_auth,
3873
+ _content_type=_content_type,
3874
+ _headers=_headers,
3875
+ _host_index=_host_index
3876
+ )
3877
+
3878
+ _response_types_map: Dict[str, Optional[str]] = {
3879
+ '200': "SuccessAndMessageResponse",
3880
+ '422': "HTTPValidationError",
3881
+ }
3882
+ response_data = await self.api_client.call_api(
3883
+ *_param,
3884
+ _request_timeout=_request_timeout
3885
+ )
3886
+ return response_data.response
3887
+
3888
+
3889
+ def _patch_task_organizations_organization_id_tasks_task_id_patch_serialize(
3890
+ self,
3891
+ organization_id,
3892
+ task_id,
3893
+ task_patch,
3894
+ _request_auth,
3895
+ _content_type,
3896
+ _headers,
3897
+ _host_index,
3898
+ ) -> RequestSerialized:
3899
+
3900
+ _host = None
3901
+
3902
+ _collection_formats: Dict[str, str] = {
3903
+ }
3904
+
3905
+ _path_params: Dict[str, str] = {}
3906
+ _query_params: List[Tuple[str, str]] = []
3907
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3908
+ _form_params: List[Tuple[str, str]] = []
3909
+ _files: Dict[
3910
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3911
+ ] = {}
3912
+ _body_params: Optional[bytes] = None
3913
+
3914
+ # process the path parameters
3915
+ if organization_id is not None:
3916
+ _path_params['organization_id'] = organization_id
3917
+ if task_id is not None:
3918
+ _path_params['task_id'] = task_id
3919
+ # process the query parameters
3920
+ # process the header parameters
3921
+ # process the form parameters
3922
+ # process the body parameter
3923
+ if task_patch is not None:
3924
+ _body_params = task_patch
3925
+
3926
+
3927
+ # set the HTTP header `Accept`
3928
+ if 'Accept' not in _header_params:
3929
+ _header_params['Accept'] = self.api_client.select_header_accept(
3930
+ [
3931
+ 'application/json'
3932
+ ]
3933
+ )
3934
+
3935
+ # set the HTTP header `Content-Type`
3936
+ if _content_type:
3937
+ _header_params['Content-Type'] = _content_type
3938
+ else:
3939
+ _default_content_type = (
3940
+ self.api_client.select_header_content_type(
3941
+ [
3942
+ 'application/json'
3943
+ ]
3944
+ )
3945
+ )
3946
+ if _default_content_type is not None:
3947
+ _header_params['Content-Type'] = _default_content_type
3948
+
3949
+ # authentication setting
3950
+ _auth_settings: List[str] = [
3951
+ 'OpenIdConnect'
3952
+ ]
3953
+
3954
+ return self.api_client.param_serialize(
3955
+ method='PATCH',
3956
+ resource_path='/organizations/{organization_id}/tasks/{task_id}',
3957
+ path_params=_path_params,
3958
+ query_params=_query_params,
3959
+ header_params=_header_params,
3960
+ body=_body_params,
3961
+ post_params=_form_params,
3962
+ files=_files,
3963
+ auth_settings=_auth_settings,
3964
+ collection_formats=_collection_formats,
3965
+ _host=_host,
3966
+ _request_auth=_request_auth
3967
+ )
3968
+
3969
+
3970
+
3971
+
3972
+ @validate_call
3973
+ async def put_task_finding_actions_organizations_organization_id_tasks_task_id_findings_actions_put(
3974
+ self,
3975
+ organization_id: StrictInt,
3976
+ task_id: StrictInt,
3977
+ pending_finding_actions: PendingFindingActions,
3978
+ _request_timeout: Union[
3979
+ None,
3980
+ Annotated[StrictFloat, Field(gt=0)],
3981
+ Tuple[
3982
+ Annotated[StrictFloat, Field(gt=0)],
3983
+ Annotated[StrictFloat, Field(gt=0)]
3984
+ ]
3985
+ ] = None,
3986
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3987
+ _content_type: Optional[StrictStr] = None,
3988
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3989
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3990
+ ) -> object:
3991
+ """Put Task Finding Actions
3992
+
3993
+ Add finding actions
3994
+
3995
+ :param organization_id: (required)
3996
+ :type organization_id: int
3997
+ :param task_id: (required)
3998
+ :type task_id: int
3999
+ :param pending_finding_actions: (required)
4000
+ :type pending_finding_actions: PendingFindingActions
4001
+ :param _request_timeout: timeout setting for this request. If one
4002
+ number provided, it will be total request
4003
+ timeout. It can also be a pair (tuple) of
4004
+ (connection, read) timeouts.
4005
+ :type _request_timeout: int, tuple(int, int), optional
4006
+ :param _request_auth: set to override the auth_settings for an a single
4007
+ request; this effectively ignores the
4008
+ authentication in the spec for a single request.
4009
+ :type _request_auth: dict, optional
4010
+ :param _content_type: force content-type for the request.
4011
+ :type _content_type: str, Optional
4012
+ :param _headers: set to override the headers for a single
4013
+ request; this effectively ignores the headers
4014
+ in the spec for a single request.
4015
+ :type _headers: dict, optional
4016
+ :param _host_index: set to override the host_index for a single
4017
+ request; this effectively ignores the host_index
4018
+ in the spec for a single request.
4019
+ :type _host_index: int, optional
4020
+ :return: Returns the result object.
4021
+ """ # noqa: E501
4022
+
4023
+ _param = self._put_task_finding_actions_organizations_organization_id_tasks_task_id_findings_actions_put_serialize(
4024
+ organization_id=organization_id,
4025
+ task_id=task_id,
4026
+ pending_finding_actions=pending_finding_actions,
4027
+ _request_auth=_request_auth,
4028
+ _content_type=_content_type,
4029
+ _headers=_headers,
4030
+ _host_index=_host_index
4031
+ )
4032
+
4033
+ _response_types_map: Dict[str, Optional[str]] = {
4034
+ '200': "object",
4035
+ '422': "HTTPValidationError",
4036
+ }
4037
+ response_data = await self.api_client.call_api(
4038
+ *_param,
4039
+ _request_timeout=_request_timeout
4040
+ )
4041
+ await response_data.read()
4042
+ return self.api_client.response_deserialize(
4043
+ response_data=response_data,
4044
+ response_types_map=_response_types_map,
4045
+ ).data
4046
+
4047
+
4048
+ @validate_call
4049
+ async def put_task_finding_actions_organizations_organization_id_tasks_task_id_findings_actions_put_with_http_info(
4050
+ self,
4051
+ organization_id: StrictInt,
4052
+ task_id: StrictInt,
4053
+ pending_finding_actions: PendingFindingActions,
4054
+ _request_timeout: Union[
4055
+ None,
4056
+ Annotated[StrictFloat, Field(gt=0)],
4057
+ Tuple[
4058
+ Annotated[StrictFloat, Field(gt=0)],
4059
+ Annotated[StrictFloat, Field(gt=0)]
4060
+ ]
4061
+ ] = None,
4062
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4063
+ _content_type: Optional[StrictStr] = None,
4064
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4065
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4066
+ ) -> ApiResponse[object]:
4067
+ """Put Task Finding Actions
4068
+
4069
+ Add finding actions
4070
+
4071
+ :param organization_id: (required)
4072
+ :type organization_id: int
4073
+ :param task_id: (required)
4074
+ :type task_id: int
4075
+ :param pending_finding_actions: (required)
4076
+ :type pending_finding_actions: PendingFindingActions
4077
+ :param _request_timeout: timeout setting for this request. If one
4078
+ number provided, it will be total request
4079
+ timeout. It can also be a pair (tuple) of
4080
+ (connection, read) timeouts.
4081
+ :type _request_timeout: int, tuple(int, int), optional
4082
+ :param _request_auth: set to override the auth_settings for an a single
4083
+ request; this effectively ignores the
4084
+ authentication in the spec for a single request.
4085
+ :type _request_auth: dict, optional
4086
+ :param _content_type: force content-type for the request.
4087
+ :type _content_type: str, Optional
4088
+ :param _headers: set to override the headers for a single
4089
+ request; this effectively ignores the headers
4090
+ in the spec for a single request.
4091
+ :type _headers: dict, optional
4092
+ :param _host_index: set to override the host_index for a single
4093
+ request; this effectively ignores the host_index
4094
+ in the spec for a single request.
4095
+ :type _host_index: int, optional
4096
+ :return: Returns the result object.
4097
+ """ # noqa: E501
4098
+
4099
+ _param = self._put_task_finding_actions_organizations_organization_id_tasks_task_id_findings_actions_put_serialize(
4100
+ organization_id=organization_id,
4101
+ task_id=task_id,
4102
+ pending_finding_actions=pending_finding_actions,
4103
+ _request_auth=_request_auth,
4104
+ _content_type=_content_type,
4105
+ _headers=_headers,
4106
+ _host_index=_host_index
4107
+ )
4108
+
4109
+ _response_types_map: Dict[str, Optional[str]] = {
4110
+ '200': "object",
4111
+ '422': "HTTPValidationError",
4112
+ }
4113
+ response_data = await self.api_client.call_api(
4114
+ *_param,
4115
+ _request_timeout=_request_timeout
4116
+ )
4117
+ await response_data.read()
4118
+ return self.api_client.response_deserialize(
4119
+ response_data=response_data,
4120
+ response_types_map=_response_types_map,
4121
+ )
4122
+
4123
+
4124
+ @validate_call
4125
+ async def put_task_finding_actions_organizations_organization_id_tasks_task_id_findings_actions_put_without_preload_content(
4126
+ self,
4127
+ organization_id: StrictInt,
4128
+ task_id: StrictInt,
4129
+ pending_finding_actions: PendingFindingActions,
4130
+ _request_timeout: Union[
4131
+ None,
4132
+ Annotated[StrictFloat, Field(gt=0)],
4133
+ Tuple[
4134
+ Annotated[StrictFloat, Field(gt=0)],
4135
+ Annotated[StrictFloat, Field(gt=0)]
4136
+ ]
4137
+ ] = None,
4138
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4139
+ _content_type: Optional[StrictStr] = None,
4140
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4141
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4142
+ ) -> RESTResponseType:
4143
+ """Put Task Finding Actions
4144
+
4145
+ Add finding actions
4146
+
4147
+ :param organization_id: (required)
4148
+ :type organization_id: int
4149
+ :param task_id: (required)
4150
+ :type task_id: int
4151
+ :param pending_finding_actions: (required)
4152
+ :type pending_finding_actions: PendingFindingActions
4153
+ :param _request_timeout: timeout setting for this request. If one
4154
+ number provided, it will be total request
4155
+ timeout. It can also be a pair (tuple) of
4156
+ (connection, read) timeouts.
4157
+ :type _request_timeout: int, tuple(int, int), optional
4158
+ :param _request_auth: set to override the auth_settings for an a single
4159
+ request; this effectively ignores the
4160
+ authentication in the spec for a single request.
4161
+ :type _request_auth: dict, optional
4162
+ :param _content_type: force content-type for the request.
4163
+ :type _content_type: str, Optional
4164
+ :param _headers: set to override the headers for a single
4165
+ request; this effectively ignores the headers
4166
+ in the spec for a single request.
4167
+ :type _headers: dict, optional
4168
+ :param _host_index: set to override the host_index for a single
4169
+ request; this effectively ignores the host_index
4170
+ in the spec for a single request.
4171
+ :type _host_index: int, optional
4172
+ :return: Returns the result object.
4173
+ """ # noqa: E501
4174
+
4175
+ _param = self._put_task_finding_actions_organizations_organization_id_tasks_task_id_findings_actions_put_serialize(
4176
+ organization_id=organization_id,
4177
+ task_id=task_id,
4178
+ pending_finding_actions=pending_finding_actions,
4179
+ _request_auth=_request_auth,
4180
+ _content_type=_content_type,
4181
+ _headers=_headers,
4182
+ _host_index=_host_index
4183
+ )
4184
+
4185
+ _response_types_map: Dict[str, Optional[str]] = {
4186
+ '200': "object",
4187
+ '422': "HTTPValidationError",
4188
+ }
4189
+ response_data = await self.api_client.call_api(
4190
+ *_param,
4191
+ _request_timeout=_request_timeout
4192
+ )
4193
+ return response_data.response
4194
+
4195
+
4196
+ def _put_task_finding_actions_organizations_organization_id_tasks_task_id_findings_actions_put_serialize(
4197
+ self,
4198
+ organization_id,
4199
+ task_id,
4200
+ pending_finding_actions,
4201
+ _request_auth,
4202
+ _content_type,
4203
+ _headers,
4204
+ _host_index,
4205
+ ) -> RequestSerialized:
4206
+
4207
+ _host = None
4208
+
4209
+ _collection_formats: Dict[str, str] = {
4210
+ }
4211
+
4212
+ _path_params: Dict[str, str] = {}
4213
+ _query_params: List[Tuple[str, str]] = []
4214
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4215
+ _form_params: List[Tuple[str, str]] = []
4216
+ _files: Dict[
4217
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4218
+ ] = {}
4219
+ _body_params: Optional[bytes] = None
4220
+
4221
+ # process the path parameters
4222
+ if organization_id is not None:
4223
+ _path_params['organization_id'] = organization_id
4224
+ if task_id is not None:
4225
+ _path_params['task_id'] = task_id
4226
+ # process the query parameters
4227
+ # process the header parameters
4228
+ # process the form parameters
4229
+ # process the body parameter
4230
+ if pending_finding_actions is not None:
4231
+ _body_params = pending_finding_actions
4232
+
4233
+
4234
+ # set the HTTP header `Accept`
4235
+ if 'Accept' not in _header_params:
4236
+ _header_params['Accept'] = self.api_client.select_header_accept(
4237
+ [
4238
+ 'application/json'
4239
+ ]
4240
+ )
4241
+
4242
+ # set the HTTP header `Content-Type`
4243
+ if _content_type:
4244
+ _header_params['Content-Type'] = _content_type
4245
+ else:
4246
+ _default_content_type = (
4247
+ self.api_client.select_header_content_type(
4248
+ [
4249
+ 'application/json'
4250
+ ]
4251
+ )
4252
+ )
4253
+ if _default_content_type is not None:
4254
+ _header_params['Content-Type'] = _default_content_type
4255
+
4256
+ # authentication setting
4257
+ _auth_settings: List[str] = [
4258
+ 'OpenIdConnect'
4259
+ ]
4260
+
4261
+ return self.api_client.param_serialize(
4262
+ method='PUT',
4263
+ resource_path='/organizations/{organization_id}/tasks/{task_id}/findings/actions',
4264
+ path_params=_path_params,
4265
+ query_params=_query_params,
4266
+ header_params=_header_params,
4267
+ body=_body_params,
4268
+ post_params=_form_params,
4269
+ files=_files,
4270
+ auth_settings=_auth_settings,
4271
+ collection_formats=_collection_formats,
4272
+ _host=_host,
4273
+ _request_auth=_request_auth
4274
+ )
4275
+
4276
+