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