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