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,2742 @@
|
|
|
1
|
+
"""
|
|
2
|
+
FastAPI
|
|
3
|
+
|
|
4
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
|
|
9
|
+
Do not edit the class manually.
|
|
10
|
+
""" # noqa: E501
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import warnings
|
|
14
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
+
from typing_extensions import Annotated
|
|
17
|
+
|
|
18
|
+
from pydantic import StrictInt
|
|
19
|
+
from typing import Any, List
|
|
20
|
+
from audithub_sdk.models.id_and_message_response import IdAndMessageResponse
|
|
21
|
+
from audithub_sdk.models.issue_batch_announce import IssueBatchAnnounce
|
|
22
|
+
from audithub_sdk.models.issue_details import IssueDetails
|
|
23
|
+
from audithub_sdk.models.issue_for_list import IssueForList
|
|
24
|
+
from audithub_sdk.models.issue_info_base_complete import IssueInfoBaseComplete
|
|
25
|
+
from audithub_sdk.models.issue_info_editable import IssueInfoEditable
|
|
26
|
+
from audithub_sdk.models.issue_patch import IssuePatch
|
|
27
|
+
from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse
|
|
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 IssuesApi:
|
|
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 batch_announce_organizations_organization_id_projects_project_id_issues_patch(
|
|
49
|
+
self,
|
|
50
|
+
organization_id: StrictInt,
|
|
51
|
+
project_id: StrictInt,
|
|
52
|
+
issue_batch_announce: IssueBatchAnnounce,
|
|
53
|
+
_request_timeout: Union[
|
|
54
|
+
None,
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Tuple[
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
59
|
+
]
|
|
60
|
+
] = None,
|
|
61
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_content_type: Optional[StrictStr] = None,
|
|
63
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
64
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
65
|
+
) -> SuccessAndMessageResponse:
|
|
66
|
+
"""Batch Announce
|
|
67
|
+
|
|
68
|
+
Batch announce
|
|
69
|
+
|
|
70
|
+
:param organization_id: (required)
|
|
71
|
+
:type organization_id: int
|
|
72
|
+
:param project_id: (required)
|
|
73
|
+
:type project_id: int
|
|
74
|
+
:param issue_batch_announce: (required)
|
|
75
|
+
:type issue_batch_announce: IssueBatchAnnounce
|
|
76
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
77
|
+
number provided, it will be total request
|
|
78
|
+
timeout. It can also be a pair (tuple) of
|
|
79
|
+
(connection, read) timeouts.
|
|
80
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
81
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
82
|
+
request; this effectively ignores the
|
|
83
|
+
authentication in the spec for a single request.
|
|
84
|
+
:type _request_auth: dict, optional
|
|
85
|
+
:param _content_type: force content-type for the request.
|
|
86
|
+
:type _content_type: str, Optional
|
|
87
|
+
:param _headers: set to override the headers for a single
|
|
88
|
+
request; this effectively ignores the headers
|
|
89
|
+
in the spec for a single request.
|
|
90
|
+
:type _headers: dict, optional
|
|
91
|
+
:param _host_index: set to override the host_index for a single
|
|
92
|
+
request; this effectively ignores the host_index
|
|
93
|
+
in the spec for a single request.
|
|
94
|
+
:type _host_index: int, optional
|
|
95
|
+
:return: Returns the result object.
|
|
96
|
+
""" # noqa: E501
|
|
97
|
+
|
|
98
|
+
_param = self._batch_announce_organizations_organization_id_projects_project_id_issues_patch_serialize(
|
|
99
|
+
organization_id=organization_id,
|
|
100
|
+
project_id=project_id,
|
|
101
|
+
issue_batch_announce=issue_batch_announce,
|
|
102
|
+
_request_auth=_request_auth,
|
|
103
|
+
_content_type=_content_type,
|
|
104
|
+
_headers=_headers,
|
|
105
|
+
_host_index=_host_index
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
109
|
+
'200': "SuccessAndMessageResponse",
|
|
110
|
+
'422': "HTTPValidationError",
|
|
111
|
+
}
|
|
112
|
+
response_data = await self.api_client.call_api(
|
|
113
|
+
*_param,
|
|
114
|
+
_request_timeout=_request_timeout
|
|
115
|
+
)
|
|
116
|
+
await response_data.read()
|
|
117
|
+
return self.api_client.response_deserialize(
|
|
118
|
+
response_data=response_data,
|
|
119
|
+
response_types_map=_response_types_map,
|
|
120
|
+
).data
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
@validate_call
|
|
124
|
+
async def batch_announce_organizations_organization_id_projects_project_id_issues_patch_with_http_info(
|
|
125
|
+
self,
|
|
126
|
+
organization_id: StrictInt,
|
|
127
|
+
project_id: StrictInt,
|
|
128
|
+
issue_batch_announce: IssueBatchAnnounce,
|
|
129
|
+
_request_timeout: Union[
|
|
130
|
+
None,
|
|
131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
132
|
+
Tuple[
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
134
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
135
|
+
]
|
|
136
|
+
] = None,
|
|
137
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
138
|
+
_content_type: Optional[StrictStr] = None,
|
|
139
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
140
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
141
|
+
) -> ApiResponse[SuccessAndMessageResponse]:
|
|
142
|
+
"""Batch Announce
|
|
143
|
+
|
|
144
|
+
Batch announce
|
|
145
|
+
|
|
146
|
+
:param organization_id: (required)
|
|
147
|
+
:type organization_id: int
|
|
148
|
+
:param project_id: (required)
|
|
149
|
+
:type project_id: int
|
|
150
|
+
:param issue_batch_announce: (required)
|
|
151
|
+
:type issue_batch_announce: IssueBatchAnnounce
|
|
152
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
153
|
+
number provided, it will be total request
|
|
154
|
+
timeout. It can also be a pair (tuple) of
|
|
155
|
+
(connection, read) timeouts.
|
|
156
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
157
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
158
|
+
request; this effectively ignores the
|
|
159
|
+
authentication in the spec for a single request.
|
|
160
|
+
:type _request_auth: dict, optional
|
|
161
|
+
:param _content_type: force content-type for the request.
|
|
162
|
+
:type _content_type: str, Optional
|
|
163
|
+
:param _headers: set to override the headers for a single
|
|
164
|
+
request; this effectively ignores the headers
|
|
165
|
+
in the spec for a single request.
|
|
166
|
+
:type _headers: dict, optional
|
|
167
|
+
:param _host_index: set to override the host_index for a single
|
|
168
|
+
request; this effectively ignores the host_index
|
|
169
|
+
in the spec for a single request.
|
|
170
|
+
:type _host_index: int, optional
|
|
171
|
+
:return: Returns the result object.
|
|
172
|
+
""" # noqa: E501
|
|
173
|
+
|
|
174
|
+
_param = self._batch_announce_organizations_organization_id_projects_project_id_issues_patch_serialize(
|
|
175
|
+
organization_id=organization_id,
|
|
176
|
+
project_id=project_id,
|
|
177
|
+
issue_batch_announce=issue_batch_announce,
|
|
178
|
+
_request_auth=_request_auth,
|
|
179
|
+
_content_type=_content_type,
|
|
180
|
+
_headers=_headers,
|
|
181
|
+
_host_index=_host_index
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
185
|
+
'200': "SuccessAndMessageResponse",
|
|
186
|
+
'422': "HTTPValidationError",
|
|
187
|
+
}
|
|
188
|
+
response_data = await self.api_client.call_api(
|
|
189
|
+
*_param,
|
|
190
|
+
_request_timeout=_request_timeout
|
|
191
|
+
)
|
|
192
|
+
await response_data.read()
|
|
193
|
+
return self.api_client.response_deserialize(
|
|
194
|
+
response_data=response_data,
|
|
195
|
+
response_types_map=_response_types_map,
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
@validate_call
|
|
200
|
+
async def batch_announce_organizations_organization_id_projects_project_id_issues_patch_without_preload_content(
|
|
201
|
+
self,
|
|
202
|
+
organization_id: StrictInt,
|
|
203
|
+
project_id: StrictInt,
|
|
204
|
+
issue_batch_announce: IssueBatchAnnounce,
|
|
205
|
+
_request_timeout: Union[
|
|
206
|
+
None,
|
|
207
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
208
|
+
Tuple[
|
|
209
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
210
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
211
|
+
]
|
|
212
|
+
] = None,
|
|
213
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
214
|
+
_content_type: Optional[StrictStr] = None,
|
|
215
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
216
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
217
|
+
) -> RESTResponseType:
|
|
218
|
+
"""Batch Announce
|
|
219
|
+
|
|
220
|
+
Batch announce
|
|
221
|
+
|
|
222
|
+
:param organization_id: (required)
|
|
223
|
+
:type organization_id: int
|
|
224
|
+
:param project_id: (required)
|
|
225
|
+
:type project_id: int
|
|
226
|
+
:param issue_batch_announce: (required)
|
|
227
|
+
:type issue_batch_announce: IssueBatchAnnounce
|
|
228
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
229
|
+
number provided, it will be total request
|
|
230
|
+
timeout. It can also be a pair (tuple) of
|
|
231
|
+
(connection, read) timeouts.
|
|
232
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
233
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
234
|
+
request; this effectively ignores the
|
|
235
|
+
authentication in the spec for a single request.
|
|
236
|
+
:type _request_auth: dict, optional
|
|
237
|
+
:param _content_type: force content-type for the request.
|
|
238
|
+
:type _content_type: str, Optional
|
|
239
|
+
:param _headers: set to override the headers for a single
|
|
240
|
+
request; this effectively ignores the headers
|
|
241
|
+
in the spec for a single request.
|
|
242
|
+
:type _headers: dict, optional
|
|
243
|
+
:param _host_index: set to override the host_index for a single
|
|
244
|
+
request; this effectively ignores the host_index
|
|
245
|
+
in the spec for a single request.
|
|
246
|
+
:type _host_index: int, optional
|
|
247
|
+
:return: Returns the result object.
|
|
248
|
+
""" # noqa: E501
|
|
249
|
+
|
|
250
|
+
_param = self._batch_announce_organizations_organization_id_projects_project_id_issues_patch_serialize(
|
|
251
|
+
organization_id=organization_id,
|
|
252
|
+
project_id=project_id,
|
|
253
|
+
issue_batch_announce=issue_batch_announce,
|
|
254
|
+
_request_auth=_request_auth,
|
|
255
|
+
_content_type=_content_type,
|
|
256
|
+
_headers=_headers,
|
|
257
|
+
_host_index=_host_index
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
261
|
+
'200': "SuccessAndMessageResponse",
|
|
262
|
+
'422': "HTTPValidationError",
|
|
263
|
+
}
|
|
264
|
+
response_data = await self.api_client.call_api(
|
|
265
|
+
*_param,
|
|
266
|
+
_request_timeout=_request_timeout
|
|
267
|
+
)
|
|
268
|
+
return response_data.response
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def _batch_announce_organizations_organization_id_projects_project_id_issues_patch_serialize(
|
|
272
|
+
self,
|
|
273
|
+
organization_id,
|
|
274
|
+
project_id,
|
|
275
|
+
issue_batch_announce,
|
|
276
|
+
_request_auth,
|
|
277
|
+
_content_type,
|
|
278
|
+
_headers,
|
|
279
|
+
_host_index,
|
|
280
|
+
) -> RequestSerialized:
|
|
281
|
+
|
|
282
|
+
_host = None
|
|
283
|
+
|
|
284
|
+
_collection_formats: Dict[str, str] = {
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
_path_params: Dict[str, str] = {}
|
|
288
|
+
_query_params: List[Tuple[str, str]] = []
|
|
289
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
290
|
+
_form_params: List[Tuple[str, str]] = []
|
|
291
|
+
_files: Dict[
|
|
292
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
293
|
+
] = {}
|
|
294
|
+
_body_params: Optional[bytes] = None
|
|
295
|
+
|
|
296
|
+
# process the path parameters
|
|
297
|
+
if organization_id is not None:
|
|
298
|
+
_path_params['organization_id'] = organization_id
|
|
299
|
+
if project_id is not None:
|
|
300
|
+
_path_params['project_id'] = project_id
|
|
301
|
+
# process the query parameters
|
|
302
|
+
# process the header parameters
|
|
303
|
+
# process the form parameters
|
|
304
|
+
# process the body parameter
|
|
305
|
+
if issue_batch_announce is not None:
|
|
306
|
+
_body_params = issue_batch_announce
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
# set the HTTP header `Accept`
|
|
310
|
+
if 'Accept' not in _header_params:
|
|
311
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
312
|
+
[
|
|
313
|
+
'application/json'
|
|
314
|
+
]
|
|
315
|
+
)
|
|
316
|
+
|
|
317
|
+
# set the HTTP header `Content-Type`
|
|
318
|
+
if _content_type:
|
|
319
|
+
_header_params['Content-Type'] = _content_type
|
|
320
|
+
else:
|
|
321
|
+
_default_content_type = (
|
|
322
|
+
self.api_client.select_header_content_type(
|
|
323
|
+
[
|
|
324
|
+
'application/json'
|
|
325
|
+
]
|
|
326
|
+
)
|
|
327
|
+
)
|
|
328
|
+
if _default_content_type is not None:
|
|
329
|
+
_header_params['Content-Type'] = _default_content_type
|
|
330
|
+
|
|
331
|
+
# authentication setting
|
|
332
|
+
_auth_settings: List[str] = [
|
|
333
|
+
'OpenIdConnect'
|
|
334
|
+
]
|
|
335
|
+
|
|
336
|
+
return self.api_client.param_serialize(
|
|
337
|
+
method='PATCH',
|
|
338
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/issues/',
|
|
339
|
+
path_params=_path_params,
|
|
340
|
+
query_params=_query_params,
|
|
341
|
+
header_params=_header_params,
|
|
342
|
+
body=_body_params,
|
|
343
|
+
post_params=_form_params,
|
|
344
|
+
files=_files,
|
|
345
|
+
auth_settings=_auth_settings,
|
|
346
|
+
collection_formats=_collection_formats,
|
|
347
|
+
_host=_host,
|
|
348
|
+
_request_auth=_request_auth
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
@validate_call
|
|
355
|
+
async def export_issues_organizations_organization_id_projects_project_id_issues_export_get(
|
|
356
|
+
self,
|
|
357
|
+
organization_id: StrictInt,
|
|
358
|
+
project_id: StrictInt,
|
|
359
|
+
_request_timeout: Union[
|
|
360
|
+
None,
|
|
361
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
362
|
+
Tuple[
|
|
363
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
364
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
365
|
+
]
|
|
366
|
+
] = None,
|
|
367
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
368
|
+
_content_type: Optional[StrictStr] = None,
|
|
369
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
370
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
371
|
+
) -> object:
|
|
372
|
+
"""Export Issues
|
|
373
|
+
|
|
374
|
+
Returns all issues of project
|
|
375
|
+
|
|
376
|
+
:param organization_id: (required)
|
|
377
|
+
:type organization_id: int
|
|
378
|
+
:param project_id: (required)
|
|
379
|
+
:type project_id: int
|
|
380
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
381
|
+
number provided, it will be total request
|
|
382
|
+
timeout. It can also be a pair (tuple) of
|
|
383
|
+
(connection, read) timeouts.
|
|
384
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
385
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
386
|
+
request; this effectively ignores the
|
|
387
|
+
authentication in the spec for a single request.
|
|
388
|
+
:type _request_auth: dict, optional
|
|
389
|
+
:param _content_type: force content-type for the request.
|
|
390
|
+
:type _content_type: str, Optional
|
|
391
|
+
:param _headers: set to override the headers for a single
|
|
392
|
+
request; this effectively ignores the headers
|
|
393
|
+
in the spec for a single request.
|
|
394
|
+
:type _headers: dict, optional
|
|
395
|
+
:param _host_index: set to override the host_index for a single
|
|
396
|
+
request; this effectively ignores the host_index
|
|
397
|
+
in the spec for a single request.
|
|
398
|
+
:type _host_index: int, optional
|
|
399
|
+
:return: Returns the result object.
|
|
400
|
+
""" # noqa: E501
|
|
401
|
+
|
|
402
|
+
_param = self._export_issues_organizations_organization_id_projects_project_id_issues_export_get_serialize(
|
|
403
|
+
organization_id=organization_id,
|
|
404
|
+
project_id=project_id,
|
|
405
|
+
_request_auth=_request_auth,
|
|
406
|
+
_content_type=_content_type,
|
|
407
|
+
_headers=_headers,
|
|
408
|
+
_host_index=_host_index
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
412
|
+
'200': "object",
|
|
413
|
+
'422': "HTTPValidationError",
|
|
414
|
+
}
|
|
415
|
+
response_data = await self.api_client.call_api(
|
|
416
|
+
*_param,
|
|
417
|
+
_request_timeout=_request_timeout
|
|
418
|
+
)
|
|
419
|
+
await response_data.read()
|
|
420
|
+
return self.api_client.response_deserialize(
|
|
421
|
+
response_data=response_data,
|
|
422
|
+
response_types_map=_response_types_map,
|
|
423
|
+
).data
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
@validate_call
|
|
427
|
+
async def export_issues_organizations_organization_id_projects_project_id_issues_export_get_with_http_info(
|
|
428
|
+
self,
|
|
429
|
+
organization_id: StrictInt,
|
|
430
|
+
project_id: StrictInt,
|
|
431
|
+
_request_timeout: Union[
|
|
432
|
+
None,
|
|
433
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
434
|
+
Tuple[
|
|
435
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
436
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
437
|
+
]
|
|
438
|
+
] = None,
|
|
439
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
440
|
+
_content_type: Optional[StrictStr] = None,
|
|
441
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
442
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
443
|
+
) -> ApiResponse[object]:
|
|
444
|
+
"""Export Issues
|
|
445
|
+
|
|
446
|
+
Returns all issues of project
|
|
447
|
+
|
|
448
|
+
:param organization_id: (required)
|
|
449
|
+
:type organization_id: int
|
|
450
|
+
:param project_id: (required)
|
|
451
|
+
:type project_id: int
|
|
452
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
453
|
+
number provided, it will be total request
|
|
454
|
+
timeout. It can also be a pair (tuple) of
|
|
455
|
+
(connection, read) timeouts.
|
|
456
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
457
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
458
|
+
request; this effectively ignores the
|
|
459
|
+
authentication in the spec for a single request.
|
|
460
|
+
:type _request_auth: dict, optional
|
|
461
|
+
:param _content_type: force content-type for the request.
|
|
462
|
+
:type _content_type: str, Optional
|
|
463
|
+
:param _headers: set to override the headers for a single
|
|
464
|
+
request; this effectively ignores the headers
|
|
465
|
+
in the spec for a single request.
|
|
466
|
+
:type _headers: dict, optional
|
|
467
|
+
:param _host_index: set to override the host_index for a single
|
|
468
|
+
request; this effectively ignores the host_index
|
|
469
|
+
in the spec for a single request.
|
|
470
|
+
:type _host_index: int, optional
|
|
471
|
+
:return: Returns the result object.
|
|
472
|
+
""" # noqa: E501
|
|
473
|
+
|
|
474
|
+
_param = self._export_issues_organizations_organization_id_projects_project_id_issues_export_get_serialize(
|
|
475
|
+
organization_id=organization_id,
|
|
476
|
+
project_id=project_id,
|
|
477
|
+
_request_auth=_request_auth,
|
|
478
|
+
_content_type=_content_type,
|
|
479
|
+
_headers=_headers,
|
|
480
|
+
_host_index=_host_index
|
|
481
|
+
)
|
|
482
|
+
|
|
483
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
484
|
+
'200': "object",
|
|
485
|
+
'422': "HTTPValidationError",
|
|
486
|
+
}
|
|
487
|
+
response_data = await self.api_client.call_api(
|
|
488
|
+
*_param,
|
|
489
|
+
_request_timeout=_request_timeout
|
|
490
|
+
)
|
|
491
|
+
await response_data.read()
|
|
492
|
+
return self.api_client.response_deserialize(
|
|
493
|
+
response_data=response_data,
|
|
494
|
+
response_types_map=_response_types_map,
|
|
495
|
+
)
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
@validate_call
|
|
499
|
+
async def export_issues_organizations_organization_id_projects_project_id_issues_export_get_without_preload_content(
|
|
500
|
+
self,
|
|
501
|
+
organization_id: StrictInt,
|
|
502
|
+
project_id: StrictInt,
|
|
503
|
+
_request_timeout: Union[
|
|
504
|
+
None,
|
|
505
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
506
|
+
Tuple[
|
|
507
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
508
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
509
|
+
]
|
|
510
|
+
] = None,
|
|
511
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
512
|
+
_content_type: Optional[StrictStr] = None,
|
|
513
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
514
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
515
|
+
) -> RESTResponseType:
|
|
516
|
+
"""Export Issues
|
|
517
|
+
|
|
518
|
+
Returns all issues of project
|
|
519
|
+
|
|
520
|
+
:param organization_id: (required)
|
|
521
|
+
:type organization_id: int
|
|
522
|
+
:param project_id: (required)
|
|
523
|
+
:type project_id: int
|
|
524
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
525
|
+
number provided, it will be total request
|
|
526
|
+
timeout. It can also be a pair (tuple) of
|
|
527
|
+
(connection, read) timeouts.
|
|
528
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
529
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
530
|
+
request; this effectively ignores the
|
|
531
|
+
authentication in the spec for a single request.
|
|
532
|
+
:type _request_auth: dict, optional
|
|
533
|
+
:param _content_type: force content-type for the request.
|
|
534
|
+
:type _content_type: str, Optional
|
|
535
|
+
:param _headers: set to override the headers for a single
|
|
536
|
+
request; this effectively ignores the headers
|
|
537
|
+
in the spec for a single request.
|
|
538
|
+
:type _headers: dict, optional
|
|
539
|
+
:param _host_index: set to override the host_index for a single
|
|
540
|
+
request; this effectively ignores the host_index
|
|
541
|
+
in the spec for a single request.
|
|
542
|
+
:type _host_index: int, optional
|
|
543
|
+
:return: Returns the result object.
|
|
544
|
+
""" # noqa: E501
|
|
545
|
+
|
|
546
|
+
_param = self._export_issues_organizations_organization_id_projects_project_id_issues_export_get_serialize(
|
|
547
|
+
organization_id=organization_id,
|
|
548
|
+
project_id=project_id,
|
|
549
|
+
_request_auth=_request_auth,
|
|
550
|
+
_content_type=_content_type,
|
|
551
|
+
_headers=_headers,
|
|
552
|
+
_host_index=_host_index
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
556
|
+
'200': "object",
|
|
557
|
+
'422': "HTTPValidationError",
|
|
558
|
+
}
|
|
559
|
+
response_data = await self.api_client.call_api(
|
|
560
|
+
*_param,
|
|
561
|
+
_request_timeout=_request_timeout
|
|
562
|
+
)
|
|
563
|
+
return response_data.response
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
def _export_issues_organizations_organization_id_projects_project_id_issues_export_get_serialize(
|
|
567
|
+
self,
|
|
568
|
+
organization_id,
|
|
569
|
+
project_id,
|
|
570
|
+
_request_auth,
|
|
571
|
+
_content_type,
|
|
572
|
+
_headers,
|
|
573
|
+
_host_index,
|
|
574
|
+
) -> RequestSerialized:
|
|
575
|
+
|
|
576
|
+
_host = None
|
|
577
|
+
|
|
578
|
+
_collection_formats: Dict[str, str] = {
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
_path_params: Dict[str, str] = {}
|
|
582
|
+
_query_params: List[Tuple[str, str]] = []
|
|
583
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
584
|
+
_form_params: List[Tuple[str, str]] = []
|
|
585
|
+
_files: Dict[
|
|
586
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
587
|
+
] = {}
|
|
588
|
+
_body_params: Optional[bytes] = None
|
|
589
|
+
|
|
590
|
+
# process the path parameters
|
|
591
|
+
if organization_id is not None:
|
|
592
|
+
_path_params['organization_id'] = organization_id
|
|
593
|
+
if project_id is not None:
|
|
594
|
+
_path_params['project_id'] = project_id
|
|
595
|
+
# process the query parameters
|
|
596
|
+
# process the header parameters
|
|
597
|
+
# process the form parameters
|
|
598
|
+
# process the body parameter
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
# set the HTTP header `Accept`
|
|
602
|
+
if 'Accept' not in _header_params:
|
|
603
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
604
|
+
[
|
|
605
|
+
'application/json'
|
|
606
|
+
]
|
|
607
|
+
)
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
# authentication setting
|
|
611
|
+
_auth_settings: List[str] = [
|
|
612
|
+
'OpenIdConnect'
|
|
613
|
+
]
|
|
614
|
+
|
|
615
|
+
return self.api_client.param_serialize(
|
|
616
|
+
method='GET',
|
|
617
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/issues/export',
|
|
618
|
+
path_params=_path_params,
|
|
619
|
+
query_params=_query_params,
|
|
620
|
+
header_params=_header_params,
|
|
621
|
+
body=_body_params,
|
|
622
|
+
post_params=_form_params,
|
|
623
|
+
files=_files,
|
|
624
|
+
auth_settings=_auth_settings,
|
|
625
|
+
collection_formats=_collection_formats,
|
|
626
|
+
_host=_host,
|
|
627
|
+
_request_auth=_request_auth
|
|
628
|
+
)
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
@validate_call
|
|
634
|
+
async def get_issue_organizations_organization_id_projects_project_id_issues_issue_id_get(
|
|
635
|
+
self,
|
|
636
|
+
organization_id: StrictInt,
|
|
637
|
+
project_id: StrictInt,
|
|
638
|
+
issue_id: StrictInt,
|
|
639
|
+
_request_timeout: Union[
|
|
640
|
+
None,
|
|
641
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
642
|
+
Tuple[
|
|
643
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
644
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
645
|
+
]
|
|
646
|
+
] = None,
|
|
647
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
648
|
+
_content_type: Optional[StrictStr] = None,
|
|
649
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
650
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
651
|
+
) -> IssueDetails:
|
|
652
|
+
"""Get Issue
|
|
653
|
+
|
|
654
|
+
Returns an issue by id
|
|
655
|
+
|
|
656
|
+
:param organization_id: (required)
|
|
657
|
+
:type organization_id: int
|
|
658
|
+
:param project_id: (required)
|
|
659
|
+
:type project_id: int
|
|
660
|
+
:param issue_id: (required)
|
|
661
|
+
:type issue_id: int
|
|
662
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
663
|
+
number provided, it will be total request
|
|
664
|
+
timeout. It can also be a pair (tuple) of
|
|
665
|
+
(connection, read) timeouts.
|
|
666
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
667
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
668
|
+
request; this effectively ignores the
|
|
669
|
+
authentication in the spec for a single request.
|
|
670
|
+
:type _request_auth: dict, optional
|
|
671
|
+
:param _content_type: force content-type for the request.
|
|
672
|
+
:type _content_type: str, Optional
|
|
673
|
+
:param _headers: set to override the headers for a single
|
|
674
|
+
request; this effectively ignores the headers
|
|
675
|
+
in the spec for a single request.
|
|
676
|
+
:type _headers: dict, optional
|
|
677
|
+
:param _host_index: set to override the host_index for a single
|
|
678
|
+
request; this effectively ignores the host_index
|
|
679
|
+
in the spec for a single request.
|
|
680
|
+
:type _host_index: int, optional
|
|
681
|
+
:return: Returns the result object.
|
|
682
|
+
""" # noqa: E501
|
|
683
|
+
|
|
684
|
+
_param = self._get_issue_organizations_organization_id_projects_project_id_issues_issue_id_get_serialize(
|
|
685
|
+
organization_id=organization_id,
|
|
686
|
+
project_id=project_id,
|
|
687
|
+
issue_id=issue_id,
|
|
688
|
+
_request_auth=_request_auth,
|
|
689
|
+
_content_type=_content_type,
|
|
690
|
+
_headers=_headers,
|
|
691
|
+
_host_index=_host_index
|
|
692
|
+
)
|
|
693
|
+
|
|
694
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
695
|
+
'200': "IssueDetails",
|
|
696
|
+
'422': "HTTPValidationError",
|
|
697
|
+
}
|
|
698
|
+
response_data = await self.api_client.call_api(
|
|
699
|
+
*_param,
|
|
700
|
+
_request_timeout=_request_timeout
|
|
701
|
+
)
|
|
702
|
+
await response_data.read()
|
|
703
|
+
return self.api_client.response_deserialize(
|
|
704
|
+
response_data=response_data,
|
|
705
|
+
response_types_map=_response_types_map,
|
|
706
|
+
).data
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
@validate_call
|
|
710
|
+
async def get_issue_organizations_organization_id_projects_project_id_issues_issue_id_get_with_http_info(
|
|
711
|
+
self,
|
|
712
|
+
organization_id: StrictInt,
|
|
713
|
+
project_id: StrictInt,
|
|
714
|
+
issue_id: StrictInt,
|
|
715
|
+
_request_timeout: Union[
|
|
716
|
+
None,
|
|
717
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
718
|
+
Tuple[
|
|
719
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
720
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
721
|
+
]
|
|
722
|
+
] = None,
|
|
723
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
724
|
+
_content_type: Optional[StrictStr] = None,
|
|
725
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
726
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
727
|
+
) -> ApiResponse[IssueDetails]:
|
|
728
|
+
"""Get Issue
|
|
729
|
+
|
|
730
|
+
Returns an issue by id
|
|
731
|
+
|
|
732
|
+
:param organization_id: (required)
|
|
733
|
+
:type organization_id: int
|
|
734
|
+
:param project_id: (required)
|
|
735
|
+
:type project_id: int
|
|
736
|
+
:param issue_id: (required)
|
|
737
|
+
:type issue_id: int
|
|
738
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
739
|
+
number provided, it will be total request
|
|
740
|
+
timeout. It can also be a pair (tuple) of
|
|
741
|
+
(connection, read) timeouts.
|
|
742
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
743
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
744
|
+
request; this effectively ignores the
|
|
745
|
+
authentication in the spec for a single request.
|
|
746
|
+
:type _request_auth: dict, optional
|
|
747
|
+
:param _content_type: force content-type for the request.
|
|
748
|
+
:type _content_type: str, Optional
|
|
749
|
+
:param _headers: set to override the headers for a single
|
|
750
|
+
request; this effectively ignores the headers
|
|
751
|
+
in the spec for a single request.
|
|
752
|
+
:type _headers: dict, optional
|
|
753
|
+
:param _host_index: set to override the host_index for a single
|
|
754
|
+
request; this effectively ignores the host_index
|
|
755
|
+
in the spec for a single request.
|
|
756
|
+
:type _host_index: int, optional
|
|
757
|
+
:return: Returns the result object.
|
|
758
|
+
""" # noqa: E501
|
|
759
|
+
|
|
760
|
+
_param = self._get_issue_organizations_organization_id_projects_project_id_issues_issue_id_get_serialize(
|
|
761
|
+
organization_id=organization_id,
|
|
762
|
+
project_id=project_id,
|
|
763
|
+
issue_id=issue_id,
|
|
764
|
+
_request_auth=_request_auth,
|
|
765
|
+
_content_type=_content_type,
|
|
766
|
+
_headers=_headers,
|
|
767
|
+
_host_index=_host_index
|
|
768
|
+
)
|
|
769
|
+
|
|
770
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
771
|
+
'200': "IssueDetails",
|
|
772
|
+
'422': "HTTPValidationError",
|
|
773
|
+
}
|
|
774
|
+
response_data = await self.api_client.call_api(
|
|
775
|
+
*_param,
|
|
776
|
+
_request_timeout=_request_timeout
|
|
777
|
+
)
|
|
778
|
+
await response_data.read()
|
|
779
|
+
return self.api_client.response_deserialize(
|
|
780
|
+
response_data=response_data,
|
|
781
|
+
response_types_map=_response_types_map,
|
|
782
|
+
)
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
@validate_call
|
|
786
|
+
async def get_issue_organizations_organization_id_projects_project_id_issues_issue_id_get_without_preload_content(
|
|
787
|
+
self,
|
|
788
|
+
organization_id: StrictInt,
|
|
789
|
+
project_id: StrictInt,
|
|
790
|
+
issue_id: StrictInt,
|
|
791
|
+
_request_timeout: Union[
|
|
792
|
+
None,
|
|
793
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
794
|
+
Tuple[
|
|
795
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
796
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
797
|
+
]
|
|
798
|
+
] = None,
|
|
799
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
800
|
+
_content_type: Optional[StrictStr] = None,
|
|
801
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
802
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
803
|
+
) -> RESTResponseType:
|
|
804
|
+
"""Get Issue
|
|
805
|
+
|
|
806
|
+
Returns an issue by id
|
|
807
|
+
|
|
808
|
+
:param organization_id: (required)
|
|
809
|
+
:type organization_id: int
|
|
810
|
+
:param project_id: (required)
|
|
811
|
+
:type project_id: int
|
|
812
|
+
:param issue_id: (required)
|
|
813
|
+
:type issue_id: int
|
|
814
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
815
|
+
number provided, it will be total request
|
|
816
|
+
timeout. It can also be a pair (tuple) of
|
|
817
|
+
(connection, read) timeouts.
|
|
818
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
819
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
820
|
+
request; this effectively ignores the
|
|
821
|
+
authentication in the spec for a single request.
|
|
822
|
+
:type _request_auth: dict, optional
|
|
823
|
+
:param _content_type: force content-type for the request.
|
|
824
|
+
:type _content_type: str, Optional
|
|
825
|
+
:param _headers: set to override the headers for a single
|
|
826
|
+
request; this effectively ignores the headers
|
|
827
|
+
in the spec for a single request.
|
|
828
|
+
:type _headers: dict, optional
|
|
829
|
+
:param _host_index: set to override the host_index for a single
|
|
830
|
+
request; this effectively ignores the host_index
|
|
831
|
+
in the spec for a single request.
|
|
832
|
+
:type _host_index: int, optional
|
|
833
|
+
:return: Returns the result object.
|
|
834
|
+
""" # noqa: E501
|
|
835
|
+
|
|
836
|
+
_param = self._get_issue_organizations_organization_id_projects_project_id_issues_issue_id_get_serialize(
|
|
837
|
+
organization_id=organization_id,
|
|
838
|
+
project_id=project_id,
|
|
839
|
+
issue_id=issue_id,
|
|
840
|
+
_request_auth=_request_auth,
|
|
841
|
+
_content_type=_content_type,
|
|
842
|
+
_headers=_headers,
|
|
843
|
+
_host_index=_host_index
|
|
844
|
+
)
|
|
845
|
+
|
|
846
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
847
|
+
'200': "IssueDetails",
|
|
848
|
+
'422': "HTTPValidationError",
|
|
849
|
+
}
|
|
850
|
+
response_data = await self.api_client.call_api(
|
|
851
|
+
*_param,
|
|
852
|
+
_request_timeout=_request_timeout
|
|
853
|
+
)
|
|
854
|
+
return response_data.response
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
def _get_issue_organizations_organization_id_projects_project_id_issues_issue_id_get_serialize(
|
|
858
|
+
self,
|
|
859
|
+
organization_id,
|
|
860
|
+
project_id,
|
|
861
|
+
issue_id,
|
|
862
|
+
_request_auth,
|
|
863
|
+
_content_type,
|
|
864
|
+
_headers,
|
|
865
|
+
_host_index,
|
|
866
|
+
) -> RequestSerialized:
|
|
867
|
+
|
|
868
|
+
_host = None
|
|
869
|
+
|
|
870
|
+
_collection_formats: Dict[str, str] = {
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
_path_params: Dict[str, str] = {}
|
|
874
|
+
_query_params: List[Tuple[str, str]] = []
|
|
875
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
876
|
+
_form_params: List[Tuple[str, str]] = []
|
|
877
|
+
_files: Dict[
|
|
878
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
879
|
+
] = {}
|
|
880
|
+
_body_params: Optional[bytes] = None
|
|
881
|
+
|
|
882
|
+
# process the path parameters
|
|
883
|
+
if organization_id is not None:
|
|
884
|
+
_path_params['organization_id'] = organization_id
|
|
885
|
+
if project_id is not None:
|
|
886
|
+
_path_params['project_id'] = project_id
|
|
887
|
+
if issue_id is not None:
|
|
888
|
+
_path_params['issue_id'] = issue_id
|
|
889
|
+
# process the query parameters
|
|
890
|
+
# process the header parameters
|
|
891
|
+
# process the form parameters
|
|
892
|
+
# process the body parameter
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
# set the HTTP header `Accept`
|
|
896
|
+
if 'Accept' not in _header_params:
|
|
897
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
898
|
+
[
|
|
899
|
+
'application/json'
|
|
900
|
+
]
|
|
901
|
+
)
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
# authentication setting
|
|
905
|
+
_auth_settings: List[str] = [
|
|
906
|
+
'OpenIdConnect'
|
|
907
|
+
]
|
|
908
|
+
|
|
909
|
+
return self.api_client.param_serialize(
|
|
910
|
+
method='GET',
|
|
911
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/issues/{issue_id}',
|
|
912
|
+
path_params=_path_params,
|
|
913
|
+
query_params=_query_params,
|
|
914
|
+
header_params=_header_params,
|
|
915
|
+
body=_body_params,
|
|
916
|
+
post_params=_form_params,
|
|
917
|
+
files=_files,
|
|
918
|
+
auth_settings=_auth_settings,
|
|
919
|
+
collection_formats=_collection_formats,
|
|
920
|
+
_host=_host,
|
|
921
|
+
_request_auth=_request_auth
|
|
922
|
+
)
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
@validate_call
|
|
928
|
+
async def get_issues_organizations_organization_id_projects_project_id_issues_get(
|
|
929
|
+
self,
|
|
930
|
+
organization_id: StrictInt,
|
|
931
|
+
project_id: StrictInt,
|
|
932
|
+
_request_timeout: Union[
|
|
933
|
+
None,
|
|
934
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
935
|
+
Tuple[
|
|
936
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
937
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
938
|
+
]
|
|
939
|
+
] = None,
|
|
940
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
941
|
+
_content_type: Optional[StrictStr] = None,
|
|
942
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
943
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
944
|
+
) -> List[IssueForList]:
|
|
945
|
+
"""Get Issues
|
|
946
|
+
|
|
947
|
+
Returns all issues of project
|
|
948
|
+
|
|
949
|
+
:param organization_id: (required)
|
|
950
|
+
:type organization_id: int
|
|
951
|
+
:param project_id: (required)
|
|
952
|
+
:type project_id: int
|
|
953
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
954
|
+
number provided, it will be total request
|
|
955
|
+
timeout. It can also be a pair (tuple) of
|
|
956
|
+
(connection, read) timeouts.
|
|
957
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
958
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
959
|
+
request; this effectively ignores the
|
|
960
|
+
authentication in the spec for a single request.
|
|
961
|
+
:type _request_auth: dict, optional
|
|
962
|
+
:param _content_type: force content-type for the request.
|
|
963
|
+
:type _content_type: str, Optional
|
|
964
|
+
:param _headers: set to override the headers for a single
|
|
965
|
+
request; this effectively ignores the headers
|
|
966
|
+
in the spec for a single request.
|
|
967
|
+
:type _headers: dict, optional
|
|
968
|
+
:param _host_index: set to override the host_index for a single
|
|
969
|
+
request; this effectively ignores the host_index
|
|
970
|
+
in the spec for a single request.
|
|
971
|
+
:type _host_index: int, optional
|
|
972
|
+
:return: Returns the result object.
|
|
973
|
+
""" # noqa: E501
|
|
974
|
+
|
|
975
|
+
_param = self._get_issues_organizations_organization_id_projects_project_id_issues_get_serialize(
|
|
976
|
+
organization_id=organization_id,
|
|
977
|
+
project_id=project_id,
|
|
978
|
+
_request_auth=_request_auth,
|
|
979
|
+
_content_type=_content_type,
|
|
980
|
+
_headers=_headers,
|
|
981
|
+
_host_index=_host_index
|
|
982
|
+
)
|
|
983
|
+
|
|
984
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
985
|
+
'200': "List[IssueForList]",
|
|
986
|
+
'422': "HTTPValidationError",
|
|
987
|
+
}
|
|
988
|
+
response_data = await self.api_client.call_api(
|
|
989
|
+
*_param,
|
|
990
|
+
_request_timeout=_request_timeout
|
|
991
|
+
)
|
|
992
|
+
await response_data.read()
|
|
993
|
+
return self.api_client.response_deserialize(
|
|
994
|
+
response_data=response_data,
|
|
995
|
+
response_types_map=_response_types_map,
|
|
996
|
+
).data
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
@validate_call
|
|
1000
|
+
async def get_issues_organizations_organization_id_projects_project_id_issues_get_with_http_info(
|
|
1001
|
+
self,
|
|
1002
|
+
organization_id: StrictInt,
|
|
1003
|
+
project_id: StrictInt,
|
|
1004
|
+
_request_timeout: Union[
|
|
1005
|
+
None,
|
|
1006
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1007
|
+
Tuple[
|
|
1008
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1009
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1010
|
+
]
|
|
1011
|
+
] = None,
|
|
1012
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1013
|
+
_content_type: Optional[StrictStr] = None,
|
|
1014
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1015
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1016
|
+
) -> ApiResponse[List[IssueForList]]:
|
|
1017
|
+
"""Get Issues
|
|
1018
|
+
|
|
1019
|
+
Returns all issues of project
|
|
1020
|
+
|
|
1021
|
+
:param organization_id: (required)
|
|
1022
|
+
:type organization_id: int
|
|
1023
|
+
:param project_id: (required)
|
|
1024
|
+
:type project_id: int
|
|
1025
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1026
|
+
number provided, it will be total request
|
|
1027
|
+
timeout. It can also be a pair (tuple) of
|
|
1028
|
+
(connection, read) timeouts.
|
|
1029
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1030
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1031
|
+
request; this effectively ignores the
|
|
1032
|
+
authentication in the spec for a single request.
|
|
1033
|
+
:type _request_auth: dict, optional
|
|
1034
|
+
:param _content_type: force content-type for the request.
|
|
1035
|
+
:type _content_type: str, Optional
|
|
1036
|
+
:param _headers: set to override the headers for a single
|
|
1037
|
+
request; this effectively ignores the headers
|
|
1038
|
+
in the spec for a single request.
|
|
1039
|
+
:type _headers: dict, optional
|
|
1040
|
+
:param _host_index: set to override the host_index for a single
|
|
1041
|
+
request; this effectively ignores the host_index
|
|
1042
|
+
in the spec for a single request.
|
|
1043
|
+
:type _host_index: int, optional
|
|
1044
|
+
:return: Returns the result object.
|
|
1045
|
+
""" # noqa: E501
|
|
1046
|
+
|
|
1047
|
+
_param = self._get_issues_organizations_organization_id_projects_project_id_issues_get_serialize(
|
|
1048
|
+
organization_id=organization_id,
|
|
1049
|
+
project_id=project_id,
|
|
1050
|
+
_request_auth=_request_auth,
|
|
1051
|
+
_content_type=_content_type,
|
|
1052
|
+
_headers=_headers,
|
|
1053
|
+
_host_index=_host_index
|
|
1054
|
+
)
|
|
1055
|
+
|
|
1056
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1057
|
+
'200': "List[IssueForList]",
|
|
1058
|
+
'422': "HTTPValidationError",
|
|
1059
|
+
}
|
|
1060
|
+
response_data = await self.api_client.call_api(
|
|
1061
|
+
*_param,
|
|
1062
|
+
_request_timeout=_request_timeout
|
|
1063
|
+
)
|
|
1064
|
+
await response_data.read()
|
|
1065
|
+
return self.api_client.response_deserialize(
|
|
1066
|
+
response_data=response_data,
|
|
1067
|
+
response_types_map=_response_types_map,
|
|
1068
|
+
)
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
@validate_call
|
|
1072
|
+
async def get_issues_organizations_organization_id_projects_project_id_issues_get_without_preload_content(
|
|
1073
|
+
self,
|
|
1074
|
+
organization_id: StrictInt,
|
|
1075
|
+
project_id: StrictInt,
|
|
1076
|
+
_request_timeout: Union[
|
|
1077
|
+
None,
|
|
1078
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1079
|
+
Tuple[
|
|
1080
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1081
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1082
|
+
]
|
|
1083
|
+
] = None,
|
|
1084
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1085
|
+
_content_type: Optional[StrictStr] = None,
|
|
1086
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1087
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1088
|
+
) -> RESTResponseType:
|
|
1089
|
+
"""Get Issues
|
|
1090
|
+
|
|
1091
|
+
Returns all issues of project
|
|
1092
|
+
|
|
1093
|
+
:param organization_id: (required)
|
|
1094
|
+
:type organization_id: int
|
|
1095
|
+
:param project_id: (required)
|
|
1096
|
+
:type project_id: int
|
|
1097
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1098
|
+
number provided, it will be total request
|
|
1099
|
+
timeout. It can also be a pair (tuple) of
|
|
1100
|
+
(connection, read) timeouts.
|
|
1101
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1102
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1103
|
+
request; this effectively ignores the
|
|
1104
|
+
authentication in the spec for a single request.
|
|
1105
|
+
:type _request_auth: dict, optional
|
|
1106
|
+
:param _content_type: force content-type for the request.
|
|
1107
|
+
:type _content_type: str, Optional
|
|
1108
|
+
:param _headers: set to override the headers for a single
|
|
1109
|
+
request; this effectively ignores the headers
|
|
1110
|
+
in the spec for a single request.
|
|
1111
|
+
:type _headers: dict, optional
|
|
1112
|
+
:param _host_index: set to override the host_index for a single
|
|
1113
|
+
request; this effectively ignores the host_index
|
|
1114
|
+
in the spec for a single request.
|
|
1115
|
+
:type _host_index: int, optional
|
|
1116
|
+
:return: Returns the result object.
|
|
1117
|
+
""" # noqa: E501
|
|
1118
|
+
|
|
1119
|
+
_param = self._get_issues_organizations_organization_id_projects_project_id_issues_get_serialize(
|
|
1120
|
+
organization_id=organization_id,
|
|
1121
|
+
project_id=project_id,
|
|
1122
|
+
_request_auth=_request_auth,
|
|
1123
|
+
_content_type=_content_type,
|
|
1124
|
+
_headers=_headers,
|
|
1125
|
+
_host_index=_host_index
|
|
1126
|
+
)
|
|
1127
|
+
|
|
1128
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1129
|
+
'200': "List[IssueForList]",
|
|
1130
|
+
'422': "HTTPValidationError",
|
|
1131
|
+
}
|
|
1132
|
+
response_data = await self.api_client.call_api(
|
|
1133
|
+
*_param,
|
|
1134
|
+
_request_timeout=_request_timeout
|
|
1135
|
+
)
|
|
1136
|
+
return response_data.response
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
def _get_issues_organizations_organization_id_projects_project_id_issues_get_serialize(
|
|
1140
|
+
self,
|
|
1141
|
+
organization_id,
|
|
1142
|
+
project_id,
|
|
1143
|
+
_request_auth,
|
|
1144
|
+
_content_type,
|
|
1145
|
+
_headers,
|
|
1146
|
+
_host_index,
|
|
1147
|
+
) -> RequestSerialized:
|
|
1148
|
+
|
|
1149
|
+
_host = None
|
|
1150
|
+
|
|
1151
|
+
_collection_formats: Dict[str, str] = {
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
_path_params: Dict[str, str] = {}
|
|
1155
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1156
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1157
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1158
|
+
_files: Dict[
|
|
1159
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1160
|
+
] = {}
|
|
1161
|
+
_body_params: Optional[bytes] = None
|
|
1162
|
+
|
|
1163
|
+
# process the path parameters
|
|
1164
|
+
if organization_id is not None:
|
|
1165
|
+
_path_params['organization_id'] = organization_id
|
|
1166
|
+
if project_id is not None:
|
|
1167
|
+
_path_params['project_id'] = project_id
|
|
1168
|
+
# process the query parameters
|
|
1169
|
+
# process the header parameters
|
|
1170
|
+
# process the form parameters
|
|
1171
|
+
# process the body parameter
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
# set the HTTP header `Accept`
|
|
1175
|
+
if 'Accept' not in _header_params:
|
|
1176
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1177
|
+
[
|
|
1178
|
+
'application/json'
|
|
1179
|
+
]
|
|
1180
|
+
)
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
# authentication setting
|
|
1184
|
+
_auth_settings: List[str] = [
|
|
1185
|
+
'OpenIdConnect'
|
|
1186
|
+
]
|
|
1187
|
+
|
|
1188
|
+
return self.api_client.param_serialize(
|
|
1189
|
+
method='GET',
|
|
1190
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/issues',
|
|
1191
|
+
path_params=_path_params,
|
|
1192
|
+
query_params=_query_params,
|
|
1193
|
+
header_params=_header_params,
|
|
1194
|
+
body=_body_params,
|
|
1195
|
+
post_params=_form_params,
|
|
1196
|
+
files=_files,
|
|
1197
|
+
auth_settings=_auth_settings,
|
|
1198
|
+
collection_formats=_collection_formats,
|
|
1199
|
+
_host=_host,
|
|
1200
|
+
_request_auth=_request_auth
|
|
1201
|
+
)
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
@validate_call
|
|
1207
|
+
async def patch_issue_organizations_organization_id_projects_project_id_issues_issue_id_patch(
|
|
1208
|
+
self,
|
|
1209
|
+
organization_id: StrictInt,
|
|
1210
|
+
project_id: StrictInt,
|
|
1211
|
+
issue_id: StrictInt,
|
|
1212
|
+
issue_patch: IssuePatch,
|
|
1213
|
+
_request_timeout: Union[
|
|
1214
|
+
None,
|
|
1215
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1216
|
+
Tuple[
|
|
1217
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1218
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1219
|
+
]
|
|
1220
|
+
] = None,
|
|
1221
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1222
|
+
_content_type: Optional[StrictStr] = None,
|
|
1223
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1224
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1225
|
+
) -> SuccessAndMessageResponse:
|
|
1226
|
+
"""Patch Issue
|
|
1227
|
+
|
|
1228
|
+
Patch issue
|
|
1229
|
+
|
|
1230
|
+
:param organization_id: (required)
|
|
1231
|
+
:type organization_id: int
|
|
1232
|
+
:param project_id: (required)
|
|
1233
|
+
:type project_id: int
|
|
1234
|
+
:param issue_id: (required)
|
|
1235
|
+
:type issue_id: int
|
|
1236
|
+
:param issue_patch: (required)
|
|
1237
|
+
:type issue_patch: IssuePatch
|
|
1238
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1239
|
+
number provided, it will be total request
|
|
1240
|
+
timeout. It can also be a pair (tuple) of
|
|
1241
|
+
(connection, read) timeouts.
|
|
1242
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1243
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1244
|
+
request; this effectively ignores the
|
|
1245
|
+
authentication in the spec for a single request.
|
|
1246
|
+
:type _request_auth: dict, optional
|
|
1247
|
+
:param _content_type: force content-type for the request.
|
|
1248
|
+
:type _content_type: str, Optional
|
|
1249
|
+
:param _headers: set to override the headers for a single
|
|
1250
|
+
request; this effectively ignores the headers
|
|
1251
|
+
in the spec for a single request.
|
|
1252
|
+
:type _headers: dict, optional
|
|
1253
|
+
:param _host_index: set to override the host_index for a single
|
|
1254
|
+
request; this effectively ignores the host_index
|
|
1255
|
+
in the spec for a single request.
|
|
1256
|
+
:type _host_index: int, optional
|
|
1257
|
+
:return: Returns the result object.
|
|
1258
|
+
""" # noqa: E501
|
|
1259
|
+
|
|
1260
|
+
_param = self._patch_issue_organizations_organization_id_projects_project_id_issues_issue_id_patch_serialize(
|
|
1261
|
+
organization_id=organization_id,
|
|
1262
|
+
project_id=project_id,
|
|
1263
|
+
issue_id=issue_id,
|
|
1264
|
+
issue_patch=issue_patch,
|
|
1265
|
+
_request_auth=_request_auth,
|
|
1266
|
+
_content_type=_content_type,
|
|
1267
|
+
_headers=_headers,
|
|
1268
|
+
_host_index=_host_index
|
|
1269
|
+
)
|
|
1270
|
+
|
|
1271
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1272
|
+
'200': "SuccessAndMessageResponse",
|
|
1273
|
+
'422': "HTTPValidationError",
|
|
1274
|
+
}
|
|
1275
|
+
response_data = await self.api_client.call_api(
|
|
1276
|
+
*_param,
|
|
1277
|
+
_request_timeout=_request_timeout
|
|
1278
|
+
)
|
|
1279
|
+
await response_data.read()
|
|
1280
|
+
return self.api_client.response_deserialize(
|
|
1281
|
+
response_data=response_data,
|
|
1282
|
+
response_types_map=_response_types_map,
|
|
1283
|
+
).data
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
@validate_call
|
|
1287
|
+
async def patch_issue_organizations_organization_id_projects_project_id_issues_issue_id_patch_with_http_info(
|
|
1288
|
+
self,
|
|
1289
|
+
organization_id: StrictInt,
|
|
1290
|
+
project_id: StrictInt,
|
|
1291
|
+
issue_id: StrictInt,
|
|
1292
|
+
issue_patch: IssuePatch,
|
|
1293
|
+
_request_timeout: Union[
|
|
1294
|
+
None,
|
|
1295
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1296
|
+
Tuple[
|
|
1297
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1298
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1299
|
+
]
|
|
1300
|
+
] = None,
|
|
1301
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1302
|
+
_content_type: Optional[StrictStr] = None,
|
|
1303
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1304
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1305
|
+
) -> ApiResponse[SuccessAndMessageResponse]:
|
|
1306
|
+
"""Patch Issue
|
|
1307
|
+
|
|
1308
|
+
Patch issue
|
|
1309
|
+
|
|
1310
|
+
:param organization_id: (required)
|
|
1311
|
+
:type organization_id: int
|
|
1312
|
+
:param project_id: (required)
|
|
1313
|
+
:type project_id: int
|
|
1314
|
+
:param issue_id: (required)
|
|
1315
|
+
:type issue_id: int
|
|
1316
|
+
:param issue_patch: (required)
|
|
1317
|
+
:type issue_patch: IssuePatch
|
|
1318
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1319
|
+
number provided, it will be total request
|
|
1320
|
+
timeout. It can also be a pair (tuple) of
|
|
1321
|
+
(connection, read) timeouts.
|
|
1322
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1323
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1324
|
+
request; this effectively ignores the
|
|
1325
|
+
authentication in the spec for a single request.
|
|
1326
|
+
:type _request_auth: dict, optional
|
|
1327
|
+
:param _content_type: force content-type for the request.
|
|
1328
|
+
:type _content_type: str, Optional
|
|
1329
|
+
:param _headers: set to override the headers for a single
|
|
1330
|
+
request; this effectively ignores the headers
|
|
1331
|
+
in the spec for a single request.
|
|
1332
|
+
:type _headers: dict, optional
|
|
1333
|
+
:param _host_index: set to override the host_index for a single
|
|
1334
|
+
request; this effectively ignores the host_index
|
|
1335
|
+
in the spec for a single request.
|
|
1336
|
+
:type _host_index: int, optional
|
|
1337
|
+
:return: Returns the result object.
|
|
1338
|
+
""" # noqa: E501
|
|
1339
|
+
|
|
1340
|
+
_param = self._patch_issue_organizations_organization_id_projects_project_id_issues_issue_id_patch_serialize(
|
|
1341
|
+
organization_id=organization_id,
|
|
1342
|
+
project_id=project_id,
|
|
1343
|
+
issue_id=issue_id,
|
|
1344
|
+
issue_patch=issue_patch,
|
|
1345
|
+
_request_auth=_request_auth,
|
|
1346
|
+
_content_type=_content_type,
|
|
1347
|
+
_headers=_headers,
|
|
1348
|
+
_host_index=_host_index
|
|
1349
|
+
)
|
|
1350
|
+
|
|
1351
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1352
|
+
'200': "SuccessAndMessageResponse",
|
|
1353
|
+
'422': "HTTPValidationError",
|
|
1354
|
+
}
|
|
1355
|
+
response_data = await self.api_client.call_api(
|
|
1356
|
+
*_param,
|
|
1357
|
+
_request_timeout=_request_timeout
|
|
1358
|
+
)
|
|
1359
|
+
await response_data.read()
|
|
1360
|
+
return self.api_client.response_deserialize(
|
|
1361
|
+
response_data=response_data,
|
|
1362
|
+
response_types_map=_response_types_map,
|
|
1363
|
+
)
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
@validate_call
|
|
1367
|
+
async def patch_issue_organizations_organization_id_projects_project_id_issues_issue_id_patch_without_preload_content(
|
|
1368
|
+
self,
|
|
1369
|
+
organization_id: StrictInt,
|
|
1370
|
+
project_id: StrictInt,
|
|
1371
|
+
issue_id: StrictInt,
|
|
1372
|
+
issue_patch: IssuePatch,
|
|
1373
|
+
_request_timeout: Union[
|
|
1374
|
+
None,
|
|
1375
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1376
|
+
Tuple[
|
|
1377
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1378
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1379
|
+
]
|
|
1380
|
+
] = None,
|
|
1381
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1382
|
+
_content_type: Optional[StrictStr] = None,
|
|
1383
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1384
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1385
|
+
) -> RESTResponseType:
|
|
1386
|
+
"""Patch Issue
|
|
1387
|
+
|
|
1388
|
+
Patch issue
|
|
1389
|
+
|
|
1390
|
+
:param organization_id: (required)
|
|
1391
|
+
:type organization_id: int
|
|
1392
|
+
:param project_id: (required)
|
|
1393
|
+
:type project_id: int
|
|
1394
|
+
:param issue_id: (required)
|
|
1395
|
+
:type issue_id: int
|
|
1396
|
+
:param issue_patch: (required)
|
|
1397
|
+
:type issue_patch: IssuePatch
|
|
1398
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1399
|
+
number provided, it will be total request
|
|
1400
|
+
timeout. It can also be a pair (tuple) of
|
|
1401
|
+
(connection, read) timeouts.
|
|
1402
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1403
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1404
|
+
request; this effectively ignores the
|
|
1405
|
+
authentication in the spec for a single request.
|
|
1406
|
+
:type _request_auth: dict, optional
|
|
1407
|
+
:param _content_type: force content-type for the request.
|
|
1408
|
+
:type _content_type: str, Optional
|
|
1409
|
+
:param _headers: set to override the headers for a single
|
|
1410
|
+
request; this effectively ignores the headers
|
|
1411
|
+
in the spec for a single request.
|
|
1412
|
+
:type _headers: dict, optional
|
|
1413
|
+
:param _host_index: set to override the host_index for a single
|
|
1414
|
+
request; this effectively ignores the host_index
|
|
1415
|
+
in the spec for a single request.
|
|
1416
|
+
:type _host_index: int, optional
|
|
1417
|
+
:return: Returns the result object.
|
|
1418
|
+
""" # noqa: E501
|
|
1419
|
+
|
|
1420
|
+
_param = self._patch_issue_organizations_organization_id_projects_project_id_issues_issue_id_patch_serialize(
|
|
1421
|
+
organization_id=organization_id,
|
|
1422
|
+
project_id=project_id,
|
|
1423
|
+
issue_id=issue_id,
|
|
1424
|
+
issue_patch=issue_patch,
|
|
1425
|
+
_request_auth=_request_auth,
|
|
1426
|
+
_content_type=_content_type,
|
|
1427
|
+
_headers=_headers,
|
|
1428
|
+
_host_index=_host_index
|
|
1429
|
+
)
|
|
1430
|
+
|
|
1431
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1432
|
+
'200': "SuccessAndMessageResponse",
|
|
1433
|
+
'422': "HTTPValidationError",
|
|
1434
|
+
}
|
|
1435
|
+
response_data = await self.api_client.call_api(
|
|
1436
|
+
*_param,
|
|
1437
|
+
_request_timeout=_request_timeout
|
|
1438
|
+
)
|
|
1439
|
+
return response_data.response
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
def _patch_issue_organizations_organization_id_projects_project_id_issues_issue_id_patch_serialize(
|
|
1443
|
+
self,
|
|
1444
|
+
organization_id,
|
|
1445
|
+
project_id,
|
|
1446
|
+
issue_id,
|
|
1447
|
+
issue_patch,
|
|
1448
|
+
_request_auth,
|
|
1449
|
+
_content_type,
|
|
1450
|
+
_headers,
|
|
1451
|
+
_host_index,
|
|
1452
|
+
) -> RequestSerialized:
|
|
1453
|
+
|
|
1454
|
+
_host = None
|
|
1455
|
+
|
|
1456
|
+
_collection_formats: Dict[str, str] = {
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
_path_params: Dict[str, str] = {}
|
|
1460
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1461
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1462
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1463
|
+
_files: Dict[
|
|
1464
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1465
|
+
] = {}
|
|
1466
|
+
_body_params: Optional[bytes] = None
|
|
1467
|
+
|
|
1468
|
+
# process the path parameters
|
|
1469
|
+
if organization_id is not None:
|
|
1470
|
+
_path_params['organization_id'] = organization_id
|
|
1471
|
+
if project_id is not None:
|
|
1472
|
+
_path_params['project_id'] = project_id
|
|
1473
|
+
if issue_id is not None:
|
|
1474
|
+
_path_params['issue_id'] = issue_id
|
|
1475
|
+
# process the query parameters
|
|
1476
|
+
# process the header parameters
|
|
1477
|
+
# process the form parameters
|
|
1478
|
+
# process the body parameter
|
|
1479
|
+
if issue_patch is not None:
|
|
1480
|
+
_body_params = issue_patch
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
# set the HTTP header `Accept`
|
|
1484
|
+
if 'Accept' not in _header_params:
|
|
1485
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1486
|
+
[
|
|
1487
|
+
'application/json'
|
|
1488
|
+
]
|
|
1489
|
+
)
|
|
1490
|
+
|
|
1491
|
+
# set the HTTP header `Content-Type`
|
|
1492
|
+
if _content_type:
|
|
1493
|
+
_header_params['Content-Type'] = _content_type
|
|
1494
|
+
else:
|
|
1495
|
+
_default_content_type = (
|
|
1496
|
+
self.api_client.select_header_content_type(
|
|
1497
|
+
[
|
|
1498
|
+
'application/json'
|
|
1499
|
+
]
|
|
1500
|
+
)
|
|
1501
|
+
)
|
|
1502
|
+
if _default_content_type is not None:
|
|
1503
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1504
|
+
|
|
1505
|
+
# authentication setting
|
|
1506
|
+
_auth_settings: List[str] = [
|
|
1507
|
+
'OpenIdConnect'
|
|
1508
|
+
]
|
|
1509
|
+
|
|
1510
|
+
return self.api_client.param_serialize(
|
|
1511
|
+
method='PATCH',
|
|
1512
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/issues/{issue_id}',
|
|
1513
|
+
path_params=_path_params,
|
|
1514
|
+
query_params=_query_params,
|
|
1515
|
+
header_params=_header_params,
|
|
1516
|
+
body=_body_params,
|
|
1517
|
+
post_params=_form_params,
|
|
1518
|
+
files=_files,
|
|
1519
|
+
auth_settings=_auth_settings,
|
|
1520
|
+
collection_formats=_collection_formats,
|
|
1521
|
+
_host=_host,
|
|
1522
|
+
_request_auth=_request_auth
|
|
1523
|
+
)
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
@validate_call
|
|
1529
|
+
async def post_issue_organizations_organization_id_projects_project_id_issues_post(
|
|
1530
|
+
self,
|
|
1531
|
+
organization_id: StrictInt,
|
|
1532
|
+
project_id: StrictInt,
|
|
1533
|
+
issue_info_base_complete: IssueInfoBaseComplete,
|
|
1534
|
+
_request_timeout: Union[
|
|
1535
|
+
None,
|
|
1536
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1537
|
+
Tuple[
|
|
1538
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1539
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1540
|
+
]
|
|
1541
|
+
] = None,
|
|
1542
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1543
|
+
_content_type: Optional[StrictStr] = None,
|
|
1544
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1545
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1546
|
+
) -> IdAndMessageResponse:
|
|
1547
|
+
"""Post Issue
|
|
1548
|
+
|
|
1549
|
+
Post a new issue
|
|
1550
|
+
|
|
1551
|
+
:param organization_id: (required)
|
|
1552
|
+
:type organization_id: int
|
|
1553
|
+
:param project_id: (required)
|
|
1554
|
+
:type project_id: int
|
|
1555
|
+
:param issue_info_base_complete: (required)
|
|
1556
|
+
:type issue_info_base_complete: IssueInfoBaseComplete
|
|
1557
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1558
|
+
number provided, it will be total request
|
|
1559
|
+
timeout. It can also be a pair (tuple) of
|
|
1560
|
+
(connection, read) timeouts.
|
|
1561
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1562
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1563
|
+
request; this effectively ignores the
|
|
1564
|
+
authentication in the spec for a single request.
|
|
1565
|
+
:type _request_auth: dict, optional
|
|
1566
|
+
:param _content_type: force content-type for the request.
|
|
1567
|
+
:type _content_type: str, Optional
|
|
1568
|
+
:param _headers: set to override the headers for a single
|
|
1569
|
+
request; this effectively ignores the headers
|
|
1570
|
+
in the spec for a single request.
|
|
1571
|
+
:type _headers: dict, optional
|
|
1572
|
+
:param _host_index: set to override the host_index for a single
|
|
1573
|
+
request; this effectively ignores the host_index
|
|
1574
|
+
in the spec for a single request.
|
|
1575
|
+
:type _host_index: int, optional
|
|
1576
|
+
:return: Returns the result object.
|
|
1577
|
+
""" # noqa: E501
|
|
1578
|
+
|
|
1579
|
+
_param = self._post_issue_organizations_organization_id_projects_project_id_issues_post_serialize(
|
|
1580
|
+
organization_id=organization_id,
|
|
1581
|
+
project_id=project_id,
|
|
1582
|
+
issue_info_base_complete=issue_info_base_complete,
|
|
1583
|
+
_request_auth=_request_auth,
|
|
1584
|
+
_content_type=_content_type,
|
|
1585
|
+
_headers=_headers,
|
|
1586
|
+
_host_index=_host_index
|
|
1587
|
+
)
|
|
1588
|
+
|
|
1589
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1590
|
+
'200': "IdAndMessageResponse",
|
|
1591
|
+
'422': "HTTPValidationError",
|
|
1592
|
+
}
|
|
1593
|
+
response_data = await self.api_client.call_api(
|
|
1594
|
+
*_param,
|
|
1595
|
+
_request_timeout=_request_timeout
|
|
1596
|
+
)
|
|
1597
|
+
await response_data.read()
|
|
1598
|
+
return self.api_client.response_deserialize(
|
|
1599
|
+
response_data=response_data,
|
|
1600
|
+
response_types_map=_response_types_map,
|
|
1601
|
+
).data
|
|
1602
|
+
|
|
1603
|
+
|
|
1604
|
+
@validate_call
|
|
1605
|
+
async def post_issue_organizations_organization_id_projects_project_id_issues_post_with_http_info(
|
|
1606
|
+
self,
|
|
1607
|
+
organization_id: StrictInt,
|
|
1608
|
+
project_id: StrictInt,
|
|
1609
|
+
issue_info_base_complete: IssueInfoBaseComplete,
|
|
1610
|
+
_request_timeout: Union[
|
|
1611
|
+
None,
|
|
1612
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1613
|
+
Tuple[
|
|
1614
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1615
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1616
|
+
]
|
|
1617
|
+
] = None,
|
|
1618
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1619
|
+
_content_type: Optional[StrictStr] = None,
|
|
1620
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1621
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1622
|
+
) -> ApiResponse[IdAndMessageResponse]:
|
|
1623
|
+
"""Post Issue
|
|
1624
|
+
|
|
1625
|
+
Post a new issue
|
|
1626
|
+
|
|
1627
|
+
:param organization_id: (required)
|
|
1628
|
+
:type organization_id: int
|
|
1629
|
+
:param project_id: (required)
|
|
1630
|
+
:type project_id: int
|
|
1631
|
+
:param issue_info_base_complete: (required)
|
|
1632
|
+
:type issue_info_base_complete: IssueInfoBaseComplete
|
|
1633
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1634
|
+
number provided, it will be total request
|
|
1635
|
+
timeout. It can also be a pair (tuple) of
|
|
1636
|
+
(connection, read) timeouts.
|
|
1637
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1638
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1639
|
+
request; this effectively ignores the
|
|
1640
|
+
authentication in the spec for a single request.
|
|
1641
|
+
:type _request_auth: dict, optional
|
|
1642
|
+
:param _content_type: force content-type for the request.
|
|
1643
|
+
:type _content_type: str, Optional
|
|
1644
|
+
:param _headers: set to override the headers for a single
|
|
1645
|
+
request; this effectively ignores the headers
|
|
1646
|
+
in the spec for a single request.
|
|
1647
|
+
:type _headers: dict, optional
|
|
1648
|
+
:param _host_index: set to override the host_index for a single
|
|
1649
|
+
request; this effectively ignores the host_index
|
|
1650
|
+
in the spec for a single request.
|
|
1651
|
+
:type _host_index: int, optional
|
|
1652
|
+
:return: Returns the result object.
|
|
1653
|
+
""" # noqa: E501
|
|
1654
|
+
|
|
1655
|
+
_param = self._post_issue_organizations_organization_id_projects_project_id_issues_post_serialize(
|
|
1656
|
+
organization_id=organization_id,
|
|
1657
|
+
project_id=project_id,
|
|
1658
|
+
issue_info_base_complete=issue_info_base_complete,
|
|
1659
|
+
_request_auth=_request_auth,
|
|
1660
|
+
_content_type=_content_type,
|
|
1661
|
+
_headers=_headers,
|
|
1662
|
+
_host_index=_host_index
|
|
1663
|
+
)
|
|
1664
|
+
|
|
1665
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1666
|
+
'200': "IdAndMessageResponse",
|
|
1667
|
+
'422': "HTTPValidationError",
|
|
1668
|
+
}
|
|
1669
|
+
response_data = await self.api_client.call_api(
|
|
1670
|
+
*_param,
|
|
1671
|
+
_request_timeout=_request_timeout
|
|
1672
|
+
)
|
|
1673
|
+
await response_data.read()
|
|
1674
|
+
return self.api_client.response_deserialize(
|
|
1675
|
+
response_data=response_data,
|
|
1676
|
+
response_types_map=_response_types_map,
|
|
1677
|
+
)
|
|
1678
|
+
|
|
1679
|
+
|
|
1680
|
+
@validate_call
|
|
1681
|
+
async def post_issue_organizations_organization_id_projects_project_id_issues_post_without_preload_content(
|
|
1682
|
+
self,
|
|
1683
|
+
organization_id: StrictInt,
|
|
1684
|
+
project_id: StrictInt,
|
|
1685
|
+
issue_info_base_complete: IssueInfoBaseComplete,
|
|
1686
|
+
_request_timeout: Union[
|
|
1687
|
+
None,
|
|
1688
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1689
|
+
Tuple[
|
|
1690
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1691
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1692
|
+
]
|
|
1693
|
+
] = None,
|
|
1694
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1695
|
+
_content_type: Optional[StrictStr] = None,
|
|
1696
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1697
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1698
|
+
) -> RESTResponseType:
|
|
1699
|
+
"""Post Issue
|
|
1700
|
+
|
|
1701
|
+
Post a new issue
|
|
1702
|
+
|
|
1703
|
+
:param organization_id: (required)
|
|
1704
|
+
:type organization_id: int
|
|
1705
|
+
:param project_id: (required)
|
|
1706
|
+
:type project_id: int
|
|
1707
|
+
:param issue_info_base_complete: (required)
|
|
1708
|
+
:type issue_info_base_complete: IssueInfoBaseComplete
|
|
1709
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1710
|
+
number provided, it will be total request
|
|
1711
|
+
timeout. It can also be a pair (tuple) of
|
|
1712
|
+
(connection, read) timeouts.
|
|
1713
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1714
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1715
|
+
request; this effectively ignores the
|
|
1716
|
+
authentication in the spec for a single request.
|
|
1717
|
+
:type _request_auth: dict, optional
|
|
1718
|
+
:param _content_type: force content-type for the request.
|
|
1719
|
+
:type _content_type: str, Optional
|
|
1720
|
+
:param _headers: set to override the headers for a single
|
|
1721
|
+
request; this effectively ignores the headers
|
|
1722
|
+
in the spec for a single request.
|
|
1723
|
+
:type _headers: dict, optional
|
|
1724
|
+
:param _host_index: set to override the host_index for a single
|
|
1725
|
+
request; this effectively ignores the host_index
|
|
1726
|
+
in the spec for a single request.
|
|
1727
|
+
:type _host_index: int, optional
|
|
1728
|
+
:return: Returns the result object.
|
|
1729
|
+
""" # noqa: E501
|
|
1730
|
+
|
|
1731
|
+
_param = self._post_issue_organizations_organization_id_projects_project_id_issues_post_serialize(
|
|
1732
|
+
organization_id=organization_id,
|
|
1733
|
+
project_id=project_id,
|
|
1734
|
+
issue_info_base_complete=issue_info_base_complete,
|
|
1735
|
+
_request_auth=_request_auth,
|
|
1736
|
+
_content_type=_content_type,
|
|
1737
|
+
_headers=_headers,
|
|
1738
|
+
_host_index=_host_index
|
|
1739
|
+
)
|
|
1740
|
+
|
|
1741
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1742
|
+
'200': "IdAndMessageResponse",
|
|
1743
|
+
'422': "HTTPValidationError",
|
|
1744
|
+
}
|
|
1745
|
+
response_data = await self.api_client.call_api(
|
|
1746
|
+
*_param,
|
|
1747
|
+
_request_timeout=_request_timeout
|
|
1748
|
+
)
|
|
1749
|
+
return response_data.response
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
def _post_issue_organizations_organization_id_projects_project_id_issues_post_serialize(
|
|
1753
|
+
self,
|
|
1754
|
+
organization_id,
|
|
1755
|
+
project_id,
|
|
1756
|
+
issue_info_base_complete,
|
|
1757
|
+
_request_auth,
|
|
1758
|
+
_content_type,
|
|
1759
|
+
_headers,
|
|
1760
|
+
_host_index,
|
|
1761
|
+
) -> RequestSerialized:
|
|
1762
|
+
|
|
1763
|
+
_host = None
|
|
1764
|
+
|
|
1765
|
+
_collection_formats: Dict[str, str] = {
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
_path_params: Dict[str, str] = {}
|
|
1769
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1770
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1771
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1772
|
+
_files: Dict[
|
|
1773
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1774
|
+
] = {}
|
|
1775
|
+
_body_params: Optional[bytes] = None
|
|
1776
|
+
|
|
1777
|
+
# process the path parameters
|
|
1778
|
+
if organization_id is not None:
|
|
1779
|
+
_path_params['organization_id'] = organization_id
|
|
1780
|
+
if project_id is not None:
|
|
1781
|
+
_path_params['project_id'] = project_id
|
|
1782
|
+
# process the query parameters
|
|
1783
|
+
# process the header parameters
|
|
1784
|
+
# process the form parameters
|
|
1785
|
+
# process the body parameter
|
|
1786
|
+
if issue_info_base_complete is not None:
|
|
1787
|
+
_body_params = issue_info_base_complete
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
# set the HTTP header `Accept`
|
|
1791
|
+
if 'Accept' not in _header_params:
|
|
1792
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1793
|
+
[
|
|
1794
|
+
'application/json'
|
|
1795
|
+
]
|
|
1796
|
+
)
|
|
1797
|
+
|
|
1798
|
+
# set the HTTP header `Content-Type`
|
|
1799
|
+
if _content_type:
|
|
1800
|
+
_header_params['Content-Type'] = _content_type
|
|
1801
|
+
else:
|
|
1802
|
+
_default_content_type = (
|
|
1803
|
+
self.api_client.select_header_content_type(
|
|
1804
|
+
[
|
|
1805
|
+
'application/json'
|
|
1806
|
+
]
|
|
1807
|
+
)
|
|
1808
|
+
)
|
|
1809
|
+
if _default_content_type is not None:
|
|
1810
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1811
|
+
|
|
1812
|
+
# authentication setting
|
|
1813
|
+
_auth_settings: List[str] = [
|
|
1814
|
+
'OpenIdConnect'
|
|
1815
|
+
]
|
|
1816
|
+
|
|
1817
|
+
return self.api_client.param_serialize(
|
|
1818
|
+
method='POST',
|
|
1819
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/issues',
|
|
1820
|
+
path_params=_path_params,
|
|
1821
|
+
query_params=_query_params,
|
|
1822
|
+
header_params=_header_params,
|
|
1823
|
+
body=_body_params,
|
|
1824
|
+
post_params=_form_params,
|
|
1825
|
+
files=_files,
|
|
1826
|
+
auth_settings=_auth_settings,
|
|
1827
|
+
collection_formats=_collection_formats,
|
|
1828
|
+
_host=_host,
|
|
1829
|
+
_request_auth=_request_auth
|
|
1830
|
+
)
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
@validate_call
|
|
1836
|
+
async def post_issue_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_issue_post(
|
|
1837
|
+
self,
|
|
1838
|
+
organization_id: StrictInt,
|
|
1839
|
+
project_id: StrictInt,
|
|
1840
|
+
issue_id: StrictInt,
|
|
1841
|
+
_request_timeout: Union[
|
|
1842
|
+
None,
|
|
1843
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1844
|
+
Tuple[
|
|
1845
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1846
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1847
|
+
]
|
|
1848
|
+
] = None,
|
|
1849
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1850
|
+
_content_type: Optional[StrictStr] = None,
|
|
1851
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1852
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1853
|
+
) -> SuccessAndMessageResponse:
|
|
1854
|
+
"""Post Issue To Github
|
|
1855
|
+
|
|
1856
|
+
Post an existing issue to github
|
|
1857
|
+
|
|
1858
|
+
:param organization_id: (required)
|
|
1859
|
+
:type organization_id: int
|
|
1860
|
+
:param project_id: (required)
|
|
1861
|
+
:type project_id: int
|
|
1862
|
+
:param issue_id: (required)
|
|
1863
|
+
:type issue_id: int
|
|
1864
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1865
|
+
number provided, it will be total request
|
|
1866
|
+
timeout. It can also be a pair (tuple) of
|
|
1867
|
+
(connection, read) timeouts.
|
|
1868
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1869
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1870
|
+
request; this effectively ignores the
|
|
1871
|
+
authentication in the spec for a single request.
|
|
1872
|
+
:type _request_auth: dict, optional
|
|
1873
|
+
:param _content_type: force content-type for the request.
|
|
1874
|
+
:type _content_type: str, Optional
|
|
1875
|
+
:param _headers: set to override the headers for a single
|
|
1876
|
+
request; this effectively ignores the headers
|
|
1877
|
+
in the spec for a single request.
|
|
1878
|
+
:type _headers: dict, optional
|
|
1879
|
+
:param _host_index: set to override the host_index for a single
|
|
1880
|
+
request; this effectively ignores the host_index
|
|
1881
|
+
in the spec for a single request.
|
|
1882
|
+
:type _host_index: int, optional
|
|
1883
|
+
:return: Returns the result object.
|
|
1884
|
+
""" # noqa: E501
|
|
1885
|
+
|
|
1886
|
+
_param = self._post_issue_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_issue_post_serialize(
|
|
1887
|
+
organization_id=organization_id,
|
|
1888
|
+
project_id=project_id,
|
|
1889
|
+
issue_id=issue_id,
|
|
1890
|
+
_request_auth=_request_auth,
|
|
1891
|
+
_content_type=_content_type,
|
|
1892
|
+
_headers=_headers,
|
|
1893
|
+
_host_index=_host_index
|
|
1894
|
+
)
|
|
1895
|
+
|
|
1896
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1897
|
+
'200': "SuccessAndMessageResponse",
|
|
1898
|
+
'422': "HTTPValidationError",
|
|
1899
|
+
}
|
|
1900
|
+
response_data = await self.api_client.call_api(
|
|
1901
|
+
*_param,
|
|
1902
|
+
_request_timeout=_request_timeout
|
|
1903
|
+
)
|
|
1904
|
+
await response_data.read()
|
|
1905
|
+
return self.api_client.response_deserialize(
|
|
1906
|
+
response_data=response_data,
|
|
1907
|
+
response_types_map=_response_types_map,
|
|
1908
|
+
).data
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
@validate_call
|
|
1912
|
+
async def post_issue_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_issue_post_with_http_info(
|
|
1913
|
+
self,
|
|
1914
|
+
organization_id: StrictInt,
|
|
1915
|
+
project_id: StrictInt,
|
|
1916
|
+
issue_id: StrictInt,
|
|
1917
|
+
_request_timeout: Union[
|
|
1918
|
+
None,
|
|
1919
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1920
|
+
Tuple[
|
|
1921
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1922
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1923
|
+
]
|
|
1924
|
+
] = None,
|
|
1925
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1926
|
+
_content_type: Optional[StrictStr] = None,
|
|
1927
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1928
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1929
|
+
) -> ApiResponse[SuccessAndMessageResponse]:
|
|
1930
|
+
"""Post Issue To Github
|
|
1931
|
+
|
|
1932
|
+
Post an existing issue to github
|
|
1933
|
+
|
|
1934
|
+
:param organization_id: (required)
|
|
1935
|
+
:type organization_id: int
|
|
1936
|
+
:param project_id: (required)
|
|
1937
|
+
:type project_id: int
|
|
1938
|
+
:param issue_id: (required)
|
|
1939
|
+
:type issue_id: int
|
|
1940
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1941
|
+
number provided, it will be total request
|
|
1942
|
+
timeout. It can also be a pair (tuple) of
|
|
1943
|
+
(connection, read) timeouts.
|
|
1944
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1945
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1946
|
+
request; this effectively ignores the
|
|
1947
|
+
authentication in the spec for a single request.
|
|
1948
|
+
:type _request_auth: dict, optional
|
|
1949
|
+
:param _content_type: force content-type for the request.
|
|
1950
|
+
:type _content_type: str, Optional
|
|
1951
|
+
:param _headers: set to override the headers for a single
|
|
1952
|
+
request; this effectively ignores the headers
|
|
1953
|
+
in the spec for a single request.
|
|
1954
|
+
:type _headers: dict, optional
|
|
1955
|
+
:param _host_index: set to override the host_index for a single
|
|
1956
|
+
request; this effectively ignores the host_index
|
|
1957
|
+
in the spec for a single request.
|
|
1958
|
+
:type _host_index: int, optional
|
|
1959
|
+
:return: Returns the result object.
|
|
1960
|
+
""" # noqa: E501
|
|
1961
|
+
|
|
1962
|
+
_param = self._post_issue_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_issue_post_serialize(
|
|
1963
|
+
organization_id=organization_id,
|
|
1964
|
+
project_id=project_id,
|
|
1965
|
+
issue_id=issue_id,
|
|
1966
|
+
_request_auth=_request_auth,
|
|
1967
|
+
_content_type=_content_type,
|
|
1968
|
+
_headers=_headers,
|
|
1969
|
+
_host_index=_host_index
|
|
1970
|
+
)
|
|
1971
|
+
|
|
1972
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1973
|
+
'200': "SuccessAndMessageResponse",
|
|
1974
|
+
'422': "HTTPValidationError",
|
|
1975
|
+
}
|
|
1976
|
+
response_data = await self.api_client.call_api(
|
|
1977
|
+
*_param,
|
|
1978
|
+
_request_timeout=_request_timeout
|
|
1979
|
+
)
|
|
1980
|
+
await response_data.read()
|
|
1981
|
+
return self.api_client.response_deserialize(
|
|
1982
|
+
response_data=response_data,
|
|
1983
|
+
response_types_map=_response_types_map,
|
|
1984
|
+
)
|
|
1985
|
+
|
|
1986
|
+
|
|
1987
|
+
@validate_call
|
|
1988
|
+
async def post_issue_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_issue_post_without_preload_content(
|
|
1989
|
+
self,
|
|
1990
|
+
organization_id: StrictInt,
|
|
1991
|
+
project_id: StrictInt,
|
|
1992
|
+
issue_id: StrictInt,
|
|
1993
|
+
_request_timeout: Union[
|
|
1994
|
+
None,
|
|
1995
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1996
|
+
Tuple[
|
|
1997
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1998
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1999
|
+
]
|
|
2000
|
+
] = None,
|
|
2001
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2002
|
+
_content_type: Optional[StrictStr] = None,
|
|
2003
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2004
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2005
|
+
) -> RESTResponseType:
|
|
2006
|
+
"""Post Issue To Github
|
|
2007
|
+
|
|
2008
|
+
Post an existing issue to github
|
|
2009
|
+
|
|
2010
|
+
:param organization_id: (required)
|
|
2011
|
+
:type organization_id: int
|
|
2012
|
+
:param project_id: (required)
|
|
2013
|
+
:type project_id: int
|
|
2014
|
+
:param issue_id: (required)
|
|
2015
|
+
:type issue_id: int
|
|
2016
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2017
|
+
number provided, it will be total request
|
|
2018
|
+
timeout. It can also be a pair (tuple) of
|
|
2019
|
+
(connection, read) timeouts.
|
|
2020
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2021
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2022
|
+
request; this effectively ignores the
|
|
2023
|
+
authentication in the spec for a single request.
|
|
2024
|
+
:type _request_auth: dict, optional
|
|
2025
|
+
:param _content_type: force content-type for the request.
|
|
2026
|
+
:type _content_type: str, Optional
|
|
2027
|
+
:param _headers: set to override the headers for a single
|
|
2028
|
+
request; this effectively ignores the headers
|
|
2029
|
+
in the spec for a single request.
|
|
2030
|
+
:type _headers: dict, optional
|
|
2031
|
+
:param _host_index: set to override the host_index for a single
|
|
2032
|
+
request; this effectively ignores the host_index
|
|
2033
|
+
in the spec for a single request.
|
|
2034
|
+
:type _host_index: int, optional
|
|
2035
|
+
:return: Returns the result object.
|
|
2036
|
+
""" # noqa: E501
|
|
2037
|
+
|
|
2038
|
+
_param = self._post_issue_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_issue_post_serialize(
|
|
2039
|
+
organization_id=organization_id,
|
|
2040
|
+
project_id=project_id,
|
|
2041
|
+
issue_id=issue_id,
|
|
2042
|
+
_request_auth=_request_auth,
|
|
2043
|
+
_content_type=_content_type,
|
|
2044
|
+
_headers=_headers,
|
|
2045
|
+
_host_index=_host_index
|
|
2046
|
+
)
|
|
2047
|
+
|
|
2048
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2049
|
+
'200': "SuccessAndMessageResponse",
|
|
2050
|
+
'422': "HTTPValidationError",
|
|
2051
|
+
}
|
|
2052
|
+
response_data = await self.api_client.call_api(
|
|
2053
|
+
*_param,
|
|
2054
|
+
_request_timeout=_request_timeout
|
|
2055
|
+
)
|
|
2056
|
+
return response_data.response
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
def _post_issue_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_issue_post_serialize(
|
|
2060
|
+
self,
|
|
2061
|
+
organization_id,
|
|
2062
|
+
project_id,
|
|
2063
|
+
issue_id,
|
|
2064
|
+
_request_auth,
|
|
2065
|
+
_content_type,
|
|
2066
|
+
_headers,
|
|
2067
|
+
_host_index,
|
|
2068
|
+
) -> RequestSerialized:
|
|
2069
|
+
|
|
2070
|
+
_host = None
|
|
2071
|
+
|
|
2072
|
+
_collection_formats: Dict[str, str] = {
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
_path_params: Dict[str, str] = {}
|
|
2076
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2077
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2078
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2079
|
+
_files: Dict[
|
|
2080
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2081
|
+
] = {}
|
|
2082
|
+
_body_params: Optional[bytes] = None
|
|
2083
|
+
|
|
2084
|
+
# process the path parameters
|
|
2085
|
+
if organization_id is not None:
|
|
2086
|
+
_path_params['organization_id'] = organization_id
|
|
2087
|
+
if project_id is not None:
|
|
2088
|
+
_path_params['project_id'] = project_id
|
|
2089
|
+
if issue_id is not None:
|
|
2090
|
+
_path_params['issue_id'] = issue_id
|
|
2091
|
+
# process the query parameters
|
|
2092
|
+
# process the header parameters
|
|
2093
|
+
# process the form parameters
|
|
2094
|
+
# process the body parameter
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
# set the HTTP header `Accept`
|
|
2098
|
+
if 'Accept' not in _header_params:
|
|
2099
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2100
|
+
[
|
|
2101
|
+
'application/json'
|
|
2102
|
+
]
|
|
2103
|
+
)
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
# authentication setting
|
|
2107
|
+
_auth_settings: List[str] = [
|
|
2108
|
+
'OpenIdConnect'
|
|
2109
|
+
]
|
|
2110
|
+
|
|
2111
|
+
return self.api_client.param_serialize(
|
|
2112
|
+
method='POST',
|
|
2113
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/issues/{issue_id}/gh-issue',
|
|
2114
|
+
path_params=_path_params,
|
|
2115
|
+
query_params=_query_params,
|
|
2116
|
+
header_params=_header_params,
|
|
2117
|
+
body=_body_params,
|
|
2118
|
+
post_params=_form_params,
|
|
2119
|
+
files=_files,
|
|
2120
|
+
auth_settings=_auth_settings,
|
|
2121
|
+
collection_formats=_collection_formats,
|
|
2122
|
+
_host=_host,
|
|
2123
|
+
_request_auth=_request_auth
|
|
2124
|
+
)
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
@validate_call
|
|
2130
|
+
async def post_security_advisory_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_security_advisory_post(
|
|
2131
|
+
self,
|
|
2132
|
+
organization_id: StrictInt,
|
|
2133
|
+
project_id: StrictInt,
|
|
2134
|
+
issue_id: StrictInt,
|
|
2135
|
+
_request_timeout: Union[
|
|
2136
|
+
None,
|
|
2137
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2138
|
+
Tuple[
|
|
2139
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2140
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2141
|
+
]
|
|
2142
|
+
] = None,
|
|
2143
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2144
|
+
_content_type: Optional[StrictStr] = None,
|
|
2145
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2146
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2147
|
+
) -> SuccessAndMessageResponse:
|
|
2148
|
+
"""Post Security Advisory To Github
|
|
2149
|
+
|
|
2150
|
+
Post an existing issue to github
|
|
2151
|
+
|
|
2152
|
+
:param organization_id: (required)
|
|
2153
|
+
:type organization_id: int
|
|
2154
|
+
:param project_id: (required)
|
|
2155
|
+
:type project_id: int
|
|
2156
|
+
:param issue_id: (required)
|
|
2157
|
+
:type issue_id: int
|
|
2158
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2159
|
+
number provided, it will be total request
|
|
2160
|
+
timeout. It can also be a pair (tuple) of
|
|
2161
|
+
(connection, read) timeouts.
|
|
2162
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2163
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2164
|
+
request; this effectively ignores the
|
|
2165
|
+
authentication in the spec for a single request.
|
|
2166
|
+
:type _request_auth: dict, optional
|
|
2167
|
+
:param _content_type: force content-type for the request.
|
|
2168
|
+
:type _content_type: str, Optional
|
|
2169
|
+
:param _headers: set to override the headers for a single
|
|
2170
|
+
request; this effectively ignores the headers
|
|
2171
|
+
in the spec for a single request.
|
|
2172
|
+
:type _headers: dict, optional
|
|
2173
|
+
:param _host_index: set to override the host_index for a single
|
|
2174
|
+
request; this effectively ignores the host_index
|
|
2175
|
+
in the spec for a single request.
|
|
2176
|
+
:type _host_index: int, optional
|
|
2177
|
+
:return: Returns the result object.
|
|
2178
|
+
""" # noqa: E501
|
|
2179
|
+
|
|
2180
|
+
_param = self._post_security_advisory_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_security_advisory_post_serialize(
|
|
2181
|
+
organization_id=organization_id,
|
|
2182
|
+
project_id=project_id,
|
|
2183
|
+
issue_id=issue_id,
|
|
2184
|
+
_request_auth=_request_auth,
|
|
2185
|
+
_content_type=_content_type,
|
|
2186
|
+
_headers=_headers,
|
|
2187
|
+
_host_index=_host_index
|
|
2188
|
+
)
|
|
2189
|
+
|
|
2190
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2191
|
+
'200': "SuccessAndMessageResponse",
|
|
2192
|
+
'422': "HTTPValidationError",
|
|
2193
|
+
}
|
|
2194
|
+
response_data = await self.api_client.call_api(
|
|
2195
|
+
*_param,
|
|
2196
|
+
_request_timeout=_request_timeout
|
|
2197
|
+
)
|
|
2198
|
+
await response_data.read()
|
|
2199
|
+
return self.api_client.response_deserialize(
|
|
2200
|
+
response_data=response_data,
|
|
2201
|
+
response_types_map=_response_types_map,
|
|
2202
|
+
).data
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
@validate_call
|
|
2206
|
+
async def post_security_advisory_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_security_advisory_post_with_http_info(
|
|
2207
|
+
self,
|
|
2208
|
+
organization_id: StrictInt,
|
|
2209
|
+
project_id: StrictInt,
|
|
2210
|
+
issue_id: StrictInt,
|
|
2211
|
+
_request_timeout: Union[
|
|
2212
|
+
None,
|
|
2213
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2214
|
+
Tuple[
|
|
2215
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2216
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2217
|
+
]
|
|
2218
|
+
] = None,
|
|
2219
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2220
|
+
_content_type: Optional[StrictStr] = None,
|
|
2221
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2222
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2223
|
+
) -> ApiResponse[SuccessAndMessageResponse]:
|
|
2224
|
+
"""Post Security Advisory To Github
|
|
2225
|
+
|
|
2226
|
+
Post an existing issue to github
|
|
2227
|
+
|
|
2228
|
+
:param organization_id: (required)
|
|
2229
|
+
:type organization_id: int
|
|
2230
|
+
:param project_id: (required)
|
|
2231
|
+
:type project_id: int
|
|
2232
|
+
:param issue_id: (required)
|
|
2233
|
+
:type issue_id: int
|
|
2234
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2235
|
+
number provided, it will be total request
|
|
2236
|
+
timeout. It can also be a pair (tuple) of
|
|
2237
|
+
(connection, read) timeouts.
|
|
2238
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2239
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2240
|
+
request; this effectively ignores the
|
|
2241
|
+
authentication in the spec for a single request.
|
|
2242
|
+
:type _request_auth: dict, optional
|
|
2243
|
+
:param _content_type: force content-type for the request.
|
|
2244
|
+
:type _content_type: str, Optional
|
|
2245
|
+
:param _headers: set to override the headers for a single
|
|
2246
|
+
request; this effectively ignores the headers
|
|
2247
|
+
in the spec for a single request.
|
|
2248
|
+
:type _headers: dict, optional
|
|
2249
|
+
:param _host_index: set to override the host_index for a single
|
|
2250
|
+
request; this effectively ignores the host_index
|
|
2251
|
+
in the spec for a single request.
|
|
2252
|
+
:type _host_index: int, optional
|
|
2253
|
+
:return: Returns the result object.
|
|
2254
|
+
""" # noqa: E501
|
|
2255
|
+
|
|
2256
|
+
_param = self._post_security_advisory_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_security_advisory_post_serialize(
|
|
2257
|
+
organization_id=organization_id,
|
|
2258
|
+
project_id=project_id,
|
|
2259
|
+
issue_id=issue_id,
|
|
2260
|
+
_request_auth=_request_auth,
|
|
2261
|
+
_content_type=_content_type,
|
|
2262
|
+
_headers=_headers,
|
|
2263
|
+
_host_index=_host_index
|
|
2264
|
+
)
|
|
2265
|
+
|
|
2266
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2267
|
+
'200': "SuccessAndMessageResponse",
|
|
2268
|
+
'422': "HTTPValidationError",
|
|
2269
|
+
}
|
|
2270
|
+
response_data = await self.api_client.call_api(
|
|
2271
|
+
*_param,
|
|
2272
|
+
_request_timeout=_request_timeout
|
|
2273
|
+
)
|
|
2274
|
+
await response_data.read()
|
|
2275
|
+
return self.api_client.response_deserialize(
|
|
2276
|
+
response_data=response_data,
|
|
2277
|
+
response_types_map=_response_types_map,
|
|
2278
|
+
)
|
|
2279
|
+
|
|
2280
|
+
|
|
2281
|
+
@validate_call
|
|
2282
|
+
async def post_security_advisory_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_security_advisory_post_without_preload_content(
|
|
2283
|
+
self,
|
|
2284
|
+
organization_id: StrictInt,
|
|
2285
|
+
project_id: StrictInt,
|
|
2286
|
+
issue_id: StrictInt,
|
|
2287
|
+
_request_timeout: Union[
|
|
2288
|
+
None,
|
|
2289
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2290
|
+
Tuple[
|
|
2291
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2292
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2293
|
+
]
|
|
2294
|
+
] = None,
|
|
2295
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2296
|
+
_content_type: Optional[StrictStr] = None,
|
|
2297
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2298
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2299
|
+
) -> RESTResponseType:
|
|
2300
|
+
"""Post Security Advisory To Github
|
|
2301
|
+
|
|
2302
|
+
Post an existing issue to github
|
|
2303
|
+
|
|
2304
|
+
:param organization_id: (required)
|
|
2305
|
+
:type organization_id: int
|
|
2306
|
+
:param project_id: (required)
|
|
2307
|
+
:type project_id: int
|
|
2308
|
+
:param issue_id: (required)
|
|
2309
|
+
:type issue_id: int
|
|
2310
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2311
|
+
number provided, it will be total request
|
|
2312
|
+
timeout. It can also be a pair (tuple) of
|
|
2313
|
+
(connection, read) timeouts.
|
|
2314
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2315
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2316
|
+
request; this effectively ignores the
|
|
2317
|
+
authentication in the spec for a single request.
|
|
2318
|
+
:type _request_auth: dict, optional
|
|
2319
|
+
:param _content_type: force content-type for the request.
|
|
2320
|
+
:type _content_type: str, Optional
|
|
2321
|
+
:param _headers: set to override the headers for a single
|
|
2322
|
+
request; this effectively ignores the headers
|
|
2323
|
+
in the spec for a single request.
|
|
2324
|
+
:type _headers: dict, optional
|
|
2325
|
+
:param _host_index: set to override the host_index for a single
|
|
2326
|
+
request; this effectively ignores the host_index
|
|
2327
|
+
in the spec for a single request.
|
|
2328
|
+
:type _host_index: int, optional
|
|
2329
|
+
:return: Returns the result object.
|
|
2330
|
+
""" # noqa: E501
|
|
2331
|
+
|
|
2332
|
+
_param = self._post_security_advisory_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_security_advisory_post_serialize(
|
|
2333
|
+
organization_id=organization_id,
|
|
2334
|
+
project_id=project_id,
|
|
2335
|
+
issue_id=issue_id,
|
|
2336
|
+
_request_auth=_request_auth,
|
|
2337
|
+
_content_type=_content_type,
|
|
2338
|
+
_headers=_headers,
|
|
2339
|
+
_host_index=_host_index
|
|
2340
|
+
)
|
|
2341
|
+
|
|
2342
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2343
|
+
'200': "SuccessAndMessageResponse",
|
|
2344
|
+
'422': "HTTPValidationError",
|
|
2345
|
+
}
|
|
2346
|
+
response_data = await self.api_client.call_api(
|
|
2347
|
+
*_param,
|
|
2348
|
+
_request_timeout=_request_timeout
|
|
2349
|
+
)
|
|
2350
|
+
return response_data.response
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
def _post_security_advisory_to_github_organizations_organization_id_projects_project_id_issues_issue_id_gh_security_advisory_post_serialize(
|
|
2354
|
+
self,
|
|
2355
|
+
organization_id,
|
|
2356
|
+
project_id,
|
|
2357
|
+
issue_id,
|
|
2358
|
+
_request_auth,
|
|
2359
|
+
_content_type,
|
|
2360
|
+
_headers,
|
|
2361
|
+
_host_index,
|
|
2362
|
+
) -> RequestSerialized:
|
|
2363
|
+
|
|
2364
|
+
_host = None
|
|
2365
|
+
|
|
2366
|
+
_collection_formats: Dict[str, str] = {
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
_path_params: Dict[str, str] = {}
|
|
2370
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2371
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2372
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2373
|
+
_files: Dict[
|
|
2374
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2375
|
+
] = {}
|
|
2376
|
+
_body_params: Optional[bytes] = None
|
|
2377
|
+
|
|
2378
|
+
# process the path parameters
|
|
2379
|
+
if organization_id is not None:
|
|
2380
|
+
_path_params['organization_id'] = organization_id
|
|
2381
|
+
if project_id is not None:
|
|
2382
|
+
_path_params['project_id'] = project_id
|
|
2383
|
+
if issue_id is not None:
|
|
2384
|
+
_path_params['issue_id'] = issue_id
|
|
2385
|
+
# process the query parameters
|
|
2386
|
+
# process the header parameters
|
|
2387
|
+
# process the form parameters
|
|
2388
|
+
# process the body parameter
|
|
2389
|
+
|
|
2390
|
+
|
|
2391
|
+
# set the HTTP header `Accept`
|
|
2392
|
+
if 'Accept' not in _header_params:
|
|
2393
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2394
|
+
[
|
|
2395
|
+
'application/json'
|
|
2396
|
+
]
|
|
2397
|
+
)
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
# authentication setting
|
|
2401
|
+
_auth_settings: List[str] = [
|
|
2402
|
+
'OpenIdConnect'
|
|
2403
|
+
]
|
|
2404
|
+
|
|
2405
|
+
return self.api_client.param_serialize(
|
|
2406
|
+
method='POST',
|
|
2407
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/issues/{issue_id}/gh-security-advisory',
|
|
2408
|
+
path_params=_path_params,
|
|
2409
|
+
query_params=_query_params,
|
|
2410
|
+
header_params=_header_params,
|
|
2411
|
+
body=_body_params,
|
|
2412
|
+
post_params=_form_params,
|
|
2413
|
+
files=_files,
|
|
2414
|
+
auth_settings=_auth_settings,
|
|
2415
|
+
collection_formats=_collection_formats,
|
|
2416
|
+
_host=_host,
|
|
2417
|
+
_request_auth=_request_auth
|
|
2418
|
+
)
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
@validate_call
|
|
2424
|
+
async def put_issue_organizations_organization_id_projects_project_id_issues_issue_id_put(
|
|
2425
|
+
self,
|
|
2426
|
+
organization_id: StrictInt,
|
|
2427
|
+
project_id: StrictInt,
|
|
2428
|
+
issue_id: StrictInt,
|
|
2429
|
+
issue_info_editable: IssueInfoEditable,
|
|
2430
|
+
_request_timeout: Union[
|
|
2431
|
+
None,
|
|
2432
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2433
|
+
Tuple[
|
|
2434
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2435
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2436
|
+
]
|
|
2437
|
+
] = None,
|
|
2438
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2439
|
+
_content_type: Optional[StrictStr] = None,
|
|
2440
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2441
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2442
|
+
) -> IdAndMessageResponse:
|
|
2443
|
+
"""Put Issue
|
|
2444
|
+
|
|
2445
|
+
Put issue
|
|
2446
|
+
|
|
2447
|
+
:param organization_id: (required)
|
|
2448
|
+
:type organization_id: int
|
|
2449
|
+
:param project_id: (required)
|
|
2450
|
+
:type project_id: int
|
|
2451
|
+
:param issue_id: (required)
|
|
2452
|
+
:type issue_id: int
|
|
2453
|
+
:param issue_info_editable: (required)
|
|
2454
|
+
:type issue_info_editable: IssueInfoEditable
|
|
2455
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2456
|
+
number provided, it will be total request
|
|
2457
|
+
timeout. It can also be a pair (tuple) of
|
|
2458
|
+
(connection, read) timeouts.
|
|
2459
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2460
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2461
|
+
request; this effectively ignores the
|
|
2462
|
+
authentication in the spec for a single request.
|
|
2463
|
+
:type _request_auth: dict, optional
|
|
2464
|
+
:param _content_type: force content-type for the request.
|
|
2465
|
+
:type _content_type: str, Optional
|
|
2466
|
+
:param _headers: set to override the headers for a single
|
|
2467
|
+
request; this effectively ignores the headers
|
|
2468
|
+
in the spec for a single request.
|
|
2469
|
+
:type _headers: dict, optional
|
|
2470
|
+
:param _host_index: set to override the host_index for a single
|
|
2471
|
+
request; this effectively ignores the host_index
|
|
2472
|
+
in the spec for a single request.
|
|
2473
|
+
:type _host_index: int, optional
|
|
2474
|
+
:return: Returns the result object.
|
|
2475
|
+
""" # noqa: E501
|
|
2476
|
+
|
|
2477
|
+
_param = self._put_issue_organizations_organization_id_projects_project_id_issues_issue_id_put_serialize(
|
|
2478
|
+
organization_id=organization_id,
|
|
2479
|
+
project_id=project_id,
|
|
2480
|
+
issue_id=issue_id,
|
|
2481
|
+
issue_info_editable=issue_info_editable,
|
|
2482
|
+
_request_auth=_request_auth,
|
|
2483
|
+
_content_type=_content_type,
|
|
2484
|
+
_headers=_headers,
|
|
2485
|
+
_host_index=_host_index
|
|
2486
|
+
)
|
|
2487
|
+
|
|
2488
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2489
|
+
'200': "IdAndMessageResponse",
|
|
2490
|
+
'422': "HTTPValidationError",
|
|
2491
|
+
}
|
|
2492
|
+
response_data = await self.api_client.call_api(
|
|
2493
|
+
*_param,
|
|
2494
|
+
_request_timeout=_request_timeout
|
|
2495
|
+
)
|
|
2496
|
+
await response_data.read()
|
|
2497
|
+
return self.api_client.response_deserialize(
|
|
2498
|
+
response_data=response_data,
|
|
2499
|
+
response_types_map=_response_types_map,
|
|
2500
|
+
).data
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
@validate_call
|
|
2504
|
+
async def put_issue_organizations_organization_id_projects_project_id_issues_issue_id_put_with_http_info(
|
|
2505
|
+
self,
|
|
2506
|
+
organization_id: StrictInt,
|
|
2507
|
+
project_id: StrictInt,
|
|
2508
|
+
issue_id: StrictInt,
|
|
2509
|
+
issue_info_editable: IssueInfoEditable,
|
|
2510
|
+
_request_timeout: Union[
|
|
2511
|
+
None,
|
|
2512
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2513
|
+
Tuple[
|
|
2514
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2515
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2516
|
+
]
|
|
2517
|
+
] = None,
|
|
2518
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2519
|
+
_content_type: Optional[StrictStr] = None,
|
|
2520
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2521
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2522
|
+
) -> ApiResponse[IdAndMessageResponse]:
|
|
2523
|
+
"""Put Issue
|
|
2524
|
+
|
|
2525
|
+
Put issue
|
|
2526
|
+
|
|
2527
|
+
:param organization_id: (required)
|
|
2528
|
+
:type organization_id: int
|
|
2529
|
+
:param project_id: (required)
|
|
2530
|
+
:type project_id: int
|
|
2531
|
+
:param issue_id: (required)
|
|
2532
|
+
:type issue_id: int
|
|
2533
|
+
:param issue_info_editable: (required)
|
|
2534
|
+
:type issue_info_editable: IssueInfoEditable
|
|
2535
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2536
|
+
number provided, it will be total request
|
|
2537
|
+
timeout. It can also be a pair (tuple) of
|
|
2538
|
+
(connection, read) timeouts.
|
|
2539
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2540
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2541
|
+
request; this effectively ignores the
|
|
2542
|
+
authentication in the spec for a single request.
|
|
2543
|
+
:type _request_auth: dict, optional
|
|
2544
|
+
:param _content_type: force content-type for the request.
|
|
2545
|
+
:type _content_type: str, Optional
|
|
2546
|
+
:param _headers: set to override the headers for a single
|
|
2547
|
+
request; this effectively ignores the headers
|
|
2548
|
+
in the spec for a single request.
|
|
2549
|
+
:type _headers: dict, optional
|
|
2550
|
+
:param _host_index: set to override the host_index for a single
|
|
2551
|
+
request; this effectively ignores the host_index
|
|
2552
|
+
in the spec for a single request.
|
|
2553
|
+
:type _host_index: int, optional
|
|
2554
|
+
:return: Returns the result object.
|
|
2555
|
+
""" # noqa: E501
|
|
2556
|
+
|
|
2557
|
+
_param = self._put_issue_organizations_organization_id_projects_project_id_issues_issue_id_put_serialize(
|
|
2558
|
+
organization_id=organization_id,
|
|
2559
|
+
project_id=project_id,
|
|
2560
|
+
issue_id=issue_id,
|
|
2561
|
+
issue_info_editable=issue_info_editable,
|
|
2562
|
+
_request_auth=_request_auth,
|
|
2563
|
+
_content_type=_content_type,
|
|
2564
|
+
_headers=_headers,
|
|
2565
|
+
_host_index=_host_index
|
|
2566
|
+
)
|
|
2567
|
+
|
|
2568
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2569
|
+
'200': "IdAndMessageResponse",
|
|
2570
|
+
'422': "HTTPValidationError",
|
|
2571
|
+
}
|
|
2572
|
+
response_data = await self.api_client.call_api(
|
|
2573
|
+
*_param,
|
|
2574
|
+
_request_timeout=_request_timeout
|
|
2575
|
+
)
|
|
2576
|
+
await response_data.read()
|
|
2577
|
+
return self.api_client.response_deserialize(
|
|
2578
|
+
response_data=response_data,
|
|
2579
|
+
response_types_map=_response_types_map,
|
|
2580
|
+
)
|
|
2581
|
+
|
|
2582
|
+
|
|
2583
|
+
@validate_call
|
|
2584
|
+
async def put_issue_organizations_organization_id_projects_project_id_issues_issue_id_put_without_preload_content(
|
|
2585
|
+
self,
|
|
2586
|
+
organization_id: StrictInt,
|
|
2587
|
+
project_id: StrictInt,
|
|
2588
|
+
issue_id: StrictInt,
|
|
2589
|
+
issue_info_editable: IssueInfoEditable,
|
|
2590
|
+
_request_timeout: Union[
|
|
2591
|
+
None,
|
|
2592
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2593
|
+
Tuple[
|
|
2594
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2595
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2596
|
+
]
|
|
2597
|
+
] = None,
|
|
2598
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2599
|
+
_content_type: Optional[StrictStr] = None,
|
|
2600
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2601
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2602
|
+
) -> RESTResponseType:
|
|
2603
|
+
"""Put Issue
|
|
2604
|
+
|
|
2605
|
+
Put issue
|
|
2606
|
+
|
|
2607
|
+
:param organization_id: (required)
|
|
2608
|
+
:type organization_id: int
|
|
2609
|
+
:param project_id: (required)
|
|
2610
|
+
:type project_id: int
|
|
2611
|
+
:param issue_id: (required)
|
|
2612
|
+
:type issue_id: int
|
|
2613
|
+
:param issue_info_editable: (required)
|
|
2614
|
+
:type issue_info_editable: IssueInfoEditable
|
|
2615
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2616
|
+
number provided, it will be total request
|
|
2617
|
+
timeout. It can also be a pair (tuple) of
|
|
2618
|
+
(connection, read) timeouts.
|
|
2619
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2620
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2621
|
+
request; this effectively ignores the
|
|
2622
|
+
authentication in the spec for a single request.
|
|
2623
|
+
:type _request_auth: dict, optional
|
|
2624
|
+
:param _content_type: force content-type for the request.
|
|
2625
|
+
:type _content_type: str, Optional
|
|
2626
|
+
:param _headers: set to override the headers for a single
|
|
2627
|
+
request; this effectively ignores the headers
|
|
2628
|
+
in the spec for a single request.
|
|
2629
|
+
:type _headers: dict, optional
|
|
2630
|
+
:param _host_index: set to override the host_index for a single
|
|
2631
|
+
request; this effectively ignores the host_index
|
|
2632
|
+
in the spec for a single request.
|
|
2633
|
+
:type _host_index: int, optional
|
|
2634
|
+
:return: Returns the result object.
|
|
2635
|
+
""" # noqa: E501
|
|
2636
|
+
|
|
2637
|
+
_param = self._put_issue_organizations_organization_id_projects_project_id_issues_issue_id_put_serialize(
|
|
2638
|
+
organization_id=organization_id,
|
|
2639
|
+
project_id=project_id,
|
|
2640
|
+
issue_id=issue_id,
|
|
2641
|
+
issue_info_editable=issue_info_editable,
|
|
2642
|
+
_request_auth=_request_auth,
|
|
2643
|
+
_content_type=_content_type,
|
|
2644
|
+
_headers=_headers,
|
|
2645
|
+
_host_index=_host_index
|
|
2646
|
+
)
|
|
2647
|
+
|
|
2648
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2649
|
+
'200': "IdAndMessageResponse",
|
|
2650
|
+
'422': "HTTPValidationError",
|
|
2651
|
+
}
|
|
2652
|
+
response_data = await self.api_client.call_api(
|
|
2653
|
+
*_param,
|
|
2654
|
+
_request_timeout=_request_timeout
|
|
2655
|
+
)
|
|
2656
|
+
return response_data.response
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
def _put_issue_organizations_organization_id_projects_project_id_issues_issue_id_put_serialize(
|
|
2660
|
+
self,
|
|
2661
|
+
organization_id,
|
|
2662
|
+
project_id,
|
|
2663
|
+
issue_id,
|
|
2664
|
+
issue_info_editable,
|
|
2665
|
+
_request_auth,
|
|
2666
|
+
_content_type,
|
|
2667
|
+
_headers,
|
|
2668
|
+
_host_index,
|
|
2669
|
+
) -> RequestSerialized:
|
|
2670
|
+
|
|
2671
|
+
_host = None
|
|
2672
|
+
|
|
2673
|
+
_collection_formats: Dict[str, str] = {
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
_path_params: Dict[str, str] = {}
|
|
2677
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2678
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2679
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2680
|
+
_files: Dict[
|
|
2681
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2682
|
+
] = {}
|
|
2683
|
+
_body_params: Optional[bytes] = None
|
|
2684
|
+
|
|
2685
|
+
# process the path parameters
|
|
2686
|
+
if organization_id is not None:
|
|
2687
|
+
_path_params['organization_id'] = organization_id
|
|
2688
|
+
if project_id is not None:
|
|
2689
|
+
_path_params['project_id'] = project_id
|
|
2690
|
+
if issue_id is not None:
|
|
2691
|
+
_path_params['issue_id'] = issue_id
|
|
2692
|
+
# process the query parameters
|
|
2693
|
+
# process the header parameters
|
|
2694
|
+
# process the form parameters
|
|
2695
|
+
# process the body parameter
|
|
2696
|
+
if issue_info_editable is not None:
|
|
2697
|
+
_body_params = issue_info_editable
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
# set the HTTP header `Accept`
|
|
2701
|
+
if 'Accept' not in _header_params:
|
|
2702
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2703
|
+
[
|
|
2704
|
+
'application/json'
|
|
2705
|
+
]
|
|
2706
|
+
)
|
|
2707
|
+
|
|
2708
|
+
# set the HTTP header `Content-Type`
|
|
2709
|
+
if _content_type:
|
|
2710
|
+
_header_params['Content-Type'] = _content_type
|
|
2711
|
+
else:
|
|
2712
|
+
_default_content_type = (
|
|
2713
|
+
self.api_client.select_header_content_type(
|
|
2714
|
+
[
|
|
2715
|
+
'application/json'
|
|
2716
|
+
]
|
|
2717
|
+
)
|
|
2718
|
+
)
|
|
2719
|
+
if _default_content_type is not None:
|
|
2720
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2721
|
+
|
|
2722
|
+
# authentication setting
|
|
2723
|
+
_auth_settings: List[str] = [
|
|
2724
|
+
'OpenIdConnect'
|
|
2725
|
+
]
|
|
2726
|
+
|
|
2727
|
+
return self.api_client.param_serialize(
|
|
2728
|
+
method='PUT',
|
|
2729
|
+
resource_path='/organizations/{organization_id}/projects/{project_id}/issues/{issue_id}',
|
|
2730
|
+
path_params=_path_params,
|
|
2731
|
+
query_params=_query_params,
|
|
2732
|
+
header_params=_header_params,
|
|
2733
|
+
body=_body_params,
|
|
2734
|
+
post_params=_form_params,
|
|
2735
|
+
files=_files,
|
|
2736
|
+
auth_settings=_auth_settings,
|
|
2737
|
+
collection_formats=_collection_formats,
|
|
2738
|
+
_host=_host,
|
|
2739
|
+
_request_auth=_request_auth
|
|
2740
|
+
)
|
|
2741
|
+
|
|
2742
|
+
|