hatchet-sdk 0.40.0a9__py3-none-any.whl → 0.41.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/clients/admin.py +129 -59
- hatchet_sdk/clients/dispatcher/action_listener.py +25 -2
- hatchet_sdk/clients/events.py +91 -52
- hatchet_sdk/clients/rest/__init__.py +21 -0
- hatchet_sdk/clients/rest/api/api_token_api.py +12 -9
- hatchet_sdk/clients/rest/api/default_api.py +24 -18
- hatchet_sdk/clients/rest/api/event_api.py +32 -24
- hatchet_sdk/clients/rest/api/github_api.py +4 -3
- hatchet_sdk/clients/rest/api/log_api.py +4 -3
- hatchet_sdk/clients/rest/api/metadata_api.py +12 -9
- hatchet_sdk/clients/rest/api/rate_limits_api.py +7 -4
- hatchet_sdk/clients/rest/api/slack_api.py +8 -6
- hatchet_sdk/clients/rest/api/sns_api.py +12 -9
- hatchet_sdk/clients/rest/api/step_run_api.py +28 -21
- hatchet_sdk/clients/rest/api/tenant_api.py +67 -49
- hatchet_sdk/clients/rest/api/user_api.py +24 -18
- hatchet_sdk/clients/rest/api/worker_api.py +12 -9
- hatchet_sdk/clients/rest/api/workflow_api.py +3073 -936
- hatchet_sdk/clients/rest/api/workflow_run_api.py +669 -21
- hatchet_sdk/clients/rest/api_client.py +34 -11
- hatchet_sdk/clients/rest/configuration.py +161 -36
- hatchet_sdk/clients/rest/models/__init__.py +21 -0
- hatchet_sdk/clients/rest/models/api_errors.py +3 -3
- hatchet_sdk/clients/rest/models/bulk_create_event_request.py +3 -3
- hatchet_sdk/clients/rest/models/bulk_create_event_response.py +3 -3
- hatchet_sdk/clients/{cloud_rest/models/managed_worker_create_request_build_config_steps_inner.py → rest/models/create_cron_workflow_trigger_request.py} +18 -14
- hatchet_sdk/clients/{cloud_rest/models/github_app_list_installations200_response_rows_inner.py → rest/models/cron_workflows.py} +54 -21
- hatchet_sdk/clients/{cloud_rest/models/log_list200_response.py → rest/models/cron_workflows_list.py} +13 -22
- hatchet_sdk/clients/rest/models/cron_workflows_order_by_field.py +37 -0
- hatchet_sdk/clients/rest/models/event_list.py +3 -3
- hatchet_sdk/clients/rest/models/get_step_run_diff_response.py +3 -3
- hatchet_sdk/clients/rest/models/job.py +3 -3
- hatchet_sdk/clients/rest/models/job_run.py +3 -3
- hatchet_sdk/clients/rest/models/list_api_tokens_response.py +3 -3
- hatchet_sdk/clients/rest/models/list_pull_requests_response.py +3 -3
- hatchet_sdk/clients/rest/models/list_slack_webhooks.py +3 -3
- hatchet_sdk/clients/rest/models/list_sns_integrations.py +3 -3
- hatchet_sdk/clients/rest/models/log_line_list.py +3 -3
- hatchet_sdk/clients/rest/models/rate_limit_list.py +3 -3
- hatchet_sdk/clients/rest/models/replay_workflow_runs_response.py +3 -3
- hatchet_sdk/clients/{cloud_rest/models/log_list200_response_rows_inner.py → rest/models/schedule_workflow_run_request.py} +12 -12
- hatchet_sdk/clients/rest/models/scheduled_run_status.py +42 -0
- hatchet_sdk/clients/rest/models/scheduled_workflows.py +153 -0
- hatchet_sdk/clients/{cloud_rest/models/managed_worker_list200_response.py → rest/models/scheduled_workflows_list.py} +13 -22
- hatchet_sdk/clients/rest/models/scheduled_workflows_order_by_field.py +37 -0
- hatchet_sdk/clients/rest/models/step_run_archive_list.py +3 -3
- hatchet_sdk/clients/rest/models/step_run_event_list.py +3 -3
- hatchet_sdk/clients/rest/models/tenant_alert_email_group_list.py +3 -3
- hatchet_sdk/clients/rest/models/tenant_invite_list.py +3 -3
- hatchet_sdk/clients/rest/models/tenant_list.py +3 -3
- hatchet_sdk/clients/rest/models/tenant_member_list.py +3 -3
- hatchet_sdk/clients/rest/models/tenant_queue_metrics.py +16 -0
- hatchet_sdk/clients/rest/models/tenant_resource_policy.py +3 -3
- hatchet_sdk/clients/rest/models/tenant_step_run_queue_metrics.py +1 -1
- hatchet_sdk/clients/rest/models/user_tenant_memberships_list.py +3 -3
- hatchet_sdk/clients/rest/models/webhook_worker_list_response.py +3 -3
- hatchet_sdk/clients/rest/models/webhook_worker_request_list_response.py +3 -3
- hatchet_sdk/clients/rest/models/worker.py +20 -9
- hatchet_sdk/clients/rest/models/worker_list.py +3 -3
- hatchet_sdk/clients/{cloud_rest/models/tenant_billing_state_get200_response_payment_methods_inner.py → rest/models/worker_runtime_info.py} +23 -19
- hatchet_sdk/clients/rest/models/worker_runtime_sdks.py +38 -0
- hatchet_sdk/clients/rest/models/workflow.py +9 -9
- hatchet_sdk/clients/rest/models/workflow_list.py +3 -3
- hatchet_sdk/clients/rest/models/workflow_run.py +3 -3
- hatchet_sdk/clients/rest/models/workflow_run_list.py +3 -3
- hatchet_sdk/clients/rest/models/workflow_run_shape.py +3 -3
- hatchet_sdk/clients/rest/models/workflow_runs_metrics.py +1 -5
- hatchet_sdk/clients/rest/models/workflow_triggers.py +6 -6
- hatchet_sdk/clients/rest/models/workflow_version.py +3 -3
- hatchet_sdk/clients/rest/rest.py +3 -3
- hatchet_sdk/clients/rest_client.py +200 -21
- hatchet_sdk/contracts/dispatcher_pb2.pyi +2 -0
- hatchet_sdk/contracts/events_pb2.pyi +2 -0
- hatchet_sdk/contracts/workflows_pb2.pyi +2 -0
- hatchet_sdk/features/cron.py +286 -0
- hatchet_sdk/features/scheduled.py +248 -0
- hatchet_sdk/hatchet.py +71 -79
- hatchet_sdk/loader.py +37 -14
- hatchet_sdk/utils/serialization.py +15 -0
- hatchet_sdk/utils/tracing.py +67 -0
- hatchet_sdk/worker/runner/runner.py +158 -112
- hatchet_sdk/worker/worker.py +1 -17
- {hatchet_sdk-0.40.0a9.dist-info → hatchet_sdk-0.41.0.dist-info}/METADATA +8 -2
- {hatchet_sdk-0.40.0a9.dist-info → hatchet_sdk-0.41.0.dist-info}/RECORD +86 -140
- {hatchet_sdk-0.40.0a9.dist-info → hatchet_sdk-0.41.0.dist-info}/entry_points.txt +0 -1
- hatchet_sdk/clients/cloud_rest/__init__.py +0 -186
- hatchet_sdk/clients/cloud_rest/api/__init__.py +0 -14
- hatchet_sdk/clients/cloud_rest/api/billing_api.py +0 -819
- hatchet_sdk/clients/cloud_rest/api/build_api.py +0 -298
- hatchet_sdk/clients/cloud_rest/api/feature_flags_api.py +0 -295
- hatchet_sdk/clients/cloud_rest/api/github_api.py +0 -1347
- hatchet_sdk/clients/cloud_rest/api/log_api.py +0 -971
- hatchet_sdk/clients/cloud_rest/api/managed_worker_api.py +0 -2546
- hatchet_sdk/clients/cloud_rest/api/metadata_api.py +0 -265
- hatchet_sdk/clients/cloud_rest/api/metrics_api.py +0 -1026
- hatchet_sdk/clients/cloud_rest/api/tenant_api.py +0 -301
- hatchet_sdk/clients/cloud_rest/api/user_api.py +0 -473
- hatchet_sdk/clients/cloud_rest/api/workflow_api.py +0 -369
- hatchet_sdk/clients/cloud_rest/api_client.py +0 -727
- hatchet_sdk/clients/cloud_rest/api_response.py +0 -22
- hatchet_sdk/clients/cloud_rest/configuration.py +0 -488
- hatchet_sdk/clients/cloud_rest/exceptions.py +0 -200
- hatchet_sdk/clients/cloud_rest/models/__init__.py +0 -157
- hatchet_sdk/clients/cloud_rest/models/billing_portal_link_get200_response.py +0 -85
- hatchet_sdk/clients/cloud_rest/models/build_get200_response.py +0 -121
- hatchet_sdk/clients/cloud_rest/models/github_app_list_branches200_response_inner.py +0 -86
- hatchet_sdk/clients/cloud_rest/models/github_app_list_installations200_response.py +0 -119
- hatchet_sdk/clients/cloud_rest/models/github_app_list_installations200_response_pagination.py +0 -95
- hatchet_sdk/clients/cloud_rest/models/github_app_list_installations200_response_rows_inner_metadata.py +0 -98
- hatchet_sdk/clients/cloud_rest/models/github_app_list_repos200_response_inner.py +0 -86
- hatchet_sdk/clients/cloud_rest/models/infra_as_code_create_request.py +0 -107
- hatchet_sdk/clients/cloud_rest/models/log_create_request_inner.py +0 -136
- hatchet_sdk/clients/cloud_rest/models/log_create_request_inner_event.py +0 -83
- hatchet_sdk/clients/cloud_rest/models/log_create_request_inner_fly.py +0 -100
- hatchet_sdk/clients/cloud_rest/models/log_create_request_inner_fly_app.py +0 -86
- hatchet_sdk/clients/cloud_rest/models/log_create_request_inner_log.py +0 -83
- hatchet_sdk/clients/cloud_rest/models/managed_worker_create_request.py +0 -128
- hatchet_sdk/clients/cloud_rest/models/managed_worker_create_request_build_config.py +0 -121
- hatchet_sdk/clients/cloud_rest/models/managed_worker_create_request_runtime_config.py +0 -166
- hatchet_sdk/clients/cloud_rest/models/managed_worker_events_list200_response.py +0 -119
- hatchet_sdk/clients/cloud_rest/models/managed_worker_events_list200_response_rows_inner.py +0 -117
- hatchet_sdk/clients/cloud_rest/models/managed_worker_instances_list200_response.py +0 -119
- hatchet_sdk/clients/cloud_rest/models/managed_worker_instances_list200_response_rows_inner.py +0 -113
- hatchet_sdk/clients/cloud_rest/models/managed_worker_list200_response_rows_inner.py +0 -154
- hatchet_sdk/clients/cloud_rest/models/managed_worker_list200_response_rows_inner_build_config.py +0 -151
- hatchet_sdk/clients/cloud_rest/models/managed_worker_list200_response_rows_inner_build_config_steps_inner.py +0 -109
- hatchet_sdk/clients/cloud_rest/models/managed_worker_list200_response_rows_inner_runtime_configs_inner.py +0 -171
- hatchet_sdk/clients/cloud_rest/models/managed_worker_update_request.py +0 -131
- hatchet_sdk/clients/cloud_rest/models/metadata_get200_response.py +0 -101
- hatchet_sdk/clients/cloud_rest/models/metadata_get400_response.py +0 -105
- hatchet_sdk/clients/cloud_rest/models/metadata_get400_response_errors_inner.py +0 -102
- hatchet_sdk/clients/cloud_rest/models/metrics_cpu_get200_response_inner.py +0 -108
- hatchet_sdk/clients/cloud_rest/models/metrics_cpu_get200_response_inner_histograms_inner.py +0 -102
- hatchet_sdk/clients/cloud_rest/models/metrics_cpu_get200_response_inner_histograms_inner_histogram.py +0 -113
- hatchet_sdk/clients/cloud_rest/models/metrics_cpu_get200_response_inner_histograms_inner_histogram_buckets_inner.py +0 -93
- hatchet_sdk/clients/cloud_rest/models/runtime_config_list_actions200_response.py +0 -83
- hatchet_sdk/clients/cloud_rest/models/subscription_upsert200_response.py +0 -114
- hatchet_sdk/clients/cloud_rest/models/subscription_upsert_request.py +0 -88
- hatchet_sdk/clients/cloud_rest/models/tenant_billing_state_get200_response.py +0 -170
- hatchet_sdk/clients/cloud_rest/models/tenant_billing_state_get200_response_coupons_inner.py +0 -137
- hatchet_sdk/clients/cloud_rest/models/tenant_billing_state_get200_response_plans_inner.py +0 -103
- hatchet_sdk/clients/cloud_rest/models/tenant_billing_state_get200_response_subscription.py +0 -114
- hatchet_sdk/clients/cloud_rest/models/workflow_run_events_get_metrics200_response.py +0 -107
- hatchet_sdk/clients/cloud_rest/models/workflow_run_events_get_metrics200_response_results_inner.py +0 -105
- hatchet_sdk/clients/cloud_rest/rest.py +0 -182
- hatchet_sdk/compute/__init__.py +0 -0
- hatchet_sdk/compute/configs.py +0 -34
- hatchet_sdk/compute/managed_compute.py +0 -111
- {hatchet_sdk-0.40.0a9.dist-info → hatchet_sdk-0.41.0.dist-info}/WHEEL +0 -0
|
@@ -1,1347 +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.clients.cloud_rest.api_client import ApiClient, RequestSerialized
|
|
21
|
-
from hatchet_sdk.clients.cloud_rest.api_response import ApiResponse
|
|
22
|
-
from hatchet_sdk.clients.cloud_rest.models.github_app_list_branches200_response_inner import (
|
|
23
|
-
GithubAppListBranches200ResponseInner,
|
|
24
|
-
)
|
|
25
|
-
from hatchet_sdk.clients.cloud_rest.models.github_app_list_installations200_response import (
|
|
26
|
-
GithubAppListInstallations200Response,
|
|
27
|
-
)
|
|
28
|
-
from hatchet_sdk.clients.cloud_rest.models.github_app_list_repos200_response_inner import (
|
|
29
|
-
GithubAppListRepos200ResponseInner,
|
|
30
|
-
)
|
|
31
|
-
from hatchet_sdk.clients.cloud_rest.rest import RESTResponseType
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class GithubApi:
|
|
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 github_app_list_branches(
|
|
48
|
-
self,
|
|
49
|
-
gh_installation: Annotated[
|
|
50
|
-
str,
|
|
51
|
-
Field(
|
|
52
|
-
min_length=36,
|
|
53
|
-
strict=True,
|
|
54
|
-
max_length=36,
|
|
55
|
-
description="The installation id",
|
|
56
|
-
),
|
|
57
|
-
],
|
|
58
|
-
gh_repo_owner: Annotated[StrictStr, Field(description="The repository owner")],
|
|
59
|
-
gh_repo_name: Annotated[StrictStr, Field(description="The repository name")],
|
|
60
|
-
_request_timeout: Union[
|
|
61
|
-
None,
|
|
62
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
63
|
-
Tuple[
|
|
64
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
65
|
-
],
|
|
66
|
-
] = None,
|
|
67
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
68
|
-
_content_type: Optional[StrictStr] = None,
|
|
69
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
70
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
71
|
-
) -> List[GithubAppListBranches200ResponseInner]:
|
|
72
|
-
"""List Github App branches
|
|
73
|
-
|
|
74
|
-
List Github App branches
|
|
75
|
-
|
|
76
|
-
:param gh_installation: The installation id (required)
|
|
77
|
-
:type gh_installation: str
|
|
78
|
-
:param gh_repo_owner: The repository owner (required)
|
|
79
|
-
:type gh_repo_owner: str
|
|
80
|
-
:param gh_repo_name: The repository name (required)
|
|
81
|
-
:type gh_repo_name: str
|
|
82
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
83
|
-
number provided, it will be total request
|
|
84
|
-
timeout. It can also be a pair (tuple) of
|
|
85
|
-
(connection, read) timeouts.
|
|
86
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
87
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
88
|
-
request; this effectively ignores the
|
|
89
|
-
authentication in the spec for a single request.
|
|
90
|
-
:type _request_auth: dict, optional
|
|
91
|
-
:param _content_type: force content-type for the request.
|
|
92
|
-
:type _content_type: str, Optional
|
|
93
|
-
:param _headers: set to override the headers for a single
|
|
94
|
-
request; this effectively ignores the headers
|
|
95
|
-
in the spec for a single request.
|
|
96
|
-
:type _headers: dict, optional
|
|
97
|
-
:param _host_index: set to override the host_index for a single
|
|
98
|
-
request; this effectively ignores the host_index
|
|
99
|
-
in the spec for a single request.
|
|
100
|
-
:type _host_index: int, optional
|
|
101
|
-
:return: Returns the result object.
|
|
102
|
-
""" # noqa: E501
|
|
103
|
-
|
|
104
|
-
_param = self._github_app_list_branches_serialize(
|
|
105
|
-
gh_installation=gh_installation,
|
|
106
|
-
gh_repo_owner=gh_repo_owner,
|
|
107
|
-
gh_repo_name=gh_repo_name,
|
|
108
|
-
_request_auth=_request_auth,
|
|
109
|
-
_content_type=_content_type,
|
|
110
|
-
_headers=_headers,
|
|
111
|
-
_host_index=_host_index,
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
115
|
-
"200": "List[GithubAppListBranches200ResponseInner]",
|
|
116
|
-
"400": "MetadataGet400Response",
|
|
117
|
-
"401": "MetadataGet400Response",
|
|
118
|
-
"405": "MetadataGet400Response",
|
|
119
|
-
}
|
|
120
|
-
response_data = await self.api_client.call_api(
|
|
121
|
-
*_param, _request_timeout=_request_timeout
|
|
122
|
-
)
|
|
123
|
-
await response_data.read()
|
|
124
|
-
return self.api_client.response_deserialize(
|
|
125
|
-
response_data=response_data,
|
|
126
|
-
response_types_map=_response_types_map,
|
|
127
|
-
).data
|
|
128
|
-
|
|
129
|
-
@validate_call
|
|
130
|
-
async def github_app_list_branches_with_http_info(
|
|
131
|
-
self,
|
|
132
|
-
gh_installation: Annotated[
|
|
133
|
-
str,
|
|
134
|
-
Field(
|
|
135
|
-
min_length=36,
|
|
136
|
-
strict=True,
|
|
137
|
-
max_length=36,
|
|
138
|
-
description="The installation id",
|
|
139
|
-
),
|
|
140
|
-
],
|
|
141
|
-
gh_repo_owner: Annotated[StrictStr, Field(description="The repository owner")],
|
|
142
|
-
gh_repo_name: Annotated[StrictStr, Field(description="The repository name")],
|
|
143
|
-
_request_timeout: Union[
|
|
144
|
-
None,
|
|
145
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
146
|
-
Tuple[
|
|
147
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
148
|
-
],
|
|
149
|
-
] = None,
|
|
150
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
151
|
-
_content_type: Optional[StrictStr] = None,
|
|
152
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
153
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
154
|
-
) -> ApiResponse[List[GithubAppListBranches200ResponseInner]]:
|
|
155
|
-
"""List Github App branches
|
|
156
|
-
|
|
157
|
-
List Github App branches
|
|
158
|
-
|
|
159
|
-
:param gh_installation: The installation id (required)
|
|
160
|
-
:type gh_installation: str
|
|
161
|
-
:param gh_repo_owner: The repository owner (required)
|
|
162
|
-
:type gh_repo_owner: str
|
|
163
|
-
:param gh_repo_name: The repository name (required)
|
|
164
|
-
:type gh_repo_name: str
|
|
165
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
166
|
-
number provided, it will be total request
|
|
167
|
-
timeout. It can also be a pair (tuple) of
|
|
168
|
-
(connection, read) timeouts.
|
|
169
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
170
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
171
|
-
request; this effectively ignores the
|
|
172
|
-
authentication in the spec for a single request.
|
|
173
|
-
:type _request_auth: dict, optional
|
|
174
|
-
:param _content_type: force content-type for the request.
|
|
175
|
-
:type _content_type: str, Optional
|
|
176
|
-
:param _headers: set to override the headers for a single
|
|
177
|
-
request; this effectively ignores the headers
|
|
178
|
-
in the spec for a single request.
|
|
179
|
-
:type _headers: dict, optional
|
|
180
|
-
:param _host_index: set to override the host_index for a single
|
|
181
|
-
request; this effectively ignores the host_index
|
|
182
|
-
in the spec for a single request.
|
|
183
|
-
:type _host_index: int, optional
|
|
184
|
-
:return: Returns the result object.
|
|
185
|
-
""" # noqa: E501
|
|
186
|
-
|
|
187
|
-
_param = self._github_app_list_branches_serialize(
|
|
188
|
-
gh_installation=gh_installation,
|
|
189
|
-
gh_repo_owner=gh_repo_owner,
|
|
190
|
-
gh_repo_name=gh_repo_name,
|
|
191
|
-
_request_auth=_request_auth,
|
|
192
|
-
_content_type=_content_type,
|
|
193
|
-
_headers=_headers,
|
|
194
|
-
_host_index=_host_index,
|
|
195
|
-
)
|
|
196
|
-
|
|
197
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
198
|
-
"200": "List[GithubAppListBranches200ResponseInner]",
|
|
199
|
-
"400": "MetadataGet400Response",
|
|
200
|
-
"401": "MetadataGet400Response",
|
|
201
|
-
"405": "MetadataGet400Response",
|
|
202
|
-
}
|
|
203
|
-
response_data = await self.api_client.call_api(
|
|
204
|
-
*_param, _request_timeout=_request_timeout
|
|
205
|
-
)
|
|
206
|
-
await response_data.read()
|
|
207
|
-
return self.api_client.response_deserialize(
|
|
208
|
-
response_data=response_data,
|
|
209
|
-
response_types_map=_response_types_map,
|
|
210
|
-
)
|
|
211
|
-
|
|
212
|
-
@validate_call
|
|
213
|
-
async def github_app_list_branches_without_preload_content(
|
|
214
|
-
self,
|
|
215
|
-
gh_installation: Annotated[
|
|
216
|
-
str,
|
|
217
|
-
Field(
|
|
218
|
-
min_length=36,
|
|
219
|
-
strict=True,
|
|
220
|
-
max_length=36,
|
|
221
|
-
description="The installation id",
|
|
222
|
-
),
|
|
223
|
-
],
|
|
224
|
-
gh_repo_owner: Annotated[StrictStr, Field(description="The repository owner")],
|
|
225
|
-
gh_repo_name: Annotated[StrictStr, Field(description="The repository name")],
|
|
226
|
-
_request_timeout: Union[
|
|
227
|
-
None,
|
|
228
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
229
|
-
Tuple[
|
|
230
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
231
|
-
],
|
|
232
|
-
] = None,
|
|
233
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
234
|
-
_content_type: Optional[StrictStr] = None,
|
|
235
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
236
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
237
|
-
) -> RESTResponseType:
|
|
238
|
-
"""List Github App branches
|
|
239
|
-
|
|
240
|
-
List Github App branches
|
|
241
|
-
|
|
242
|
-
:param gh_installation: The installation id (required)
|
|
243
|
-
:type gh_installation: str
|
|
244
|
-
:param gh_repo_owner: The repository owner (required)
|
|
245
|
-
:type gh_repo_owner: str
|
|
246
|
-
:param gh_repo_name: The repository name (required)
|
|
247
|
-
:type gh_repo_name: str
|
|
248
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
249
|
-
number provided, it will be total request
|
|
250
|
-
timeout. It can also be a pair (tuple) of
|
|
251
|
-
(connection, read) timeouts.
|
|
252
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
253
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
254
|
-
request; this effectively ignores the
|
|
255
|
-
authentication in the spec for a single request.
|
|
256
|
-
:type _request_auth: dict, optional
|
|
257
|
-
:param _content_type: force content-type for the request.
|
|
258
|
-
:type _content_type: str, Optional
|
|
259
|
-
:param _headers: set to override the headers for a single
|
|
260
|
-
request; this effectively ignores the headers
|
|
261
|
-
in the spec for a single request.
|
|
262
|
-
:type _headers: dict, optional
|
|
263
|
-
:param _host_index: set to override the host_index for a single
|
|
264
|
-
request; this effectively ignores the host_index
|
|
265
|
-
in the spec for a single request.
|
|
266
|
-
:type _host_index: int, optional
|
|
267
|
-
:return: Returns the result object.
|
|
268
|
-
""" # noqa: E501
|
|
269
|
-
|
|
270
|
-
_param = self._github_app_list_branches_serialize(
|
|
271
|
-
gh_installation=gh_installation,
|
|
272
|
-
gh_repo_owner=gh_repo_owner,
|
|
273
|
-
gh_repo_name=gh_repo_name,
|
|
274
|
-
_request_auth=_request_auth,
|
|
275
|
-
_content_type=_content_type,
|
|
276
|
-
_headers=_headers,
|
|
277
|
-
_host_index=_host_index,
|
|
278
|
-
)
|
|
279
|
-
|
|
280
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
281
|
-
"200": "List[GithubAppListBranches200ResponseInner]",
|
|
282
|
-
"400": "MetadataGet400Response",
|
|
283
|
-
"401": "MetadataGet400Response",
|
|
284
|
-
"405": "MetadataGet400Response",
|
|
285
|
-
}
|
|
286
|
-
response_data = await self.api_client.call_api(
|
|
287
|
-
*_param, _request_timeout=_request_timeout
|
|
288
|
-
)
|
|
289
|
-
return response_data.response
|
|
290
|
-
|
|
291
|
-
def _github_app_list_branches_serialize(
|
|
292
|
-
self,
|
|
293
|
-
gh_installation,
|
|
294
|
-
gh_repo_owner,
|
|
295
|
-
gh_repo_name,
|
|
296
|
-
_request_auth,
|
|
297
|
-
_content_type,
|
|
298
|
-
_headers,
|
|
299
|
-
_host_index,
|
|
300
|
-
) -> RequestSerialized:
|
|
301
|
-
|
|
302
|
-
_host = None
|
|
303
|
-
|
|
304
|
-
_collection_formats: Dict[str, str] = {}
|
|
305
|
-
|
|
306
|
-
_path_params: Dict[str, str] = {}
|
|
307
|
-
_query_params: List[Tuple[str, str]] = []
|
|
308
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
309
|
-
_form_params: List[Tuple[str, str]] = []
|
|
310
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
311
|
-
_body_params: Optional[bytes] = None
|
|
312
|
-
|
|
313
|
-
# process the path parameters
|
|
314
|
-
if gh_installation is not None:
|
|
315
|
-
_path_params["gh-installation"] = gh_installation
|
|
316
|
-
if gh_repo_owner is not None:
|
|
317
|
-
_path_params["gh-repo-owner"] = gh_repo_owner
|
|
318
|
-
if gh_repo_name is not None:
|
|
319
|
-
_path_params["gh-repo-name"] = gh_repo_name
|
|
320
|
-
# process the query parameters
|
|
321
|
-
# process the header parameters
|
|
322
|
-
# process the form parameters
|
|
323
|
-
# process the body parameter
|
|
324
|
-
|
|
325
|
-
# set the HTTP header `Accept`
|
|
326
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
327
|
-
["application/json"]
|
|
328
|
-
)
|
|
329
|
-
|
|
330
|
-
# authentication setting
|
|
331
|
-
_auth_settings: List[str] = ["cookieAuth"]
|
|
332
|
-
|
|
333
|
-
return self.api_client.param_serialize(
|
|
334
|
-
method="GET",
|
|
335
|
-
resource_path="/api/v1/cloud/github-app/installations/{gh-installation}/repos/{gh-repo-owner}/{gh-repo-name}/branches",
|
|
336
|
-
path_params=_path_params,
|
|
337
|
-
query_params=_query_params,
|
|
338
|
-
header_params=_header_params,
|
|
339
|
-
body=_body_params,
|
|
340
|
-
post_params=_form_params,
|
|
341
|
-
files=_files,
|
|
342
|
-
auth_settings=_auth_settings,
|
|
343
|
-
collection_formats=_collection_formats,
|
|
344
|
-
_host=_host,
|
|
345
|
-
_request_auth=_request_auth,
|
|
346
|
-
)
|
|
347
|
-
|
|
348
|
-
@validate_call
|
|
349
|
-
async def github_app_list_installations(
|
|
350
|
-
self,
|
|
351
|
-
_request_timeout: Union[
|
|
352
|
-
None,
|
|
353
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
354
|
-
Tuple[
|
|
355
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
356
|
-
],
|
|
357
|
-
] = None,
|
|
358
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
359
|
-
_content_type: Optional[StrictStr] = None,
|
|
360
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
361
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
362
|
-
) -> GithubAppListInstallations200Response:
|
|
363
|
-
"""List Github App installations
|
|
364
|
-
|
|
365
|
-
List Github App installations
|
|
366
|
-
|
|
367
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
368
|
-
number provided, it will be total request
|
|
369
|
-
timeout. It can also be a pair (tuple) of
|
|
370
|
-
(connection, read) timeouts.
|
|
371
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
372
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
373
|
-
request; this effectively ignores the
|
|
374
|
-
authentication in the spec for a single request.
|
|
375
|
-
:type _request_auth: dict, optional
|
|
376
|
-
:param _content_type: force content-type for the request.
|
|
377
|
-
:type _content_type: str, Optional
|
|
378
|
-
:param _headers: set to override the headers for a single
|
|
379
|
-
request; this effectively ignores the headers
|
|
380
|
-
in the spec for a single request.
|
|
381
|
-
:type _headers: dict, optional
|
|
382
|
-
:param _host_index: set to override the host_index for a single
|
|
383
|
-
request; this effectively ignores the host_index
|
|
384
|
-
in the spec for a single request.
|
|
385
|
-
:type _host_index: int, optional
|
|
386
|
-
:return: Returns the result object.
|
|
387
|
-
""" # noqa: E501
|
|
388
|
-
|
|
389
|
-
_param = self._github_app_list_installations_serialize(
|
|
390
|
-
_request_auth=_request_auth,
|
|
391
|
-
_content_type=_content_type,
|
|
392
|
-
_headers=_headers,
|
|
393
|
-
_host_index=_host_index,
|
|
394
|
-
)
|
|
395
|
-
|
|
396
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
397
|
-
"200": "GithubAppListInstallations200Response",
|
|
398
|
-
"400": "MetadataGet400Response",
|
|
399
|
-
"401": "MetadataGet400Response",
|
|
400
|
-
"405": "MetadataGet400Response",
|
|
401
|
-
}
|
|
402
|
-
response_data = await self.api_client.call_api(
|
|
403
|
-
*_param, _request_timeout=_request_timeout
|
|
404
|
-
)
|
|
405
|
-
await response_data.read()
|
|
406
|
-
return self.api_client.response_deserialize(
|
|
407
|
-
response_data=response_data,
|
|
408
|
-
response_types_map=_response_types_map,
|
|
409
|
-
).data
|
|
410
|
-
|
|
411
|
-
@validate_call
|
|
412
|
-
async def github_app_list_installations_with_http_info(
|
|
413
|
-
self,
|
|
414
|
-
_request_timeout: Union[
|
|
415
|
-
None,
|
|
416
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
417
|
-
Tuple[
|
|
418
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
419
|
-
],
|
|
420
|
-
] = None,
|
|
421
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
422
|
-
_content_type: Optional[StrictStr] = None,
|
|
423
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
424
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
425
|
-
) -> ApiResponse[GithubAppListInstallations200Response]:
|
|
426
|
-
"""List Github App installations
|
|
427
|
-
|
|
428
|
-
List Github App installations
|
|
429
|
-
|
|
430
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
431
|
-
number provided, it will be total request
|
|
432
|
-
timeout. It can also be a pair (tuple) of
|
|
433
|
-
(connection, read) timeouts.
|
|
434
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
435
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
436
|
-
request; this effectively ignores the
|
|
437
|
-
authentication in the spec for a single request.
|
|
438
|
-
:type _request_auth: dict, optional
|
|
439
|
-
:param _content_type: force content-type for the request.
|
|
440
|
-
:type _content_type: str, Optional
|
|
441
|
-
:param _headers: set to override the headers for a single
|
|
442
|
-
request; this effectively ignores the headers
|
|
443
|
-
in the spec for a single request.
|
|
444
|
-
:type _headers: dict, optional
|
|
445
|
-
:param _host_index: set to override the host_index for a single
|
|
446
|
-
request; this effectively ignores the host_index
|
|
447
|
-
in the spec for a single request.
|
|
448
|
-
:type _host_index: int, optional
|
|
449
|
-
:return: Returns the result object.
|
|
450
|
-
""" # noqa: E501
|
|
451
|
-
|
|
452
|
-
_param = self._github_app_list_installations_serialize(
|
|
453
|
-
_request_auth=_request_auth,
|
|
454
|
-
_content_type=_content_type,
|
|
455
|
-
_headers=_headers,
|
|
456
|
-
_host_index=_host_index,
|
|
457
|
-
)
|
|
458
|
-
|
|
459
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
460
|
-
"200": "GithubAppListInstallations200Response",
|
|
461
|
-
"400": "MetadataGet400Response",
|
|
462
|
-
"401": "MetadataGet400Response",
|
|
463
|
-
"405": "MetadataGet400Response",
|
|
464
|
-
}
|
|
465
|
-
response_data = await self.api_client.call_api(
|
|
466
|
-
*_param, _request_timeout=_request_timeout
|
|
467
|
-
)
|
|
468
|
-
await response_data.read()
|
|
469
|
-
return self.api_client.response_deserialize(
|
|
470
|
-
response_data=response_data,
|
|
471
|
-
response_types_map=_response_types_map,
|
|
472
|
-
)
|
|
473
|
-
|
|
474
|
-
@validate_call
|
|
475
|
-
async def github_app_list_installations_without_preload_content(
|
|
476
|
-
self,
|
|
477
|
-
_request_timeout: Union[
|
|
478
|
-
None,
|
|
479
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
480
|
-
Tuple[
|
|
481
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
482
|
-
],
|
|
483
|
-
] = None,
|
|
484
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
485
|
-
_content_type: Optional[StrictStr] = None,
|
|
486
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
487
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
488
|
-
) -> RESTResponseType:
|
|
489
|
-
"""List Github App installations
|
|
490
|
-
|
|
491
|
-
List Github App installations
|
|
492
|
-
|
|
493
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
494
|
-
number provided, it will be total request
|
|
495
|
-
timeout. It can also be a pair (tuple) of
|
|
496
|
-
(connection, read) timeouts.
|
|
497
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
498
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
499
|
-
request; this effectively ignores the
|
|
500
|
-
authentication in the spec for a single request.
|
|
501
|
-
:type _request_auth: dict, optional
|
|
502
|
-
:param _content_type: force content-type for the request.
|
|
503
|
-
:type _content_type: str, Optional
|
|
504
|
-
:param _headers: set to override the headers for a single
|
|
505
|
-
request; this effectively ignores the headers
|
|
506
|
-
in the spec for a single request.
|
|
507
|
-
:type _headers: dict, optional
|
|
508
|
-
:param _host_index: set to override the host_index for a single
|
|
509
|
-
request; this effectively ignores the host_index
|
|
510
|
-
in the spec for a single request.
|
|
511
|
-
:type _host_index: int, optional
|
|
512
|
-
:return: Returns the result object.
|
|
513
|
-
""" # noqa: E501
|
|
514
|
-
|
|
515
|
-
_param = self._github_app_list_installations_serialize(
|
|
516
|
-
_request_auth=_request_auth,
|
|
517
|
-
_content_type=_content_type,
|
|
518
|
-
_headers=_headers,
|
|
519
|
-
_host_index=_host_index,
|
|
520
|
-
)
|
|
521
|
-
|
|
522
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
523
|
-
"200": "GithubAppListInstallations200Response",
|
|
524
|
-
"400": "MetadataGet400Response",
|
|
525
|
-
"401": "MetadataGet400Response",
|
|
526
|
-
"405": "MetadataGet400Response",
|
|
527
|
-
}
|
|
528
|
-
response_data = await self.api_client.call_api(
|
|
529
|
-
*_param, _request_timeout=_request_timeout
|
|
530
|
-
)
|
|
531
|
-
return response_data.response
|
|
532
|
-
|
|
533
|
-
def _github_app_list_installations_serialize(
|
|
534
|
-
self,
|
|
535
|
-
_request_auth,
|
|
536
|
-
_content_type,
|
|
537
|
-
_headers,
|
|
538
|
-
_host_index,
|
|
539
|
-
) -> RequestSerialized:
|
|
540
|
-
|
|
541
|
-
_host = None
|
|
542
|
-
|
|
543
|
-
_collection_formats: Dict[str, str] = {}
|
|
544
|
-
|
|
545
|
-
_path_params: Dict[str, str] = {}
|
|
546
|
-
_query_params: List[Tuple[str, str]] = []
|
|
547
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
548
|
-
_form_params: List[Tuple[str, str]] = []
|
|
549
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
550
|
-
_body_params: Optional[bytes] = None
|
|
551
|
-
|
|
552
|
-
# process the path parameters
|
|
553
|
-
# process the query parameters
|
|
554
|
-
# process the header parameters
|
|
555
|
-
# process the form parameters
|
|
556
|
-
# process the body parameter
|
|
557
|
-
|
|
558
|
-
# set the HTTP header `Accept`
|
|
559
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
560
|
-
["application/json"]
|
|
561
|
-
)
|
|
562
|
-
|
|
563
|
-
# authentication setting
|
|
564
|
-
_auth_settings: List[str] = ["cookieAuth"]
|
|
565
|
-
|
|
566
|
-
return self.api_client.param_serialize(
|
|
567
|
-
method="GET",
|
|
568
|
-
resource_path="/api/v1/cloud/github-app/installations",
|
|
569
|
-
path_params=_path_params,
|
|
570
|
-
query_params=_query_params,
|
|
571
|
-
header_params=_header_params,
|
|
572
|
-
body=_body_params,
|
|
573
|
-
post_params=_form_params,
|
|
574
|
-
files=_files,
|
|
575
|
-
auth_settings=_auth_settings,
|
|
576
|
-
collection_formats=_collection_formats,
|
|
577
|
-
_host=_host,
|
|
578
|
-
_request_auth=_request_auth,
|
|
579
|
-
)
|
|
580
|
-
|
|
581
|
-
@validate_call
|
|
582
|
-
async def github_app_list_repos(
|
|
583
|
-
self,
|
|
584
|
-
gh_installation: Annotated[
|
|
585
|
-
str,
|
|
586
|
-
Field(
|
|
587
|
-
min_length=36,
|
|
588
|
-
strict=True,
|
|
589
|
-
max_length=36,
|
|
590
|
-
description="The installation id",
|
|
591
|
-
),
|
|
592
|
-
],
|
|
593
|
-
_request_timeout: Union[
|
|
594
|
-
None,
|
|
595
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
596
|
-
Tuple[
|
|
597
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
598
|
-
],
|
|
599
|
-
] = None,
|
|
600
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
601
|
-
_content_type: Optional[StrictStr] = None,
|
|
602
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
603
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
604
|
-
) -> List[GithubAppListRepos200ResponseInner]:
|
|
605
|
-
"""List Github App repositories
|
|
606
|
-
|
|
607
|
-
List Github App repositories
|
|
608
|
-
|
|
609
|
-
:param gh_installation: The installation id (required)
|
|
610
|
-
:type gh_installation: str
|
|
611
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
612
|
-
number provided, it will be total request
|
|
613
|
-
timeout. It can also be a pair (tuple) of
|
|
614
|
-
(connection, read) timeouts.
|
|
615
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
616
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
617
|
-
request; this effectively ignores the
|
|
618
|
-
authentication in the spec for a single request.
|
|
619
|
-
:type _request_auth: dict, optional
|
|
620
|
-
:param _content_type: force content-type for the request.
|
|
621
|
-
:type _content_type: str, Optional
|
|
622
|
-
:param _headers: set to override the headers for a single
|
|
623
|
-
request; this effectively ignores the headers
|
|
624
|
-
in the spec for a single request.
|
|
625
|
-
:type _headers: dict, optional
|
|
626
|
-
:param _host_index: set to override the host_index for a single
|
|
627
|
-
request; this effectively ignores the host_index
|
|
628
|
-
in the spec for a single request.
|
|
629
|
-
:type _host_index: int, optional
|
|
630
|
-
:return: Returns the result object.
|
|
631
|
-
""" # noqa: E501
|
|
632
|
-
|
|
633
|
-
_param = self._github_app_list_repos_serialize(
|
|
634
|
-
gh_installation=gh_installation,
|
|
635
|
-
_request_auth=_request_auth,
|
|
636
|
-
_content_type=_content_type,
|
|
637
|
-
_headers=_headers,
|
|
638
|
-
_host_index=_host_index,
|
|
639
|
-
)
|
|
640
|
-
|
|
641
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
642
|
-
"200": "List[GithubAppListRepos200ResponseInner]",
|
|
643
|
-
"400": "MetadataGet400Response",
|
|
644
|
-
"401": "MetadataGet400Response",
|
|
645
|
-
"405": "MetadataGet400Response",
|
|
646
|
-
}
|
|
647
|
-
response_data = await self.api_client.call_api(
|
|
648
|
-
*_param, _request_timeout=_request_timeout
|
|
649
|
-
)
|
|
650
|
-
await response_data.read()
|
|
651
|
-
return self.api_client.response_deserialize(
|
|
652
|
-
response_data=response_data,
|
|
653
|
-
response_types_map=_response_types_map,
|
|
654
|
-
).data
|
|
655
|
-
|
|
656
|
-
@validate_call
|
|
657
|
-
async def github_app_list_repos_with_http_info(
|
|
658
|
-
self,
|
|
659
|
-
gh_installation: Annotated[
|
|
660
|
-
str,
|
|
661
|
-
Field(
|
|
662
|
-
min_length=36,
|
|
663
|
-
strict=True,
|
|
664
|
-
max_length=36,
|
|
665
|
-
description="The installation id",
|
|
666
|
-
),
|
|
667
|
-
],
|
|
668
|
-
_request_timeout: Union[
|
|
669
|
-
None,
|
|
670
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
671
|
-
Tuple[
|
|
672
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
673
|
-
],
|
|
674
|
-
] = None,
|
|
675
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
676
|
-
_content_type: Optional[StrictStr] = None,
|
|
677
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
678
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
679
|
-
) -> ApiResponse[List[GithubAppListRepos200ResponseInner]]:
|
|
680
|
-
"""List Github App repositories
|
|
681
|
-
|
|
682
|
-
List Github App repositories
|
|
683
|
-
|
|
684
|
-
:param gh_installation: The installation id (required)
|
|
685
|
-
:type gh_installation: str
|
|
686
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
687
|
-
number provided, it will be total request
|
|
688
|
-
timeout. It can also be a pair (tuple) of
|
|
689
|
-
(connection, read) timeouts.
|
|
690
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
691
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
692
|
-
request; this effectively ignores the
|
|
693
|
-
authentication in the spec for a single request.
|
|
694
|
-
:type _request_auth: dict, optional
|
|
695
|
-
:param _content_type: force content-type for the request.
|
|
696
|
-
:type _content_type: str, Optional
|
|
697
|
-
:param _headers: set to override the headers for a single
|
|
698
|
-
request; this effectively ignores the headers
|
|
699
|
-
in the spec for a single request.
|
|
700
|
-
:type _headers: dict, optional
|
|
701
|
-
:param _host_index: set to override the host_index for a single
|
|
702
|
-
request; this effectively ignores the host_index
|
|
703
|
-
in the spec for a single request.
|
|
704
|
-
:type _host_index: int, optional
|
|
705
|
-
:return: Returns the result object.
|
|
706
|
-
""" # noqa: E501
|
|
707
|
-
|
|
708
|
-
_param = self._github_app_list_repos_serialize(
|
|
709
|
-
gh_installation=gh_installation,
|
|
710
|
-
_request_auth=_request_auth,
|
|
711
|
-
_content_type=_content_type,
|
|
712
|
-
_headers=_headers,
|
|
713
|
-
_host_index=_host_index,
|
|
714
|
-
)
|
|
715
|
-
|
|
716
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
717
|
-
"200": "List[GithubAppListRepos200ResponseInner]",
|
|
718
|
-
"400": "MetadataGet400Response",
|
|
719
|
-
"401": "MetadataGet400Response",
|
|
720
|
-
"405": "MetadataGet400Response",
|
|
721
|
-
}
|
|
722
|
-
response_data = await self.api_client.call_api(
|
|
723
|
-
*_param, _request_timeout=_request_timeout
|
|
724
|
-
)
|
|
725
|
-
await response_data.read()
|
|
726
|
-
return self.api_client.response_deserialize(
|
|
727
|
-
response_data=response_data,
|
|
728
|
-
response_types_map=_response_types_map,
|
|
729
|
-
)
|
|
730
|
-
|
|
731
|
-
@validate_call
|
|
732
|
-
async def github_app_list_repos_without_preload_content(
|
|
733
|
-
self,
|
|
734
|
-
gh_installation: Annotated[
|
|
735
|
-
str,
|
|
736
|
-
Field(
|
|
737
|
-
min_length=36,
|
|
738
|
-
strict=True,
|
|
739
|
-
max_length=36,
|
|
740
|
-
description="The installation id",
|
|
741
|
-
),
|
|
742
|
-
],
|
|
743
|
-
_request_timeout: Union[
|
|
744
|
-
None,
|
|
745
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
746
|
-
Tuple[
|
|
747
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
748
|
-
],
|
|
749
|
-
] = None,
|
|
750
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
751
|
-
_content_type: Optional[StrictStr] = None,
|
|
752
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
753
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
754
|
-
) -> RESTResponseType:
|
|
755
|
-
"""List Github App repositories
|
|
756
|
-
|
|
757
|
-
List Github App repositories
|
|
758
|
-
|
|
759
|
-
:param gh_installation: The installation id (required)
|
|
760
|
-
:type gh_installation: str
|
|
761
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
762
|
-
number provided, it will be total request
|
|
763
|
-
timeout. It can also be a pair (tuple) of
|
|
764
|
-
(connection, read) timeouts.
|
|
765
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
766
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
767
|
-
request; this effectively ignores the
|
|
768
|
-
authentication in the spec for a single request.
|
|
769
|
-
:type _request_auth: dict, optional
|
|
770
|
-
:param _content_type: force content-type for the request.
|
|
771
|
-
:type _content_type: str, Optional
|
|
772
|
-
:param _headers: set to override the headers for a single
|
|
773
|
-
request; this effectively ignores the headers
|
|
774
|
-
in the spec for a single request.
|
|
775
|
-
:type _headers: dict, optional
|
|
776
|
-
:param _host_index: set to override the host_index for a single
|
|
777
|
-
request; this effectively ignores the host_index
|
|
778
|
-
in the spec for a single request.
|
|
779
|
-
:type _host_index: int, optional
|
|
780
|
-
:return: Returns the result object.
|
|
781
|
-
""" # noqa: E501
|
|
782
|
-
|
|
783
|
-
_param = self._github_app_list_repos_serialize(
|
|
784
|
-
gh_installation=gh_installation,
|
|
785
|
-
_request_auth=_request_auth,
|
|
786
|
-
_content_type=_content_type,
|
|
787
|
-
_headers=_headers,
|
|
788
|
-
_host_index=_host_index,
|
|
789
|
-
)
|
|
790
|
-
|
|
791
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
792
|
-
"200": "List[GithubAppListRepos200ResponseInner]",
|
|
793
|
-
"400": "MetadataGet400Response",
|
|
794
|
-
"401": "MetadataGet400Response",
|
|
795
|
-
"405": "MetadataGet400Response",
|
|
796
|
-
}
|
|
797
|
-
response_data = await self.api_client.call_api(
|
|
798
|
-
*_param, _request_timeout=_request_timeout
|
|
799
|
-
)
|
|
800
|
-
return response_data.response
|
|
801
|
-
|
|
802
|
-
def _github_app_list_repos_serialize(
|
|
803
|
-
self,
|
|
804
|
-
gh_installation,
|
|
805
|
-
_request_auth,
|
|
806
|
-
_content_type,
|
|
807
|
-
_headers,
|
|
808
|
-
_host_index,
|
|
809
|
-
) -> RequestSerialized:
|
|
810
|
-
|
|
811
|
-
_host = None
|
|
812
|
-
|
|
813
|
-
_collection_formats: Dict[str, str] = {}
|
|
814
|
-
|
|
815
|
-
_path_params: Dict[str, str] = {}
|
|
816
|
-
_query_params: List[Tuple[str, str]] = []
|
|
817
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
818
|
-
_form_params: List[Tuple[str, str]] = []
|
|
819
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
820
|
-
_body_params: Optional[bytes] = None
|
|
821
|
-
|
|
822
|
-
# process the path parameters
|
|
823
|
-
if gh_installation is not None:
|
|
824
|
-
_path_params["gh-installation"] = gh_installation
|
|
825
|
-
# process the query parameters
|
|
826
|
-
# process the header parameters
|
|
827
|
-
# process the form parameters
|
|
828
|
-
# process the body parameter
|
|
829
|
-
|
|
830
|
-
# set the HTTP header `Accept`
|
|
831
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
832
|
-
["application/json"]
|
|
833
|
-
)
|
|
834
|
-
|
|
835
|
-
# authentication setting
|
|
836
|
-
_auth_settings: List[str] = ["cookieAuth"]
|
|
837
|
-
|
|
838
|
-
return self.api_client.param_serialize(
|
|
839
|
-
method="GET",
|
|
840
|
-
resource_path="/api/v1/cloud/github-app/installations/{gh-installation}/repos",
|
|
841
|
-
path_params=_path_params,
|
|
842
|
-
query_params=_query_params,
|
|
843
|
-
header_params=_header_params,
|
|
844
|
-
body=_body_params,
|
|
845
|
-
post_params=_form_params,
|
|
846
|
-
files=_files,
|
|
847
|
-
auth_settings=_auth_settings,
|
|
848
|
-
collection_formats=_collection_formats,
|
|
849
|
-
_host=_host,
|
|
850
|
-
_request_auth=_request_auth,
|
|
851
|
-
)
|
|
852
|
-
|
|
853
|
-
@validate_call
|
|
854
|
-
async def github_update_global_webhook(
|
|
855
|
-
self,
|
|
856
|
-
_request_timeout: Union[
|
|
857
|
-
None,
|
|
858
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
859
|
-
Tuple[
|
|
860
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
861
|
-
],
|
|
862
|
-
] = None,
|
|
863
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
864
|
-
_content_type: Optional[StrictStr] = None,
|
|
865
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
866
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
867
|
-
) -> None:
|
|
868
|
-
"""Github app global webhook
|
|
869
|
-
|
|
870
|
-
Github App global webhook
|
|
871
|
-
|
|
872
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
873
|
-
number provided, it will be total request
|
|
874
|
-
timeout. It can also be a pair (tuple) of
|
|
875
|
-
(connection, read) timeouts.
|
|
876
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
877
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
878
|
-
request; this effectively ignores the
|
|
879
|
-
authentication in the spec for a single request.
|
|
880
|
-
:type _request_auth: dict, optional
|
|
881
|
-
:param _content_type: force content-type for the request.
|
|
882
|
-
:type _content_type: str, Optional
|
|
883
|
-
:param _headers: set to override the headers for a single
|
|
884
|
-
request; this effectively ignores the headers
|
|
885
|
-
in the spec for a single request.
|
|
886
|
-
:type _headers: dict, optional
|
|
887
|
-
:param _host_index: set to override the host_index for a single
|
|
888
|
-
request; this effectively ignores the host_index
|
|
889
|
-
in the spec for a single request.
|
|
890
|
-
:type _host_index: int, optional
|
|
891
|
-
:return: Returns the result object.
|
|
892
|
-
""" # noqa: E501
|
|
893
|
-
|
|
894
|
-
_param = self._github_update_global_webhook_serialize(
|
|
895
|
-
_request_auth=_request_auth,
|
|
896
|
-
_content_type=_content_type,
|
|
897
|
-
_headers=_headers,
|
|
898
|
-
_host_index=_host_index,
|
|
899
|
-
)
|
|
900
|
-
|
|
901
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
902
|
-
"200": None,
|
|
903
|
-
"400": "MetadataGet400Response",
|
|
904
|
-
"401": "MetadataGet400Response",
|
|
905
|
-
"405": "MetadataGet400Response",
|
|
906
|
-
}
|
|
907
|
-
response_data = await self.api_client.call_api(
|
|
908
|
-
*_param, _request_timeout=_request_timeout
|
|
909
|
-
)
|
|
910
|
-
await response_data.read()
|
|
911
|
-
return self.api_client.response_deserialize(
|
|
912
|
-
response_data=response_data,
|
|
913
|
-
response_types_map=_response_types_map,
|
|
914
|
-
).data
|
|
915
|
-
|
|
916
|
-
@validate_call
|
|
917
|
-
async def github_update_global_webhook_with_http_info(
|
|
918
|
-
self,
|
|
919
|
-
_request_timeout: Union[
|
|
920
|
-
None,
|
|
921
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
922
|
-
Tuple[
|
|
923
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
924
|
-
],
|
|
925
|
-
] = None,
|
|
926
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
927
|
-
_content_type: Optional[StrictStr] = None,
|
|
928
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
929
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
930
|
-
) -> ApiResponse[None]:
|
|
931
|
-
"""Github app global webhook
|
|
932
|
-
|
|
933
|
-
Github App global webhook
|
|
934
|
-
|
|
935
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
936
|
-
number provided, it will be total request
|
|
937
|
-
timeout. It can also be a pair (tuple) of
|
|
938
|
-
(connection, read) timeouts.
|
|
939
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
940
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
941
|
-
request; this effectively ignores the
|
|
942
|
-
authentication in the spec for a single request.
|
|
943
|
-
:type _request_auth: dict, optional
|
|
944
|
-
:param _content_type: force content-type for the request.
|
|
945
|
-
:type _content_type: str, Optional
|
|
946
|
-
:param _headers: set to override the headers for a single
|
|
947
|
-
request; this effectively ignores the headers
|
|
948
|
-
in the spec for a single request.
|
|
949
|
-
:type _headers: dict, optional
|
|
950
|
-
:param _host_index: set to override the host_index for a single
|
|
951
|
-
request; this effectively ignores the host_index
|
|
952
|
-
in the spec for a single request.
|
|
953
|
-
:type _host_index: int, optional
|
|
954
|
-
:return: Returns the result object.
|
|
955
|
-
""" # noqa: E501
|
|
956
|
-
|
|
957
|
-
_param = self._github_update_global_webhook_serialize(
|
|
958
|
-
_request_auth=_request_auth,
|
|
959
|
-
_content_type=_content_type,
|
|
960
|
-
_headers=_headers,
|
|
961
|
-
_host_index=_host_index,
|
|
962
|
-
)
|
|
963
|
-
|
|
964
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
965
|
-
"200": None,
|
|
966
|
-
"400": "MetadataGet400Response",
|
|
967
|
-
"401": "MetadataGet400Response",
|
|
968
|
-
"405": "MetadataGet400Response",
|
|
969
|
-
}
|
|
970
|
-
response_data = await self.api_client.call_api(
|
|
971
|
-
*_param, _request_timeout=_request_timeout
|
|
972
|
-
)
|
|
973
|
-
await response_data.read()
|
|
974
|
-
return self.api_client.response_deserialize(
|
|
975
|
-
response_data=response_data,
|
|
976
|
-
response_types_map=_response_types_map,
|
|
977
|
-
)
|
|
978
|
-
|
|
979
|
-
@validate_call
|
|
980
|
-
async def github_update_global_webhook_without_preload_content(
|
|
981
|
-
self,
|
|
982
|
-
_request_timeout: Union[
|
|
983
|
-
None,
|
|
984
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
985
|
-
Tuple[
|
|
986
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
987
|
-
],
|
|
988
|
-
] = None,
|
|
989
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
990
|
-
_content_type: Optional[StrictStr] = None,
|
|
991
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
992
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
993
|
-
) -> RESTResponseType:
|
|
994
|
-
"""Github app global webhook
|
|
995
|
-
|
|
996
|
-
Github App global webhook
|
|
997
|
-
|
|
998
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
999
|
-
number provided, it will be total request
|
|
1000
|
-
timeout. It can also be a pair (tuple) of
|
|
1001
|
-
(connection, read) timeouts.
|
|
1002
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1003
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1004
|
-
request; this effectively ignores the
|
|
1005
|
-
authentication in the spec for a single request.
|
|
1006
|
-
:type _request_auth: dict, optional
|
|
1007
|
-
:param _content_type: force content-type for the request.
|
|
1008
|
-
:type _content_type: str, Optional
|
|
1009
|
-
:param _headers: set to override the headers for a single
|
|
1010
|
-
request; this effectively ignores the headers
|
|
1011
|
-
in the spec for a single request.
|
|
1012
|
-
:type _headers: dict, optional
|
|
1013
|
-
:param _host_index: set to override the host_index for a single
|
|
1014
|
-
request; this effectively ignores the host_index
|
|
1015
|
-
in the spec for a single request.
|
|
1016
|
-
:type _host_index: int, optional
|
|
1017
|
-
:return: Returns the result object.
|
|
1018
|
-
""" # noqa: E501
|
|
1019
|
-
|
|
1020
|
-
_param = self._github_update_global_webhook_serialize(
|
|
1021
|
-
_request_auth=_request_auth,
|
|
1022
|
-
_content_type=_content_type,
|
|
1023
|
-
_headers=_headers,
|
|
1024
|
-
_host_index=_host_index,
|
|
1025
|
-
)
|
|
1026
|
-
|
|
1027
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1028
|
-
"200": None,
|
|
1029
|
-
"400": "MetadataGet400Response",
|
|
1030
|
-
"401": "MetadataGet400Response",
|
|
1031
|
-
"405": "MetadataGet400Response",
|
|
1032
|
-
}
|
|
1033
|
-
response_data = await self.api_client.call_api(
|
|
1034
|
-
*_param, _request_timeout=_request_timeout
|
|
1035
|
-
)
|
|
1036
|
-
return response_data.response
|
|
1037
|
-
|
|
1038
|
-
def _github_update_global_webhook_serialize(
|
|
1039
|
-
self,
|
|
1040
|
-
_request_auth,
|
|
1041
|
-
_content_type,
|
|
1042
|
-
_headers,
|
|
1043
|
-
_host_index,
|
|
1044
|
-
) -> RequestSerialized:
|
|
1045
|
-
|
|
1046
|
-
_host = None
|
|
1047
|
-
|
|
1048
|
-
_collection_formats: Dict[str, str] = {}
|
|
1049
|
-
|
|
1050
|
-
_path_params: Dict[str, str] = {}
|
|
1051
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1052
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1053
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1054
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
1055
|
-
_body_params: Optional[bytes] = None
|
|
1056
|
-
|
|
1057
|
-
# process the path parameters
|
|
1058
|
-
# process the query parameters
|
|
1059
|
-
# process the header parameters
|
|
1060
|
-
# process the form parameters
|
|
1061
|
-
# process the body parameter
|
|
1062
|
-
|
|
1063
|
-
# set the HTTP header `Accept`
|
|
1064
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1065
|
-
["application/json"]
|
|
1066
|
-
)
|
|
1067
|
-
|
|
1068
|
-
# authentication setting
|
|
1069
|
-
_auth_settings: List[str] = []
|
|
1070
|
-
|
|
1071
|
-
return self.api_client.param_serialize(
|
|
1072
|
-
method="POST",
|
|
1073
|
-
resource_path="/api/v1/cloud/github/webhook",
|
|
1074
|
-
path_params=_path_params,
|
|
1075
|
-
query_params=_query_params,
|
|
1076
|
-
header_params=_header_params,
|
|
1077
|
-
body=_body_params,
|
|
1078
|
-
post_params=_form_params,
|
|
1079
|
-
files=_files,
|
|
1080
|
-
auth_settings=_auth_settings,
|
|
1081
|
-
collection_formats=_collection_formats,
|
|
1082
|
-
_host=_host,
|
|
1083
|
-
_request_auth=_request_auth,
|
|
1084
|
-
)
|
|
1085
|
-
|
|
1086
|
-
@validate_call
|
|
1087
|
-
async def github_update_tenant_webhook(
|
|
1088
|
-
self,
|
|
1089
|
-
webhook: Annotated[
|
|
1090
|
-
str,
|
|
1091
|
-
Field(
|
|
1092
|
-
min_length=36, strict=True, max_length=36, description="The webhook id"
|
|
1093
|
-
),
|
|
1094
|
-
],
|
|
1095
|
-
_request_timeout: Union[
|
|
1096
|
-
None,
|
|
1097
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1098
|
-
Tuple[
|
|
1099
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1100
|
-
],
|
|
1101
|
-
] = None,
|
|
1102
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1103
|
-
_content_type: Optional[StrictStr] = None,
|
|
1104
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1105
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1106
|
-
) -> None:
|
|
1107
|
-
"""Github app tenant webhook
|
|
1108
|
-
|
|
1109
|
-
Github App tenant webhook
|
|
1110
|
-
|
|
1111
|
-
:param webhook: The webhook id (required)
|
|
1112
|
-
:type webhook: str
|
|
1113
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1114
|
-
number provided, it will be total request
|
|
1115
|
-
timeout. It can also be a pair (tuple) of
|
|
1116
|
-
(connection, read) timeouts.
|
|
1117
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1118
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1119
|
-
request; this effectively ignores the
|
|
1120
|
-
authentication in the spec for a single request.
|
|
1121
|
-
:type _request_auth: dict, optional
|
|
1122
|
-
:param _content_type: force content-type for the request.
|
|
1123
|
-
:type _content_type: str, Optional
|
|
1124
|
-
:param _headers: set to override the headers for a single
|
|
1125
|
-
request; this effectively ignores the headers
|
|
1126
|
-
in the spec for a single request.
|
|
1127
|
-
:type _headers: dict, optional
|
|
1128
|
-
:param _host_index: set to override the host_index for a single
|
|
1129
|
-
request; this effectively ignores the host_index
|
|
1130
|
-
in the spec for a single request.
|
|
1131
|
-
:type _host_index: int, optional
|
|
1132
|
-
:return: Returns the result object.
|
|
1133
|
-
""" # noqa: E501
|
|
1134
|
-
|
|
1135
|
-
_param = self._github_update_tenant_webhook_serialize(
|
|
1136
|
-
webhook=webhook,
|
|
1137
|
-
_request_auth=_request_auth,
|
|
1138
|
-
_content_type=_content_type,
|
|
1139
|
-
_headers=_headers,
|
|
1140
|
-
_host_index=_host_index,
|
|
1141
|
-
)
|
|
1142
|
-
|
|
1143
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1144
|
-
"200": None,
|
|
1145
|
-
"400": "MetadataGet400Response",
|
|
1146
|
-
"401": "MetadataGet400Response",
|
|
1147
|
-
"405": "MetadataGet400Response",
|
|
1148
|
-
}
|
|
1149
|
-
response_data = await self.api_client.call_api(
|
|
1150
|
-
*_param, _request_timeout=_request_timeout
|
|
1151
|
-
)
|
|
1152
|
-
await response_data.read()
|
|
1153
|
-
return self.api_client.response_deserialize(
|
|
1154
|
-
response_data=response_data,
|
|
1155
|
-
response_types_map=_response_types_map,
|
|
1156
|
-
).data
|
|
1157
|
-
|
|
1158
|
-
@validate_call
|
|
1159
|
-
async def github_update_tenant_webhook_with_http_info(
|
|
1160
|
-
self,
|
|
1161
|
-
webhook: Annotated[
|
|
1162
|
-
str,
|
|
1163
|
-
Field(
|
|
1164
|
-
min_length=36, strict=True, max_length=36, description="The webhook id"
|
|
1165
|
-
),
|
|
1166
|
-
],
|
|
1167
|
-
_request_timeout: Union[
|
|
1168
|
-
None,
|
|
1169
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1170
|
-
Tuple[
|
|
1171
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1172
|
-
],
|
|
1173
|
-
] = None,
|
|
1174
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1175
|
-
_content_type: Optional[StrictStr] = None,
|
|
1176
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1177
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1178
|
-
) -> ApiResponse[None]:
|
|
1179
|
-
"""Github app tenant webhook
|
|
1180
|
-
|
|
1181
|
-
Github App tenant webhook
|
|
1182
|
-
|
|
1183
|
-
:param webhook: The webhook id (required)
|
|
1184
|
-
:type webhook: str
|
|
1185
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1186
|
-
number provided, it will be total request
|
|
1187
|
-
timeout. It can also be a pair (tuple) of
|
|
1188
|
-
(connection, read) timeouts.
|
|
1189
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1190
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1191
|
-
request; this effectively ignores the
|
|
1192
|
-
authentication in the spec for a single request.
|
|
1193
|
-
:type _request_auth: dict, optional
|
|
1194
|
-
:param _content_type: force content-type for the request.
|
|
1195
|
-
:type _content_type: str, Optional
|
|
1196
|
-
:param _headers: set to override the headers for a single
|
|
1197
|
-
request; this effectively ignores the headers
|
|
1198
|
-
in the spec for a single request.
|
|
1199
|
-
:type _headers: dict, optional
|
|
1200
|
-
:param _host_index: set to override the host_index for a single
|
|
1201
|
-
request; this effectively ignores the host_index
|
|
1202
|
-
in the spec for a single request.
|
|
1203
|
-
:type _host_index: int, optional
|
|
1204
|
-
:return: Returns the result object.
|
|
1205
|
-
""" # noqa: E501
|
|
1206
|
-
|
|
1207
|
-
_param = self._github_update_tenant_webhook_serialize(
|
|
1208
|
-
webhook=webhook,
|
|
1209
|
-
_request_auth=_request_auth,
|
|
1210
|
-
_content_type=_content_type,
|
|
1211
|
-
_headers=_headers,
|
|
1212
|
-
_host_index=_host_index,
|
|
1213
|
-
)
|
|
1214
|
-
|
|
1215
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1216
|
-
"200": None,
|
|
1217
|
-
"400": "MetadataGet400Response",
|
|
1218
|
-
"401": "MetadataGet400Response",
|
|
1219
|
-
"405": "MetadataGet400Response",
|
|
1220
|
-
}
|
|
1221
|
-
response_data = await self.api_client.call_api(
|
|
1222
|
-
*_param, _request_timeout=_request_timeout
|
|
1223
|
-
)
|
|
1224
|
-
await response_data.read()
|
|
1225
|
-
return self.api_client.response_deserialize(
|
|
1226
|
-
response_data=response_data,
|
|
1227
|
-
response_types_map=_response_types_map,
|
|
1228
|
-
)
|
|
1229
|
-
|
|
1230
|
-
@validate_call
|
|
1231
|
-
async def github_update_tenant_webhook_without_preload_content(
|
|
1232
|
-
self,
|
|
1233
|
-
webhook: Annotated[
|
|
1234
|
-
str,
|
|
1235
|
-
Field(
|
|
1236
|
-
min_length=36, strict=True, max_length=36, description="The webhook id"
|
|
1237
|
-
),
|
|
1238
|
-
],
|
|
1239
|
-
_request_timeout: Union[
|
|
1240
|
-
None,
|
|
1241
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1242
|
-
Tuple[
|
|
1243
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1244
|
-
],
|
|
1245
|
-
] = None,
|
|
1246
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1247
|
-
_content_type: Optional[StrictStr] = None,
|
|
1248
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1249
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1250
|
-
) -> RESTResponseType:
|
|
1251
|
-
"""Github app tenant webhook
|
|
1252
|
-
|
|
1253
|
-
Github App tenant webhook
|
|
1254
|
-
|
|
1255
|
-
:param webhook: The webhook id (required)
|
|
1256
|
-
:type webhook: str
|
|
1257
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1258
|
-
number provided, it will be total request
|
|
1259
|
-
timeout. It can also be a pair (tuple) of
|
|
1260
|
-
(connection, read) timeouts.
|
|
1261
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1262
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1263
|
-
request; this effectively ignores the
|
|
1264
|
-
authentication in the spec for a single request.
|
|
1265
|
-
:type _request_auth: dict, optional
|
|
1266
|
-
:param _content_type: force content-type for the request.
|
|
1267
|
-
:type _content_type: str, Optional
|
|
1268
|
-
:param _headers: set to override the headers for a single
|
|
1269
|
-
request; this effectively ignores the headers
|
|
1270
|
-
in the spec for a single request.
|
|
1271
|
-
:type _headers: dict, optional
|
|
1272
|
-
:param _host_index: set to override the host_index for a single
|
|
1273
|
-
request; this effectively ignores the host_index
|
|
1274
|
-
in the spec for a single request.
|
|
1275
|
-
:type _host_index: int, optional
|
|
1276
|
-
:return: Returns the result object.
|
|
1277
|
-
""" # noqa: E501
|
|
1278
|
-
|
|
1279
|
-
_param = self._github_update_tenant_webhook_serialize(
|
|
1280
|
-
webhook=webhook,
|
|
1281
|
-
_request_auth=_request_auth,
|
|
1282
|
-
_content_type=_content_type,
|
|
1283
|
-
_headers=_headers,
|
|
1284
|
-
_host_index=_host_index,
|
|
1285
|
-
)
|
|
1286
|
-
|
|
1287
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1288
|
-
"200": None,
|
|
1289
|
-
"400": "MetadataGet400Response",
|
|
1290
|
-
"401": "MetadataGet400Response",
|
|
1291
|
-
"405": "MetadataGet400Response",
|
|
1292
|
-
}
|
|
1293
|
-
response_data = await self.api_client.call_api(
|
|
1294
|
-
*_param, _request_timeout=_request_timeout
|
|
1295
|
-
)
|
|
1296
|
-
return response_data.response
|
|
1297
|
-
|
|
1298
|
-
def _github_update_tenant_webhook_serialize(
|
|
1299
|
-
self,
|
|
1300
|
-
webhook,
|
|
1301
|
-
_request_auth,
|
|
1302
|
-
_content_type,
|
|
1303
|
-
_headers,
|
|
1304
|
-
_host_index,
|
|
1305
|
-
) -> RequestSerialized:
|
|
1306
|
-
|
|
1307
|
-
_host = None
|
|
1308
|
-
|
|
1309
|
-
_collection_formats: Dict[str, str] = {}
|
|
1310
|
-
|
|
1311
|
-
_path_params: Dict[str, str] = {}
|
|
1312
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1313
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1314
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1315
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
1316
|
-
_body_params: Optional[bytes] = None
|
|
1317
|
-
|
|
1318
|
-
# process the path parameters
|
|
1319
|
-
if webhook is not None:
|
|
1320
|
-
_path_params["webhook"] = webhook
|
|
1321
|
-
# process the query parameters
|
|
1322
|
-
# process the header parameters
|
|
1323
|
-
# process the form parameters
|
|
1324
|
-
# process the body parameter
|
|
1325
|
-
|
|
1326
|
-
# set the HTTP header `Accept`
|
|
1327
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1328
|
-
["application/json"]
|
|
1329
|
-
)
|
|
1330
|
-
|
|
1331
|
-
# authentication setting
|
|
1332
|
-
_auth_settings: List[str] = []
|
|
1333
|
-
|
|
1334
|
-
return self.api_client.param_serialize(
|
|
1335
|
-
method="POST",
|
|
1336
|
-
resource_path="/api/v1/cloud/github/webhook/{webhook}",
|
|
1337
|
-
path_params=_path_params,
|
|
1338
|
-
query_params=_query_params,
|
|
1339
|
-
header_params=_header_params,
|
|
1340
|
-
body=_body_params,
|
|
1341
|
-
post_params=_form_params,
|
|
1342
|
-
files=_files,
|
|
1343
|
-
auth_settings=_auth_settings,
|
|
1344
|
-
collection_formats=_collection_formats,
|
|
1345
|
-
_host=_host,
|
|
1346
|
-
_request_auth=_request_auth,
|
|
1347
|
-
)
|