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,2049 @@
1
+ """
2
+ FastAPI
3
+
4
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+
9
+ Do not edit the class manually.
10
+ """ # noqa: E501
11
+
12
+
13
+ import warnings
14
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
+ from typing import Any, Dict, List, Optional, Tuple, Union
16
+ from typing_extensions import Annotated
17
+
18
+ from pydantic import StrictInt
19
+ from typing import List
20
+ from audithub_sdk.models.api_blacklisted_hint import APIBlacklistedHint
21
+ from audithub_sdk.models.hint import Hint
22
+ from audithub_sdk.models.hint_with_id import HintWithId
23
+ from audithub_sdk.models.id_and_message_response import IdAndMessageResponse
24
+ from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse
25
+
26
+ from audithub_sdk.api_client import ApiClient, RequestSerialized
27
+ from audithub_sdk.api_response import ApiResponse
28
+ from audithub_sdk.rest import RESTResponseType
29
+
30
+
31
+ class HintsOrgLibApi:
32
+ """NOTE: This class is auto generated by OpenAPI Generator
33
+ Ref: https://openapi-generator.tech
34
+
35
+ Do not edit the class manually.
36
+ """
37
+
38
+ def __init__(self, api_client=None) -> None:
39
+ if api_client is None:
40
+ api_client = ApiClient.get_default()
41
+ self.api_client = api_client
42
+
43
+
44
+ @validate_call
45
+ async def delete_hint_organizations_organization_id_hints_hint_id_delete(
46
+ self,
47
+ organization_id: StrictInt,
48
+ hint_id: StrictInt,
49
+ _request_timeout: Union[
50
+ None,
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Tuple[
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Annotated[StrictFloat, Field(gt=0)]
55
+ ]
56
+ ] = None,
57
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
+ _content_type: Optional[StrictStr] = None,
59
+ _headers: Optional[Dict[StrictStr, Any]] = None,
60
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
+ ) -> SuccessAndMessageResponse:
62
+ """Delete Hint
63
+
64
+ Permanently delete a hint
65
+
66
+ :param organization_id: (required)
67
+ :type organization_id: int
68
+ :param hint_id: (required)
69
+ :type hint_id: int
70
+ :param _request_timeout: timeout setting for this request. If one
71
+ number provided, it will be total request
72
+ timeout. It can also be a pair (tuple) of
73
+ (connection, read) timeouts.
74
+ :type _request_timeout: int, tuple(int, int), optional
75
+ :param _request_auth: set to override the auth_settings for an a single
76
+ request; this effectively ignores the
77
+ authentication in the spec for a single request.
78
+ :type _request_auth: dict, optional
79
+ :param _content_type: force content-type for the request.
80
+ :type _content_type: str, Optional
81
+ :param _headers: set to override the headers for a single
82
+ request; this effectively ignores the headers
83
+ in the spec for a single request.
84
+ :type _headers: dict, optional
85
+ :param _host_index: set to override the host_index for a single
86
+ request; this effectively ignores the host_index
87
+ in the spec for a single request.
88
+ :type _host_index: int, optional
89
+ :return: Returns the result object.
90
+ """ # noqa: E501
91
+
92
+ _param = self._delete_hint_organizations_organization_id_hints_hint_id_delete_serialize(
93
+ organization_id=organization_id,
94
+ hint_id=hint_id,
95
+ _request_auth=_request_auth,
96
+ _content_type=_content_type,
97
+ _headers=_headers,
98
+ _host_index=_host_index
99
+ )
100
+
101
+ _response_types_map: Dict[str, Optional[str]] = {
102
+ '200': "SuccessAndMessageResponse",
103
+ '422': "HTTPValidationError",
104
+ }
105
+ response_data = await self.api_client.call_api(
106
+ *_param,
107
+ _request_timeout=_request_timeout
108
+ )
109
+ await response_data.read()
110
+ return self.api_client.response_deserialize(
111
+ response_data=response_data,
112
+ response_types_map=_response_types_map,
113
+ ).data
114
+
115
+
116
+ @validate_call
117
+ async def delete_hint_organizations_organization_id_hints_hint_id_delete_with_http_info(
118
+ self,
119
+ organization_id: StrictInt,
120
+ hint_id: StrictInt,
121
+ _request_timeout: Union[
122
+ None,
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Tuple[
125
+ Annotated[StrictFloat, Field(gt=0)],
126
+ Annotated[StrictFloat, Field(gt=0)]
127
+ ]
128
+ ] = None,
129
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
130
+ _content_type: Optional[StrictStr] = None,
131
+ _headers: Optional[Dict[StrictStr, Any]] = None,
132
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
133
+ ) -> ApiResponse[SuccessAndMessageResponse]:
134
+ """Delete Hint
135
+
136
+ Permanently delete a hint
137
+
138
+ :param organization_id: (required)
139
+ :type organization_id: int
140
+ :param hint_id: (required)
141
+ :type hint_id: int
142
+ :param _request_timeout: timeout setting for this request. If one
143
+ number provided, it will be total request
144
+ timeout. It can also be a pair (tuple) of
145
+ (connection, read) timeouts.
146
+ :type _request_timeout: int, tuple(int, int), optional
147
+ :param _request_auth: set to override the auth_settings for an a single
148
+ request; this effectively ignores the
149
+ authentication in the spec for a single request.
150
+ :type _request_auth: dict, optional
151
+ :param _content_type: force content-type for the request.
152
+ :type _content_type: str, Optional
153
+ :param _headers: set to override the headers for a single
154
+ request; this effectively ignores the headers
155
+ in the spec for a single request.
156
+ :type _headers: dict, optional
157
+ :param _host_index: set to override the host_index for a single
158
+ request; this effectively ignores the host_index
159
+ in the spec for a single request.
160
+ :type _host_index: int, optional
161
+ :return: Returns the result object.
162
+ """ # noqa: E501
163
+
164
+ _param = self._delete_hint_organizations_organization_id_hints_hint_id_delete_serialize(
165
+ organization_id=organization_id,
166
+ hint_id=hint_id,
167
+ _request_auth=_request_auth,
168
+ _content_type=_content_type,
169
+ _headers=_headers,
170
+ _host_index=_host_index
171
+ )
172
+
173
+ _response_types_map: Dict[str, Optional[str]] = {
174
+ '200': "SuccessAndMessageResponse",
175
+ '422': "HTTPValidationError",
176
+ }
177
+ response_data = await self.api_client.call_api(
178
+ *_param,
179
+ _request_timeout=_request_timeout
180
+ )
181
+ await response_data.read()
182
+ return self.api_client.response_deserialize(
183
+ response_data=response_data,
184
+ response_types_map=_response_types_map,
185
+ )
186
+
187
+
188
+ @validate_call
189
+ async def delete_hint_organizations_organization_id_hints_hint_id_delete_without_preload_content(
190
+ self,
191
+ organization_id: StrictInt,
192
+ hint_id: StrictInt,
193
+ _request_timeout: Union[
194
+ None,
195
+ Annotated[StrictFloat, Field(gt=0)],
196
+ Tuple[
197
+ Annotated[StrictFloat, Field(gt=0)],
198
+ Annotated[StrictFloat, Field(gt=0)]
199
+ ]
200
+ ] = None,
201
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
202
+ _content_type: Optional[StrictStr] = None,
203
+ _headers: Optional[Dict[StrictStr, Any]] = None,
204
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
205
+ ) -> RESTResponseType:
206
+ """Delete Hint
207
+
208
+ Permanently delete a hint
209
+
210
+ :param organization_id: (required)
211
+ :type organization_id: int
212
+ :param hint_id: (required)
213
+ :type hint_id: int
214
+ :param _request_timeout: timeout setting for this request. If one
215
+ number provided, it will be total request
216
+ timeout. It can also be a pair (tuple) of
217
+ (connection, read) timeouts.
218
+ :type _request_timeout: int, tuple(int, int), optional
219
+ :param _request_auth: set to override the auth_settings for an a single
220
+ request; this effectively ignores the
221
+ authentication in the spec for a single request.
222
+ :type _request_auth: dict, optional
223
+ :param _content_type: force content-type for the request.
224
+ :type _content_type: str, Optional
225
+ :param _headers: set to override the headers for a single
226
+ request; this effectively ignores the headers
227
+ in the spec for a single request.
228
+ :type _headers: dict, optional
229
+ :param _host_index: set to override the host_index for a single
230
+ request; this effectively ignores the host_index
231
+ in the spec for a single request.
232
+ :type _host_index: int, optional
233
+ :return: Returns the result object.
234
+ """ # noqa: E501
235
+
236
+ _param = self._delete_hint_organizations_organization_id_hints_hint_id_delete_serialize(
237
+ organization_id=organization_id,
238
+ hint_id=hint_id,
239
+ _request_auth=_request_auth,
240
+ _content_type=_content_type,
241
+ _headers=_headers,
242
+ _host_index=_host_index
243
+ )
244
+
245
+ _response_types_map: Dict[str, Optional[str]] = {
246
+ '200': "SuccessAndMessageResponse",
247
+ '422': "HTTPValidationError",
248
+ }
249
+ response_data = await self.api_client.call_api(
250
+ *_param,
251
+ _request_timeout=_request_timeout
252
+ )
253
+ return response_data.response
254
+
255
+
256
+ def _delete_hint_organizations_organization_id_hints_hint_id_delete_serialize(
257
+ self,
258
+ organization_id,
259
+ hint_id,
260
+ _request_auth,
261
+ _content_type,
262
+ _headers,
263
+ _host_index,
264
+ ) -> RequestSerialized:
265
+
266
+ _host = None
267
+
268
+ _collection_formats: Dict[str, str] = {
269
+ }
270
+
271
+ _path_params: Dict[str, str] = {}
272
+ _query_params: List[Tuple[str, str]] = []
273
+ _header_params: Dict[str, Optional[str]] = _headers or {}
274
+ _form_params: List[Tuple[str, str]] = []
275
+ _files: Dict[
276
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
277
+ ] = {}
278
+ _body_params: Optional[bytes] = None
279
+
280
+ # process the path parameters
281
+ if organization_id is not None:
282
+ _path_params['organization_id'] = organization_id
283
+ if hint_id is not None:
284
+ _path_params['hint_id'] = hint_id
285
+ # process the query parameters
286
+ # process the header parameters
287
+ # process the form parameters
288
+ # process the body parameter
289
+
290
+
291
+ # set the HTTP header `Accept`
292
+ if 'Accept' not in _header_params:
293
+ _header_params['Accept'] = self.api_client.select_header_accept(
294
+ [
295
+ 'application/json'
296
+ ]
297
+ )
298
+
299
+
300
+ # authentication setting
301
+ _auth_settings: List[str] = [
302
+ 'OpenIdConnect'
303
+ ]
304
+
305
+ return self.api_client.param_serialize(
306
+ method='DELETE',
307
+ resource_path='/organizations/{organization_id}/hints/{hint_id}',
308
+ path_params=_path_params,
309
+ query_params=_query_params,
310
+ header_params=_header_params,
311
+ body=_body_params,
312
+ post_params=_form_params,
313
+ files=_files,
314
+ auth_settings=_auth_settings,
315
+ collection_formats=_collection_formats,
316
+ _host=_host,
317
+ _request_auth=_request_auth
318
+ )
319
+
320
+
321
+
322
+
323
+ @validate_call
324
+ async def get_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_get(
325
+ self,
326
+ organization_id: StrictInt,
327
+ project_id: StrictInt,
328
+ _request_timeout: Union[
329
+ None,
330
+ Annotated[StrictFloat, Field(gt=0)],
331
+ Tuple[
332
+ Annotated[StrictFloat, Field(gt=0)],
333
+ Annotated[StrictFloat, Field(gt=0)]
334
+ ]
335
+ ] = None,
336
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
337
+ _content_type: Optional[StrictStr] = None,
338
+ _headers: Optional[Dict[StrictStr, Any]] = None,
339
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
340
+ ) -> List[APIBlacklistedHint]:
341
+ """Get Blacklisted Hints
342
+
343
+ Get Blacklisted hints for project
344
+
345
+ :param organization_id: (required)
346
+ :type organization_id: int
347
+ :param project_id: (required)
348
+ :type project_id: int
349
+ :param _request_timeout: timeout setting for this request. If one
350
+ number provided, it will be total request
351
+ timeout. It can also be a pair (tuple) of
352
+ (connection, read) timeouts.
353
+ :type _request_timeout: int, tuple(int, int), optional
354
+ :param _request_auth: set to override the auth_settings for an a single
355
+ request; this effectively ignores the
356
+ authentication in the spec for a single request.
357
+ :type _request_auth: dict, optional
358
+ :param _content_type: force content-type for the request.
359
+ :type _content_type: str, Optional
360
+ :param _headers: set to override the headers for a single
361
+ request; this effectively ignores the headers
362
+ in the spec for a single request.
363
+ :type _headers: dict, optional
364
+ :param _host_index: set to override the host_index for a single
365
+ request; this effectively ignores the host_index
366
+ in the spec for a single request.
367
+ :type _host_index: int, optional
368
+ :return: Returns the result object.
369
+ """ # noqa: E501
370
+
371
+ _param = self._get_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_get_serialize(
372
+ organization_id=organization_id,
373
+ project_id=project_id,
374
+ _request_auth=_request_auth,
375
+ _content_type=_content_type,
376
+ _headers=_headers,
377
+ _host_index=_host_index
378
+ )
379
+
380
+ _response_types_map: Dict[str, Optional[str]] = {
381
+ '200': "List[APIBlacklistedHint]",
382
+ '422': "HTTPValidationError",
383
+ }
384
+ response_data = await self.api_client.call_api(
385
+ *_param,
386
+ _request_timeout=_request_timeout
387
+ )
388
+ await response_data.read()
389
+ return self.api_client.response_deserialize(
390
+ response_data=response_data,
391
+ response_types_map=_response_types_map,
392
+ ).data
393
+
394
+
395
+ @validate_call
396
+ async def get_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_get_with_http_info(
397
+ self,
398
+ organization_id: StrictInt,
399
+ project_id: StrictInt,
400
+ _request_timeout: Union[
401
+ None,
402
+ Annotated[StrictFloat, Field(gt=0)],
403
+ Tuple[
404
+ Annotated[StrictFloat, Field(gt=0)],
405
+ Annotated[StrictFloat, Field(gt=0)]
406
+ ]
407
+ ] = None,
408
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
409
+ _content_type: Optional[StrictStr] = None,
410
+ _headers: Optional[Dict[StrictStr, Any]] = None,
411
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
412
+ ) -> ApiResponse[List[APIBlacklistedHint]]:
413
+ """Get Blacklisted Hints
414
+
415
+ Get Blacklisted hints for project
416
+
417
+ :param organization_id: (required)
418
+ :type organization_id: int
419
+ :param project_id: (required)
420
+ :type project_id: int
421
+ :param _request_timeout: timeout setting for this request. If one
422
+ number provided, it will be total request
423
+ timeout. It can also be a pair (tuple) of
424
+ (connection, read) timeouts.
425
+ :type _request_timeout: int, tuple(int, int), optional
426
+ :param _request_auth: set to override the auth_settings for an a single
427
+ request; this effectively ignores the
428
+ authentication in the spec for a single request.
429
+ :type _request_auth: dict, optional
430
+ :param _content_type: force content-type for the request.
431
+ :type _content_type: str, Optional
432
+ :param _headers: set to override the headers for a single
433
+ request; this effectively ignores the headers
434
+ in the spec for a single request.
435
+ :type _headers: dict, optional
436
+ :param _host_index: set to override the host_index for a single
437
+ request; this effectively ignores the host_index
438
+ in the spec for a single request.
439
+ :type _host_index: int, optional
440
+ :return: Returns the result object.
441
+ """ # noqa: E501
442
+
443
+ _param = self._get_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_get_serialize(
444
+ organization_id=organization_id,
445
+ project_id=project_id,
446
+ _request_auth=_request_auth,
447
+ _content_type=_content_type,
448
+ _headers=_headers,
449
+ _host_index=_host_index
450
+ )
451
+
452
+ _response_types_map: Dict[str, Optional[str]] = {
453
+ '200': "List[APIBlacklistedHint]",
454
+ '422': "HTTPValidationError",
455
+ }
456
+ response_data = await self.api_client.call_api(
457
+ *_param,
458
+ _request_timeout=_request_timeout
459
+ )
460
+ await response_data.read()
461
+ return self.api_client.response_deserialize(
462
+ response_data=response_data,
463
+ response_types_map=_response_types_map,
464
+ )
465
+
466
+
467
+ @validate_call
468
+ async def get_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_get_without_preload_content(
469
+ self,
470
+ organization_id: StrictInt,
471
+ project_id: StrictInt,
472
+ _request_timeout: Union[
473
+ None,
474
+ Annotated[StrictFloat, Field(gt=0)],
475
+ Tuple[
476
+ Annotated[StrictFloat, Field(gt=0)],
477
+ Annotated[StrictFloat, Field(gt=0)]
478
+ ]
479
+ ] = None,
480
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
481
+ _content_type: Optional[StrictStr] = None,
482
+ _headers: Optional[Dict[StrictStr, Any]] = None,
483
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
484
+ ) -> RESTResponseType:
485
+ """Get Blacklisted Hints
486
+
487
+ Get Blacklisted hints for project
488
+
489
+ :param organization_id: (required)
490
+ :type organization_id: int
491
+ :param project_id: (required)
492
+ :type project_id: int
493
+ :param _request_timeout: timeout setting for this request. If one
494
+ number provided, it will be total request
495
+ timeout. It can also be a pair (tuple) of
496
+ (connection, read) timeouts.
497
+ :type _request_timeout: int, tuple(int, int), optional
498
+ :param _request_auth: set to override the auth_settings for an a single
499
+ request; this effectively ignores the
500
+ authentication in the spec for a single request.
501
+ :type _request_auth: dict, optional
502
+ :param _content_type: force content-type for the request.
503
+ :type _content_type: str, Optional
504
+ :param _headers: set to override the headers for a single
505
+ request; this effectively ignores the headers
506
+ in the spec for a single request.
507
+ :type _headers: dict, optional
508
+ :param _host_index: set to override the host_index for a single
509
+ request; this effectively ignores the host_index
510
+ in the spec for a single request.
511
+ :type _host_index: int, optional
512
+ :return: Returns the result object.
513
+ """ # noqa: E501
514
+
515
+ _param = self._get_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_get_serialize(
516
+ organization_id=organization_id,
517
+ project_id=project_id,
518
+ _request_auth=_request_auth,
519
+ _content_type=_content_type,
520
+ _headers=_headers,
521
+ _host_index=_host_index
522
+ )
523
+
524
+ _response_types_map: Dict[str, Optional[str]] = {
525
+ '200': "List[APIBlacklistedHint]",
526
+ '422': "HTTPValidationError",
527
+ }
528
+ response_data = await self.api_client.call_api(
529
+ *_param,
530
+ _request_timeout=_request_timeout
531
+ )
532
+ return response_data.response
533
+
534
+
535
+ def _get_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_get_serialize(
536
+ self,
537
+ organization_id,
538
+ project_id,
539
+ _request_auth,
540
+ _content_type,
541
+ _headers,
542
+ _host_index,
543
+ ) -> RequestSerialized:
544
+
545
+ _host = None
546
+
547
+ _collection_formats: Dict[str, str] = {
548
+ }
549
+
550
+ _path_params: Dict[str, str] = {}
551
+ _query_params: List[Tuple[str, str]] = []
552
+ _header_params: Dict[str, Optional[str]] = _headers or {}
553
+ _form_params: List[Tuple[str, str]] = []
554
+ _files: Dict[
555
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
556
+ ] = {}
557
+ _body_params: Optional[bytes] = None
558
+
559
+ # process the path parameters
560
+ if organization_id is not None:
561
+ _path_params['organization_id'] = organization_id
562
+ if project_id is not None:
563
+ _path_params['project_id'] = project_id
564
+ # process the query parameters
565
+ # process the header parameters
566
+ # process the form parameters
567
+ # process the body parameter
568
+
569
+
570
+ # set the HTTP header `Accept`
571
+ if 'Accept' not in _header_params:
572
+ _header_params['Accept'] = self.api_client.select_header_accept(
573
+ [
574
+ 'application/json'
575
+ ]
576
+ )
577
+
578
+
579
+ # authentication setting
580
+ _auth_settings: List[str] = [
581
+ 'OpenIdConnect'
582
+ ]
583
+
584
+ return self.api_client.param_serialize(
585
+ method='GET',
586
+ resource_path='/organizations/{organization_id}/projects/{project_id}/blacklisted-hints',
587
+ path_params=_path_params,
588
+ query_params=_query_params,
589
+ header_params=_header_params,
590
+ body=_body_params,
591
+ post_params=_form_params,
592
+ files=_files,
593
+ auth_settings=_auth_settings,
594
+ collection_formats=_collection_formats,
595
+ _host=_host,
596
+ _request_auth=_request_auth
597
+ )
598
+
599
+
600
+
601
+
602
+ @validate_call
603
+ async def get_hints_organizations_organization_id_hints_get(
604
+ self,
605
+ organization_id: StrictInt,
606
+ _request_timeout: Union[
607
+ None,
608
+ Annotated[StrictFloat, Field(gt=0)],
609
+ Tuple[
610
+ Annotated[StrictFloat, Field(gt=0)],
611
+ Annotated[StrictFloat, Field(gt=0)]
612
+ ]
613
+ ] = None,
614
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
615
+ _content_type: Optional[StrictStr] = None,
616
+ _headers: Optional[Dict[StrictStr, Any]] = None,
617
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
618
+ ) -> List[HintWithId]:
619
+ """Get Hints
620
+
621
+ Returns all Hints of an organization
622
+
623
+ :param organization_id: (required)
624
+ :type organization_id: int
625
+ :param _request_timeout: timeout setting for this request. If one
626
+ number provided, it will be total request
627
+ timeout. It can also be a pair (tuple) of
628
+ (connection, read) timeouts.
629
+ :type _request_timeout: int, tuple(int, int), optional
630
+ :param _request_auth: set to override the auth_settings for an a single
631
+ request; this effectively ignores the
632
+ authentication in the spec for a single request.
633
+ :type _request_auth: dict, optional
634
+ :param _content_type: force content-type for the request.
635
+ :type _content_type: str, Optional
636
+ :param _headers: set to override the headers for a single
637
+ request; this effectively ignores the headers
638
+ in the spec for a single request.
639
+ :type _headers: dict, optional
640
+ :param _host_index: set to override the host_index for a single
641
+ request; this effectively ignores the host_index
642
+ in the spec for a single request.
643
+ :type _host_index: int, optional
644
+ :return: Returns the result object.
645
+ """ # noqa: E501
646
+
647
+ _param = self._get_hints_organizations_organization_id_hints_get_serialize(
648
+ organization_id=organization_id,
649
+ _request_auth=_request_auth,
650
+ _content_type=_content_type,
651
+ _headers=_headers,
652
+ _host_index=_host_index
653
+ )
654
+
655
+ _response_types_map: Dict[str, Optional[str]] = {
656
+ '200': "List[HintWithId]",
657
+ '422': "HTTPValidationError",
658
+ }
659
+ response_data = await self.api_client.call_api(
660
+ *_param,
661
+ _request_timeout=_request_timeout
662
+ )
663
+ await response_data.read()
664
+ return self.api_client.response_deserialize(
665
+ response_data=response_data,
666
+ response_types_map=_response_types_map,
667
+ ).data
668
+
669
+
670
+ @validate_call
671
+ async def get_hints_organizations_organization_id_hints_get_with_http_info(
672
+ self,
673
+ organization_id: StrictInt,
674
+ _request_timeout: Union[
675
+ None,
676
+ Annotated[StrictFloat, Field(gt=0)],
677
+ Tuple[
678
+ Annotated[StrictFloat, Field(gt=0)],
679
+ Annotated[StrictFloat, Field(gt=0)]
680
+ ]
681
+ ] = None,
682
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
683
+ _content_type: Optional[StrictStr] = None,
684
+ _headers: Optional[Dict[StrictStr, Any]] = None,
685
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
686
+ ) -> ApiResponse[List[HintWithId]]:
687
+ """Get Hints
688
+
689
+ Returns all Hints of an organization
690
+
691
+ :param organization_id: (required)
692
+ :type organization_id: int
693
+ :param _request_timeout: timeout setting for this request. If one
694
+ number provided, it will be total request
695
+ timeout. It can also be a pair (tuple) of
696
+ (connection, read) timeouts.
697
+ :type _request_timeout: int, tuple(int, int), optional
698
+ :param _request_auth: set to override the auth_settings for an a single
699
+ request; this effectively ignores the
700
+ authentication in the spec for a single request.
701
+ :type _request_auth: dict, optional
702
+ :param _content_type: force content-type for the request.
703
+ :type _content_type: str, Optional
704
+ :param _headers: set to override the headers for a single
705
+ request; this effectively ignores the headers
706
+ in the spec for a single request.
707
+ :type _headers: dict, optional
708
+ :param _host_index: set to override the host_index for a single
709
+ request; this effectively ignores the host_index
710
+ in the spec for a single request.
711
+ :type _host_index: int, optional
712
+ :return: Returns the result object.
713
+ """ # noqa: E501
714
+
715
+ _param = self._get_hints_organizations_organization_id_hints_get_serialize(
716
+ organization_id=organization_id,
717
+ _request_auth=_request_auth,
718
+ _content_type=_content_type,
719
+ _headers=_headers,
720
+ _host_index=_host_index
721
+ )
722
+
723
+ _response_types_map: Dict[str, Optional[str]] = {
724
+ '200': "List[HintWithId]",
725
+ '422': "HTTPValidationError",
726
+ }
727
+ response_data = await self.api_client.call_api(
728
+ *_param,
729
+ _request_timeout=_request_timeout
730
+ )
731
+ await response_data.read()
732
+ return self.api_client.response_deserialize(
733
+ response_data=response_data,
734
+ response_types_map=_response_types_map,
735
+ )
736
+
737
+
738
+ @validate_call
739
+ async def get_hints_organizations_organization_id_hints_get_without_preload_content(
740
+ self,
741
+ organization_id: StrictInt,
742
+ _request_timeout: Union[
743
+ None,
744
+ Annotated[StrictFloat, Field(gt=0)],
745
+ Tuple[
746
+ Annotated[StrictFloat, Field(gt=0)],
747
+ Annotated[StrictFloat, Field(gt=0)]
748
+ ]
749
+ ] = None,
750
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
751
+ _content_type: Optional[StrictStr] = None,
752
+ _headers: Optional[Dict[StrictStr, Any]] = None,
753
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
754
+ ) -> RESTResponseType:
755
+ """Get Hints
756
+
757
+ Returns all Hints of an organization
758
+
759
+ :param organization_id: (required)
760
+ :type organization_id: int
761
+ :param _request_timeout: timeout setting for this request. If one
762
+ number provided, it will be total request
763
+ timeout. It can also be a pair (tuple) of
764
+ (connection, read) timeouts.
765
+ :type _request_timeout: int, tuple(int, int), optional
766
+ :param _request_auth: set to override the auth_settings for an a single
767
+ request; this effectively ignores the
768
+ authentication in the spec for a single request.
769
+ :type _request_auth: dict, optional
770
+ :param _content_type: force content-type for the request.
771
+ :type _content_type: str, Optional
772
+ :param _headers: set to override the headers for a single
773
+ request; this effectively ignores the headers
774
+ in the spec for a single request.
775
+ :type _headers: dict, optional
776
+ :param _host_index: set to override the host_index for a single
777
+ request; this effectively ignores the host_index
778
+ in the spec for a single request.
779
+ :type _host_index: int, optional
780
+ :return: Returns the result object.
781
+ """ # noqa: E501
782
+
783
+ _param = self._get_hints_organizations_organization_id_hints_get_serialize(
784
+ organization_id=organization_id,
785
+ _request_auth=_request_auth,
786
+ _content_type=_content_type,
787
+ _headers=_headers,
788
+ _host_index=_host_index
789
+ )
790
+
791
+ _response_types_map: Dict[str, Optional[str]] = {
792
+ '200': "List[HintWithId]",
793
+ '422': "HTTPValidationError",
794
+ }
795
+ response_data = await self.api_client.call_api(
796
+ *_param,
797
+ _request_timeout=_request_timeout
798
+ )
799
+ return response_data.response
800
+
801
+
802
+ def _get_hints_organizations_organization_id_hints_get_serialize(
803
+ self,
804
+ organization_id,
805
+ _request_auth,
806
+ _content_type,
807
+ _headers,
808
+ _host_index,
809
+ ) -> RequestSerialized:
810
+
811
+ _host = None
812
+
813
+ _collection_formats: Dict[str, str] = {
814
+ }
815
+
816
+ _path_params: Dict[str, str] = {}
817
+ _query_params: List[Tuple[str, str]] = []
818
+ _header_params: Dict[str, Optional[str]] = _headers or {}
819
+ _form_params: List[Tuple[str, str]] = []
820
+ _files: Dict[
821
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
822
+ ] = {}
823
+ _body_params: Optional[bytes] = None
824
+
825
+ # process the path parameters
826
+ if organization_id is not None:
827
+ _path_params['organization_id'] = organization_id
828
+ # process the query parameters
829
+ # process the header parameters
830
+ # process the form parameters
831
+ # process the body parameter
832
+
833
+
834
+ # set the HTTP header `Accept`
835
+ if 'Accept' not in _header_params:
836
+ _header_params['Accept'] = self.api_client.select_header_accept(
837
+ [
838
+ 'application/json'
839
+ ]
840
+ )
841
+
842
+
843
+ # authentication setting
844
+ _auth_settings: List[str] = [
845
+ 'OpenIdConnect'
846
+ ]
847
+
848
+ return self.api_client.param_serialize(
849
+ method='GET',
850
+ resource_path='/organizations/{organization_id}/hints',
851
+ path_params=_path_params,
852
+ query_params=_query_params,
853
+ header_params=_header_params,
854
+ body=_body_params,
855
+ post_params=_form_params,
856
+ files=_files,
857
+ auth_settings=_auth_settings,
858
+ collection_formats=_collection_formats,
859
+ _host=_host,
860
+ _request_auth=_request_auth
861
+ )
862
+
863
+
864
+
865
+
866
+ @validate_call
867
+ async def get_vspec_organizations_organization_id_hints_hint_id_get(
868
+ self,
869
+ organization_id: StrictInt,
870
+ hint_id: StrictInt,
871
+ _request_timeout: Union[
872
+ None,
873
+ Annotated[StrictFloat, Field(gt=0)],
874
+ Tuple[
875
+ Annotated[StrictFloat, Field(gt=0)],
876
+ Annotated[StrictFloat, Field(gt=0)]
877
+ ]
878
+ ] = None,
879
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
880
+ _content_type: Optional[StrictStr] = None,
881
+ _headers: Optional[Dict[StrictStr, Any]] = None,
882
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
883
+ ) -> Hint:
884
+ """Get Vspec
885
+
886
+ Returns hint attributes
887
+
888
+ :param organization_id: (required)
889
+ :type organization_id: int
890
+ :param hint_id: (required)
891
+ :type hint_id: int
892
+ :param _request_timeout: timeout setting for this request. If one
893
+ number provided, it will be total request
894
+ timeout. It can also be a pair (tuple) of
895
+ (connection, read) timeouts.
896
+ :type _request_timeout: int, tuple(int, int), optional
897
+ :param _request_auth: set to override the auth_settings for an a single
898
+ request; this effectively ignores the
899
+ authentication in the spec for a single request.
900
+ :type _request_auth: dict, optional
901
+ :param _content_type: force content-type for the request.
902
+ :type _content_type: str, Optional
903
+ :param _headers: set to override the headers for a single
904
+ request; this effectively ignores the headers
905
+ in the spec for a single request.
906
+ :type _headers: dict, optional
907
+ :param _host_index: set to override the host_index for a single
908
+ request; this effectively ignores the host_index
909
+ in the spec for a single request.
910
+ :type _host_index: int, optional
911
+ :return: Returns the result object.
912
+ """ # noqa: E501
913
+
914
+ _param = self._get_vspec_organizations_organization_id_hints_hint_id_get_serialize(
915
+ organization_id=organization_id,
916
+ hint_id=hint_id,
917
+ _request_auth=_request_auth,
918
+ _content_type=_content_type,
919
+ _headers=_headers,
920
+ _host_index=_host_index
921
+ )
922
+
923
+ _response_types_map: Dict[str, Optional[str]] = {
924
+ '200': "Hint",
925
+ '422': "HTTPValidationError",
926
+ }
927
+ response_data = await self.api_client.call_api(
928
+ *_param,
929
+ _request_timeout=_request_timeout
930
+ )
931
+ await response_data.read()
932
+ return self.api_client.response_deserialize(
933
+ response_data=response_data,
934
+ response_types_map=_response_types_map,
935
+ ).data
936
+
937
+
938
+ @validate_call
939
+ async def get_vspec_organizations_organization_id_hints_hint_id_get_with_http_info(
940
+ self,
941
+ organization_id: StrictInt,
942
+ hint_id: StrictInt,
943
+ _request_timeout: Union[
944
+ None,
945
+ Annotated[StrictFloat, Field(gt=0)],
946
+ Tuple[
947
+ Annotated[StrictFloat, Field(gt=0)],
948
+ Annotated[StrictFloat, Field(gt=0)]
949
+ ]
950
+ ] = None,
951
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
952
+ _content_type: Optional[StrictStr] = None,
953
+ _headers: Optional[Dict[StrictStr, Any]] = None,
954
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
955
+ ) -> ApiResponse[Hint]:
956
+ """Get Vspec
957
+
958
+ Returns hint attributes
959
+
960
+ :param organization_id: (required)
961
+ :type organization_id: int
962
+ :param hint_id: (required)
963
+ :type hint_id: int
964
+ :param _request_timeout: timeout setting for this request. If one
965
+ number provided, it will be total request
966
+ timeout. It can also be a pair (tuple) of
967
+ (connection, read) timeouts.
968
+ :type _request_timeout: int, tuple(int, int), optional
969
+ :param _request_auth: set to override the auth_settings for an a single
970
+ request; this effectively ignores the
971
+ authentication in the spec for a single request.
972
+ :type _request_auth: dict, optional
973
+ :param _content_type: force content-type for the request.
974
+ :type _content_type: str, Optional
975
+ :param _headers: set to override the headers for a single
976
+ request; this effectively ignores the headers
977
+ in the spec for a single request.
978
+ :type _headers: dict, optional
979
+ :param _host_index: set to override the host_index for a single
980
+ request; this effectively ignores the host_index
981
+ in the spec for a single request.
982
+ :type _host_index: int, optional
983
+ :return: Returns the result object.
984
+ """ # noqa: E501
985
+
986
+ _param = self._get_vspec_organizations_organization_id_hints_hint_id_get_serialize(
987
+ organization_id=organization_id,
988
+ hint_id=hint_id,
989
+ _request_auth=_request_auth,
990
+ _content_type=_content_type,
991
+ _headers=_headers,
992
+ _host_index=_host_index
993
+ )
994
+
995
+ _response_types_map: Dict[str, Optional[str]] = {
996
+ '200': "Hint",
997
+ '422': "HTTPValidationError",
998
+ }
999
+ response_data = await self.api_client.call_api(
1000
+ *_param,
1001
+ _request_timeout=_request_timeout
1002
+ )
1003
+ await response_data.read()
1004
+ return self.api_client.response_deserialize(
1005
+ response_data=response_data,
1006
+ response_types_map=_response_types_map,
1007
+ )
1008
+
1009
+
1010
+ @validate_call
1011
+ async def get_vspec_organizations_organization_id_hints_hint_id_get_without_preload_content(
1012
+ self,
1013
+ organization_id: StrictInt,
1014
+ hint_id: StrictInt,
1015
+ _request_timeout: Union[
1016
+ None,
1017
+ Annotated[StrictFloat, Field(gt=0)],
1018
+ Tuple[
1019
+ Annotated[StrictFloat, Field(gt=0)],
1020
+ Annotated[StrictFloat, Field(gt=0)]
1021
+ ]
1022
+ ] = None,
1023
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1024
+ _content_type: Optional[StrictStr] = None,
1025
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1026
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1027
+ ) -> RESTResponseType:
1028
+ """Get Vspec
1029
+
1030
+ Returns hint attributes
1031
+
1032
+ :param organization_id: (required)
1033
+ :type organization_id: int
1034
+ :param hint_id: (required)
1035
+ :type hint_id: int
1036
+ :param _request_timeout: timeout setting for this request. If one
1037
+ number provided, it will be total request
1038
+ timeout. It can also be a pair (tuple) of
1039
+ (connection, read) timeouts.
1040
+ :type _request_timeout: int, tuple(int, int), optional
1041
+ :param _request_auth: set to override the auth_settings for an a single
1042
+ request; this effectively ignores the
1043
+ authentication in the spec for a single request.
1044
+ :type _request_auth: dict, optional
1045
+ :param _content_type: force content-type for the request.
1046
+ :type _content_type: str, Optional
1047
+ :param _headers: set to override the headers for a single
1048
+ request; this effectively ignores the headers
1049
+ in the spec for a single request.
1050
+ :type _headers: dict, optional
1051
+ :param _host_index: set to override the host_index for a single
1052
+ request; this effectively ignores the host_index
1053
+ in the spec for a single request.
1054
+ :type _host_index: int, optional
1055
+ :return: Returns the result object.
1056
+ """ # noqa: E501
1057
+
1058
+ _param = self._get_vspec_organizations_organization_id_hints_hint_id_get_serialize(
1059
+ organization_id=organization_id,
1060
+ hint_id=hint_id,
1061
+ _request_auth=_request_auth,
1062
+ _content_type=_content_type,
1063
+ _headers=_headers,
1064
+ _host_index=_host_index
1065
+ )
1066
+
1067
+ _response_types_map: Dict[str, Optional[str]] = {
1068
+ '200': "Hint",
1069
+ '422': "HTTPValidationError",
1070
+ }
1071
+ response_data = await self.api_client.call_api(
1072
+ *_param,
1073
+ _request_timeout=_request_timeout
1074
+ )
1075
+ return response_data.response
1076
+
1077
+
1078
+ def _get_vspec_organizations_organization_id_hints_hint_id_get_serialize(
1079
+ self,
1080
+ organization_id,
1081
+ hint_id,
1082
+ _request_auth,
1083
+ _content_type,
1084
+ _headers,
1085
+ _host_index,
1086
+ ) -> RequestSerialized:
1087
+
1088
+ _host = None
1089
+
1090
+ _collection_formats: Dict[str, str] = {
1091
+ }
1092
+
1093
+ _path_params: Dict[str, str] = {}
1094
+ _query_params: List[Tuple[str, str]] = []
1095
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1096
+ _form_params: List[Tuple[str, str]] = []
1097
+ _files: Dict[
1098
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1099
+ ] = {}
1100
+ _body_params: Optional[bytes] = None
1101
+
1102
+ # process the path parameters
1103
+ if organization_id is not None:
1104
+ _path_params['organization_id'] = organization_id
1105
+ if hint_id is not None:
1106
+ _path_params['hint_id'] = hint_id
1107
+ # process the query parameters
1108
+ # process the header parameters
1109
+ # process the form parameters
1110
+ # process the body parameter
1111
+
1112
+
1113
+ # set the HTTP header `Accept`
1114
+ if 'Accept' not in _header_params:
1115
+ _header_params['Accept'] = self.api_client.select_header_accept(
1116
+ [
1117
+ 'application/json'
1118
+ ]
1119
+ )
1120
+
1121
+
1122
+ # authentication setting
1123
+ _auth_settings: List[str] = [
1124
+ 'OpenIdConnect'
1125
+ ]
1126
+
1127
+ return self.api_client.param_serialize(
1128
+ method='GET',
1129
+ resource_path='/organizations/{organization_id}/hints/{hint_id}',
1130
+ path_params=_path_params,
1131
+ query_params=_query_params,
1132
+ header_params=_header_params,
1133
+ body=_body_params,
1134
+ post_params=_form_params,
1135
+ files=_files,
1136
+ auth_settings=_auth_settings,
1137
+ collection_formats=_collection_formats,
1138
+ _host=_host,
1139
+ _request_auth=_request_auth
1140
+ )
1141
+
1142
+
1143
+
1144
+
1145
+ @validate_call
1146
+ async def post_hint_organizations_organization_id_hints_post(
1147
+ self,
1148
+ organization_id: StrictInt,
1149
+ hint: Hint,
1150
+ _request_timeout: Union[
1151
+ None,
1152
+ Annotated[StrictFloat, Field(gt=0)],
1153
+ Tuple[
1154
+ Annotated[StrictFloat, Field(gt=0)],
1155
+ Annotated[StrictFloat, Field(gt=0)]
1156
+ ]
1157
+ ] = None,
1158
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1159
+ _content_type: Optional[StrictStr] = None,
1160
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1161
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1162
+ ) -> IdAndMessageResponse:
1163
+ """Post Hint
1164
+
1165
+ Post Hint
1166
+
1167
+ :param organization_id: (required)
1168
+ :type organization_id: int
1169
+ :param hint: (required)
1170
+ :type hint: Hint
1171
+ :param _request_timeout: timeout setting for this request. If one
1172
+ number provided, it will be total request
1173
+ timeout. It can also be a pair (tuple) of
1174
+ (connection, read) timeouts.
1175
+ :type _request_timeout: int, tuple(int, int), optional
1176
+ :param _request_auth: set to override the auth_settings for an a single
1177
+ request; this effectively ignores the
1178
+ authentication in the spec for a single request.
1179
+ :type _request_auth: dict, optional
1180
+ :param _content_type: force content-type for the request.
1181
+ :type _content_type: str, Optional
1182
+ :param _headers: set to override the headers for a single
1183
+ request; this effectively ignores the headers
1184
+ in the spec for a single request.
1185
+ :type _headers: dict, optional
1186
+ :param _host_index: set to override the host_index for a single
1187
+ request; this effectively ignores the host_index
1188
+ in the spec for a single request.
1189
+ :type _host_index: int, optional
1190
+ :return: Returns the result object.
1191
+ """ # noqa: E501
1192
+
1193
+ _param = self._post_hint_organizations_organization_id_hints_post_serialize(
1194
+ organization_id=organization_id,
1195
+ hint=hint,
1196
+ _request_auth=_request_auth,
1197
+ _content_type=_content_type,
1198
+ _headers=_headers,
1199
+ _host_index=_host_index
1200
+ )
1201
+
1202
+ _response_types_map: Dict[str, Optional[str]] = {
1203
+ '200': "IdAndMessageResponse",
1204
+ '422': "HTTPValidationError",
1205
+ }
1206
+ response_data = await self.api_client.call_api(
1207
+ *_param,
1208
+ _request_timeout=_request_timeout
1209
+ )
1210
+ await response_data.read()
1211
+ return self.api_client.response_deserialize(
1212
+ response_data=response_data,
1213
+ response_types_map=_response_types_map,
1214
+ ).data
1215
+
1216
+
1217
+ @validate_call
1218
+ async def post_hint_organizations_organization_id_hints_post_with_http_info(
1219
+ self,
1220
+ organization_id: StrictInt,
1221
+ hint: Hint,
1222
+ _request_timeout: Union[
1223
+ None,
1224
+ Annotated[StrictFloat, Field(gt=0)],
1225
+ Tuple[
1226
+ Annotated[StrictFloat, Field(gt=0)],
1227
+ Annotated[StrictFloat, Field(gt=0)]
1228
+ ]
1229
+ ] = None,
1230
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1231
+ _content_type: Optional[StrictStr] = None,
1232
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1233
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1234
+ ) -> ApiResponse[IdAndMessageResponse]:
1235
+ """Post Hint
1236
+
1237
+ Post Hint
1238
+
1239
+ :param organization_id: (required)
1240
+ :type organization_id: int
1241
+ :param hint: (required)
1242
+ :type hint: Hint
1243
+ :param _request_timeout: timeout setting for this request. If one
1244
+ number provided, it will be total request
1245
+ timeout. It can also be a pair (tuple) of
1246
+ (connection, read) timeouts.
1247
+ :type _request_timeout: int, tuple(int, int), optional
1248
+ :param _request_auth: set to override the auth_settings for an a single
1249
+ request; this effectively ignores the
1250
+ authentication in the spec for a single request.
1251
+ :type _request_auth: dict, optional
1252
+ :param _content_type: force content-type for the request.
1253
+ :type _content_type: str, Optional
1254
+ :param _headers: set to override the headers for a single
1255
+ request; this effectively ignores the headers
1256
+ in the spec for a single request.
1257
+ :type _headers: dict, optional
1258
+ :param _host_index: set to override the host_index for a single
1259
+ request; this effectively ignores the host_index
1260
+ in the spec for a single request.
1261
+ :type _host_index: int, optional
1262
+ :return: Returns the result object.
1263
+ """ # noqa: E501
1264
+
1265
+ _param = self._post_hint_organizations_organization_id_hints_post_serialize(
1266
+ organization_id=organization_id,
1267
+ hint=hint,
1268
+ _request_auth=_request_auth,
1269
+ _content_type=_content_type,
1270
+ _headers=_headers,
1271
+ _host_index=_host_index
1272
+ )
1273
+
1274
+ _response_types_map: Dict[str, Optional[str]] = {
1275
+ '200': "IdAndMessageResponse",
1276
+ '422': "HTTPValidationError",
1277
+ }
1278
+ response_data = await self.api_client.call_api(
1279
+ *_param,
1280
+ _request_timeout=_request_timeout
1281
+ )
1282
+ await response_data.read()
1283
+ return self.api_client.response_deserialize(
1284
+ response_data=response_data,
1285
+ response_types_map=_response_types_map,
1286
+ )
1287
+
1288
+
1289
+ @validate_call
1290
+ async def post_hint_organizations_organization_id_hints_post_without_preload_content(
1291
+ self,
1292
+ organization_id: StrictInt,
1293
+ hint: Hint,
1294
+ _request_timeout: Union[
1295
+ None,
1296
+ Annotated[StrictFloat, Field(gt=0)],
1297
+ Tuple[
1298
+ Annotated[StrictFloat, Field(gt=0)],
1299
+ Annotated[StrictFloat, Field(gt=0)]
1300
+ ]
1301
+ ] = None,
1302
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1303
+ _content_type: Optional[StrictStr] = None,
1304
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1305
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1306
+ ) -> RESTResponseType:
1307
+ """Post Hint
1308
+
1309
+ Post Hint
1310
+
1311
+ :param organization_id: (required)
1312
+ :type organization_id: int
1313
+ :param hint: (required)
1314
+ :type hint: Hint
1315
+ :param _request_timeout: timeout setting for this request. If one
1316
+ number provided, it will be total request
1317
+ timeout. It can also be a pair (tuple) of
1318
+ (connection, read) timeouts.
1319
+ :type _request_timeout: int, tuple(int, int), optional
1320
+ :param _request_auth: set to override the auth_settings for an a single
1321
+ request; this effectively ignores the
1322
+ authentication in the spec for a single request.
1323
+ :type _request_auth: dict, optional
1324
+ :param _content_type: force content-type for the request.
1325
+ :type _content_type: str, Optional
1326
+ :param _headers: set to override the headers for a single
1327
+ request; this effectively ignores the headers
1328
+ in the spec for a single request.
1329
+ :type _headers: dict, optional
1330
+ :param _host_index: set to override the host_index for a single
1331
+ request; this effectively ignores the host_index
1332
+ in the spec for a single request.
1333
+ :type _host_index: int, optional
1334
+ :return: Returns the result object.
1335
+ """ # noqa: E501
1336
+
1337
+ _param = self._post_hint_organizations_organization_id_hints_post_serialize(
1338
+ organization_id=organization_id,
1339
+ hint=hint,
1340
+ _request_auth=_request_auth,
1341
+ _content_type=_content_type,
1342
+ _headers=_headers,
1343
+ _host_index=_host_index
1344
+ )
1345
+
1346
+ _response_types_map: Dict[str, Optional[str]] = {
1347
+ '200': "IdAndMessageResponse",
1348
+ '422': "HTTPValidationError",
1349
+ }
1350
+ response_data = await self.api_client.call_api(
1351
+ *_param,
1352
+ _request_timeout=_request_timeout
1353
+ )
1354
+ return response_data.response
1355
+
1356
+
1357
+ def _post_hint_organizations_organization_id_hints_post_serialize(
1358
+ self,
1359
+ organization_id,
1360
+ hint,
1361
+ _request_auth,
1362
+ _content_type,
1363
+ _headers,
1364
+ _host_index,
1365
+ ) -> RequestSerialized:
1366
+
1367
+ _host = None
1368
+
1369
+ _collection_formats: Dict[str, str] = {
1370
+ }
1371
+
1372
+ _path_params: Dict[str, str] = {}
1373
+ _query_params: List[Tuple[str, str]] = []
1374
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1375
+ _form_params: List[Tuple[str, str]] = []
1376
+ _files: Dict[
1377
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1378
+ ] = {}
1379
+ _body_params: Optional[bytes] = None
1380
+
1381
+ # process the path parameters
1382
+ if organization_id is not None:
1383
+ _path_params['organization_id'] = organization_id
1384
+ # process the query parameters
1385
+ # process the header parameters
1386
+ # process the form parameters
1387
+ # process the body parameter
1388
+ if hint is not None:
1389
+ _body_params = hint
1390
+
1391
+
1392
+ # set the HTTP header `Accept`
1393
+ if 'Accept' not in _header_params:
1394
+ _header_params['Accept'] = self.api_client.select_header_accept(
1395
+ [
1396
+ 'application/json'
1397
+ ]
1398
+ )
1399
+
1400
+ # set the HTTP header `Content-Type`
1401
+ if _content_type:
1402
+ _header_params['Content-Type'] = _content_type
1403
+ else:
1404
+ _default_content_type = (
1405
+ self.api_client.select_header_content_type(
1406
+ [
1407
+ 'application/json'
1408
+ ]
1409
+ )
1410
+ )
1411
+ if _default_content_type is not None:
1412
+ _header_params['Content-Type'] = _default_content_type
1413
+
1414
+ # authentication setting
1415
+ _auth_settings: List[str] = [
1416
+ 'OpenIdConnect'
1417
+ ]
1418
+
1419
+ return self.api_client.param_serialize(
1420
+ method='POST',
1421
+ resource_path='/organizations/{organization_id}/hints',
1422
+ path_params=_path_params,
1423
+ query_params=_query_params,
1424
+ header_params=_header_params,
1425
+ body=_body_params,
1426
+ post_params=_form_params,
1427
+ files=_files,
1428
+ auth_settings=_auth_settings,
1429
+ collection_formats=_collection_formats,
1430
+ _host=_host,
1431
+ _request_auth=_request_auth
1432
+ )
1433
+
1434
+
1435
+
1436
+
1437
+ @validate_call
1438
+ async def put_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_put(
1439
+ self,
1440
+ organization_id: StrictInt,
1441
+ project_id: StrictInt,
1442
+ api_blacklisted_hint: List[APIBlacklistedHint],
1443
+ _request_timeout: Union[
1444
+ None,
1445
+ Annotated[StrictFloat, Field(gt=0)],
1446
+ Tuple[
1447
+ Annotated[StrictFloat, Field(gt=0)],
1448
+ Annotated[StrictFloat, Field(gt=0)]
1449
+ ]
1450
+ ] = None,
1451
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1452
+ _content_type: Optional[StrictStr] = None,
1453
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1454
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1455
+ ) -> SuccessAndMessageResponse:
1456
+ """Put Blacklisted Hints
1457
+
1458
+ Update Blacklisted hints for project
1459
+
1460
+ :param organization_id: (required)
1461
+ :type organization_id: int
1462
+ :param project_id: (required)
1463
+ :type project_id: int
1464
+ :param api_blacklisted_hint: (required)
1465
+ :type api_blacklisted_hint: List[APIBlacklistedHint]
1466
+ :param _request_timeout: timeout setting for this request. If one
1467
+ number provided, it will be total request
1468
+ timeout. It can also be a pair (tuple) of
1469
+ (connection, read) timeouts.
1470
+ :type _request_timeout: int, tuple(int, int), optional
1471
+ :param _request_auth: set to override the auth_settings for an a single
1472
+ request; this effectively ignores the
1473
+ authentication in the spec for a single request.
1474
+ :type _request_auth: dict, optional
1475
+ :param _content_type: force content-type for the request.
1476
+ :type _content_type: str, Optional
1477
+ :param _headers: set to override the headers for a single
1478
+ request; this effectively ignores the headers
1479
+ in the spec for a single request.
1480
+ :type _headers: dict, optional
1481
+ :param _host_index: set to override the host_index for a single
1482
+ request; this effectively ignores the host_index
1483
+ in the spec for a single request.
1484
+ :type _host_index: int, optional
1485
+ :return: Returns the result object.
1486
+ """ # noqa: E501
1487
+
1488
+ _param = self._put_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_put_serialize(
1489
+ organization_id=organization_id,
1490
+ project_id=project_id,
1491
+ api_blacklisted_hint=api_blacklisted_hint,
1492
+ _request_auth=_request_auth,
1493
+ _content_type=_content_type,
1494
+ _headers=_headers,
1495
+ _host_index=_host_index
1496
+ )
1497
+
1498
+ _response_types_map: Dict[str, Optional[str]] = {
1499
+ '200': "SuccessAndMessageResponse",
1500
+ '422': "HTTPValidationError",
1501
+ }
1502
+ response_data = await self.api_client.call_api(
1503
+ *_param,
1504
+ _request_timeout=_request_timeout
1505
+ )
1506
+ await response_data.read()
1507
+ return self.api_client.response_deserialize(
1508
+ response_data=response_data,
1509
+ response_types_map=_response_types_map,
1510
+ ).data
1511
+
1512
+
1513
+ @validate_call
1514
+ async def put_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_put_with_http_info(
1515
+ self,
1516
+ organization_id: StrictInt,
1517
+ project_id: StrictInt,
1518
+ api_blacklisted_hint: List[APIBlacklistedHint],
1519
+ _request_timeout: Union[
1520
+ None,
1521
+ Annotated[StrictFloat, Field(gt=0)],
1522
+ Tuple[
1523
+ Annotated[StrictFloat, Field(gt=0)],
1524
+ Annotated[StrictFloat, Field(gt=0)]
1525
+ ]
1526
+ ] = None,
1527
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1528
+ _content_type: Optional[StrictStr] = None,
1529
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1530
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1531
+ ) -> ApiResponse[SuccessAndMessageResponse]:
1532
+ """Put Blacklisted Hints
1533
+
1534
+ Update Blacklisted hints for project
1535
+
1536
+ :param organization_id: (required)
1537
+ :type organization_id: int
1538
+ :param project_id: (required)
1539
+ :type project_id: int
1540
+ :param api_blacklisted_hint: (required)
1541
+ :type api_blacklisted_hint: List[APIBlacklistedHint]
1542
+ :param _request_timeout: timeout setting for this request. If one
1543
+ number provided, it will be total request
1544
+ timeout. It can also be a pair (tuple) of
1545
+ (connection, read) timeouts.
1546
+ :type _request_timeout: int, tuple(int, int), optional
1547
+ :param _request_auth: set to override the auth_settings for an a single
1548
+ request; this effectively ignores the
1549
+ authentication in the spec for a single request.
1550
+ :type _request_auth: dict, optional
1551
+ :param _content_type: force content-type for the request.
1552
+ :type _content_type: str, Optional
1553
+ :param _headers: set to override the headers for a single
1554
+ request; this effectively ignores the headers
1555
+ in the spec for a single request.
1556
+ :type _headers: dict, optional
1557
+ :param _host_index: set to override the host_index for a single
1558
+ request; this effectively ignores the host_index
1559
+ in the spec for a single request.
1560
+ :type _host_index: int, optional
1561
+ :return: Returns the result object.
1562
+ """ # noqa: E501
1563
+
1564
+ _param = self._put_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_put_serialize(
1565
+ organization_id=organization_id,
1566
+ project_id=project_id,
1567
+ api_blacklisted_hint=api_blacklisted_hint,
1568
+ _request_auth=_request_auth,
1569
+ _content_type=_content_type,
1570
+ _headers=_headers,
1571
+ _host_index=_host_index
1572
+ )
1573
+
1574
+ _response_types_map: Dict[str, Optional[str]] = {
1575
+ '200': "SuccessAndMessageResponse",
1576
+ '422': "HTTPValidationError",
1577
+ }
1578
+ response_data = await self.api_client.call_api(
1579
+ *_param,
1580
+ _request_timeout=_request_timeout
1581
+ )
1582
+ await response_data.read()
1583
+ return self.api_client.response_deserialize(
1584
+ response_data=response_data,
1585
+ response_types_map=_response_types_map,
1586
+ )
1587
+
1588
+
1589
+ @validate_call
1590
+ async def put_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_put_without_preload_content(
1591
+ self,
1592
+ organization_id: StrictInt,
1593
+ project_id: StrictInt,
1594
+ api_blacklisted_hint: List[APIBlacklistedHint],
1595
+ _request_timeout: Union[
1596
+ None,
1597
+ Annotated[StrictFloat, Field(gt=0)],
1598
+ Tuple[
1599
+ Annotated[StrictFloat, Field(gt=0)],
1600
+ Annotated[StrictFloat, Field(gt=0)]
1601
+ ]
1602
+ ] = None,
1603
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1604
+ _content_type: Optional[StrictStr] = None,
1605
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1606
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1607
+ ) -> RESTResponseType:
1608
+ """Put Blacklisted Hints
1609
+
1610
+ Update Blacklisted hints for project
1611
+
1612
+ :param organization_id: (required)
1613
+ :type organization_id: int
1614
+ :param project_id: (required)
1615
+ :type project_id: int
1616
+ :param api_blacklisted_hint: (required)
1617
+ :type api_blacklisted_hint: List[APIBlacklistedHint]
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._put_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_put_serialize(
1641
+ organization_id=organization_id,
1642
+ project_id=project_id,
1643
+ api_blacklisted_hint=api_blacklisted_hint,
1644
+ _request_auth=_request_auth,
1645
+ _content_type=_content_type,
1646
+ _headers=_headers,
1647
+ _host_index=_host_index
1648
+ )
1649
+
1650
+ _response_types_map: Dict[str, Optional[str]] = {
1651
+ '200': "SuccessAndMessageResponse",
1652
+ '422': "HTTPValidationError",
1653
+ }
1654
+ response_data = await self.api_client.call_api(
1655
+ *_param,
1656
+ _request_timeout=_request_timeout
1657
+ )
1658
+ return response_data.response
1659
+
1660
+
1661
+ def _put_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_put_serialize(
1662
+ self,
1663
+ organization_id,
1664
+ project_id,
1665
+ api_blacklisted_hint,
1666
+ _request_auth,
1667
+ _content_type,
1668
+ _headers,
1669
+ _host_index,
1670
+ ) -> RequestSerialized:
1671
+
1672
+ _host = None
1673
+
1674
+ _collection_formats: Dict[str, str] = {
1675
+ 'APIBlacklistedHint': '',
1676
+ }
1677
+
1678
+ _path_params: Dict[str, str] = {}
1679
+ _query_params: List[Tuple[str, str]] = []
1680
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1681
+ _form_params: List[Tuple[str, str]] = []
1682
+ _files: Dict[
1683
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1684
+ ] = {}
1685
+ _body_params: Optional[bytes] = None
1686
+
1687
+ # process the path parameters
1688
+ if organization_id is not None:
1689
+ _path_params['organization_id'] = organization_id
1690
+ if project_id is not None:
1691
+ _path_params['project_id'] = project_id
1692
+ # process the query parameters
1693
+ # process the header parameters
1694
+ # process the form parameters
1695
+ # process the body parameter
1696
+ if api_blacklisted_hint is not None:
1697
+ _body_params = api_blacklisted_hint
1698
+
1699
+
1700
+ # set the HTTP header `Accept`
1701
+ if 'Accept' not in _header_params:
1702
+ _header_params['Accept'] = self.api_client.select_header_accept(
1703
+ [
1704
+ 'application/json'
1705
+ ]
1706
+ )
1707
+
1708
+ # set the HTTP header `Content-Type`
1709
+ if _content_type:
1710
+ _header_params['Content-Type'] = _content_type
1711
+ else:
1712
+ _default_content_type = (
1713
+ self.api_client.select_header_content_type(
1714
+ [
1715
+ 'application/json'
1716
+ ]
1717
+ )
1718
+ )
1719
+ if _default_content_type is not None:
1720
+ _header_params['Content-Type'] = _default_content_type
1721
+
1722
+ # authentication setting
1723
+ _auth_settings: List[str] = [
1724
+ 'OpenIdConnect'
1725
+ ]
1726
+
1727
+ return self.api_client.param_serialize(
1728
+ method='PUT',
1729
+ resource_path='/organizations/{organization_id}/projects/{project_id}/blacklisted-hints',
1730
+ path_params=_path_params,
1731
+ query_params=_query_params,
1732
+ header_params=_header_params,
1733
+ body=_body_params,
1734
+ post_params=_form_params,
1735
+ files=_files,
1736
+ auth_settings=_auth_settings,
1737
+ collection_formats=_collection_formats,
1738
+ _host=_host,
1739
+ _request_auth=_request_auth
1740
+ )
1741
+
1742
+
1743
+
1744
+
1745
+ @validate_call
1746
+ async def put_hint_organizations_organization_id_hints_hint_id_put(
1747
+ self,
1748
+ organization_id: StrictInt,
1749
+ hint_id: StrictInt,
1750
+ hint: Hint,
1751
+ _request_timeout: Union[
1752
+ None,
1753
+ Annotated[StrictFloat, Field(gt=0)],
1754
+ Tuple[
1755
+ Annotated[StrictFloat, Field(gt=0)],
1756
+ Annotated[StrictFloat, Field(gt=0)]
1757
+ ]
1758
+ ] = None,
1759
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1760
+ _content_type: Optional[StrictStr] = None,
1761
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1762
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1763
+ ) -> SuccessAndMessageResponse:
1764
+ """Put Hint
1765
+
1766
+ Update hint attributes
1767
+
1768
+ :param organization_id: (required)
1769
+ :type organization_id: int
1770
+ :param hint_id: (required)
1771
+ :type hint_id: int
1772
+ :param hint: (required)
1773
+ :type hint: Hint
1774
+ :param _request_timeout: timeout setting for this request. If one
1775
+ number provided, it will be total request
1776
+ timeout. It can also be a pair (tuple) of
1777
+ (connection, read) timeouts.
1778
+ :type _request_timeout: int, tuple(int, int), optional
1779
+ :param _request_auth: set to override the auth_settings for an a single
1780
+ request; this effectively ignores the
1781
+ authentication in the spec for a single request.
1782
+ :type _request_auth: dict, optional
1783
+ :param _content_type: force content-type for the request.
1784
+ :type _content_type: str, Optional
1785
+ :param _headers: set to override the headers for a single
1786
+ request; this effectively ignores the headers
1787
+ in the spec for a single request.
1788
+ :type _headers: dict, optional
1789
+ :param _host_index: set to override the host_index for a single
1790
+ request; this effectively ignores the host_index
1791
+ in the spec for a single request.
1792
+ :type _host_index: int, optional
1793
+ :return: Returns the result object.
1794
+ """ # noqa: E501
1795
+
1796
+ _param = self._put_hint_organizations_organization_id_hints_hint_id_put_serialize(
1797
+ organization_id=organization_id,
1798
+ hint_id=hint_id,
1799
+ hint=hint,
1800
+ _request_auth=_request_auth,
1801
+ _content_type=_content_type,
1802
+ _headers=_headers,
1803
+ _host_index=_host_index
1804
+ )
1805
+
1806
+ _response_types_map: Dict[str, Optional[str]] = {
1807
+ '200': "SuccessAndMessageResponse",
1808
+ '422': "HTTPValidationError",
1809
+ }
1810
+ response_data = await self.api_client.call_api(
1811
+ *_param,
1812
+ _request_timeout=_request_timeout
1813
+ )
1814
+ await response_data.read()
1815
+ return self.api_client.response_deserialize(
1816
+ response_data=response_data,
1817
+ response_types_map=_response_types_map,
1818
+ ).data
1819
+
1820
+
1821
+ @validate_call
1822
+ async def put_hint_organizations_organization_id_hints_hint_id_put_with_http_info(
1823
+ self,
1824
+ organization_id: StrictInt,
1825
+ hint_id: StrictInt,
1826
+ hint: Hint,
1827
+ _request_timeout: Union[
1828
+ None,
1829
+ Annotated[StrictFloat, Field(gt=0)],
1830
+ Tuple[
1831
+ Annotated[StrictFloat, Field(gt=0)],
1832
+ Annotated[StrictFloat, Field(gt=0)]
1833
+ ]
1834
+ ] = None,
1835
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1836
+ _content_type: Optional[StrictStr] = None,
1837
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1838
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1839
+ ) -> ApiResponse[SuccessAndMessageResponse]:
1840
+ """Put Hint
1841
+
1842
+ Update hint attributes
1843
+
1844
+ :param organization_id: (required)
1845
+ :type organization_id: int
1846
+ :param hint_id: (required)
1847
+ :type hint_id: int
1848
+ :param hint: (required)
1849
+ :type hint: Hint
1850
+ :param _request_timeout: timeout setting for this request. If one
1851
+ number provided, it will be total request
1852
+ timeout. It can also be a pair (tuple) of
1853
+ (connection, read) timeouts.
1854
+ :type _request_timeout: int, tuple(int, int), optional
1855
+ :param _request_auth: set to override the auth_settings for an a single
1856
+ request; this effectively ignores the
1857
+ authentication in the spec for a single request.
1858
+ :type _request_auth: dict, optional
1859
+ :param _content_type: force content-type for the request.
1860
+ :type _content_type: str, Optional
1861
+ :param _headers: set to override the headers for a single
1862
+ request; this effectively ignores the headers
1863
+ in the spec for a single request.
1864
+ :type _headers: dict, optional
1865
+ :param _host_index: set to override the host_index for a single
1866
+ request; this effectively ignores the host_index
1867
+ in the spec for a single request.
1868
+ :type _host_index: int, optional
1869
+ :return: Returns the result object.
1870
+ """ # noqa: E501
1871
+
1872
+ _param = self._put_hint_organizations_organization_id_hints_hint_id_put_serialize(
1873
+ organization_id=organization_id,
1874
+ hint_id=hint_id,
1875
+ hint=hint,
1876
+ _request_auth=_request_auth,
1877
+ _content_type=_content_type,
1878
+ _headers=_headers,
1879
+ _host_index=_host_index
1880
+ )
1881
+
1882
+ _response_types_map: Dict[str, Optional[str]] = {
1883
+ '200': "SuccessAndMessageResponse",
1884
+ '422': "HTTPValidationError",
1885
+ }
1886
+ response_data = await self.api_client.call_api(
1887
+ *_param,
1888
+ _request_timeout=_request_timeout
1889
+ )
1890
+ await response_data.read()
1891
+ return self.api_client.response_deserialize(
1892
+ response_data=response_data,
1893
+ response_types_map=_response_types_map,
1894
+ )
1895
+
1896
+
1897
+ @validate_call
1898
+ async def put_hint_organizations_organization_id_hints_hint_id_put_without_preload_content(
1899
+ self,
1900
+ organization_id: StrictInt,
1901
+ hint_id: StrictInt,
1902
+ hint: Hint,
1903
+ _request_timeout: Union[
1904
+ None,
1905
+ Annotated[StrictFloat, Field(gt=0)],
1906
+ Tuple[
1907
+ Annotated[StrictFloat, Field(gt=0)],
1908
+ Annotated[StrictFloat, Field(gt=0)]
1909
+ ]
1910
+ ] = None,
1911
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1912
+ _content_type: Optional[StrictStr] = None,
1913
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1914
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1915
+ ) -> RESTResponseType:
1916
+ """Put Hint
1917
+
1918
+ Update hint attributes
1919
+
1920
+ :param organization_id: (required)
1921
+ :type organization_id: int
1922
+ :param hint_id: (required)
1923
+ :type hint_id: int
1924
+ :param hint: (required)
1925
+ :type hint: Hint
1926
+ :param _request_timeout: timeout setting for this request. If one
1927
+ number provided, it will be total request
1928
+ timeout. It can also be a pair (tuple) of
1929
+ (connection, read) timeouts.
1930
+ :type _request_timeout: int, tuple(int, int), optional
1931
+ :param _request_auth: set to override the auth_settings for an a single
1932
+ request; this effectively ignores the
1933
+ authentication in the spec for a single request.
1934
+ :type _request_auth: dict, optional
1935
+ :param _content_type: force content-type for the request.
1936
+ :type _content_type: str, Optional
1937
+ :param _headers: set to override the headers for a single
1938
+ request; this effectively ignores the headers
1939
+ in the spec for a single request.
1940
+ :type _headers: dict, optional
1941
+ :param _host_index: set to override the host_index for a single
1942
+ request; this effectively ignores the host_index
1943
+ in the spec for a single request.
1944
+ :type _host_index: int, optional
1945
+ :return: Returns the result object.
1946
+ """ # noqa: E501
1947
+
1948
+ _param = self._put_hint_organizations_organization_id_hints_hint_id_put_serialize(
1949
+ organization_id=organization_id,
1950
+ hint_id=hint_id,
1951
+ hint=hint,
1952
+ _request_auth=_request_auth,
1953
+ _content_type=_content_type,
1954
+ _headers=_headers,
1955
+ _host_index=_host_index
1956
+ )
1957
+
1958
+ _response_types_map: Dict[str, Optional[str]] = {
1959
+ '200': "SuccessAndMessageResponse",
1960
+ '422': "HTTPValidationError",
1961
+ }
1962
+ response_data = await self.api_client.call_api(
1963
+ *_param,
1964
+ _request_timeout=_request_timeout
1965
+ )
1966
+ return response_data.response
1967
+
1968
+
1969
+ def _put_hint_organizations_organization_id_hints_hint_id_put_serialize(
1970
+ self,
1971
+ organization_id,
1972
+ hint_id,
1973
+ hint,
1974
+ _request_auth,
1975
+ _content_type,
1976
+ _headers,
1977
+ _host_index,
1978
+ ) -> RequestSerialized:
1979
+
1980
+ _host = None
1981
+
1982
+ _collection_formats: Dict[str, str] = {
1983
+ }
1984
+
1985
+ _path_params: Dict[str, str] = {}
1986
+ _query_params: List[Tuple[str, str]] = []
1987
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1988
+ _form_params: List[Tuple[str, str]] = []
1989
+ _files: Dict[
1990
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1991
+ ] = {}
1992
+ _body_params: Optional[bytes] = None
1993
+
1994
+ # process the path parameters
1995
+ if organization_id is not None:
1996
+ _path_params['organization_id'] = organization_id
1997
+ if hint_id is not None:
1998
+ _path_params['hint_id'] = hint_id
1999
+ # process the query parameters
2000
+ # process the header parameters
2001
+ # process the form parameters
2002
+ # process the body parameter
2003
+ if hint is not None:
2004
+ _body_params = hint
2005
+
2006
+
2007
+ # set the HTTP header `Accept`
2008
+ if 'Accept' not in _header_params:
2009
+ _header_params['Accept'] = self.api_client.select_header_accept(
2010
+ [
2011
+ 'application/json'
2012
+ ]
2013
+ )
2014
+
2015
+ # set the HTTP header `Content-Type`
2016
+ if _content_type:
2017
+ _header_params['Content-Type'] = _content_type
2018
+ else:
2019
+ _default_content_type = (
2020
+ self.api_client.select_header_content_type(
2021
+ [
2022
+ 'application/json'
2023
+ ]
2024
+ )
2025
+ )
2026
+ if _default_content_type is not None:
2027
+ _header_params['Content-Type'] = _default_content_type
2028
+
2029
+ # authentication setting
2030
+ _auth_settings: List[str] = [
2031
+ 'OpenIdConnect'
2032
+ ]
2033
+
2034
+ return self.api_client.param_serialize(
2035
+ method='PUT',
2036
+ resource_path='/organizations/{organization_id}/hints/{hint_id}',
2037
+ path_params=_path_params,
2038
+ query_params=_query_params,
2039
+ header_params=_header_params,
2040
+ body=_body_params,
2041
+ post_params=_form_params,
2042
+ files=_files,
2043
+ auth_settings=_auth_settings,
2044
+ collection_formats=_collection_formats,
2045
+ _host=_host,
2046
+ _request_auth=_request_auth
2047
+ )
2048
+
2049
+