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,728 +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.api_errors import APIErrors
|
|
23
|
-
from hatchet_sdk.v0.clients.rest.models.api_meta import APIMeta
|
|
24
|
-
from hatchet_sdk.v0.clients.rest.models.api_meta_integration import APIMetaIntegration
|
|
25
|
-
from hatchet_sdk.v0.clients.rest.rest import RESTResponseType
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class MetadataApi:
|
|
29
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
-
Ref: https://openapi-generator.tech
|
|
31
|
-
|
|
32
|
-
Do not edit the class manually.
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
def __init__(self, api_client=None) -> None:
|
|
36
|
-
if api_client is None:
|
|
37
|
-
api_client = ApiClient.get_default()
|
|
38
|
-
self.api_client = api_client
|
|
39
|
-
|
|
40
|
-
@validate_call
|
|
41
|
-
async def cloud_metadata_get(
|
|
42
|
-
self,
|
|
43
|
-
_request_timeout: Union[
|
|
44
|
-
None,
|
|
45
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
46
|
-
Tuple[
|
|
47
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
48
|
-
],
|
|
49
|
-
] = None,
|
|
50
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
51
|
-
_content_type: Optional[StrictStr] = None,
|
|
52
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
-
) -> APIErrors:
|
|
55
|
-
"""Get cloud metadata
|
|
56
|
-
|
|
57
|
-
Gets metadata for the Hatchet cloud instance
|
|
58
|
-
|
|
59
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
60
|
-
number provided, it will be total request
|
|
61
|
-
timeout. It can also be a pair (tuple) of
|
|
62
|
-
(connection, read) timeouts.
|
|
63
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
64
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
65
|
-
request; this effectively ignores the
|
|
66
|
-
authentication in the spec for a single request.
|
|
67
|
-
:type _request_auth: dict, optional
|
|
68
|
-
:param _content_type: force content-type for the request.
|
|
69
|
-
:type _content_type: str, Optional
|
|
70
|
-
:param _headers: set to override the headers for a single
|
|
71
|
-
request; this effectively ignores the headers
|
|
72
|
-
in the spec for a single request.
|
|
73
|
-
:type _headers: dict, optional
|
|
74
|
-
:param _host_index: set to override the host_index for a single
|
|
75
|
-
request; this effectively ignores the host_index
|
|
76
|
-
in the spec for a single request.
|
|
77
|
-
:type _host_index: int, optional
|
|
78
|
-
:return: Returns the result object.
|
|
79
|
-
""" # noqa: E501
|
|
80
|
-
|
|
81
|
-
_param = self._cloud_metadata_get_serialize(
|
|
82
|
-
_request_auth=_request_auth,
|
|
83
|
-
_content_type=_content_type,
|
|
84
|
-
_headers=_headers,
|
|
85
|
-
_host_index=_host_index,
|
|
86
|
-
)
|
|
87
|
-
|
|
88
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
89
|
-
"200": "APIErrors",
|
|
90
|
-
"400": "APIErrors",
|
|
91
|
-
}
|
|
92
|
-
response_data = await self.api_client.call_api(
|
|
93
|
-
*_param, _request_timeout=_request_timeout
|
|
94
|
-
)
|
|
95
|
-
await response_data.read()
|
|
96
|
-
return self.api_client.response_deserialize(
|
|
97
|
-
response_data=response_data,
|
|
98
|
-
response_types_map=_response_types_map,
|
|
99
|
-
).data
|
|
100
|
-
|
|
101
|
-
@validate_call
|
|
102
|
-
async def cloud_metadata_get_with_http_info(
|
|
103
|
-
self,
|
|
104
|
-
_request_timeout: Union[
|
|
105
|
-
None,
|
|
106
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
107
|
-
Tuple[
|
|
108
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
109
|
-
],
|
|
110
|
-
] = None,
|
|
111
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
112
|
-
_content_type: Optional[StrictStr] = None,
|
|
113
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
114
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
115
|
-
) -> ApiResponse[APIErrors]:
|
|
116
|
-
"""Get cloud metadata
|
|
117
|
-
|
|
118
|
-
Gets metadata for the Hatchet cloud instance
|
|
119
|
-
|
|
120
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
121
|
-
number provided, it will be total request
|
|
122
|
-
timeout. It can also be a pair (tuple) of
|
|
123
|
-
(connection, read) timeouts.
|
|
124
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
125
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
126
|
-
request; this effectively ignores the
|
|
127
|
-
authentication in the spec for a single request.
|
|
128
|
-
:type _request_auth: dict, optional
|
|
129
|
-
:param _content_type: force content-type for the request.
|
|
130
|
-
:type _content_type: str, Optional
|
|
131
|
-
:param _headers: set to override the headers for a single
|
|
132
|
-
request; this effectively ignores the headers
|
|
133
|
-
in the spec for a single request.
|
|
134
|
-
:type _headers: dict, optional
|
|
135
|
-
:param _host_index: set to override the host_index for a single
|
|
136
|
-
request; this effectively ignores the host_index
|
|
137
|
-
in the spec for a single request.
|
|
138
|
-
:type _host_index: int, optional
|
|
139
|
-
:return: Returns the result object.
|
|
140
|
-
""" # noqa: E501
|
|
141
|
-
|
|
142
|
-
_param = self._cloud_metadata_get_serialize(
|
|
143
|
-
_request_auth=_request_auth,
|
|
144
|
-
_content_type=_content_type,
|
|
145
|
-
_headers=_headers,
|
|
146
|
-
_host_index=_host_index,
|
|
147
|
-
)
|
|
148
|
-
|
|
149
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
150
|
-
"200": "APIErrors",
|
|
151
|
-
"400": "APIErrors",
|
|
152
|
-
}
|
|
153
|
-
response_data = await self.api_client.call_api(
|
|
154
|
-
*_param, _request_timeout=_request_timeout
|
|
155
|
-
)
|
|
156
|
-
await response_data.read()
|
|
157
|
-
return self.api_client.response_deserialize(
|
|
158
|
-
response_data=response_data,
|
|
159
|
-
response_types_map=_response_types_map,
|
|
160
|
-
)
|
|
161
|
-
|
|
162
|
-
@validate_call
|
|
163
|
-
async def cloud_metadata_get_without_preload_content(
|
|
164
|
-
self,
|
|
165
|
-
_request_timeout: Union[
|
|
166
|
-
None,
|
|
167
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
168
|
-
Tuple[
|
|
169
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
170
|
-
],
|
|
171
|
-
] = None,
|
|
172
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
173
|
-
_content_type: Optional[StrictStr] = None,
|
|
174
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
175
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
176
|
-
) -> RESTResponseType:
|
|
177
|
-
"""Get cloud metadata
|
|
178
|
-
|
|
179
|
-
Gets metadata for the Hatchet cloud instance
|
|
180
|
-
|
|
181
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
182
|
-
number provided, it will be total request
|
|
183
|
-
timeout. It can also be a pair (tuple) of
|
|
184
|
-
(connection, read) timeouts.
|
|
185
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
186
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
187
|
-
request; this effectively ignores the
|
|
188
|
-
authentication in the spec for a single request.
|
|
189
|
-
:type _request_auth: dict, optional
|
|
190
|
-
:param _content_type: force content-type for the request.
|
|
191
|
-
:type _content_type: str, Optional
|
|
192
|
-
:param _headers: set to override the headers for a single
|
|
193
|
-
request; this effectively ignores the headers
|
|
194
|
-
in the spec for a single request.
|
|
195
|
-
:type _headers: dict, optional
|
|
196
|
-
:param _host_index: set to override the host_index for a single
|
|
197
|
-
request; this effectively ignores the host_index
|
|
198
|
-
in the spec for a single request.
|
|
199
|
-
:type _host_index: int, optional
|
|
200
|
-
:return: Returns the result object.
|
|
201
|
-
""" # noqa: E501
|
|
202
|
-
|
|
203
|
-
_param = self._cloud_metadata_get_serialize(
|
|
204
|
-
_request_auth=_request_auth,
|
|
205
|
-
_content_type=_content_type,
|
|
206
|
-
_headers=_headers,
|
|
207
|
-
_host_index=_host_index,
|
|
208
|
-
)
|
|
209
|
-
|
|
210
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
211
|
-
"200": "APIErrors",
|
|
212
|
-
"400": "APIErrors",
|
|
213
|
-
}
|
|
214
|
-
response_data = await self.api_client.call_api(
|
|
215
|
-
*_param, _request_timeout=_request_timeout
|
|
216
|
-
)
|
|
217
|
-
return response_data.response
|
|
218
|
-
|
|
219
|
-
def _cloud_metadata_get_serialize(
|
|
220
|
-
self,
|
|
221
|
-
_request_auth,
|
|
222
|
-
_content_type,
|
|
223
|
-
_headers,
|
|
224
|
-
_host_index,
|
|
225
|
-
) -> RequestSerialized:
|
|
226
|
-
|
|
227
|
-
_host = None
|
|
228
|
-
|
|
229
|
-
_collection_formats: Dict[str, str] = {}
|
|
230
|
-
|
|
231
|
-
_path_params: Dict[str, str] = {}
|
|
232
|
-
_query_params: List[Tuple[str, str]] = []
|
|
233
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
234
|
-
_form_params: List[Tuple[str, str]] = []
|
|
235
|
-
_files: Dict[
|
|
236
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
237
|
-
] = {}
|
|
238
|
-
_body_params: Optional[bytes] = None
|
|
239
|
-
|
|
240
|
-
# process the path parameters
|
|
241
|
-
# process the query parameters
|
|
242
|
-
# process the header parameters
|
|
243
|
-
# process the form parameters
|
|
244
|
-
# process the body parameter
|
|
245
|
-
|
|
246
|
-
# set the HTTP header `Accept`
|
|
247
|
-
if "Accept" not in _header_params:
|
|
248
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
249
|
-
["application/json"]
|
|
250
|
-
)
|
|
251
|
-
|
|
252
|
-
# authentication setting
|
|
253
|
-
_auth_settings: List[str] = []
|
|
254
|
-
|
|
255
|
-
return self.api_client.param_serialize(
|
|
256
|
-
method="GET",
|
|
257
|
-
resource_path="/api/v1/cloud/metadata",
|
|
258
|
-
path_params=_path_params,
|
|
259
|
-
query_params=_query_params,
|
|
260
|
-
header_params=_header_params,
|
|
261
|
-
body=_body_params,
|
|
262
|
-
post_params=_form_params,
|
|
263
|
-
files=_files,
|
|
264
|
-
auth_settings=_auth_settings,
|
|
265
|
-
collection_formats=_collection_formats,
|
|
266
|
-
_host=_host,
|
|
267
|
-
_request_auth=_request_auth,
|
|
268
|
-
)
|
|
269
|
-
|
|
270
|
-
@validate_call
|
|
271
|
-
async def metadata_get(
|
|
272
|
-
self,
|
|
273
|
-
_request_timeout: Union[
|
|
274
|
-
None,
|
|
275
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
276
|
-
Tuple[
|
|
277
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
278
|
-
],
|
|
279
|
-
] = None,
|
|
280
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
281
|
-
_content_type: Optional[StrictStr] = None,
|
|
282
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
283
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
284
|
-
) -> APIMeta:
|
|
285
|
-
"""Get metadata
|
|
286
|
-
|
|
287
|
-
Gets metadata for the Hatchet instance
|
|
288
|
-
|
|
289
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
290
|
-
number provided, it will be total request
|
|
291
|
-
timeout. It can also be a pair (tuple) of
|
|
292
|
-
(connection, read) timeouts.
|
|
293
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
294
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
295
|
-
request; this effectively ignores the
|
|
296
|
-
authentication in the spec for a single request.
|
|
297
|
-
:type _request_auth: dict, optional
|
|
298
|
-
:param _content_type: force content-type for the request.
|
|
299
|
-
:type _content_type: str, Optional
|
|
300
|
-
:param _headers: set to override the headers for a single
|
|
301
|
-
request; this effectively ignores the headers
|
|
302
|
-
in the spec for a single request.
|
|
303
|
-
:type _headers: dict, optional
|
|
304
|
-
:param _host_index: set to override the host_index for a single
|
|
305
|
-
request; this effectively ignores the host_index
|
|
306
|
-
in the spec for a single request.
|
|
307
|
-
:type _host_index: int, optional
|
|
308
|
-
:return: Returns the result object.
|
|
309
|
-
""" # noqa: E501
|
|
310
|
-
|
|
311
|
-
_param = self._metadata_get_serialize(
|
|
312
|
-
_request_auth=_request_auth,
|
|
313
|
-
_content_type=_content_type,
|
|
314
|
-
_headers=_headers,
|
|
315
|
-
_host_index=_host_index,
|
|
316
|
-
)
|
|
317
|
-
|
|
318
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
319
|
-
"200": "APIMeta",
|
|
320
|
-
"400": "APIErrors",
|
|
321
|
-
}
|
|
322
|
-
response_data = await self.api_client.call_api(
|
|
323
|
-
*_param, _request_timeout=_request_timeout
|
|
324
|
-
)
|
|
325
|
-
await response_data.read()
|
|
326
|
-
return self.api_client.response_deserialize(
|
|
327
|
-
response_data=response_data,
|
|
328
|
-
response_types_map=_response_types_map,
|
|
329
|
-
).data
|
|
330
|
-
|
|
331
|
-
@validate_call
|
|
332
|
-
async def metadata_get_with_http_info(
|
|
333
|
-
self,
|
|
334
|
-
_request_timeout: Union[
|
|
335
|
-
None,
|
|
336
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
337
|
-
Tuple[
|
|
338
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
339
|
-
],
|
|
340
|
-
] = None,
|
|
341
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
342
|
-
_content_type: Optional[StrictStr] = None,
|
|
343
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
344
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
345
|
-
) -> ApiResponse[APIMeta]:
|
|
346
|
-
"""Get metadata
|
|
347
|
-
|
|
348
|
-
Gets metadata for the Hatchet instance
|
|
349
|
-
|
|
350
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
351
|
-
number provided, it will be total request
|
|
352
|
-
timeout. It can also be a pair (tuple) of
|
|
353
|
-
(connection, read) timeouts.
|
|
354
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
355
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
356
|
-
request; this effectively ignores the
|
|
357
|
-
authentication in the spec for a single request.
|
|
358
|
-
:type _request_auth: dict, optional
|
|
359
|
-
:param _content_type: force content-type for the request.
|
|
360
|
-
:type _content_type: str, Optional
|
|
361
|
-
:param _headers: set to override the headers for a single
|
|
362
|
-
request; this effectively ignores the headers
|
|
363
|
-
in the spec for a single request.
|
|
364
|
-
:type _headers: dict, optional
|
|
365
|
-
:param _host_index: set to override the host_index for a single
|
|
366
|
-
request; this effectively ignores the host_index
|
|
367
|
-
in the spec for a single request.
|
|
368
|
-
:type _host_index: int, optional
|
|
369
|
-
:return: Returns the result object.
|
|
370
|
-
""" # noqa: E501
|
|
371
|
-
|
|
372
|
-
_param = self._metadata_get_serialize(
|
|
373
|
-
_request_auth=_request_auth,
|
|
374
|
-
_content_type=_content_type,
|
|
375
|
-
_headers=_headers,
|
|
376
|
-
_host_index=_host_index,
|
|
377
|
-
)
|
|
378
|
-
|
|
379
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
380
|
-
"200": "APIMeta",
|
|
381
|
-
"400": "APIErrors",
|
|
382
|
-
}
|
|
383
|
-
response_data = await self.api_client.call_api(
|
|
384
|
-
*_param, _request_timeout=_request_timeout
|
|
385
|
-
)
|
|
386
|
-
await response_data.read()
|
|
387
|
-
return self.api_client.response_deserialize(
|
|
388
|
-
response_data=response_data,
|
|
389
|
-
response_types_map=_response_types_map,
|
|
390
|
-
)
|
|
391
|
-
|
|
392
|
-
@validate_call
|
|
393
|
-
async def metadata_get_without_preload_content(
|
|
394
|
-
self,
|
|
395
|
-
_request_timeout: Union[
|
|
396
|
-
None,
|
|
397
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
398
|
-
Tuple[
|
|
399
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
400
|
-
],
|
|
401
|
-
] = None,
|
|
402
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
403
|
-
_content_type: Optional[StrictStr] = None,
|
|
404
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
405
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
406
|
-
) -> RESTResponseType:
|
|
407
|
-
"""Get metadata
|
|
408
|
-
|
|
409
|
-
Gets metadata for the Hatchet instance
|
|
410
|
-
|
|
411
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
412
|
-
number provided, it will be total request
|
|
413
|
-
timeout. It can also be a pair (tuple) of
|
|
414
|
-
(connection, read) timeouts.
|
|
415
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
416
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
417
|
-
request; this effectively ignores the
|
|
418
|
-
authentication in the spec for a single request.
|
|
419
|
-
:type _request_auth: dict, optional
|
|
420
|
-
:param _content_type: force content-type for the request.
|
|
421
|
-
:type _content_type: str, Optional
|
|
422
|
-
:param _headers: set to override the headers for a single
|
|
423
|
-
request; this effectively ignores the headers
|
|
424
|
-
in the spec for a single request.
|
|
425
|
-
:type _headers: dict, optional
|
|
426
|
-
:param _host_index: set to override the host_index for a single
|
|
427
|
-
request; this effectively ignores the host_index
|
|
428
|
-
in the spec for a single request.
|
|
429
|
-
:type _host_index: int, optional
|
|
430
|
-
:return: Returns the result object.
|
|
431
|
-
""" # noqa: E501
|
|
432
|
-
|
|
433
|
-
_param = self._metadata_get_serialize(
|
|
434
|
-
_request_auth=_request_auth,
|
|
435
|
-
_content_type=_content_type,
|
|
436
|
-
_headers=_headers,
|
|
437
|
-
_host_index=_host_index,
|
|
438
|
-
)
|
|
439
|
-
|
|
440
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
441
|
-
"200": "APIMeta",
|
|
442
|
-
"400": "APIErrors",
|
|
443
|
-
}
|
|
444
|
-
response_data = await self.api_client.call_api(
|
|
445
|
-
*_param, _request_timeout=_request_timeout
|
|
446
|
-
)
|
|
447
|
-
return response_data.response
|
|
448
|
-
|
|
449
|
-
def _metadata_get_serialize(
|
|
450
|
-
self,
|
|
451
|
-
_request_auth,
|
|
452
|
-
_content_type,
|
|
453
|
-
_headers,
|
|
454
|
-
_host_index,
|
|
455
|
-
) -> RequestSerialized:
|
|
456
|
-
|
|
457
|
-
_host = None
|
|
458
|
-
|
|
459
|
-
_collection_formats: Dict[str, str] = {}
|
|
460
|
-
|
|
461
|
-
_path_params: Dict[str, str] = {}
|
|
462
|
-
_query_params: List[Tuple[str, str]] = []
|
|
463
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
464
|
-
_form_params: List[Tuple[str, str]] = []
|
|
465
|
-
_files: Dict[
|
|
466
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
467
|
-
] = {}
|
|
468
|
-
_body_params: Optional[bytes] = None
|
|
469
|
-
|
|
470
|
-
# process the path parameters
|
|
471
|
-
# process the query parameters
|
|
472
|
-
# process the header parameters
|
|
473
|
-
# process the form parameters
|
|
474
|
-
# process the body parameter
|
|
475
|
-
|
|
476
|
-
# set the HTTP header `Accept`
|
|
477
|
-
if "Accept" not in _header_params:
|
|
478
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
479
|
-
["application/json"]
|
|
480
|
-
)
|
|
481
|
-
|
|
482
|
-
# authentication setting
|
|
483
|
-
_auth_settings: List[str] = []
|
|
484
|
-
|
|
485
|
-
return self.api_client.param_serialize(
|
|
486
|
-
method="GET",
|
|
487
|
-
resource_path="/api/v1/meta",
|
|
488
|
-
path_params=_path_params,
|
|
489
|
-
query_params=_query_params,
|
|
490
|
-
header_params=_header_params,
|
|
491
|
-
body=_body_params,
|
|
492
|
-
post_params=_form_params,
|
|
493
|
-
files=_files,
|
|
494
|
-
auth_settings=_auth_settings,
|
|
495
|
-
collection_formats=_collection_formats,
|
|
496
|
-
_host=_host,
|
|
497
|
-
_request_auth=_request_auth,
|
|
498
|
-
)
|
|
499
|
-
|
|
500
|
-
@validate_call
|
|
501
|
-
async def metadata_list_integrations(
|
|
502
|
-
self,
|
|
503
|
-
_request_timeout: Union[
|
|
504
|
-
None,
|
|
505
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
506
|
-
Tuple[
|
|
507
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
508
|
-
],
|
|
509
|
-
] = None,
|
|
510
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
511
|
-
_content_type: Optional[StrictStr] = None,
|
|
512
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
513
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
514
|
-
) -> List[APIMetaIntegration]:
|
|
515
|
-
"""List integrations
|
|
516
|
-
|
|
517
|
-
List all integrations
|
|
518
|
-
|
|
519
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
520
|
-
number provided, it will be total request
|
|
521
|
-
timeout. It can also be a pair (tuple) of
|
|
522
|
-
(connection, read) timeouts.
|
|
523
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
524
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
525
|
-
request; this effectively ignores the
|
|
526
|
-
authentication in the spec for a single request.
|
|
527
|
-
:type _request_auth: dict, optional
|
|
528
|
-
:param _content_type: force content-type for the request.
|
|
529
|
-
:type _content_type: str, Optional
|
|
530
|
-
:param _headers: set to override the headers for a single
|
|
531
|
-
request; this effectively ignores the headers
|
|
532
|
-
in the spec for a single request.
|
|
533
|
-
:type _headers: dict, optional
|
|
534
|
-
:param _host_index: set to override the host_index for a single
|
|
535
|
-
request; this effectively ignores the host_index
|
|
536
|
-
in the spec for a single request.
|
|
537
|
-
:type _host_index: int, optional
|
|
538
|
-
:return: Returns the result object.
|
|
539
|
-
""" # noqa: E501
|
|
540
|
-
|
|
541
|
-
_param = self._metadata_list_integrations_serialize(
|
|
542
|
-
_request_auth=_request_auth,
|
|
543
|
-
_content_type=_content_type,
|
|
544
|
-
_headers=_headers,
|
|
545
|
-
_host_index=_host_index,
|
|
546
|
-
)
|
|
547
|
-
|
|
548
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
549
|
-
"200": "List[APIMetaIntegration]",
|
|
550
|
-
"400": "APIErrors",
|
|
551
|
-
}
|
|
552
|
-
response_data = await self.api_client.call_api(
|
|
553
|
-
*_param, _request_timeout=_request_timeout
|
|
554
|
-
)
|
|
555
|
-
await response_data.read()
|
|
556
|
-
return self.api_client.response_deserialize(
|
|
557
|
-
response_data=response_data,
|
|
558
|
-
response_types_map=_response_types_map,
|
|
559
|
-
).data
|
|
560
|
-
|
|
561
|
-
@validate_call
|
|
562
|
-
async def metadata_list_integrations_with_http_info(
|
|
563
|
-
self,
|
|
564
|
-
_request_timeout: Union[
|
|
565
|
-
None,
|
|
566
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
567
|
-
Tuple[
|
|
568
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
569
|
-
],
|
|
570
|
-
] = None,
|
|
571
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
572
|
-
_content_type: Optional[StrictStr] = None,
|
|
573
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
574
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
575
|
-
) -> ApiResponse[List[APIMetaIntegration]]:
|
|
576
|
-
"""List integrations
|
|
577
|
-
|
|
578
|
-
List all integrations
|
|
579
|
-
|
|
580
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
581
|
-
number provided, it will be total request
|
|
582
|
-
timeout. It can also be a pair (tuple) of
|
|
583
|
-
(connection, read) timeouts.
|
|
584
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
585
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
586
|
-
request; this effectively ignores the
|
|
587
|
-
authentication in the spec for a single request.
|
|
588
|
-
:type _request_auth: dict, optional
|
|
589
|
-
:param _content_type: force content-type for the request.
|
|
590
|
-
:type _content_type: str, Optional
|
|
591
|
-
:param _headers: set to override the headers for a single
|
|
592
|
-
request; this effectively ignores the headers
|
|
593
|
-
in the spec for a single request.
|
|
594
|
-
:type _headers: dict, optional
|
|
595
|
-
:param _host_index: set to override the host_index for a single
|
|
596
|
-
request; this effectively ignores the host_index
|
|
597
|
-
in the spec for a single request.
|
|
598
|
-
:type _host_index: int, optional
|
|
599
|
-
:return: Returns the result object.
|
|
600
|
-
""" # noqa: E501
|
|
601
|
-
|
|
602
|
-
_param = self._metadata_list_integrations_serialize(
|
|
603
|
-
_request_auth=_request_auth,
|
|
604
|
-
_content_type=_content_type,
|
|
605
|
-
_headers=_headers,
|
|
606
|
-
_host_index=_host_index,
|
|
607
|
-
)
|
|
608
|
-
|
|
609
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
610
|
-
"200": "List[APIMetaIntegration]",
|
|
611
|
-
"400": "APIErrors",
|
|
612
|
-
}
|
|
613
|
-
response_data = await self.api_client.call_api(
|
|
614
|
-
*_param, _request_timeout=_request_timeout
|
|
615
|
-
)
|
|
616
|
-
await response_data.read()
|
|
617
|
-
return self.api_client.response_deserialize(
|
|
618
|
-
response_data=response_data,
|
|
619
|
-
response_types_map=_response_types_map,
|
|
620
|
-
)
|
|
621
|
-
|
|
622
|
-
@validate_call
|
|
623
|
-
async def metadata_list_integrations_without_preload_content(
|
|
624
|
-
self,
|
|
625
|
-
_request_timeout: Union[
|
|
626
|
-
None,
|
|
627
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
628
|
-
Tuple[
|
|
629
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
630
|
-
],
|
|
631
|
-
] = None,
|
|
632
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
633
|
-
_content_type: Optional[StrictStr] = None,
|
|
634
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
635
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
636
|
-
) -> RESTResponseType:
|
|
637
|
-
"""List integrations
|
|
638
|
-
|
|
639
|
-
List all integrations
|
|
640
|
-
|
|
641
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
642
|
-
number provided, it will be total request
|
|
643
|
-
timeout. It can also be a pair (tuple) of
|
|
644
|
-
(connection, read) timeouts.
|
|
645
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
646
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
647
|
-
request; this effectively ignores the
|
|
648
|
-
authentication in the spec for a single request.
|
|
649
|
-
:type _request_auth: dict, optional
|
|
650
|
-
:param _content_type: force content-type for the request.
|
|
651
|
-
:type _content_type: str, Optional
|
|
652
|
-
:param _headers: set to override the headers for a single
|
|
653
|
-
request; this effectively ignores the headers
|
|
654
|
-
in the spec for a single request.
|
|
655
|
-
:type _headers: dict, optional
|
|
656
|
-
:param _host_index: set to override the host_index for a single
|
|
657
|
-
request; this effectively ignores the host_index
|
|
658
|
-
in the spec for a single request.
|
|
659
|
-
:type _host_index: int, optional
|
|
660
|
-
:return: Returns the result object.
|
|
661
|
-
""" # noqa: E501
|
|
662
|
-
|
|
663
|
-
_param = self._metadata_list_integrations_serialize(
|
|
664
|
-
_request_auth=_request_auth,
|
|
665
|
-
_content_type=_content_type,
|
|
666
|
-
_headers=_headers,
|
|
667
|
-
_host_index=_host_index,
|
|
668
|
-
)
|
|
669
|
-
|
|
670
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
671
|
-
"200": "List[APIMetaIntegration]",
|
|
672
|
-
"400": "APIErrors",
|
|
673
|
-
}
|
|
674
|
-
response_data = await self.api_client.call_api(
|
|
675
|
-
*_param, _request_timeout=_request_timeout
|
|
676
|
-
)
|
|
677
|
-
return response_data.response
|
|
678
|
-
|
|
679
|
-
def _metadata_list_integrations_serialize(
|
|
680
|
-
self,
|
|
681
|
-
_request_auth,
|
|
682
|
-
_content_type,
|
|
683
|
-
_headers,
|
|
684
|
-
_host_index,
|
|
685
|
-
) -> RequestSerialized:
|
|
686
|
-
|
|
687
|
-
_host = None
|
|
688
|
-
|
|
689
|
-
_collection_formats: Dict[str, str] = {}
|
|
690
|
-
|
|
691
|
-
_path_params: Dict[str, str] = {}
|
|
692
|
-
_query_params: List[Tuple[str, str]] = []
|
|
693
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
694
|
-
_form_params: List[Tuple[str, str]] = []
|
|
695
|
-
_files: Dict[
|
|
696
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
697
|
-
] = {}
|
|
698
|
-
_body_params: Optional[bytes] = None
|
|
699
|
-
|
|
700
|
-
# process the path parameters
|
|
701
|
-
# process the query parameters
|
|
702
|
-
# process the header parameters
|
|
703
|
-
# process the form parameters
|
|
704
|
-
# process the body parameter
|
|
705
|
-
|
|
706
|
-
# set the HTTP header `Accept`
|
|
707
|
-
if "Accept" not in _header_params:
|
|
708
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
709
|
-
["application/json"]
|
|
710
|
-
)
|
|
711
|
-
|
|
712
|
-
# authentication setting
|
|
713
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
714
|
-
|
|
715
|
-
return self.api_client.param_serialize(
|
|
716
|
-
method="GET",
|
|
717
|
-
resource_path="/api/v1/meta/integrations",
|
|
718
|
-
path_params=_path_params,
|
|
719
|
-
query_params=_query_params,
|
|
720
|
-
header_params=_header_params,
|
|
721
|
-
body=_body_params,
|
|
722
|
-
post_params=_form_params,
|
|
723
|
-
files=_files,
|
|
724
|
-
auth_settings=_auth_settings,
|
|
725
|
-
collection_formats=_collection_formats,
|
|
726
|
-
_host=_host,
|
|
727
|
-
_request_auth=_request_auth,
|
|
728
|
-
)
|