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.
- audithub_sdk/__init__.py +410 -0
- audithub_sdk/api/__init__.py +22 -0
- audithub_sdk/api/admin_api.py +6117 -0
- audithub_sdk/api/configuration_api.py +520 -0
- audithub_sdk/api/custom_detectors_org_lib_api.py +1461 -0
- audithub_sdk/api/custom_detectors_std_lib_api.py +546 -0
- audithub_sdk/api/editor_languages_api.py +1383 -0
- audithub_sdk/api/generic_api.py +1275 -0
- audithub_sdk/api/hints_org_lib_api.py +2049 -0
- audithub_sdk/api/hints_std_lib_api.py +546 -0
- audithub_sdk/api/issues_api.py +2742 -0
- audithub_sdk/api/organizations_api.py +12148 -0
- audithub_sdk/api/projects_api.py +7069 -0
- audithub_sdk/api/subscriptions_api.py +1490 -0
- audithub_sdk/api/tasks_api.py +4276 -0
- audithub_sdk/api/tools_api.py +2298 -0
- audithub_sdk/api/users_api.py +2657 -0
- audithub_sdk/api/v_specs_org_lib_api.py +1461 -0
- audithub_sdk/api/v_specs_std_lib_api.py +546 -0
- audithub_sdk/api/versions_api.py +5419 -0
- audithub_sdk/api_client.py +808 -0
- audithub_sdk/api_response.py +21 -0
- audithub_sdk/configuration.py +572 -0
- audithub_sdk/exceptions.py +218 -0
- audithub_sdk/models/__init__.py +180 -0
- audithub_sdk/models/accounting_data.py +138 -0
- audithub_sdk/models/active_organization_users.py +120 -0
- audithub_sdk/models/admin_resource_patch.py +94 -0
- audithub_sdk/models/api_blacklisted_hint.py +96 -0
- audithub_sdk/models/api_key.py +89 -0
- audithub_sdk/models/api_key_base.py +87 -0
- audithub_sdk/models/api_key_with_secret.py +91 -0
- audithub_sdk/models/application_function.py +97 -0
- audithub_sdk/models/archive_input.py +104 -0
- audithub_sdk/models/artifact.py +102 -0
- audithub_sdk/models/comment.py +121 -0
- audithub_sdk/models/comment_with_mutations.py +121 -0
- audithub_sdk/models/container_resources.py +93 -0
- audithub_sdk/models/contents_inner.py +136 -0
- audithub_sdk/models/custom_detector.py +101 -0
- audithub_sdk/models/custom_detector_from_organization_library.py +99 -0
- audithub_sdk/models/custom_detector_from_standard_library.py +108 -0
- audithub_sdk/models/custom_detector_from_version.py +99 -0
- audithub_sdk/models/custom_detector_with_id.py +103 -0
- audithub_sdk/models/data.py +134 -0
- audithub_sdk/models/defi_vanguard_v2_input.py +93 -0
- audithub_sdk/models/defi_vanguard_v2_parameters.py +132 -0
- audithub_sdk/models/directory.py +111 -0
- audithub_sdk/models/editor_language.py +99 -0
- audithub_sdk/models/editor_language_with_id.py +101 -0
- audithub_sdk/models/effective_user_access_restriction.py +94 -0
- audithub_sdk/models/env_var.py +89 -0
- audithub_sdk/models/extra_function_arguments.py +107 -0
- audithub_sdk/models/favorite_project_assignment.py +87 -0
- audithub_sdk/models/file.py +101 -0
- audithub_sdk/models/file_thread_subject.py +103 -0
- audithub_sdk/models/finding_action.py +101 -0
- audithub_sdk/models/finding_action_base.py +96 -0
- audithub_sdk/models/finding_reference.py +91 -0
- audithub_sdk/models/finding_thread_subject.py +103 -0
- audithub_sdk/models/fio_data.py +113 -0
- audithub_sdk/models/fork_network_public.py +89 -0
- audithub_sdk/models/fuzzing_blacklist_entry.py +89 -0
- audithub_sdk/models/git_input.py +113 -0
- audithub_sdk/models/hint.py +101 -0
- audithub_sdk/models/hint_ad_hoc.py +113 -0
- audithub_sdk/models/hint_from_organization_library.py +99 -0
- audithub_sdk/models/hint_from_standard_library.py +108 -0
- audithub_sdk/models/hint_from_version.py +99 -0
- audithub_sdk/models/hint_with_id.py +103 -0
- audithub_sdk/models/http_validation_error.py +95 -0
- audithub_sdk/models/id_and_message_response.py +89 -0
- audithub_sdk/models/included_user_info.py +87 -0
- audithub_sdk/models/input_info.py +134 -0
- audithub_sdk/models/invitation.py +128 -0
- audithub_sdk/models/invitation_patch.py +94 -0
- audithub_sdk/models/invited_user.py +101 -0
- audithub_sdk/models/issue.py +138 -0
- audithub_sdk/models/issue_action.py +93 -0
- audithub_sdk/models/issue_batch_announce.py +88 -0
- audithub_sdk/models/issue_complete.py +167 -0
- audithub_sdk/models/issue_configuration_options.py +125 -0
- audithub_sdk/models/issue_details.py +110 -0
- audithub_sdk/models/issue_for_list.py +118 -0
- audithub_sdk/models/issue_impact.py +89 -0
- audithub_sdk/models/issue_info_base_complete.py +126 -0
- audithub_sdk/models/issue_info_editable.py +142 -0
- audithub_sdk/models/issue_likelihood.py +89 -0
- audithub_sdk/models/issue_patch.py +103 -0
- audithub_sdk/models/issue_resolution.py +100 -0
- audithub_sdk/models/issue_severity.py +89 -0
- audithub_sdk/models/issue_state_transition_function.py +110 -0
- audithub_sdk/models/issue_status.py +91 -0
- audithub_sdk/models/issue_status_transition.py +104 -0
- audithub_sdk/models/issue_thread_subject.py +99 -0
- audithub_sdk/models/issue_type.py +91 -0
- audithub_sdk/models/issue_type_info.py +87 -0
- audithub_sdk/models/machine_info.py +109 -0
- audithub_sdk/models/model_tool_input.py +102 -0
- audithub_sdk/models/model_tool_phase_parameters.py +169 -0
- audithub_sdk/models/new_invitation.py +103 -0
- audithub_sdk/models/new_organization.py +101 -0
- audithub_sdk/models/new_organization_package.py +132 -0
- audithub_sdk/models/new_organization_subscription.py +125 -0
- audithub_sdk/models/npm_project_dependency.py +103 -0
- audithub_sdk/models/onboarding_request.py +113 -0
- audithub_sdk/models/or_ca_input.py +134 -0
- audithub_sdk/models/or_ca_parameters.py +149 -0
- audithub_sdk/models/orca_value.py +138 -0
- audithub_sdk/models/organization.py +108 -0
- audithub_sdk/models/organization_access_restriction.py +101 -0
- audithub_sdk/models/organization_active_quota.py +104 -0
- audithub_sdk/models/organization_admin.py +110 -0
- audithub_sdk/models/organization_consumption.py +104 -0
- audithub_sdk/models/organization_quota.py +96 -0
- audithub_sdk/models/organization_subscription.py +135 -0
- audithub_sdk/models/package_data.py +140 -0
- audithub_sdk/models/package_subscription.py +103 -0
- audithub_sdk/models/patch_user.py +108 -0
- audithub_sdk/models/pending_finding_actions.py +99 -0
- audithub_sdk/models/picus_input.py +93 -0
- audithub_sdk/models/picus_parameters.py +111 -0
- audithub_sdk/models/picus_v2_input.py +93 -0
- audithub_sdk/models/picus_v2_parameters.py +195 -0
- audithub_sdk/models/project.py +200 -0
- audithub_sdk/models/project_admin.py +206 -0
- audithub_sdk/models/project_data.py +97 -0
- audithub_sdk/models/project_dependency.py +103 -0
- audithub_sdk/models/project_git_hub_link.py +87 -0
- audithub_sdk/models/project_info_input.py +186 -0
- audithub_sdk/models/project_info_output.py +186 -0
- audithub_sdk/models/project_thread_subject.py +97 -0
- audithub_sdk/models/project_update_response.py +93 -0
- audithub_sdk/models/psa.py +96 -0
- audithub_sdk/models/psa_message.py +94 -0
- audithub_sdk/models/public_configuration.py +216 -0
- audithub_sdk/models/put_user.py +91 -0
- audithub_sdk/models/registered_user.py +94 -0
- audithub_sdk/models/resource_patch.py +94 -0
- audithub_sdk/models/resources.py +87 -0
- 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
- 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
- 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
- audithub_sdk/models/security_tool.py +89 -0
- audithub_sdk/models/self_onboard_request.py +94 -0
- audithub_sdk/models/source_reference.py +103 -0
- audithub_sdk/models/step_definition.py +91 -0
- audithub_sdk/models/step_resources.py +103 -0
- audithub_sdk/models/subject.py +168 -0
- audithub_sdk/models/success_and_message_response.py +93 -0
- audithub_sdk/models/task.py +184 -0
- audithub_sdk/models/task_admin.py +144 -0
- audithub_sdk/models/task_creation.py +89 -0
- audithub_sdk/models/task_fio_data.py +97 -0
- audithub_sdk/models/task_patch.py +94 -0
- audithub_sdk/models/task_resources.py +103 -0
- audithub_sdk/models/task_status.py +94 -0
- audithub_sdk/models/task_step.py +145 -0
- audithub_sdk/models/temp_version.py +93 -0
- audithub_sdk/models/thread.py +146 -0
- audithub_sdk/models/thread_comment.py +87 -0
- audithub_sdk/models/thread_patch.py +101 -0
- audithub_sdk/models/user.py +106 -0
- audithub_sdk/models/user_access_restriction.py +108 -0
- audithub_sdk/models/user_for_admin.py +108 -0
- audithub_sdk/models/user_group.py +89 -0
- audithub_sdk/models/user_information.py +89 -0
- audithub_sdk/models/user_organization_setting.py +89 -0
- audithub_sdk/models/user_patch.py +103 -0
- audithub_sdk/models/user_project_setting.py +89 -0
- audithub_sdk/models/user_thread_setting.py +89 -0
- audithub_sdk/models/user_to_organization_assignment.py +87 -0
- audithub_sdk/models/v_spec.py +101 -0
- audithub_sdk/models/v_spec_ad_hoc.py +113 -0
- audithub_sdk/models/v_spec_from_organization_library.py +99 -0
- audithub_sdk/models/v_spec_from_standard_library.py +108 -0
- audithub_sdk/models/v_spec_from_version.py +99 -0
- audithub_sdk/models/v_spec_with_id.py +103 -0
- audithub_sdk/models/validation_error.py +108 -0
- audithub_sdk/models/vanguard_detector.py +91 -0
- audithub_sdk/models/version.py +134 -0
- audithub_sdk/models/version_admin.py +142 -0
- audithub_sdk/models/version_data.py +103 -0
- audithub_sdk/models/version_patch.py +120 -0
- audithub_sdk/models/version_resources.py +103 -0
- audithub_sdk/models/zk_vanguard_input.py +93 -0
- audithub_sdk/models/zk_vanguard_parameters.py +108 -0
- audithub_sdk/models/zk_vanguard_v2_input.py +93 -0
- audithub_sdk/models/zk_vanguard_v2_parameters.py +108 -0
- audithub_sdk/py.typed +0 -0
- audithub_sdk/rest.py +199 -0
- audithub_sdk-0.1.0.dist-info/METADATA +129 -0
- audithub_sdk-0.1.0.dist-info/RECORD +197 -0
- audithub_sdk-0.1.0.dist-info/WHEEL +5 -0
- audithub_sdk-0.1.0.dist-info/top_level.txt +2 -0
- audithub_sdk_ext/__init__.py +11 -0
- audithub_sdk_ext/auth.py +207 -0
|
@@ -0,0 +1,2298 @@
|
|
|
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 Field, StrictInt
|
|
19
|
+
from typing_extensions import Annotated
|
|
20
|
+
from audithub_sdk.models.defi_vanguard_v2_input import DefiVanguardV2Input
|
|
21
|
+
from audithub_sdk.models.model_tool_input import ModelToolInput
|
|
22
|
+
from audithub_sdk.models.or_ca_input import OrCaInput
|
|
23
|
+
from audithub_sdk.models.picus_input import PicusInput
|
|
24
|
+
from audithub_sdk.models.picus_v2_input import PicusV2Input
|
|
25
|
+
from audithub_sdk.models.task_creation import TaskCreation
|
|
26
|
+
from audithub_sdk.models.zk_vanguard_input import ZKVanguardInput
|
|
27
|
+
from audithub_sdk.models.zk_vanguard_v2_input import ZKVanguardV2Input
|
|
28
|
+
|
|
29
|
+
from audithub_sdk.api_client import ApiClient, RequestSerialized
|
|
30
|
+
from audithub_sdk.api_response import ApiResponse
|
|
31
|
+
from audithub_sdk.rest import RESTResponseType
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ToolsApi:
|
|
35
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
36
|
+
Ref: https://openapi-generator.tech
|
|
37
|
+
|
|
38
|
+
Do not edit the class manually.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def __init__(self, api_client=None) -> None:
|
|
42
|
+
if api_client is None:
|
|
43
|
+
api_client = ApiClient.get_default()
|
|
44
|
+
self.api_client = api_client
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@validate_call
|
|
48
|
+
async def post_tool_model_organizations_organization_id_projects_project_id_versions_version_id_tools_model_tool_post(
|
|
49
|
+
self,
|
|
50
|
+
organization_id: StrictInt,
|
|
51
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
52
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
53
|
+
model_tool_input: ModelToolInput,
|
|
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
|
+
) -> TaskCreation:
|
|
67
|
+
"""Post Tool Model
|
|
68
|
+
|
|
69
|
+
Post a task for the model tool
|
|
70
|
+
|
|
71
|
+
:param organization_id: (required)
|
|
72
|
+
:type organization_id: int
|
|
73
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
74
|
+
:type project_id: int
|
|
75
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
76
|
+
:type version_id: int
|
|
77
|
+
:param model_tool_input: (required)
|
|
78
|
+
:type model_tool_input: ModelToolInput
|
|
79
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
80
|
+
number provided, it will be total request
|
|
81
|
+
timeout. It can also be a pair (tuple) of
|
|
82
|
+
(connection, read) timeouts.
|
|
83
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
84
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
85
|
+
request; this effectively ignores the
|
|
86
|
+
authentication in the spec for a single request.
|
|
87
|
+
:type _request_auth: dict, optional
|
|
88
|
+
:param _content_type: force content-type for the request.
|
|
89
|
+
:type _content_type: str, Optional
|
|
90
|
+
:param _headers: set to override the headers for a single
|
|
91
|
+
request; this effectively ignores the headers
|
|
92
|
+
in the spec for a single request.
|
|
93
|
+
:type _headers: dict, optional
|
|
94
|
+
:param _host_index: set to override the host_index for a single
|
|
95
|
+
request; this effectively ignores the host_index
|
|
96
|
+
in the spec for a single request.
|
|
97
|
+
:type _host_index: int, optional
|
|
98
|
+
:return: Returns the result object.
|
|
99
|
+
""" # noqa: E501
|
|
100
|
+
|
|
101
|
+
_param = self._post_tool_model_organizations_organization_id_projects_project_id_versions_version_id_tools_model_tool_post_serialize(
|
|
102
|
+
organization_id=organization_id,
|
|
103
|
+
project_id=project_id,
|
|
104
|
+
version_id=version_id,
|
|
105
|
+
model_tool_input=model_tool_input,
|
|
106
|
+
_request_auth=_request_auth,
|
|
107
|
+
_content_type=_content_type,
|
|
108
|
+
_headers=_headers,
|
|
109
|
+
_host_index=_host_index
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
113
|
+
'200': "TaskCreation",
|
|
114
|
+
'422': "HTTPValidationError",
|
|
115
|
+
}
|
|
116
|
+
response_data = await self.api_client.call_api(
|
|
117
|
+
*_param,
|
|
118
|
+
_request_timeout=_request_timeout
|
|
119
|
+
)
|
|
120
|
+
await response_data.read()
|
|
121
|
+
return self.api_client.response_deserialize(
|
|
122
|
+
response_data=response_data,
|
|
123
|
+
response_types_map=_response_types_map,
|
|
124
|
+
).data
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
@validate_call
|
|
128
|
+
async def post_tool_model_organizations_organization_id_projects_project_id_versions_version_id_tools_model_tool_post_with_http_info(
|
|
129
|
+
self,
|
|
130
|
+
organization_id: StrictInt,
|
|
131
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
132
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
133
|
+
model_tool_input: ModelToolInput,
|
|
134
|
+
_request_timeout: Union[
|
|
135
|
+
None,
|
|
136
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
137
|
+
Tuple[
|
|
138
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
139
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
140
|
+
]
|
|
141
|
+
] = None,
|
|
142
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
143
|
+
_content_type: Optional[StrictStr] = None,
|
|
144
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
145
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
146
|
+
) -> ApiResponse[TaskCreation]:
|
|
147
|
+
"""Post Tool Model
|
|
148
|
+
|
|
149
|
+
Post a task for the model tool
|
|
150
|
+
|
|
151
|
+
:param organization_id: (required)
|
|
152
|
+
:type organization_id: int
|
|
153
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
154
|
+
:type project_id: int
|
|
155
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
156
|
+
:type version_id: int
|
|
157
|
+
:param model_tool_input: (required)
|
|
158
|
+
:type model_tool_input: ModelToolInput
|
|
159
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
160
|
+
number provided, it will be total request
|
|
161
|
+
timeout. It can also be a pair (tuple) of
|
|
162
|
+
(connection, read) timeouts.
|
|
163
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
164
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
165
|
+
request; this effectively ignores the
|
|
166
|
+
authentication in the spec for a single request.
|
|
167
|
+
:type _request_auth: dict, optional
|
|
168
|
+
:param _content_type: force content-type for the request.
|
|
169
|
+
:type _content_type: str, Optional
|
|
170
|
+
:param _headers: set to override the headers for a single
|
|
171
|
+
request; this effectively ignores the headers
|
|
172
|
+
in the spec for a single request.
|
|
173
|
+
:type _headers: dict, optional
|
|
174
|
+
:param _host_index: set to override the host_index for a single
|
|
175
|
+
request; this effectively ignores the host_index
|
|
176
|
+
in the spec for a single request.
|
|
177
|
+
:type _host_index: int, optional
|
|
178
|
+
:return: Returns the result object.
|
|
179
|
+
""" # noqa: E501
|
|
180
|
+
|
|
181
|
+
_param = self._post_tool_model_organizations_organization_id_projects_project_id_versions_version_id_tools_model_tool_post_serialize(
|
|
182
|
+
organization_id=organization_id,
|
|
183
|
+
project_id=project_id,
|
|
184
|
+
version_id=version_id,
|
|
185
|
+
model_tool_input=model_tool_input,
|
|
186
|
+
_request_auth=_request_auth,
|
|
187
|
+
_content_type=_content_type,
|
|
188
|
+
_headers=_headers,
|
|
189
|
+
_host_index=_host_index
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
193
|
+
'200': "TaskCreation",
|
|
194
|
+
'422': "HTTPValidationError",
|
|
195
|
+
}
|
|
196
|
+
response_data = await self.api_client.call_api(
|
|
197
|
+
*_param,
|
|
198
|
+
_request_timeout=_request_timeout
|
|
199
|
+
)
|
|
200
|
+
await response_data.read()
|
|
201
|
+
return self.api_client.response_deserialize(
|
|
202
|
+
response_data=response_data,
|
|
203
|
+
response_types_map=_response_types_map,
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
@validate_call
|
|
208
|
+
async def post_tool_model_organizations_organization_id_projects_project_id_versions_version_id_tools_model_tool_post_without_preload_content(
|
|
209
|
+
self,
|
|
210
|
+
organization_id: StrictInt,
|
|
211
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
212
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
213
|
+
model_tool_input: ModelToolInput,
|
|
214
|
+
_request_timeout: Union[
|
|
215
|
+
None,
|
|
216
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
217
|
+
Tuple[
|
|
218
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
219
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
220
|
+
]
|
|
221
|
+
] = None,
|
|
222
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
223
|
+
_content_type: Optional[StrictStr] = None,
|
|
224
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
225
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
226
|
+
) -> RESTResponseType:
|
|
227
|
+
"""Post Tool Model
|
|
228
|
+
|
|
229
|
+
Post a task for the model tool
|
|
230
|
+
|
|
231
|
+
:param organization_id: (required)
|
|
232
|
+
:type organization_id: int
|
|
233
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
234
|
+
:type project_id: int
|
|
235
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
236
|
+
:type version_id: int
|
|
237
|
+
:param model_tool_input: (required)
|
|
238
|
+
:type model_tool_input: ModelToolInput
|
|
239
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
240
|
+
number provided, it will be total request
|
|
241
|
+
timeout. It can also be a pair (tuple) of
|
|
242
|
+
(connection, read) timeouts.
|
|
243
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
244
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
245
|
+
request; this effectively ignores the
|
|
246
|
+
authentication in the spec for a single request.
|
|
247
|
+
:type _request_auth: dict, optional
|
|
248
|
+
:param _content_type: force content-type for the request.
|
|
249
|
+
:type _content_type: str, Optional
|
|
250
|
+
:param _headers: set to override the headers for a single
|
|
251
|
+
request; this effectively ignores the headers
|
|
252
|
+
in the spec for a single request.
|
|
253
|
+
:type _headers: dict, optional
|
|
254
|
+
:param _host_index: set to override the host_index for a single
|
|
255
|
+
request; this effectively ignores the host_index
|
|
256
|
+
in the spec for a single request.
|
|
257
|
+
:type _host_index: int, optional
|
|
258
|
+
:return: Returns the result object.
|
|
259
|
+
""" # noqa: E501
|
|
260
|
+
|
|
261
|
+
_param = self._post_tool_model_organizations_organization_id_projects_project_id_versions_version_id_tools_model_tool_post_serialize(
|
|
262
|
+
organization_id=organization_id,
|
|
263
|
+
project_id=project_id,
|
|
264
|
+
version_id=version_id,
|
|
265
|
+
model_tool_input=model_tool_input,
|
|
266
|
+
_request_auth=_request_auth,
|
|
267
|
+
_content_type=_content_type,
|
|
268
|
+
_headers=_headers,
|
|
269
|
+
_host_index=_host_index
|
|
270
|
+
)
|
|
271
|
+
|
|
272
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
273
|
+
'200': "TaskCreation",
|
|
274
|
+
'422': "HTTPValidationError",
|
|
275
|
+
}
|
|
276
|
+
response_data = await self.api_client.call_api(
|
|
277
|
+
*_param,
|
|
278
|
+
_request_timeout=_request_timeout
|
|
279
|
+
)
|
|
280
|
+
return response_data.response
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
def _post_tool_model_organizations_organization_id_projects_project_id_versions_version_id_tools_model_tool_post_serialize(
|
|
284
|
+
self,
|
|
285
|
+
organization_id,
|
|
286
|
+
project_id,
|
|
287
|
+
version_id,
|
|
288
|
+
model_tool_input,
|
|
289
|
+
_request_auth,
|
|
290
|
+
_content_type,
|
|
291
|
+
_headers,
|
|
292
|
+
_host_index,
|
|
293
|
+
) -> RequestSerialized:
|
|
294
|
+
|
|
295
|
+
_host = None
|
|
296
|
+
|
|
297
|
+
_collection_formats: Dict[str, str] = {
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
_path_params: Dict[str, str] = {}
|
|
301
|
+
_query_params: List[Tuple[str, str]] = []
|
|
302
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
303
|
+
_form_params: List[Tuple[str, str]] = []
|
|
304
|
+
_files: Dict[
|
|
305
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
306
|
+
] = {}
|
|
307
|
+
_body_params: Optional[bytes] = None
|
|
308
|
+
|
|
309
|
+
# process the path parameters
|
|
310
|
+
if organization_id is not None:
|
|
311
|
+
_path_params['organization_id'] = organization_id
|
|
312
|
+
if project_id is not None:
|
|
313
|
+
_path_params['project_id'] = project_id
|
|
314
|
+
if version_id is not None:
|
|
315
|
+
_path_params['version_id'] = version_id
|
|
316
|
+
# process the query parameters
|
|
317
|
+
# process the header parameters
|
|
318
|
+
# process the form parameters
|
|
319
|
+
# process the body parameter
|
|
320
|
+
if model_tool_input is not None:
|
|
321
|
+
_body_params = model_tool_input
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
# set the HTTP header `Accept`
|
|
325
|
+
if 'Accept' not in _header_params:
|
|
326
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
327
|
+
[
|
|
328
|
+
'application/json'
|
|
329
|
+
]
|
|
330
|
+
)
|
|
331
|
+
|
|
332
|
+
# set the HTTP header `Content-Type`
|
|
333
|
+
if _content_type:
|
|
334
|
+
_header_params['Content-Type'] = _content_type
|
|
335
|
+
else:
|
|
336
|
+
_default_content_type = (
|
|
337
|
+
self.api_client.select_header_content_type(
|
|
338
|
+
[
|
|
339
|
+
'application/json'
|
|
340
|
+
]
|
|
341
|
+
)
|
|
342
|
+
)
|
|
343
|
+
if _default_content_type is not None:
|
|
344
|
+
_header_params['Content-Type'] = _default_content_type
|
|
345
|
+
|
|
346
|
+
# authentication setting
|
|
347
|
+
_auth_settings: List[str] = [
|
|
348
|
+
'OpenIdConnect'
|
|
349
|
+
]
|
|
350
|
+
|
|
351
|
+
return self.api_client.param_serialize(
|
|
352
|
+
method='POST',
|
|
353
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/versions/{version_id}/tools/model_tool',
|
|
354
|
+
path_params=_path_params,
|
|
355
|
+
query_params=_query_params,
|
|
356
|
+
header_params=_header_params,
|
|
357
|
+
body=_body_params,
|
|
358
|
+
post_params=_form_params,
|
|
359
|
+
files=_files,
|
|
360
|
+
auth_settings=_auth_settings,
|
|
361
|
+
collection_formats=_collection_formats,
|
|
362
|
+
_host=_host,
|
|
363
|
+
_request_auth=_request_auth
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
@validate_call
|
|
370
|
+
async def post_tool_orca_organizations_organization_id_projects_project_id_versions_version_id_tools_orca_post(
|
|
371
|
+
self,
|
|
372
|
+
organization_id: StrictInt,
|
|
373
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
374
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
375
|
+
or_ca_input: OrCaInput,
|
|
376
|
+
_request_timeout: Union[
|
|
377
|
+
None,
|
|
378
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
379
|
+
Tuple[
|
|
380
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
381
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
382
|
+
]
|
|
383
|
+
] = None,
|
|
384
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
385
|
+
_content_type: Optional[StrictStr] = None,
|
|
386
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
387
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
388
|
+
) -> TaskCreation:
|
|
389
|
+
"""Post Tool Orca
|
|
390
|
+
|
|
391
|
+
Post a task for the OrCa fuzz testing tool
|
|
392
|
+
|
|
393
|
+
:param organization_id: (required)
|
|
394
|
+
:type organization_id: int
|
|
395
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
396
|
+
:type project_id: int
|
|
397
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
398
|
+
:type version_id: int
|
|
399
|
+
:param or_ca_input: (required)
|
|
400
|
+
:type or_ca_input: OrCaInput
|
|
401
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
402
|
+
number provided, it will be total request
|
|
403
|
+
timeout. It can also be a pair (tuple) of
|
|
404
|
+
(connection, read) timeouts.
|
|
405
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
406
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
407
|
+
request; this effectively ignores the
|
|
408
|
+
authentication in the spec for a single request.
|
|
409
|
+
:type _request_auth: dict, optional
|
|
410
|
+
:param _content_type: force content-type for the request.
|
|
411
|
+
:type _content_type: str, Optional
|
|
412
|
+
:param _headers: set to override the headers for a single
|
|
413
|
+
request; this effectively ignores the headers
|
|
414
|
+
in the spec for a single request.
|
|
415
|
+
:type _headers: dict, optional
|
|
416
|
+
:param _host_index: set to override the host_index for a single
|
|
417
|
+
request; this effectively ignores the host_index
|
|
418
|
+
in the spec for a single request.
|
|
419
|
+
:type _host_index: int, optional
|
|
420
|
+
:return: Returns the result object.
|
|
421
|
+
""" # noqa: E501
|
|
422
|
+
|
|
423
|
+
_param = self._post_tool_orca_organizations_organization_id_projects_project_id_versions_version_id_tools_orca_post_serialize(
|
|
424
|
+
organization_id=organization_id,
|
|
425
|
+
project_id=project_id,
|
|
426
|
+
version_id=version_id,
|
|
427
|
+
or_ca_input=or_ca_input,
|
|
428
|
+
_request_auth=_request_auth,
|
|
429
|
+
_content_type=_content_type,
|
|
430
|
+
_headers=_headers,
|
|
431
|
+
_host_index=_host_index
|
|
432
|
+
)
|
|
433
|
+
|
|
434
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
435
|
+
'200': "TaskCreation",
|
|
436
|
+
'422': "HTTPValidationError",
|
|
437
|
+
}
|
|
438
|
+
response_data = await self.api_client.call_api(
|
|
439
|
+
*_param,
|
|
440
|
+
_request_timeout=_request_timeout
|
|
441
|
+
)
|
|
442
|
+
await response_data.read()
|
|
443
|
+
return self.api_client.response_deserialize(
|
|
444
|
+
response_data=response_data,
|
|
445
|
+
response_types_map=_response_types_map,
|
|
446
|
+
).data
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
@validate_call
|
|
450
|
+
async def post_tool_orca_organizations_organization_id_projects_project_id_versions_version_id_tools_orca_post_with_http_info(
|
|
451
|
+
self,
|
|
452
|
+
organization_id: StrictInt,
|
|
453
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
454
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
455
|
+
or_ca_input: OrCaInput,
|
|
456
|
+
_request_timeout: Union[
|
|
457
|
+
None,
|
|
458
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
459
|
+
Tuple[
|
|
460
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
461
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
462
|
+
]
|
|
463
|
+
] = None,
|
|
464
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
465
|
+
_content_type: Optional[StrictStr] = None,
|
|
466
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
467
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
468
|
+
) -> ApiResponse[TaskCreation]:
|
|
469
|
+
"""Post Tool Orca
|
|
470
|
+
|
|
471
|
+
Post a task for the OrCa fuzz testing tool
|
|
472
|
+
|
|
473
|
+
:param organization_id: (required)
|
|
474
|
+
:type organization_id: int
|
|
475
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
476
|
+
:type project_id: int
|
|
477
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
478
|
+
:type version_id: int
|
|
479
|
+
:param or_ca_input: (required)
|
|
480
|
+
:type or_ca_input: OrCaInput
|
|
481
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
482
|
+
number provided, it will be total request
|
|
483
|
+
timeout. It can also be a pair (tuple) of
|
|
484
|
+
(connection, read) timeouts.
|
|
485
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
486
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
487
|
+
request; this effectively ignores the
|
|
488
|
+
authentication in the spec for a single request.
|
|
489
|
+
:type _request_auth: dict, optional
|
|
490
|
+
:param _content_type: force content-type for the request.
|
|
491
|
+
:type _content_type: str, Optional
|
|
492
|
+
:param _headers: set to override the headers for a single
|
|
493
|
+
request; this effectively ignores the headers
|
|
494
|
+
in the spec for a single request.
|
|
495
|
+
:type _headers: dict, optional
|
|
496
|
+
:param _host_index: set to override the host_index for a single
|
|
497
|
+
request; this effectively ignores the host_index
|
|
498
|
+
in the spec for a single request.
|
|
499
|
+
:type _host_index: int, optional
|
|
500
|
+
:return: Returns the result object.
|
|
501
|
+
""" # noqa: E501
|
|
502
|
+
|
|
503
|
+
_param = self._post_tool_orca_organizations_organization_id_projects_project_id_versions_version_id_tools_orca_post_serialize(
|
|
504
|
+
organization_id=organization_id,
|
|
505
|
+
project_id=project_id,
|
|
506
|
+
version_id=version_id,
|
|
507
|
+
or_ca_input=or_ca_input,
|
|
508
|
+
_request_auth=_request_auth,
|
|
509
|
+
_content_type=_content_type,
|
|
510
|
+
_headers=_headers,
|
|
511
|
+
_host_index=_host_index
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
515
|
+
'200': "TaskCreation",
|
|
516
|
+
'422': "HTTPValidationError",
|
|
517
|
+
}
|
|
518
|
+
response_data = await self.api_client.call_api(
|
|
519
|
+
*_param,
|
|
520
|
+
_request_timeout=_request_timeout
|
|
521
|
+
)
|
|
522
|
+
await response_data.read()
|
|
523
|
+
return self.api_client.response_deserialize(
|
|
524
|
+
response_data=response_data,
|
|
525
|
+
response_types_map=_response_types_map,
|
|
526
|
+
)
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
@validate_call
|
|
530
|
+
async def post_tool_orca_organizations_organization_id_projects_project_id_versions_version_id_tools_orca_post_without_preload_content(
|
|
531
|
+
self,
|
|
532
|
+
organization_id: StrictInt,
|
|
533
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
534
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
535
|
+
or_ca_input: OrCaInput,
|
|
536
|
+
_request_timeout: Union[
|
|
537
|
+
None,
|
|
538
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
539
|
+
Tuple[
|
|
540
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
541
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
542
|
+
]
|
|
543
|
+
] = None,
|
|
544
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
545
|
+
_content_type: Optional[StrictStr] = None,
|
|
546
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
547
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
548
|
+
) -> RESTResponseType:
|
|
549
|
+
"""Post Tool Orca
|
|
550
|
+
|
|
551
|
+
Post a task for the OrCa fuzz testing tool
|
|
552
|
+
|
|
553
|
+
:param organization_id: (required)
|
|
554
|
+
:type organization_id: int
|
|
555
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
556
|
+
:type project_id: int
|
|
557
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
558
|
+
:type version_id: int
|
|
559
|
+
:param or_ca_input: (required)
|
|
560
|
+
:type or_ca_input: OrCaInput
|
|
561
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
562
|
+
number provided, it will be total request
|
|
563
|
+
timeout. It can also be a pair (tuple) of
|
|
564
|
+
(connection, read) timeouts.
|
|
565
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
566
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
567
|
+
request; this effectively ignores the
|
|
568
|
+
authentication in the spec for a single request.
|
|
569
|
+
:type _request_auth: dict, optional
|
|
570
|
+
:param _content_type: force content-type for the request.
|
|
571
|
+
:type _content_type: str, Optional
|
|
572
|
+
:param _headers: set to override the headers for a single
|
|
573
|
+
request; this effectively ignores the headers
|
|
574
|
+
in the spec for a single request.
|
|
575
|
+
:type _headers: dict, optional
|
|
576
|
+
:param _host_index: set to override the host_index for a single
|
|
577
|
+
request; this effectively ignores the host_index
|
|
578
|
+
in the spec for a single request.
|
|
579
|
+
:type _host_index: int, optional
|
|
580
|
+
:return: Returns the result object.
|
|
581
|
+
""" # noqa: E501
|
|
582
|
+
|
|
583
|
+
_param = self._post_tool_orca_organizations_organization_id_projects_project_id_versions_version_id_tools_orca_post_serialize(
|
|
584
|
+
organization_id=organization_id,
|
|
585
|
+
project_id=project_id,
|
|
586
|
+
version_id=version_id,
|
|
587
|
+
or_ca_input=or_ca_input,
|
|
588
|
+
_request_auth=_request_auth,
|
|
589
|
+
_content_type=_content_type,
|
|
590
|
+
_headers=_headers,
|
|
591
|
+
_host_index=_host_index
|
|
592
|
+
)
|
|
593
|
+
|
|
594
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
595
|
+
'200': "TaskCreation",
|
|
596
|
+
'422': "HTTPValidationError",
|
|
597
|
+
}
|
|
598
|
+
response_data = await self.api_client.call_api(
|
|
599
|
+
*_param,
|
|
600
|
+
_request_timeout=_request_timeout
|
|
601
|
+
)
|
|
602
|
+
return response_data.response
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
def _post_tool_orca_organizations_organization_id_projects_project_id_versions_version_id_tools_orca_post_serialize(
|
|
606
|
+
self,
|
|
607
|
+
organization_id,
|
|
608
|
+
project_id,
|
|
609
|
+
version_id,
|
|
610
|
+
or_ca_input,
|
|
611
|
+
_request_auth,
|
|
612
|
+
_content_type,
|
|
613
|
+
_headers,
|
|
614
|
+
_host_index,
|
|
615
|
+
) -> RequestSerialized:
|
|
616
|
+
|
|
617
|
+
_host = None
|
|
618
|
+
|
|
619
|
+
_collection_formats: Dict[str, str] = {
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
_path_params: Dict[str, str] = {}
|
|
623
|
+
_query_params: List[Tuple[str, str]] = []
|
|
624
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
625
|
+
_form_params: List[Tuple[str, str]] = []
|
|
626
|
+
_files: Dict[
|
|
627
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
628
|
+
] = {}
|
|
629
|
+
_body_params: Optional[bytes] = None
|
|
630
|
+
|
|
631
|
+
# process the path parameters
|
|
632
|
+
if organization_id is not None:
|
|
633
|
+
_path_params['organization_id'] = organization_id
|
|
634
|
+
if project_id is not None:
|
|
635
|
+
_path_params['project_id'] = project_id
|
|
636
|
+
if version_id is not None:
|
|
637
|
+
_path_params['version_id'] = version_id
|
|
638
|
+
# process the query parameters
|
|
639
|
+
# process the header parameters
|
|
640
|
+
# process the form parameters
|
|
641
|
+
# process the body parameter
|
|
642
|
+
if or_ca_input is not None:
|
|
643
|
+
_body_params = or_ca_input
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
# set the HTTP header `Accept`
|
|
647
|
+
if 'Accept' not in _header_params:
|
|
648
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
649
|
+
[
|
|
650
|
+
'application/json'
|
|
651
|
+
]
|
|
652
|
+
)
|
|
653
|
+
|
|
654
|
+
# set the HTTP header `Content-Type`
|
|
655
|
+
if _content_type:
|
|
656
|
+
_header_params['Content-Type'] = _content_type
|
|
657
|
+
else:
|
|
658
|
+
_default_content_type = (
|
|
659
|
+
self.api_client.select_header_content_type(
|
|
660
|
+
[
|
|
661
|
+
'application/json'
|
|
662
|
+
]
|
|
663
|
+
)
|
|
664
|
+
)
|
|
665
|
+
if _default_content_type is not None:
|
|
666
|
+
_header_params['Content-Type'] = _default_content_type
|
|
667
|
+
|
|
668
|
+
# authentication setting
|
|
669
|
+
_auth_settings: List[str] = [
|
|
670
|
+
'OpenIdConnect'
|
|
671
|
+
]
|
|
672
|
+
|
|
673
|
+
return self.api_client.param_serialize(
|
|
674
|
+
method='POST',
|
|
675
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/versions/{version_id}/tools/orca',
|
|
676
|
+
path_params=_path_params,
|
|
677
|
+
query_params=_query_params,
|
|
678
|
+
header_params=_header_params,
|
|
679
|
+
body=_body_params,
|
|
680
|
+
post_params=_form_params,
|
|
681
|
+
files=_files,
|
|
682
|
+
auth_settings=_auth_settings,
|
|
683
|
+
collection_formats=_collection_formats,
|
|
684
|
+
_host=_host,
|
|
685
|
+
_request_auth=_request_auth
|
|
686
|
+
)
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
@validate_call
|
|
692
|
+
async def post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_post(
|
|
693
|
+
self,
|
|
694
|
+
organization_id: StrictInt,
|
|
695
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
696
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
697
|
+
picus_input: PicusInput,
|
|
698
|
+
_request_timeout: Union[
|
|
699
|
+
None,
|
|
700
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
701
|
+
Tuple[
|
|
702
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
703
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
704
|
+
]
|
|
705
|
+
] = None,
|
|
706
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
707
|
+
_content_type: Optional[StrictStr] = None,
|
|
708
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
709
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
710
|
+
) -> TaskCreation:
|
|
711
|
+
"""Post Tool Picus
|
|
712
|
+
|
|
713
|
+
Post a task for the Picus tool
|
|
714
|
+
|
|
715
|
+
:param organization_id: (required)
|
|
716
|
+
:type organization_id: int
|
|
717
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
718
|
+
:type project_id: int
|
|
719
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
720
|
+
:type version_id: int
|
|
721
|
+
:param picus_input: (required)
|
|
722
|
+
:type picus_input: PicusInput
|
|
723
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
724
|
+
number provided, it will be total request
|
|
725
|
+
timeout. It can also be a pair (tuple) of
|
|
726
|
+
(connection, read) timeouts.
|
|
727
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
728
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
729
|
+
request; this effectively ignores the
|
|
730
|
+
authentication in the spec for a single request.
|
|
731
|
+
:type _request_auth: dict, optional
|
|
732
|
+
:param _content_type: force content-type for the request.
|
|
733
|
+
:type _content_type: str, Optional
|
|
734
|
+
:param _headers: set to override the headers for a single
|
|
735
|
+
request; this effectively ignores the headers
|
|
736
|
+
in the spec for a single request.
|
|
737
|
+
:type _headers: dict, optional
|
|
738
|
+
:param _host_index: set to override the host_index for a single
|
|
739
|
+
request; this effectively ignores the host_index
|
|
740
|
+
in the spec for a single request.
|
|
741
|
+
:type _host_index: int, optional
|
|
742
|
+
:return: Returns the result object.
|
|
743
|
+
""" # noqa: E501
|
|
744
|
+
|
|
745
|
+
_param = self._post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_post_serialize(
|
|
746
|
+
organization_id=organization_id,
|
|
747
|
+
project_id=project_id,
|
|
748
|
+
version_id=version_id,
|
|
749
|
+
picus_input=picus_input,
|
|
750
|
+
_request_auth=_request_auth,
|
|
751
|
+
_content_type=_content_type,
|
|
752
|
+
_headers=_headers,
|
|
753
|
+
_host_index=_host_index
|
|
754
|
+
)
|
|
755
|
+
|
|
756
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
757
|
+
'200': "TaskCreation",
|
|
758
|
+
'422': "HTTPValidationError",
|
|
759
|
+
}
|
|
760
|
+
response_data = await self.api_client.call_api(
|
|
761
|
+
*_param,
|
|
762
|
+
_request_timeout=_request_timeout
|
|
763
|
+
)
|
|
764
|
+
await response_data.read()
|
|
765
|
+
return self.api_client.response_deserialize(
|
|
766
|
+
response_data=response_data,
|
|
767
|
+
response_types_map=_response_types_map,
|
|
768
|
+
).data
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
@validate_call
|
|
772
|
+
async def post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_post_with_http_info(
|
|
773
|
+
self,
|
|
774
|
+
organization_id: StrictInt,
|
|
775
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
776
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
777
|
+
picus_input: PicusInput,
|
|
778
|
+
_request_timeout: Union[
|
|
779
|
+
None,
|
|
780
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
781
|
+
Tuple[
|
|
782
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
783
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
784
|
+
]
|
|
785
|
+
] = None,
|
|
786
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
787
|
+
_content_type: Optional[StrictStr] = None,
|
|
788
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
789
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
790
|
+
) -> ApiResponse[TaskCreation]:
|
|
791
|
+
"""Post Tool Picus
|
|
792
|
+
|
|
793
|
+
Post a task for the Picus tool
|
|
794
|
+
|
|
795
|
+
:param organization_id: (required)
|
|
796
|
+
:type organization_id: int
|
|
797
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
798
|
+
:type project_id: int
|
|
799
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
800
|
+
:type version_id: int
|
|
801
|
+
:param picus_input: (required)
|
|
802
|
+
:type picus_input: PicusInput
|
|
803
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
804
|
+
number provided, it will be total request
|
|
805
|
+
timeout. It can also be a pair (tuple) of
|
|
806
|
+
(connection, read) timeouts.
|
|
807
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
808
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
809
|
+
request; this effectively ignores the
|
|
810
|
+
authentication in the spec for a single request.
|
|
811
|
+
:type _request_auth: dict, optional
|
|
812
|
+
:param _content_type: force content-type for the request.
|
|
813
|
+
:type _content_type: str, Optional
|
|
814
|
+
:param _headers: set to override the headers for a single
|
|
815
|
+
request; this effectively ignores the headers
|
|
816
|
+
in the spec for a single request.
|
|
817
|
+
:type _headers: dict, optional
|
|
818
|
+
:param _host_index: set to override the host_index for a single
|
|
819
|
+
request; this effectively ignores the host_index
|
|
820
|
+
in the spec for a single request.
|
|
821
|
+
:type _host_index: int, optional
|
|
822
|
+
:return: Returns the result object.
|
|
823
|
+
""" # noqa: E501
|
|
824
|
+
|
|
825
|
+
_param = self._post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_post_serialize(
|
|
826
|
+
organization_id=organization_id,
|
|
827
|
+
project_id=project_id,
|
|
828
|
+
version_id=version_id,
|
|
829
|
+
picus_input=picus_input,
|
|
830
|
+
_request_auth=_request_auth,
|
|
831
|
+
_content_type=_content_type,
|
|
832
|
+
_headers=_headers,
|
|
833
|
+
_host_index=_host_index
|
|
834
|
+
)
|
|
835
|
+
|
|
836
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
837
|
+
'200': "TaskCreation",
|
|
838
|
+
'422': "HTTPValidationError",
|
|
839
|
+
}
|
|
840
|
+
response_data = await self.api_client.call_api(
|
|
841
|
+
*_param,
|
|
842
|
+
_request_timeout=_request_timeout
|
|
843
|
+
)
|
|
844
|
+
await response_data.read()
|
|
845
|
+
return self.api_client.response_deserialize(
|
|
846
|
+
response_data=response_data,
|
|
847
|
+
response_types_map=_response_types_map,
|
|
848
|
+
)
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
@validate_call
|
|
852
|
+
async def post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_post_without_preload_content(
|
|
853
|
+
self,
|
|
854
|
+
organization_id: StrictInt,
|
|
855
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
856
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
857
|
+
picus_input: PicusInput,
|
|
858
|
+
_request_timeout: Union[
|
|
859
|
+
None,
|
|
860
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
861
|
+
Tuple[
|
|
862
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
863
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
864
|
+
]
|
|
865
|
+
] = None,
|
|
866
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
867
|
+
_content_type: Optional[StrictStr] = None,
|
|
868
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
869
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
870
|
+
) -> RESTResponseType:
|
|
871
|
+
"""Post Tool Picus
|
|
872
|
+
|
|
873
|
+
Post a task for the Picus tool
|
|
874
|
+
|
|
875
|
+
:param organization_id: (required)
|
|
876
|
+
:type organization_id: int
|
|
877
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
878
|
+
:type project_id: int
|
|
879
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
880
|
+
:type version_id: int
|
|
881
|
+
:param picus_input: (required)
|
|
882
|
+
:type picus_input: PicusInput
|
|
883
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
884
|
+
number provided, it will be total request
|
|
885
|
+
timeout. It can also be a pair (tuple) of
|
|
886
|
+
(connection, read) timeouts.
|
|
887
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
888
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
889
|
+
request; this effectively ignores the
|
|
890
|
+
authentication in the spec for a single request.
|
|
891
|
+
:type _request_auth: dict, optional
|
|
892
|
+
:param _content_type: force content-type for the request.
|
|
893
|
+
:type _content_type: str, Optional
|
|
894
|
+
:param _headers: set to override the headers for a single
|
|
895
|
+
request; this effectively ignores the headers
|
|
896
|
+
in the spec for a single request.
|
|
897
|
+
:type _headers: dict, optional
|
|
898
|
+
:param _host_index: set to override the host_index for a single
|
|
899
|
+
request; this effectively ignores the host_index
|
|
900
|
+
in the spec for a single request.
|
|
901
|
+
:type _host_index: int, optional
|
|
902
|
+
:return: Returns the result object.
|
|
903
|
+
""" # noqa: E501
|
|
904
|
+
|
|
905
|
+
_param = self._post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_post_serialize(
|
|
906
|
+
organization_id=organization_id,
|
|
907
|
+
project_id=project_id,
|
|
908
|
+
version_id=version_id,
|
|
909
|
+
picus_input=picus_input,
|
|
910
|
+
_request_auth=_request_auth,
|
|
911
|
+
_content_type=_content_type,
|
|
912
|
+
_headers=_headers,
|
|
913
|
+
_host_index=_host_index
|
|
914
|
+
)
|
|
915
|
+
|
|
916
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
917
|
+
'200': "TaskCreation",
|
|
918
|
+
'422': "HTTPValidationError",
|
|
919
|
+
}
|
|
920
|
+
response_data = await self.api_client.call_api(
|
|
921
|
+
*_param,
|
|
922
|
+
_request_timeout=_request_timeout
|
|
923
|
+
)
|
|
924
|
+
return response_data.response
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
def _post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_post_serialize(
|
|
928
|
+
self,
|
|
929
|
+
organization_id,
|
|
930
|
+
project_id,
|
|
931
|
+
version_id,
|
|
932
|
+
picus_input,
|
|
933
|
+
_request_auth,
|
|
934
|
+
_content_type,
|
|
935
|
+
_headers,
|
|
936
|
+
_host_index,
|
|
937
|
+
) -> RequestSerialized:
|
|
938
|
+
|
|
939
|
+
_host = None
|
|
940
|
+
|
|
941
|
+
_collection_formats: Dict[str, str] = {
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
_path_params: Dict[str, str] = {}
|
|
945
|
+
_query_params: List[Tuple[str, str]] = []
|
|
946
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
947
|
+
_form_params: List[Tuple[str, str]] = []
|
|
948
|
+
_files: Dict[
|
|
949
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
950
|
+
] = {}
|
|
951
|
+
_body_params: Optional[bytes] = None
|
|
952
|
+
|
|
953
|
+
# process the path parameters
|
|
954
|
+
if organization_id is not None:
|
|
955
|
+
_path_params['organization_id'] = organization_id
|
|
956
|
+
if project_id is not None:
|
|
957
|
+
_path_params['project_id'] = project_id
|
|
958
|
+
if version_id is not None:
|
|
959
|
+
_path_params['version_id'] = version_id
|
|
960
|
+
# process the query parameters
|
|
961
|
+
# process the header parameters
|
|
962
|
+
# process the form parameters
|
|
963
|
+
# process the body parameter
|
|
964
|
+
if picus_input is not None:
|
|
965
|
+
_body_params = picus_input
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
# set the HTTP header `Accept`
|
|
969
|
+
if 'Accept' not in _header_params:
|
|
970
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
971
|
+
[
|
|
972
|
+
'application/json'
|
|
973
|
+
]
|
|
974
|
+
)
|
|
975
|
+
|
|
976
|
+
# set the HTTP header `Content-Type`
|
|
977
|
+
if _content_type:
|
|
978
|
+
_header_params['Content-Type'] = _content_type
|
|
979
|
+
else:
|
|
980
|
+
_default_content_type = (
|
|
981
|
+
self.api_client.select_header_content_type(
|
|
982
|
+
[
|
|
983
|
+
'application/json'
|
|
984
|
+
]
|
|
985
|
+
)
|
|
986
|
+
)
|
|
987
|
+
if _default_content_type is not None:
|
|
988
|
+
_header_params['Content-Type'] = _default_content_type
|
|
989
|
+
|
|
990
|
+
# authentication setting
|
|
991
|
+
_auth_settings: List[str] = [
|
|
992
|
+
'OpenIdConnect'
|
|
993
|
+
]
|
|
994
|
+
|
|
995
|
+
return self.api_client.param_serialize(
|
|
996
|
+
method='POST',
|
|
997
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/versions/{version_id}/tools/picus',
|
|
998
|
+
path_params=_path_params,
|
|
999
|
+
query_params=_query_params,
|
|
1000
|
+
header_params=_header_params,
|
|
1001
|
+
body=_body_params,
|
|
1002
|
+
post_params=_form_params,
|
|
1003
|
+
files=_files,
|
|
1004
|
+
auth_settings=_auth_settings,
|
|
1005
|
+
collection_formats=_collection_formats,
|
|
1006
|
+
_host=_host,
|
|
1007
|
+
_request_auth=_request_auth
|
|
1008
|
+
)
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
@validate_call
|
|
1014
|
+
async def post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_v2_post(
|
|
1015
|
+
self,
|
|
1016
|
+
organization_id: StrictInt,
|
|
1017
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1018
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1019
|
+
picus_v2_input: PicusV2Input,
|
|
1020
|
+
_request_timeout: Union[
|
|
1021
|
+
None,
|
|
1022
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1023
|
+
Tuple[
|
|
1024
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1025
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1026
|
+
]
|
|
1027
|
+
] = None,
|
|
1028
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1029
|
+
_content_type: Optional[StrictStr] = None,
|
|
1030
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1031
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1032
|
+
) -> TaskCreation:
|
|
1033
|
+
"""Post Tool Picus
|
|
1034
|
+
|
|
1035
|
+
Post a task for the PicusV2 tool
|
|
1036
|
+
|
|
1037
|
+
:param organization_id: (required)
|
|
1038
|
+
:type organization_id: int
|
|
1039
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
1040
|
+
:type project_id: int
|
|
1041
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
1042
|
+
:type version_id: int
|
|
1043
|
+
:param picus_v2_input: (required)
|
|
1044
|
+
:type picus_v2_input: PicusV2Input
|
|
1045
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1046
|
+
number provided, it will be total request
|
|
1047
|
+
timeout. It can also be a pair (tuple) of
|
|
1048
|
+
(connection, read) timeouts.
|
|
1049
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1050
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1051
|
+
request; this effectively ignores the
|
|
1052
|
+
authentication in the spec for a single request.
|
|
1053
|
+
:type _request_auth: dict, optional
|
|
1054
|
+
:param _content_type: force content-type for the request.
|
|
1055
|
+
:type _content_type: str, Optional
|
|
1056
|
+
:param _headers: set to override the headers for a single
|
|
1057
|
+
request; this effectively ignores the headers
|
|
1058
|
+
in the spec for a single request.
|
|
1059
|
+
:type _headers: dict, optional
|
|
1060
|
+
:param _host_index: set to override the host_index for a single
|
|
1061
|
+
request; this effectively ignores the host_index
|
|
1062
|
+
in the spec for a single request.
|
|
1063
|
+
:type _host_index: int, optional
|
|
1064
|
+
:return: Returns the result object.
|
|
1065
|
+
""" # noqa: E501
|
|
1066
|
+
|
|
1067
|
+
_param = self._post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_v2_post_serialize(
|
|
1068
|
+
organization_id=organization_id,
|
|
1069
|
+
project_id=project_id,
|
|
1070
|
+
version_id=version_id,
|
|
1071
|
+
picus_v2_input=picus_v2_input,
|
|
1072
|
+
_request_auth=_request_auth,
|
|
1073
|
+
_content_type=_content_type,
|
|
1074
|
+
_headers=_headers,
|
|
1075
|
+
_host_index=_host_index
|
|
1076
|
+
)
|
|
1077
|
+
|
|
1078
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1079
|
+
'200': "TaskCreation",
|
|
1080
|
+
'422': "HTTPValidationError",
|
|
1081
|
+
}
|
|
1082
|
+
response_data = await self.api_client.call_api(
|
|
1083
|
+
*_param,
|
|
1084
|
+
_request_timeout=_request_timeout
|
|
1085
|
+
)
|
|
1086
|
+
await response_data.read()
|
|
1087
|
+
return self.api_client.response_deserialize(
|
|
1088
|
+
response_data=response_data,
|
|
1089
|
+
response_types_map=_response_types_map,
|
|
1090
|
+
).data
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
@validate_call
|
|
1094
|
+
async def post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_v2_post_with_http_info(
|
|
1095
|
+
self,
|
|
1096
|
+
organization_id: StrictInt,
|
|
1097
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1098
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1099
|
+
picus_v2_input: PicusV2Input,
|
|
1100
|
+
_request_timeout: Union[
|
|
1101
|
+
None,
|
|
1102
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1103
|
+
Tuple[
|
|
1104
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1105
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1106
|
+
]
|
|
1107
|
+
] = None,
|
|
1108
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1109
|
+
_content_type: Optional[StrictStr] = None,
|
|
1110
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1111
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1112
|
+
) -> ApiResponse[TaskCreation]:
|
|
1113
|
+
"""Post Tool Picus
|
|
1114
|
+
|
|
1115
|
+
Post a task for the PicusV2 tool
|
|
1116
|
+
|
|
1117
|
+
:param organization_id: (required)
|
|
1118
|
+
:type organization_id: int
|
|
1119
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
1120
|
+
:type project_id: int
|
|
1121
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
1122
|
+
:type version_id: int
|
|
1123
|
+
:param picus_v2_input: (required)
|
|
1124
|
+
:type picus_v2_input: PicusV2Input
|
|
1125
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1126
|
+
number provided, it will be total request
|
|
1127
|
+
timeout. It can also be a pair (tuple) of
|
|
1128
|
+
(connection, read) timeouts.
|
|
1129
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1130
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1131
|
+
request; this effectively ignores the
|
|
1132
|
+
authentication in the spec for a single request.
|
|
1133
|
+
:type _request_auth: dict, optional
|
|
1134
|
+
:param _content_type: force content-type for the request.
|
|
1135
|
+
:type _content_type: str, Optional
|
|
1136
|
+
:param _headers: set to override the headers for a single
|
|
1137
|
+
request; this effectively ignores the headers
|
|
1138
|
+
in the spec for a single request.
|
|
1139
|
+
:type _headers: dict, optional
|
|
1140
|
+
:param _host_index: set to override the host_index for a single
|
|
1141
|
+
request; this effectively ignores the host_index
|
|
1142
|
+
in the spec for a single request.
|
|
1143
|
+
:type _host_index: int, optional
|
|
1144
|
+
:return: Returns the result object.
|
|
1145
|
+
""" # noqa: E501
|
|
1146
|
+
|
|
1147
|
+
_param = self._post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_v2_post_serialize(
|
|
1148
|
+
organization_id=organization_id,
|
|
1149
|
+
project_id=project_id,
|
|
1150
|
+
version_id=version_id,
|
|
1151
|
+
picus_v2_input=picus_v2_input,
|
|
1152
|
+
_request_auth=_request_auth,
|
|
1153
|
+
_content_type=_content_type,
|
|
1154
|
+
_headers=_headers,
|
|
1155
|
+
_host_index=_host_index
|
|
1156
|
+
)
|
|
1157
|
+
|
|
1158
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1159
|
+
'200': "TaskCreation",
|
|
1160
|
+
'422': "HTTPValidationError",
|
|
1161
|
+
}
|
|
1162
|
+
response_data = await self.api_client.call_api(
|
|
1163
|
+
*_param,
|
|
1164
|
+
_request_timeout=_request_timeout
|
|
1165
|
+
)
|
|
1166
|
+
await response_data.read()
|
|
1167
|
+
return self.api_client.response_deserialize(
|
|
1168
|
+
response_data=response_data,
|
|
1169
|
+
response_types_map=_response_types_map,
|
|
1170
|
+
)
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
@validate_call
|
|
1174
|
+
async def post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_v2_post_without_preload_content(
|
|
1175
|
+
self,
|
|
1176
|
+
organization_id: StrictInt,
|
|
1177
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1178
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1179
|
+
picus_v2_input: PicusV2Input,
|
|
1180
|
+
_request_timeout: Union[
|
|
1181
|
+
None,
|
|
1182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1183
|
+
Tuple[
|
|
1184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1185
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1186
|
+
]
|
|
1187
|
+
] = None,
|
|
1188
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1189
|
+
_content_type: Optional[StrictStr] = None,
|
|
1190
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1191
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1192
|
+
) -> RESTResponseType:
|
|
1193
|
+
"""Post Tool Picus
|
|
1194
|
+
|
|
1195
|
+
Post a task for the PicusV2 tool
|
|
1196
|
+
|
|
1197
|
+
:param organization_id: (required)
|
|
1198
|
+
:type organization_id: int
|
|
1199
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
1200
|
+
:type project_id: int
|
|
1201
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
1202
|
+
:type version_id: int
|
|
1203
|
+
:param picus_v2_input: (required)
|
|
1204
|
+
:type picus_v2_input: PicusV2Input
|
|
1205
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1206
|
+
number provided, it will be total request
|
|
1207
|
+
timeout. It can also be a pair (tuple) of
|
|
1208
|
+
(connection, read) timeouts.
|
|
1209
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1210
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1211
|
+
request; this effectively ignores the
|
|
1212
|
+
authentication in the spec for a single request.
|
|
1213
|
+
:type _request_auth: dict, optional
|
|
1214
|
+
:param _content_type: force content-type for the request.
|
|
1215
|
+
:type _content_type: str, Optional
|
|
1216
|
+
:param _headers: set to override the headers for a single
|
|
1217
|
+
request; this effectively ignores the headers
|
|
1218
|
+
in the spec for a single request.
|
|
1219
|
+
:type _headers: dict, optional
|
|
1220
|
+
:param _host_index: set to override the host_index for a single
|
|
1221
|
+
request; this effectively ignores the host_index
|
|
1222
|
+
in the spec for a single request.
|
|
1223
|
+
:type _host_index: int, optional
|
|
1224
|
+
:return: Returns the result object.
|
|
1225
|
+
""" # noqa: E501
|
|
1226
|
+
|
|
1227
|
+
_param = self._post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_v2_post_serialize(
|
|
1228
|
+
organization_id=organization_id,
|
|
1229
|
+
project_id=project_id,
|
|
1230
|
+
version_id=version_id,
|
|
1231
|
+
picus_v2_input=picus_v2_input,
|
|
1232
|
+
_request_auth=_request_auth,
|
|
1233
|
+
_content_type=_content_type,
|
|
1234
|
+
_headers=_headers,
|
|
1235
|
+
_host_index=_host_index
|
|
1236
|
+
)
|
|
1237
|
+
|
|
1238
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1239
|
+
'200': "TaskCreation",
|
|
1240
|
+
'422': "HTTPValidationError",
|
|
1241
|
+
}
|
|
1242
|
+
response_data = await self.api_client.call_api(
|
|
1243
|
+
*_param,
|
|
1244
|
+
_request_timeout=_request_timeout
|
|
1245
|
+
)
|
|
1246
|
+
return response_data.response
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
def _post_tool_picus_organizations_organization_id_projects_project_id_versions_version_id_tools_picus_v2_post_serialize(
|
|
1250
|
+
self,
|
|
1251
|
+
organization_id,
|
|
1252
|
+
project_id,
|
|
1253
|
+
version_id,
|
|
1254
|
+
picus_v2_input,
|
|
1255
|
+
_request_auth,
|
|
1256
|
+
_content_type,
|
|
1257
|
+
_headers,
|
|
1258
|
+
_host_index,
|
|
1259
|
+
) -> RequestSerialized:
|
|
1260
|
+
|
|
1261
|
+
_host = None
|
|
1262
|
+
|
|
1263
|
+
_collection_formats: Dict[str, str] = {
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
_path_params: Dict[str, str] = {}
|
|
1267
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1268
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1269
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1270
|
+
_files: Dict[
|
|
1271
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1272
|
+
] = {}
|
|
1273
|
+
_body_params: Optional[bytes] = None
|
|
1274
|
+
|
|
1275
|
+
# process the path parameters
|
|
1276
|
+
if organization_id is not None:
|
|
1277
|
+
_path_params['organization_id'] = organization_id
|
|
1278
|
+
if project_id is not None:
|
|
1279
|
+
_path_params['project_id'] = project_id
|
|
1280
|
+
if version_id is not None:
|
|
1281
|
+
_path_params['version_id'] = version_id
|
|
1282
|
+
# process the query parameters
|
|
1283
|
+
# process the header parameters
|
|
1284
|
+
# process the form parameters
|
|
1285
|
+
# process the body parameter
|
|
1286
|
+
if picus_v2_input is not None:
|
|
1287
|
+
_body_params = picus_v2_input
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
# set the HTTP header `Accept`
|
|
1291
|
+
if 'Accept' not in _header_params:
|
|
1292
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1293
|
+
[
|
|
1294
|
+
'application/json'
|
|
1295
|
+
]
|
|
1296
|
+
)
|
|
1297
|
+
|
|
1298
|
+
# set the HTTP header `Content-Type`
|
|
1299
|
+
if _content_type:
|
|
1300
|
+
_header_params['Content-Type'] = _content_type
|
|
1301
|
+
else:
|
|
1302
|
+
_default_content_type = (
|
|
1303
|
+
self.api_client.select_header_content_type(
|
|
1304
|
+
[
|
|
1305
|
+
'application/json'
|
|
1306
|
+
]
|
|
1307
|
+
)
|
|
1308
|
+
)
|
|
1309
|
+
if _default_content_type is not None:
|
|
1310
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1311
|
+
|
|
1312
|
+
# authentication setting
|
|
1313
|
+
_auth_settings: List[str] = [
|
|
1314
|
+
'OpenIdConnect'
|
|
1315
|
+
]
|
|
1316
|
+
|
|
1317
|
+
return self.api_client.param_serialize(
|
|
1318
|
+
method='POST',
|
|
1319
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/versions/{version_id}/tools/picus-v2',
|
|
1320
|
+
path_params=_path_params,
|
|
1321
|
+
query_params=_query_params,
|
|
1322
|
+
header_params=_header_params,
|
|
1323
|
+
body=_body_params,
|
|
1324
|
+
post_params=_form_params,
|
|
1325
|
+
files=_files,
|
|
1326
|
+
auth_settings=_auth_settings,
|
|
1327
|
+
collection_formats=_collection_formats,
|
|
1328
|
+
_host=_host,
|
|
1329
|
+
_request_auth=_request_auth
|
|
1330
|
+
)
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
@validate_call
|
|
1336
|
+
async def post_tool_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_vanguard_v2_post(
|
|
1337
|
+
self,
|
|
1338
|
+
organization_id: StrictInt,
|
|
1339
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1340
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1341
|
+
defi_vanguard_v2_input: DefiVanguardV2Input,
|
|
1342
|
+
_request_timeout: Union[
|
|
1343
|
+
None,
|
|
1344
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1345
|
+
Tuple[
|
|
1346
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1347
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1348
|
+
]
|
|
1349
|
+
] = None,
|
|
1350
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1351
|
+
_content_type: Optional[StrictStr] = None,
|
|
1352
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1353
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1354
|
+
) -> TaskCreation:
|
|
1355
|
+
"""Post Tool Vanguard V2
|
|
1356
|
+
|
|
1357
|
+
Post a task for the DeFi Vanguard v2 static analyzer tool
|
|
1358
|
+
|
|
1359
|
+
:param organization_id: (required)
|
|
1360
|
+
:type organization_id: int
|
|
1361
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
1362
|
+
:type project_id: int
|
|
1363
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
1364
|
+
:type version_id: int
|
|
1365
|
+
:param defi_vanguard_v2_input: (required)
|
|
1366
|
+
:type defi_vanguard_v2_input: DefiVanguardV2Input
|
|
1367
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1368
|
+
number provided, it will be total request
|
|
1369
|
+
timeout. It can also be a pair (tuple) of
|
|
1370
|
+
(connection, read) timeouts.
|
|
1371
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1372
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1373
|
+
request; this effectively ignores the
|
|
1374
|
+
authentication in the spec for a single request.
|
|
1375
|
+
:type _request_auth: dict, optional
|
|
1376
|
+
:param _content_type: force content-type for the request.
|
|
1377
|
+
:type _content_type: str, Optional
|
|
1378
|
+
:param _headers: set to override the headers for a single
|
|
1379
|
+
request; this effectively ignores the headers
|
|
1380
|
+
in the spec for a single request.
|
|
1381
|
+
:type _headers: dict, optional
|
|
1382
|
+
:param _host_index: set to override the host_index for a single
|
|
1383
|
+
request; this effectively ignores the host_index
|
|
1384
|
+
in the spec for a single request.
|
|
1385
|
+
:type _host_index: int, optional
|
|
1386
|
+
:return: Returns the result object.
|
|
1387
|
+
""" # noqa: E501
|
|
1388
|
+
|
|
1389
|
+
_param = self._post_tool_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_vanguard_v2_post_serialize(
|
|
1390
|
+
organization_id=organization_id,
|
|
1391
|
+
project_id=project_id,
|
|
1392
|
+
version_id=version_id,
|
|
1393
|
+
defi_vanguard_v2_input=defi_vanguard_v2_input,
|
|
1394
|
+
_request_auth=_request_auth,
|
|
1395
|
+
_content_type=_content_type,
|
|
1396
|
+
_headers=_headers,
|
|
1397
|
+
_host_index=_host_index
|
|
1398
|
+
)
|
|
1399
|
+
|
|
1400
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1401
|
+
'200': "TaskCreation",
|
|
1402
|
+
'422': "HTTPValidationError",
|
|
1403
|
+
}
|
|
1404
|
+
response_data = await self.api_client.call_api(
|
|
1405
|
+
*_param,
|
|
1406
|
+
_request_timeout=_request_timeout
|
|
1407
|
+
)
|
|
1408
|
+
await response_data.read()
|
|
1409
|
+
return self.api_client.response_deserialize(
|
|
1410
|
+
response_data=response_data,
|
|
1411
|
+
response_types_map=_response_types_map,
|
|
1412
|
+
).data
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
@validate_call
|
|
1416
|
+
async def post_tool_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_vanguard_v2_post_with_http_info(
|
|
1417
|
+
self,
|
|
1418
|
+
organization_id: StrictInt,
|
|
1419
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1420
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1421
|
+
defi_vanguard_v2_input: DefiVanguardV2Input,
|
|
1422
|
+
_request_timeout: Union[
|
|
1423
|
+
None,
|
|
1424
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1425
|
+
Tuple[
|
|
1426
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1427
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1428
|
+
]
|
|
1429
|
+
] = None,
|
|
1430
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1431
|
+
_content_type: Optional[StrictStr] = None,
|
|
1432
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1433
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1434
|
+
) -> ApiResponse[TaskCreation]:
|
|
1435
|
+
"""Post Tool Vanguard V2
|
|
1436
|
+
|
|
1437
|
+
Post a task for the DeFi Vanguard v2 static analyzer tool
|
|
1438
|
+
|
|
1439
|
+
:param organization_id: (required)
|
|
1440
|
+
:type organization_id: int
|
|
1441
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
1442
|
+
:type project_id: int
|
|
1443
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
1444
|
+
:type version_id: int
|
|
1445
|
+
:param defi_vanguard_v2_input: (required)
|
|
1446
|
+
:type defi_vanguard_v2_input: DefiVanguardV2Input
|
|
1447
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1448
|
+
number provided, it will be total request
|
|
1449
|
+
timeout. It can also be a pair (tuple) of
|
|
1450
|
+
(connection, read) timeouts.
|
|
1451
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1452
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1453
|
+
request; this effectively ignores the
|
|
1454
|
+
authentication in the spec for a single request.
|
|
1455
|
+
:type _request_auth: dict, optional
|
|
1456
|
+
:param _content_type: force content-type for the request.
|
|
1457
|
+
:type _content_type: str, Optional
|
|
1458
|
+
:param _headers: set to override the headers for a single
|
|
1459
|
+
request; this effectively ignores the headers
|
|
1460
|
+
in the spec for a single request.
|
|
1461
|
+
:type _headers: dict, optional
|
|
1462
|
+
:param _host_index: set to override the host_index for a single
|
|
1463
|
+
request; this effectively ignores the host_index
|
|
1464
|
+
in the spec for a single request.
|
|
1465
|
+
:type _host_index: int, optional
|
|
1466
|
+
:return: Returns the result object.
|
|
1467
|
+
""" # noqa: E501
|
|
1468
|
+
|
|
1469
|
+
_param = self._post_tool_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_vanguard_v2_post_serialize(
|
|
1470
|
+
organization_id=organization_id,
|
|
1471
|
+
project_id=project_id,
|
|
1472
|
+
version_id=version_id,
|
|
1473
|
+
defi_vanguard_v2_input=defi_vanguard_v2_input,
|
|
1474
|
+
_request_auth=_request_auth,
|
|
1475
|
+
_content_type=_content_type,
|
|
1476
|
+
_headers=_headers,
|
|
1477
|
+
_host_index=_host_index
|
|
1478
|
+
)
|
|
1479
|
+
|
|
1480
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1481
|
+
'200': "TaskCreation",
|
|
1482
|
+
'422': "HTTPValidationError",
|
|
1483
|
+
}
|
|
1484
|
+
response_data = await self.api_client.call_api(
|
|
1485
|
+
*_param,
|
|
1486
|
+
_request_timeout=_request_timeout
|
|
1487
|
+
)
|
|
1488
|
+
await response_data.read()
|
|
1489
|
+
return self.api_client.response_deserialize(
|
|
1490
|
+
response_data=response_data,
|
|
1491
|
+
response_types_map=_response_types_map,
|
|
1492
|
+
)
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
@validate_call
|
|
1496
|
+
async def post_tool_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_vanguard_v2_post_without_preload_content(
|
|
1497
|
+
self,
|
|
1498
|
+
organization_id: StrictInt,
|
|
1499
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1500
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1501
|
+
defi_vanguard_v2_input: DefiVanguardV2Input,
|
|
1502
|
+
_request_timeout: Union[
|
|
1503
|
+
None,
|
|
1504
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1505
|
+
Tuple[
|
|
1506
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1507
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1508
|
+
]
|
|
1509
|
+
] = None,
|
|
1510
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1511
|
+
_content_type: Optional[StrictStr] = None,
|
|
1512
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1513
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1514
|
+
) -> RESTResponseType:
|
|
1515
|
+
"""Post Tool Vanguard V2
|
|
1516
|
+
|
|
1517
|
+
Post a task for the DeFi Vanguard v2 static analyzer tool
|
|
1518
|
+
|
|
1519
|
+
:param organization_id: (required)
|
|
1520
|
+
:type organization_id: int
|
|
1521
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
1522
|
+
:type project_id: int
|
|
1523
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
1524
|
+
:type version_id: int
|
|
1525
|
+
:param defi_vanguard_v2_input: (required)
|
|
1526
|
+
:type defi_vanguard_v2_input: DefiVanguardV2Input
|
|
1527
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1528
|
+
number provided, it will be total request
|
|
1529
|
+
timeout. It can also be a pair (tuple) of
|
|
1530
|
+
(connection, read) timeouts.
|
|
1531
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1532
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1533
|
+
request; this effectively ignores the
|
|
1534
|
+
authentication in the spec for a single request.
|
|
1535
|
+
:type _request_auth: dict, optional
|
|
1536
|
+
:param _content_type: force content-type for the request.
|
|
1537
|
+
:type _content_type: str, Optional
|
|
1538
|
+
:param _headers: set to override the headers for a single
|
|
1539
|
+
request; this effectively ignores the headers
|
|
1540
|
+
in the spec for a single request.
|
|
1541
|
+
:type _headers: dict, optional
|
|
1542
|
+
:param _host_index: set to override the host_index for a single
|
|
1543
|
+
request; this effectively ignores the host_index
|
|
1544
|
+
in the spec for a single request.
|
|
1545
|
+
:type _host_index: int, optional
|
|
1546
|
+
:return: Returns the result object.
|
|
1547
|
+
""" # noqa: E501
|
|
1548
|
+
|
|
1549
|
+
_param = self._post_tool_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_vanguard_v2_post_serialize(
|
|
1550
|
+
organization_id=organization_id,
|
|
1551
|
+
project_id=project_id,
|
|
1552
|
+
version_id=version_id,
|
|
1553
|
+
defi_vanguard_v2_input=defi_vanguard_v2_input,
|
|
1554
|
+
_request_auth=_request_auth,
|
|
1555
|
+
_content_type=_content_type,
|
|
1556
|
+
_headers=_headers,
|
|
1557
|
+
_host_index=_host_index
|
|
1558
|
+
)
|
|
1559
|
+
|
|
1560
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1561
|
+
'200': "TaskCreation",
|
|
1562
|
+
'422': "HTTPValidationError",
|
|
1563
|
+
}
|
|
1564
|
+
response_data = await self.api_client.call_api(
|
|
1565
|
+
*_param,
|
|
1566
|
+
_request_timeout=_request_timeout
|
|
1567
|
+
)
|
|
1568
|
+
return response_data.response
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
def _post_tool_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_vanguard_v2_post_serialize(
|
|
1572
|
+
self,
|
|
1573
|
+
organization_id,
|
|
1574
|
+
project_id,
|
|
1575
|
+
version_id,
|
|
1576
|
+
defi_vanguard_v2_input,
|
|
1577
|
+
_request_auth,
|
|
1578
|
+
_content_type,
|
|
1579
|
+
_headers,
|
|
1580
|
+
_host_index,
|
|
1581
|
+
) -> RequestSerialized:
|
|
1582
|
+
|
|
1583
|
+
_host = None
|
|
1584
|
+
|
|
1585
|
+
_collection_formats: Dict[str, str] = {
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
_path_params: Dict[str, str] = {}
|
|
1589
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1590
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1591
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1592
|
+
_files: Dict[
|
|
1593
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1594
|
+
] = {}
|
|
1595
|
+
_body_params: Optional[bytes] = None
|
|
1596
|
+
|
|
1597
|
+
# process the path parameters
|
|
1598
|
+
if organization_id is not None:
|
|
1599
|
+
_path_params['organization_id'] = organization_id
|
|
1600
|
+
if project_id is not None:
|
|
1601
|
+
_path_params['project_id'] = project_id
|
|
1602
|
+
if version_id is not None:
|
|
1603
|
+
_path_params['version_id'] = version_id
|
|
1604
|
+
# process the query parameters
|
|
1605
|
+
# process the header parameters
|
|
1606
|
+
# process the form parameters
|
|
1607
|
+
# process the body parameter
|
|
1608
|
+
if defi_vanguard_v2_input is not None:
|
|
1609
|
+
_body_params = defi_vanguard_v2_input
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
# set the HTTP header `Accept`
|
|
1613
|
+
if 'Accept' not in _header_params:
|
|
1614
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1615
|
+
[
|
|
1616
|
+
'application/json'
|
|
1617
|
+
]
|
|
1618
|
+
)
|
|
1619
|
+
|
|
1620
|
+
# set the HTTP header `Content-Type`
|
|
1621
|
+
if _content_type:
|
|
1622
|
+
_header_params['Content-Type'] = _content_type
|
|
1623
|
+
else:
|
|
1624
|
+
_default_content_type = (
|
|
1625
|
+
self.api_client.select_header_content_type(
|
|
1626
|
+
[
|
|
1627
|
+
'application/json'
|
|
1628
|
+
]
|
|
1629
|
+
)
|
|
1630
|
+
)
|
|
1631
|
+
if _default_content_type is not None:
|
|
1632
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1633
|
+
|
|
1634
|
+
# authentication setting
|
|
1635
|
+
_auth_settings: List[str] = [
|
|
1636
|
+
'OpenIdConnect'
|
|
1637
|
+
]
|
|
1638
|
+
|
|
1639
|
+
return self.api_client.param_serialize(
|
|
1640
|
+
method='POST',
|
|
1641
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/versions/{version_id}/tools/vanguard-v2',
|
|
1642
|
+
path_params=_path_params,
|
|
1643
|
+
query_params=_query_params,
|
|
1644
|
+
header_params=_header_params,
|
|
1645
|
+
body=_body_params,
|
|
1646
|
+
post_params=_form_params,
|
|
1647
|
+
files=_files,
|
|
1648
|
+
auth_settings=_auth_settings,
|
|
1649
|
+
collection_formats=_collection_formats,
|
|
1650
|
+
_host=_host,
|
|
1651
|
+
_request_auth=_request_auth
|
|
1652
|
+
)
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
@validate_call
|
|
1658
|
+
async def post_tool_zk_vanguard_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_post(
|
|
1659
|
+
self,
|
|
1660
|
+
organization_id: StrictInt,
|
|
1661
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1662
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1663
|
+
zk_vanguard_input: ZKVanguardInput,
|
|
1664
|
+
_request_timeout: Union[
|
|
1665
|
+
None,
|
|
1666
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1667
|
+
Tuple[
|
|
1668
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1669
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1670
|
+
]
|
|
1671
|
+
] = None,
|
|
1672
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1673
|
+
_content_type: Optional[StrictStr] = None,
|
|
1674
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1675
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1676
|
+
) -> TaskCreation:
|
|
1677
|
+
"""Post Tool Zk Vanguard
|
|
1678
|
+
|
|
1679
|
+
Post a task for the ZK Vanguard static analyzer tool
|
|
1680
|
+
|
|
1681
|
+
:param organization_id: (required)
|
|
1682
|
+
:type organization_id: int
|
|
1683
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
1684
|
+
:type project_id: int
|
|
1685
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
1686
|
+
:type version_id: int
|
|
1687
|
+
:param zk_vanguard_input: (required)
|
|
1688
|
+
:type zk_vanguard_input: ZKVanguardInput
|
|
1689
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1690
|
+
number provided, it will be total request
|
|
1691
|
+
timeout. It can also be a pair (tuple) of
|
|
1692
|
+
(connection, read) timeouts.
|
|
1693
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1694
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1695
|
+
request; this effectively ignores the
|
|
1696
|
+
authentication in the spec for a single request.
|
|
1697
|
+
:type _request_auth: dict, optional
|
|
1698
|
+
:param _content_type: force content-type for the request.
|
|
1699
|
+
:type _content_type: str, Optional
|
|
1700
|
+
:param _headers: set to override the headers for a single
|
|
1701
|
+
request; this effectively ignores the headers
|
|
1702
|
+
in the spec for a single request.
|
|
1703
|
+
:type _headers: dict, optional
|
|
1704
|
+
:param _host_index: set to override the host_index for a single
|
|
1705
|
+
request; this effectively ignores the host_index
|
|
1706
|
+
in the spec for a single request.
|
|
1707
|
+
:type _host_index: int, optional
|
|
1708
|
+
:return: Returns the result object.
|
|
1709
|
+
""" # noqa: E501
|
|
1710
|
+
|
|
1711
|
+
_param = self._post_tool_zk_vanguard_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_post_serialize(
|
|
1712
|
+
organization_id=organization_id,
|
|
1713
|
+
project_id=project_id,
|
|
1714
|
+
version_id=version_id,
|
|
1715
|
+
zk_vanguard_input=zk_vanguard_input,
|
|
1716
|
+
_request_auth=_request_auth,
|
|
1717
|
+
_content_type=_content_type,
|
|
1718
|
+
_headers=_headers,
|
|
1719
|
+
_host_index=_host_index
|
|
1720
|
+
)
|
|
1721
|
+
|
|
1722
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1723
|
+
'200': "TaskCreation",
|
|
1724
|
+
'422': "HTTPValidationError",
|
|
1725
|
+
}
|
|
1726
|
+
response_data = await self.api_client.call_api(
|
|
1727
|
+
*_param,
|
|
1728
|
+
_request_timeout=_request_timeout
|
|
1729
|
+
)
|
|
1730
|
+
await response_data.read()
|
|
1731
|
+
return self.api_client.response_deserialize(
|
|
1732
|
+
response_data=response_data,
|
|
1733
|
+
response_types_map=_response_types_map,
|
|
1734
|
+
).data
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
@validate_call
|
|
1738
|
+
async def post_tool_zk_vanguard_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_post_with_http_info(
|
|
1739
|
+
self,
|
|
1740
|
+
organization_id: StrictInt,
|
|
1741
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1742
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1743
|
+
zk_vanguard_input: ZKVanguardInput,
|
|
1744
|
+
_request_timeout: Union[
|
|
1745
|
+
None,
|
|
1746
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1747
|
+
Tuple[
|
|
1748
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1749
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1750
|
+
]
|
|
1751
|
+
] = None,
|
|
1752
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1753
|
+
_content_type: Optional[StrictStr] = None,
|
|
1754
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1755
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1756
|
+
) -> ApiResponse[TaskCreation]:
|
|
1757
|
+
"""Post Tool Zk Vanguard
|
|
1758
|
+
|
|
1759
|
+
Post a task for the ZK Vanguard static analyzer tool
|
|
1760
|
+
|
|
1761
|
+
:param organization_id: (required)
|
|
1762
|
+
:type organization_id: int
|
|
1763
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
1764
|
+
:type project_id: int
|
|
1765
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
1766
|
+
:type version_id: int
|
|
1767
|
+
:param zk_vanguard_input: (required)
|
|
1768
|
+
:type zk_vanguard_input: ZKVanguardInput
|
|
1769
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1770
|
+
number provided, it will be total request
|
|
1771
|
+
timeout. It can also be a pair (tuple) of
|
|
1772
|
+
(connection, read) timeouts.
|
|
1773
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1774
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1775
|
+
request; this effectively ignores the
|
|
1776
|
+
authentication in the spec for a single request.
|
|
1777
|
+
:type _request_auth: dict, optional
|
|
1778
|
+
:param _content_type: force content-type for the request.
|
|
1779
|
+
:type _content_type: str, Optional
|
|
1780
|
+
:param _headers: set to override the headers for a single
|
|
1781
|
+
request; this effectively ignores the headers
|
|
1782
|
+
in the spec for a single request.
|
|
1783
|
+
:type _headers: dict, optional
|
|
1784
|
+
:param _host_index: set to override the host_index for a single
|
|
1785
|
+
request; this effectively ignores the host_index
|
|
1786
|
+
in the spec for a single request.
|
|
1787
|
+
:type _host_index: int, optional
|
|
1788
|
+
:return: Returns the result object.
|
|
1789
|
+
""" # noqa: E501
|
|
1790
|
+
|
|
1791
|
+
_param = self._post_tool_zk_vanguard_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_post_serialize(
|
|
1792
|
+
organization_id=organization_id,
|
|
1793
|
+
project_id=project_id,
|
|
1794
|
+
version_id=version_id,
|
|
1795
|
+
zk_vanguard_input=zk_vanguard_input,
|
|
1796
|
+
_request_auth=_request_auth,
|
|
1797
|
+
_content_type=_content_type,
|
|
1798
|
+
_headers=_headers,
|
|
1799
|
+
_host_index=_host_index
|
|
1800
|
+
)
|
|
1801
|
+
|
|
1802
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1803
|
+
'200': "TaskCreation",
|
|
1804
|
+
'422': "HTTPValidationError",
|
|
1805
|
+
}
|
|
1806
|
+
response_data = await self.api_client.call_api(
|
|
1807
|
+
*_param,
|
|
1808
|
+
_request_timeout=_request_timeout
|
|
1809
|
+
)
|
|
1810
|
+
await response_data.read()
|
|
1811
|
+
return self.api_client.response_deserialize(
|
|
1812
|
+
response_data=response_data,
|
|
1813
|
+
response_types_map=_response_types_map,
|
|
1814
|
+
)
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
@validate_call
|
|
1818
|
+
async def post_tool_zk_vanguard_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_post_without_preload_content(
|
|
1819
|
+
self,
|
|
1820
|
+
organization_id: StrictInt,
|
|
1821
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1822
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1823
|
+
zk_vanguard_input: ZKVanguardInput,
|
|
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
|
+
) -> RESTResponseType:
|
|
1837
|
+
"""Post Tool Zk Vanguard
|
|
1838
|
+
|
|
1839
|
+
Post a task for the ZK Vanguard static analyzer tool
|
|
1840
|
+
|
|
1841
|
+
:param organization_id: (required)
|
|
1842
|
+
:type organization_id: int
|
|
1843
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
1844
|
+
:type project_id: int
|
|
1845
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
1846
|
+
:type version_id: int
|
|
1847
|
+
:param zk_vanguard_input: (required)
|
|
1848
|
+
:type zk_vanguard_input: ZKVanguardInput
|
|
1849
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1850
|
+
number provided, it will be total request
|
|
1851
|
+
timeout. It can also be a pair (tuple) of
|
|
1852
|
+
(connection, read) timeouts.
|
|
1853
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1854
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1855
|
+
request; this effectively ignores the
|
|
1856
|
+
authentication in the spec for a single request.
|
|
1857
|
+
:type _request_auth: dict, optional
|
|
1858
|
+
:param _content_type: force content-type for the request.
|
|
1859
|
+
:type _content_type: str, Optional
|
|
1860
|
+
:param _headers: set to override the headers for a single
|
|
1861
|
+
request; this effectively ignores the headers
|
|
1862
|
+
in the spec for a single request.
|
|
1863
|
+
:type _headers: dict, optional
|
|
1864
|
+
:param _host_index: set to override the host_index for a single
|
|
1865
|
+
request; this effectively ignores the host_index
|
|
1866
|
+
in the spec for a single request.
|
|
1867
|
+
:type _host_index: int, optional
|
|
1868
|
+
:return: Returns the result object.
|
|
1869
|
+
""" # noqa: E501
|
|
1870
|
+
|
|
1871
|
+
_param = self._post_tool_zk_vanguard_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_post_serialize(
|
|
1872
|
+
organization_id=organization_id,
|
|
1873
|
+
project_id=project_id,
|
|
1874
|
+
version_id=version_id,
|
|
1875
|
+
zk_vanguard_input=zk_vanguard_input,
|
|
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': "TaskCreation",
|
|
1884
|
+
'422': "HTTPValidationError",
|
|
1885
|
+
}
|
|
1886
|
+
response_data = await self.api_client.call_api(
|
|
1887
|
+
*_param,
|
|
1888
|
+
_request_timeout=_request_timeout
|
|
1889
|
+
)
|
|
1890
|
+
return response_data.response
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
def _post_tool_zk_vanguard_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_post_serialize(
|
|
1894
|
+
self,
|
|
1895
|
+
organization_id,
|
|
1896
|
+
project_id,
|
|
1897
|
+
version_id,
|
|
1898
|
+
zk_vanguard_input,
|
|
1899
|
+
_request_auth,
|
|
1900
|
+
_content_type,
|
|
1901
|
+
_headers,
|
|
1902
|
+
_host_index,
|
|
1903
|
+
) -> RequestSerialized:
|
|
1904
|
+
|
|
1905
|
+
_host = None
|
|
1906
|
+
|
|
1907
|
+
_collection_formats: Dict[str, str] = {
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
_path_params: Dict[str, str] = {}
|
|
1911
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1912
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1913
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1914
|
+
_files: Dict[
|
|
1915
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1916
|
+
] = {}
|
|
1917
|
+
_body_params: Optional[bytes] = None
|
|
1918
|
+
|
|
1919
|
+
# process the path parameters
|
|
1920
|
+
if organization_id is not None:
|
|
1921
|
+
_path_params['organization_id'] = organization_id
|
|
1922
|
+
if project_id is not None:
|
|
1923
|
+
_path_params['project_id'] = project_id
|
|
1924
|
+
if version_id is not None:
|
|
1925
|
+
_path_params['version_id'] = version_id
|
|
1926
|
+
# process the query parameters
|
|
1927
|
+
# process the header parameters
|
|
1928
|
+
# process the form parameters
|
|
1929
|
+
# process the body parameter
|
|
1930
|
+
if zk_vanguard_input is not None:
|
|
1931
|
+
_body_params = zk_vanguard_input
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
# set the HTTP header `Accept`
|
|
1935
|
+
if 'Accept' not in _header_params:
|
|
1936
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1937
|
+
[
|
|
1938
|
+
'application/json'
|
|
1939
|
+
]
|
|
1940
|
+
)
|
|
1941
|
+
|
|
1942
|
+
# set the HTTP header `Content-Type`
|
|
1943
|
+
if _content_type:
|
|
1944
|
+
_header_params['Content-Type'] = _content_type
|
|
1945
|
+
else:
|
|
1946
|
+
_default_content_type = (
|
|
1947
|
+
self.api_client.select_header_content_type(
|
|
1948
|
+
[
|
|
1949
|
+
'application/json'
|
|
1950
|
+
]
|
|
1951
|
+
)
|
|
1952
|
+
)
|
|
1953
|
+
if _default_content_type is not None:
|
|
1954
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1955
|
+
|
|
1956
|
+
# authentication setting
|
|
1957
|
+
_auth_settings: List[str] = [
|
|
1958
|
+
'OpenIdConnect'
|
|
1959
|
+
]
|
|
1960
|
+
|
|
1961
|
+
return self.api_client.param_serialize(
|
|
1962
|
+
method='POST',
|
|
1963
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/versions/{version_id}/tools/zk-vanguard',
|
|
1964
|
+
path_params=_path_params,
|
|
1965
|
+
query_params=_query_params,
|
|
1966
|
+
header_params=_header_params,
|
|
1967
|
+
body=_body_params,
|
|
1968
|
+
post_params=_form_params,
|
|
1969
|
+
files=_files,
|
|
1970
|
+
auth_settings=_auth_settings,
|
|
1971
|
+
collection_formats=_collection_formats,
|
|
1972
|
+
_host=_host,
|
|
1973
|
+
_request_auth=_request_auth
|
|
1974
|
+
)
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
@validate_call
|
|
1980
|
+
async def post_tool_zk_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_v2_post(
|
|
1981
|
+
self,
|
|
1982
|
+
organization_id: StrictInt,
|
|
1983
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
1984
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
1985
|
+
zk_vanguard_v2_input: ZKVanguardV2Input,
|
|
1986
|
+
_request_timeout: Union[
|
|
1987
|
+
None,
|
|
1988
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1989
|
+
Tuple[
|
|
1990
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1991
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1992
|
+
]
|
|
1993
|
+
] = None,
|
|
1994
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1995
|
+
_content_type: Optional[StrictStr] = None,
|
|
1996
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1997
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1998
|
+
) -> TaskCreation:
|
|
1999
|
+
"""Post Tool Zk Vanguard V2
|
|
2000
|
+
|
|
2001
|
+
Post a task for the ZK Vanguard v2 static analyzer tool
|
|
2002
|
+
|
|
2003
|
+
:param organization_id: (required)
|
|
2004
|
+
:type organization_id: int
|
|
2005
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
2006
|
+
:type project_id: int
|
|
2007
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
2008
|
+
:type version_id: int
|
|
2009
|
+
:param zk_vanguard_v2_input: (required)
|
|
2010
|
+
:type zk_vanguard_v2_input: ZKVanguardV2Input
|
|
2011
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2012
|
+
number provided, it will be total request
|
|
2013
|
+
timeout. It can also be a pair (tuple) of
|
|
2014
|
+
(connection, read) timeouts.
|
|
2015
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2016
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2017
|
+
request; this effectively ignores the
|
|
2018
|
+
authentication in the spec for a single request.
|
|
2019
|
+
:type _request_auth: dict, optional
|
|
2020
|
+
:param _content_type: force content-type for the request.
|
|
2021
|
+
:type _content_type: str, Optional
|
|
2022
|
+
:param _headers: set to override the headers for a single
|
|
2023
|
+
request; this effectively ignores the headers
|
|
2024
|
+
in the spec for a single request.
|
|
2025
|
+
:type _headers: dict, optional
|
|
2026
|
+
:param _host_index: set to override the host_index for a single
|
|
2027
|
+
request; this effectively ignores the host_index
|
|
2028
|
+
in the spec for a single request.
|
|
2029
|
+
:type _host_index: int, optional
|
|
2030
|
+
:return: Returns the result object.
|
|
2031
|
+
""" # noqa: E501
|
|
2032
|
+
|
|
2033
|
+
_param = self._post_tool_zk_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_v2_post_serialize(
|
|
2034
|
+
organization_id=organization_id,
|
|
2035
|
+
project_id=project_id,
|
|
2036
|
+
version_id=version_id,
|
|
2037
|
+
zk_vanguard_v2_input=zk_vanguard_v2_input,
|
|
2038
|
+
_request_auth=_request_auth,
|
|
2039
|
+
_content_type=_content_type,
|
|
2040
|
+
_headers=_headers,
|
|
2041
|
+
_host_index=_host_index
|
|
2042
|
+
)
|
|
2043
|
+
|
|
2044
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2045
|
+
'200': "TaskCreation",
|
|
2046
|
+
'422': "HTTPValidationError",
|
|
2047
|
+
}
|
|
2048
|
+
response_data = await self.api_client.call_api(
|
|
2049
|
+
*_param,
|
|
2050
|
+
_request_timeout=_request_timeout
|
|
2051
|
+
)
|
|
2052
|
+
await response_data.read()
|
|
2053
|
+
return self.api_client.response_deserialize(
|
|
2054
|
+
response_data=response_data,
|
|
2055
|
+
response_types_map=_response_types_map,
|
|
2056
|
+
).data
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
@validate_call
|
|
2060
|
+
async def post_tool_zk_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_v2_post_with_http_info(
|
|
2061
|
+
self,
|
|
2062
|
+
organization_id: StrictInt,
|
|
2063
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
2064
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
2065
|
+
zk_vanguard_v2_input: ZKVanguardV2Input,
|
|
2066
|
+
_request_timeout: Union[
|
|
2067
|
+
None,
|
|
2068
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2069
|
+
Tuple[
|
|
2070
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2071
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2072
|
+
]
|
|
2073
|
+
] = None,
|
|
2074
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2075
|
+
_content_type: Optional[StrictStr] = None,
|
|
2076
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2077
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2078
|
+
) -> ApiResponse[TaskCreation]:
|
|
2079
|
+
"""Post Tool Zk Vanguard V2
|
|
2080
|
+
|
|
2081
|
+
Post a task for the ZK Vanguard v2 static analyzer tool
|
|
2082
|
+
|
|
2083
|
+
:param organization_id: (required)
|
|
2084
|
+
:type organization_id: int
|
|
2085
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
2086
|
+
:type project_id: int
|
|
2087
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
2088
|
+
:type version_id: int
|
|
2089
|
+
:param zk_vanguard_v2_input: (required)
|
|
2090
|
+
:type zk_vanguard_v2_input: ZKVanguardV2Input
|
|
2091
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2092
|
+
number provided, it will be total request
|
|
2093
|
+
timeout. It can also be a pair (tuple) of
|
|
2094
|
+
(connection, read) timeouts.
|
|
2095
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2096
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2097
|
+
request; this effectively ignores the
|
|
2098
|
+
authentication in the spec for a single request.
|
|
2099
|
+
:type _request_auth: dict, optional
|
|
2100
|
+
:param _content_type: force content-type for the request.
|
|
2101
|
+
:type _content_type: str, Optional
|
|
2102
|
+
:param _headers: set to override the headers for a single
|
|
2103
|
+
request; this effectively ignores the headers
|
|
2104
|
+
in the spec for a single request.
|
|
2105
|
+
:type _headers: dict, optional
|
|
2106
|
+
:param _host_index: set to override the host_index for a single
|
|
2107
|
+
request; this effectively ignores the host_index
|
|
2108
|
+
in the spec for a single request.
|
|
2109
|
+
:type _host_index: int, optional
|
|
2110
|
+
:return: Returns the result object.
|
|
2111
|
+
""" # noqa: E501
|
|
2112
|
+
|
|
2113
|
+
_param = self._post_tool_zk_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_v2_post_serialize(
|
|
2114
|
+
organization_id=organization_id,
|
|
2115
|
+
project_id=project_id,
|
|
2116
|
+
version_id=version_id,
|
|
2117
|
+
zk_vanguard_v2_input=zk_vanguard_v2_input,
|
|
2118
|
+
_request_auth=_request_auth,
|
|
2119
|
+
_content_type=_content_type,
|
|
2120
|
+
_headers=_headers,
|
|
2121
|
+
_host_index=_host_index
|
|
2122
|
+
)
|
|
2123
|
+
|
|
2124
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2125
|
+
'200': "TaskCreation",
|
|
2126
|
+
'422': "HTTPValidationError",
|
|
2127
|
+
}
|
|
2128
|
+
response_data = await self.api_client.call_api(
|
|
2129
|
+
*_param,
|
|
2130
|
+
_request_timeout=_request_timeout
|
|
2131
|
+
)
|
|
2132
|
+
await response_data.read()
|
|
2133
|
+
return self.api_client.response_deserialize(
|
|
2134
|
+
response_data=response_data,
|
|
2135
|
+
response_types_map=_response_types_map,
|
|
2136
|
+
)
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
@validate_call
|
|
2140
|
+
async def post_tool_zk_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_v2_post_without_preload_content(
|
|
2141
|
+
self,
|
|
2142
|
+
organization_id: StrictInt,
|
|
2143
|
+
project_id: Annotated[StrictInt, Field(description="The id of the project for which this task will execute")],
|
|
2144
|
+
version_id: Annotated[StrictInt, Field(description="The version id whose archive this task will process")],
|
|
2145
|
+
zk_vanguard_v2_input: ZKVanguardV2Input,
|
|
2146
|
+
_request_timeout: Union[
|
|
2147
|
+
None,
|
|
2148
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2149
|
+
Tuple[
|
|
2150
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2151
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2152
|
+
]
|
|
2153
|
+
] = None,
|
|
2154
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2155
|
+
_content_type: Optional[StrictStr] = None,
|
|
2156
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2157
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2158
|
+
) -> RESTResponseType:
|
|
2159
|
+
"""Post Tool Zk Vanguard V2
|
|
2160
|
+
|
|
2161
|
+
Post a task for the ZK Vanguard v2 static analyzer tool
|
|
2162
|
+
|
|
2163
|
+
:param organization_id: (required)
|
|
2164
|
+
:type organization_id: int
|
|
2165
|
+
:param project_id: The id of the project for which this task will execute (required)
|
|
2166
|
+
:type project_id: int
|
|
2167
|
+
:param version_id: The version id whose archive this task will process (required)
|
|
2168
|
+
:type version_id: int
|
|
2169
|
+
:param zk_vanguard_v2_input: (required)
|
|
2170
|
+
:type zk_vanguard_v2_input: ZKVanguardV2Input
|
|
2171
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2172
|
+
number provided, it will be total request
|
|
2173
|
+
timeout. It can also be a pair (tuple) of
|
|
2174
|
+
(connection, read) timeouts.
|
|
2175
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2176
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2177
|
+
request; this effectively ignores the
|
|
2178
|
+
authentication in the spec for a single request.
|
|
2179
|
+
:type _request_auth: dict, optional
|
|
2180
|
+
:param _content_type: force content-type for the request.
|
|
2181
|
+
:type _content_type: str, Optional
|
|
2182
|
+
:param _headers: set to override the headers for a single
|
|
2183
|
+
request; this effectively ignores the headers
|
|
2184
|
+
in the spec for a single request.
|
|
2185
|
+
:type _headers: dict, optional
|
|
2186
|
+
:param _host_index: set to override the host_index for a single
|
|
2187
|
+
request; this effectively ignores the host_index
|
|
2188
|
+
in the spec for a single request.
|
|
2189
|
+
:type _host_index: int, optional
|
|
2190
|
+
:return: Returns the result object.
|
|
2191
|
+
""" # noqa: E501
|
|
2192
|
+
|
|
2193
|
+
_param = self._post_tool_zk_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_v2_post_serialize(
|
|
2194
|
+
organization_id=organization_id,
|
|
2195
|
+
project_id=project_id,
|
|
2196
|
+
version_id=version_id,
|
|
2197
|
+
zk_vanguard_v2_input=zk_vanguard_v2_input,
|
|
2198
|
+
_request_auth=_request_auth,
|
|
2199
|
+
_content_type=_content_type,
|
|
2200
|
+
_headers=_headers,
|
|
2201
|
+
_host_index=_host_index
|
|
2202
|
+
)
|
|
2203
|
+
|
|
2204
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2205
|
+
'200': "TaskCreation",
|
|
2206
|
+
'422': "HTTPValidationError",
|
|
2207
|
+
}
|
|
2208
|
+
response_data = await self.api_client.call_api(
|
|
2209
|
+
*_param,
|
|
2210
|
+
_request_timeout=_request_timeout
|
|
2211
|
+
)
|
|
2212
|
+
return response_data.response
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
def _post_tool_zk_vanguard_v2_organizations_organization_id_projects_project_id_versions_version_id_tools_zk_vanguard_v2_post_serialize(
|
|
2216
|
+
self,
|
|
2217
|
+
organization_id,
|
|
2218
|
+
project_id,
|
|
2219
|
+
version_id,
|
|
2220
|
+
zk_vanguard_v2_input,
|
|
2221
|
+
_request_auth,
|
|
2222
|
+
_content_type,
|
|
2223
|
+
_headers,
|
|
2224
|
+
_host_index,
|
|
2225
|
+
) -> RequestSerialized:
|
|
2226
|
+
|
|
2227
|
+
_host = None
|
|
2228
|
+
|
|
2229
|
+
_collection_formats: Dict[str, str] = {
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
_path_params: Dict[str, str] = {}
|
|
2233
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2234
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2235
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2236
|
+
_files: Dict[
|
|
2237
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2238
|
+
] = {}
|
|
2239
|
+
_body_params: Optional[bytes] = None
|
|
2240
|
+
|
|
2241
|
+
# process the path parameters
|
|
2242
|
+
if organization_id is not None:
|
|
2243
|
+
_path_params['organization_id'] = organization_id
|
|
2244
|
+
if project_id is not None:
|
|
2245
|
+
_path_params['project_id'] = project_id
|
|
2246
|
+
if version_id is not None:
|
|
2247
|
+
_path_params['version_id'] = version_id
|
|
2248
|
+
# process the query parameters
|
|
2249
|
+
# process the header parameters
|
|
2250
|
+
# process the form parameters
|
|
2251
|
+
# process the body parameter
|
|
2252
|
+
if zk_vanguard_v2_input is not None:
|
|
2253
|
+
_body_params = zk_vanguard_v2_input
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
# set the HTTP header `Accept`
|
|
2257
|
+
if 'Accept' not in _header_params:
|
|
2258
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2259
|
+
[
|
|
2260
|
+
'application/json'
|
|
2261
|
+
]
|
|
2262
|
+
)
|
|
2263
|
+
|
|
2264
|
+
# set the HTTP header `Content-Type`
|
|
2265
|
+
if _content_type:
|
|
2266
|
+
_header_params['Content-Type'] = _content_type
|
|
2267
|
+
else:
|
|
2268
|
+
_default_content_type = (
|
|
2269
|
+
self.api_client.select_header_content_type(
|
|
2270
|
+
[
|
|
2271
|
+
'application/json'
|
|
2272
|
+
]
|
|
2273
|
+
)
|
|
2274
|
+
)
|
|
2275
|
+
if _default_content_type is not None:
|
|
2276
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2277
|
+
|
|
2278
|
+
# authentication setting
|
|
2279
|
+
_auth_settings: List[str] = [
|
|
2280
|
+
'OpenIdConnect'
|
|
2281
|
+
]
|
|
2282
|
+
|
|
2283
|
+
return self.api_client.param_serialize(
|
|
2284
|
+
method='POST',
|
|
2285
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/versions/{version_id}/tools/zk-vanguard-v2',
|
|
2286
|
+
path_params=_path_params,
|
|
2287
|
+
query_params=_query_params,
|
|
2288
|
+
header_params=_header_params,
|
|
2289
|
+
body=_body_params,
|
|
2290
|
+
post_params=_form_params,
|
|
2291
|
+
files=_files,
|
|
2292
|
+
auth_settings=_auth_settings,
|
|
2293
|
+
collection_formats=_collection_formats,
|
|
2294
|
+
_host=_host,
|
|
2295
|
+
_request_auth=_request_auth
|
|
2296
|
+
)
|
|
2297
|
+
|
|
2298
|
+
|