windmill-api 1.440.1__py3-none-any.whl → 1.450.1__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 windmill-api might be problematic. Click here for more details.
- windmill_api/api/capture/{get_capture.py → delete_capture.py} +12 -14
- windmill_api/api/capture/get_capture_configs.py +186 -0
- windmill_api/api/capture/list_captures.py +241 -0
- windmill_api/api/capture/ping_capture_config.py +121 -0
- windmill_api/api/capture/set_capture_config.py +107 -0
- windmill_api/api/input_/get_input_history.py +15 -0
- windmill_api/api/job/get_slack_approval_payload.py +171 -0
- windmill_api/api/nats_trigger/__init__.py +0 -0
- windmill_api/api/nats_trigger/create_nats_trigger.py +105 -0
- windmill_api/api/{capture/create_capture.py → nats_trigger/delete_nats_trigger.py} +4 -6
- windmill_api/api/nats_trigger/exists_nats_trigger.py +160 -0
- windmill_api/api/nats_trigger/get_nats_trigger.py +166 -0
- windmill_api/api/nats_trigger/list_nats_triggers.py +237 -0
- windmill_api/api/nats_trigger/set_nats_trigger_enabled.py +113 -0
- windmill_api/api/nats_trigger/update_nats_trigger.py +113 -0
- windmill_api/api/postgres_trigger/__init__.py +0 -0
- windmill_api/api/postgres_trigger/create_postgres_publication.py +121 -0
- windmill_api/api/postgres_trigger/create_postgres_replication_slot.py +113 -0
- windmill_api/api/postgres_trigger/create_postgres_trigger.py +105 -0
- windmill_api/api/postgres_trigger/create_template_script.py +105 -0
- windmill_api/api/postgres_trigger/delete_postgres_publication.py +109 -0
- windmill_api/api/postgres_trigger/delete_postgres_replication_slot.py +113 -0
- windmill_api/api/{capture/update_capture.py → postgres_trigger/delete_postgres_trigger.py} +4 -6
- windmill_api/api/postgres_trigger/exists_postgres_trigger.py +160 -0
- windmill_api/api/postgres_trigger/get_postgres_publication.py +180 -0
- windmill_api/api/postgres_trigger/get_postgres_trigger.py +166 -0
- windmill_api/api/postgres_trigger/get_template_script.py +101 -0
- windmill_api/api/postgres_trigger/is_valid_postgres_configuration.py +160 -0
- windmill_api/api/postgres_trigger/list_postgres_publication.py +161 -0
- windmill_api/api/postgres_trigger/list_postgres_replication_slot.py +171 -0
- windmill_api/api/postgres_trigger/list_postgres_triggers.py +237 -0
- windmill_api/api/postgres_trigger/set_postgres_trigger_enabled.py +113 -0
- windmill_api/api/postgres_trigger/update_postgres_publication.py +121 -0
- windmill_api/api/postgres_trigger/update_postgres_trigger.py +113 -0
- windmill_api/api/teams/__init__.py +0 -0
- windmill_api/api/teams/sync_teams.py +131 -0
- windmill_api/api/worker/get_custom_tags.py +50 -4
- windmill_api/api/workspace/change_workspace_color.py +105 -0
- windmill_api/api/workspace/get_threshold_alert.py +152 -0
- windmill_api/api/workspace/set_threshold_alert.py +105 -0
- windmill_api/api/workspace/update_operator_settings.py +109 -0
- windmill_api/models/add_granular_acls_kind.py +2 -0
- windmill_api/models/archive_script_by_hash_response_200.py +8 -0
- windmill_api/models/archive_script_by_hash_response_200_kind.py +1 -0
- windmill_api/models/archive_script_by_hash_response_200_language.py +1 -0
- windmill_api/models/capture.py +94 -0
- windmill_api/models/capture_config.py +95 -0
- windmill_api/models/capture_config_trigger_kind.py +13 -0
- windmill_api/models/capture_trigger_kind.py +13 -0
- windmill_api/models/change_workspace_color_json_body.py +58 -0
- windmill_api/models/channel_info.py +80 -0
- windmill_api/models/completed_job_language.py +1 -0
- windmill_api/models/create_nats_trigger_json_body.py +120 -0
- windmill_api/models/create_postgres_publication_json_body.py +90 -0
- windmill_api/models/create_postgres_publication_json_body_table_to_track_item.py +86 -0
- windmill_api/models/create_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/create_postgres_replication_slot_json_body.py +58 -0
- windmill_api/models/create_postgres_trigger_json_body.py +125 -0
- windmill_api/models/create_postgres_trigger_json_body_publication.py +92 -0
- windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
- windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/create_script_json_body.py +8 -0
- windmill_api/models/create_script_json_body_kind.py +1 -0
- windmill_api/models/create_script_json_body_language.py +1 -0
- windmill_api/models/create_template_script_json_body.py +90 -0
- windmill_api/models/create_template_script_json_body_language.py +8 -0
- windmill_api/models/create_template_script_json_body_relations_item.py +86 -0
- windmill_api/models/create_template_script_json_body_relations_item_table_to_track_item.py +79 -0
- windmill_api/models/create_websocket_trigger_json_body.py +42 -29
- windmill_api/models/create_workspace.py +8 -0
- windmill_api/models/create_workspace_json_body.py +8 -0
- windmill_api/models/delete_completed_job_response_200_language.py +1 -0
- windmill_api/models/delete_postgres_replication_slot_json_body.py +58 -0
- windmill_api/models/delete_script_by_hash_response_200.py +8 -0
- windmill_api/models/delete_script_by_hash_response_200_kind.py +1 -0
- windmill_api/models/delete_script_by_hash_response_200_language.py +1 -0
- windmill_api/models/edit_nats_trigger.py +112 -0
- windmill_api/models/edit_postgres_trigger.py +123 -0
- windmill_api/models/edit_postgres_trigger_publication.py +90 -0
- windmill_api/models/edit_postgres_trigger_publication_table_to_track_item.py +86 -0
- windmill_api/models/edit_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/edit_websocket_trigger.py +35 -21
- windmill_api/models/extended_jobs_jobs_item_type_0_language.py +1 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_language.py +1 -0
- windmill_api/models/flow_metadata.py +8 -0
- windmill_api/models/flow_module_value_2_type_0_language.py +1 -0
- windmill_api/models/get_capture_configs_response_200_item.py +95 -0
- windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +13 -0
- windmill_api/models/get_capture_configs_runnable_kind.py +9 -0
- windmill_api/models/get_completed_job_response_200_language.py +1 -0
- windmill_api/models/get_flow_by_path_response_200.py +8 -0
- windmill_api/models/get_flow_by_path_with_draft_response_200_draft.py +8 -0
- windmill_api/models/get_flow_version_response_200.py +8 -0
- windmill_api/models/get_granular_acls_kind.py +2 -0
- windmill_api/models/get_http_trigger_response_200.py +36 -36
- windmill_api/models/get_job_response_200_type_0_language.py +1 -0
- windmill_api/models/get_job_response_200_type_1_language.py +1 -0
- windmill_api/models/get_nats_trigger_response_200.py +196 -0
- windmill_api/models/get_nats_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_postgres_publication_response_200.py +90 -0
- windmill_api/models/get_postgres_publication_response_200_table_to_track_item.py +86 -0
- windmill_api/models/get_postgres_publication_response_200_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/get_postgres_trigger_response_200.py +178 -0
- windmill_api/models/get_postgres_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_premium_info_response_200.py +7 -0
- windmill_api/models/get_script_by_hash_response_200.py +8 -0
- windmill_api/models/get_script_by_hash_response_200_kind.py +1 -0
- windmill_api/models/get_script_by_hash_response_200_language.py +1 -0
- windmill_api/models/get_script_by_path_response_200.py +8 -0
- windmill_api/models/get_script_by_path_response_200_kind.py +1 -0
- windmill_api/models/get_script_by_path_response_200_language.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200.py +8 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft.py +8 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft_kind.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft_language.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_kind.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_language.py +1 -0
- windmill_api/models/get_settings_response_200.py +27 -0
- windmill_api/models/get_settings_response_200_operator_settings.py +114 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_language.py +1 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_language.py +1 -0
- windmill_api/models/get_threshold_alert_response_200.py +75 -0
- windmill_api/models/get_triggers_count_of_flow_response_200.py +16 -0
- windmill_api/models/get_triggers_count_of_script_response_200.py +16 -0
- windmill_api/models/get_used_triggers_response_200.py +14 -0
- windmill_api/models/get_websocket_trigger_response_200.py +89 -76
- windmill_api/models/http_trigger.py +36 -36
- windmill_api/models/job_type_0_language.py +1 -0
- windmill_api/models/job_type_1_language.py +1 -0
- windmill_api/models/language.py +8 -0
- windmill_api/models/list_captures_response_200_item.py +94 -0
- windmill_api/models/list_captures_response_200_item_trigger_kind.py +13 -0
- windmill_api/models/list_captures_runnable_kind.py +9 -0
- windmill_api/models/list_captures_trigger_kind.py +13 -0
- windmill_api/models/list_completed_jobs_response_200_item_language.py +1 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_language.py +1 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_language.py +1 -0
- windmill_api/models/list_http_triggers_response_200_item.py +36 -36
- windmill_api/models/list_jobs_response_200_item_type_0_language.py +1 -0
- windmill_api/models/list_jobs_response_200_item_type_1_language.py +1 -0
- windmill_api/models/list_nats_triggers_response_200_item.py +196 -0
- windmill_api/models/list_nats_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_postgres_replication_slot_response_200_item.py +66 -0
- windmill_api/models/list_postgres_triggers_response_200_item.py +182 -0
- windmill_api/models/list_postgres_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_queue_response_200_item_language.py +1 -0
- windmill_api/models/list_scripts_response_200_item.py +8 -0
- windmill_api/models/list_scripts_response_200_item_kind.py +1 -0
- windmill_api/models/list_scripts_response_200_item_language.py +1 -0
- windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +39 -1
- windmill_api/models/list_user_workspaces_response_200_workspaces_item_operator_settings.py +114 -0
- windmill_api/models/list_websocket_triggers_response_200_item.py +89 -76
- windmill_api/models/list_workspaces_as_super_admin_response_200_item.py +8 -0
- windmill_api/models/list_workspaces_response_200_item.py +8 -0
- windmill_api/models/nats_trigger.py +196 -0
- windmill_api/models/nats_trigger_extra_perms.py +44 -0
- windmill_api/models/new_nats_trigger.py +120 -0
- windmill_api/models/new_postgres_trigger.py +125 -0
- windmill_api/models/new_postgres_trigger_publication.py +90 -0
- windmill_api/models/new_postgres_trigger_publication_table_to_track_item.py +86 -0
- windmill_api/models/new_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/new_script.py +8 -0
- windmill_api/models/new_script_kind.py +1 -0
- windmill_api/models/new_script_language.py +1 -0
- windmill_api/models/new_script_with_draft.py +8 -0
- windmill_api/models/new_script_with_draft_draft.py +8 -0
- windmill_api/models/new_script_with_draft_draft_kind.py +1 -0
- windmill_api/models/new_script_with_draft_draft_language.py +1 -0
- windmill_api/models/new_script_with_draft_kind.py +1 -0
- windmill_api/models/new_script_with_draft_language.py +1 -0
- windmill_api/models/new_websocket_trigger.py +36 -26
- windmill_api/models/open_flow_w_path.py +8 -0
- windmill_api/models/operator_settings.py +114 -0
- windmill_api/models/ping_capture_config_runnable_kind.py +9 -0
- windmill_api/models/ping_capture_config_trigger_kind.py +13 -0
- windmill_api/models/postgres_trigger.py +178 -0
- windmill_api/models/postgres_trigger_extra_perms.py +44 -0
- windmill_api/models/preview_language.py +1 -0
- windmill_api/models/publication_data.py +86 -0
- windmill_api/models/publication_data_table_to_track_item.py +84 -0
- windmill_api/models/publication_data_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/queued_job_language.py +1 -0
- windmill_api/models/raw_script_for_dependencies_language.py +1 -0
- windmill_api/models/raw_script_language.py +1 -0
- windmill_api/models/relations.py +80 -0
- windmill_api/models/relations_table_to_track_item.py +79 -0
- windmill_api/models/remove_granular_acls_kind.py +2 -0
- windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item_language.py +1 -0
- windmill_api/models/run_script_preview_json_body_language.py +1 -0
- windmill_api/models/script.py +8 -0
- windmill_api/models/script_kind.py +1 -0
- windmill_api/models/script_lang.py +25 -0
- windmill_api/models/script_language.py +1 -0
- windmill_api/models/set_capture_config_json_body.py +97 -0
- windmill_api/models/set_capture_config_json_body_trigger_config.py +44 -0
- windmill_api/models/set_capture_config_json_body_trigger_kind.py +13 -0
- windmill_api/models/set_nats_trigger_enabled_json_body.py +58 -0
- windmill_api/models/set_postgres_trigger_enabled_json_body.py +58 -0
- windmill_api/models/set_threshold_alert_json_body.py +58 -0
- windmill_api/models/slot.py +58 -0
- windmill_api/models/slot_list.py +66 -0
- windmill_api/models/sync_teams_response_200_item.py +87 -0
- windmill_api/models/sync_teams_response_200_item_channels_item.py +80 -0
- windmill_api/models/table_to_track_item.py +79 -0
- windmill_api/models/team_info.py +87 -0
- windmill_api/models/team_info_channels_item.py +80 -0
- windmill_api/models/template_script.py +90 -0
- windmill_api/models/template_script_language.py +8 -0
- windmill_api/models/template_script_relations_item.py +82 -0
- windmill_api/models/template_script_relations_item_table_to_track_item.py +79 -0
- windmill_api/models/trigger_extra_property.py +95 -0
- windmill_api/models/trigger_extra_property_extra_perms.py +44 -0
- windmill_api/models/triggers_count.py +16 -0
- windmill_api/models/update_nats_trigger_json_body.py +112 -0
- windmill_api/models/update_operator_settings_json_body.py +114 -0
- windmill_api/models/update_postgres_publication_json_body.py +90 -0
- windmill_api/models/update_postgres_publication_json_body_table_to_track_item.py +86 -0
- windmill_api/models/update_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/update_postgres_trigger_json_body.py +123 -0
- windmill_api/models/update_postgres_trigger_json_body_publication.py +92 -0
- windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
- windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/update_websocket_trigger_json_body.py +40 -24
- windmill_api/models/user_workspace_list_workspaces_item.py +37 -1
- windmill_api/models/user_workspace_list_workspaces_item_operator_settings.py +114 -0
- windmill_api/models/websocket_trigger.py +83 -73
- windmill_api/models/workspace.py +8 -0
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/METADATA +1 -1
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/RECORD +231 -100
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, List, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.list_postgres_triggers_response_200_item import ListPostgresTriggersResponse200Item
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
page: Union[Unset, None, int] = UNSET,
|
|
16
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
17
|
+
path: Union[Unset, None, str] = UNSET,
|
|
18
|
+
is_flow: Union[Unset, None, bool] = UNSET,
|
|
19
|
+
path_start: Union[Unset, None, str] = UNSET,
|
|
20
|
+
) -> Dict[str, Any]:
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
params: Dict[str, Any] = {}
|
|
24
|
+
params["page"] = page
|
|
25
|
+
|
|
26
|
+
params["per_page"] = per_page
|
|
27
|
+
|
|
28
|
+
params["path"] = path
|
|
29
|
+
|
|
30
|
+
params["is_flow"] = is_flow
|
|
31
|
+
|
|
32
|
+
params["path_start"] = path_start
|
|
33
|
+
|
|
34
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
"method": "get",
|
|
38
|
+
"url": "/w/{workspace}/postgres_triggers/list".format(
|
|
39
|
+
workspace=workspace,
|
|
40
|
+
),
|
|
41
|
+
"params": params,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _parse_response(
|
|
46
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
47
|
+
) -> Optional[List["ListPostgresTriggersResponse200Item"]]:
|
|
48
|
+
if response.status_code == HTTPStatus.OK:
|
|
49
|
+
response_200 = []
|
|
50
|
+
_response_200 = response.json()
|
|
51
|
+
for response_200_item_data in _response_200:
|
|
52
|
+
response_200_item = ListPostgresTriggersResponse200Item.from_dict(response_200_item_data)
|
|
53
|
+
|
|
54
|
+
response_200.append(response_200_item)
|
|
55
|
+
|
|
56
|
+
return response_200
|
|
57
|
+
if client.raise_on_unexpected_status:
|
|
58
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
59
|
+
else:
|
|
60
|
+
return None
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _build_response(
|
|
64
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
65
|
+
) -> Response[List["ListPostgresTriggersResponse200Item"]]:
|
|
66
|
+
return Response(
|
|
67
|
+
status_code=HTTPStatus(response.status_code),
|
|
68
|
+
content=response.content,
|
|
69
|
+
headers=response.headers,
|
|
70
|
+
parsed=_parse_response(client=client, response=response),
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def sync_detailed(
|
|
75
|
+
workspace: str,
|
|
76
|
+
*,
|
|
77
|
+
client: Union[AuthenticatedClient, Client],
|
|
78
|
+
page: Union[Unset, None, int] = UNSET,
|
|
79
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
80
|
+
path: Union[Unset, None, str] = UNSET,
|
|
81
|
+
is_flow: Union[Unset, None, bool] = UNSET,
|
|
82
|
+
path_start: Union[Unset, None, str] = UNSET,
|
|
83
|
+
) -> Response[List["ListPostgresTriggersResponse200Item"]]:
|
|
84
|
+
"""list postgres triggers
|
|
85
|
+
|
|
86
|
+
Args:
|
|
87
|
+
workspace (str):
|
|
88
|
+
page (Union[Unset, None, int]):
|
|
89
|
+
per_page (Union[Unset, None, int]):
|
|
90
|
+
path (Union[Unset, None, str]):
|
|
91
|
+
is_flow (Union[Unset, None, bool]):
|
|
92
|
+
path_start (Union[Unset, None, str]):
|
|
93
|
+
|
|
94
|
+
Raises:
|
|
95
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
96
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
97
|
+
|
|
98
|
+
Returns:
|
|
99
|
+
Response[List['ListPostgresTriggersResponse200Item']]
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
kwargs = _get_kwargs(
|
|
103
|
+
workspace=workspace,
|
|
104
|
+
page=page,
|
|
105
|
+
per_page=per_page,
|
|
106
|
+
path=path,
|
|
107
|
+
is_flow=is_flow,
|
|
108
|
+
path_start=path_start,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
response = client.get_httpx_client().request(
|
|
112
|
+
**kwargs,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
return _build_response(client=client, response=response)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def sync(
|
|
119
|
+
workspace: str,
|
|
120
|
+
*,
|
|
121
|
+
client: Union[AuthenticatedClient, Client],
|
|
122
|
+
page: Union[Unset, None, int] = UNSET,
|
|
123
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
124
|
+
path: Union[Unset, None, str] = UNSET,
|
|
125
|
+
is_flow: Union[Unset, None, bool] = UNSET,
|
|
126
|
+
path_start: Union[Unset, None, str] = UNSET,
|
|
127
|
+
) -> Optional[List["ListPostgresTriggersResponse200Item"]]:
|
|
128
|
+
"""list postgres triggers
|
|
129
|
+
|
|
130
|
+
Args:
|
|
131
|
+
workspace (str):
|
|
132
|
+
page (Union[Unset, None, int]):
|
|
133
|
+
per_page (Union[Unset, None, int]):
|
|
134
|
+
path (Union[Unset, None, str]):
|
|
135
|
+
is_flow (Union[Unset, None, bool]):
|
|
136
|
+
path_start (Union[Unset, None, str]):
|
|
137
|
+
|
|
138
|
+
Raises:
|
|
139
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
140
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
141
|
+
|
|
142
|
+
Returns:
|
|
143
|
+
List['ListPostgresTriggersResponse200Item']
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
return sync_detailed(
|
|
147
|
+
workspace=workspace,
|
|
148
|
+
client=client,
|
|
149
|
+
page=page,
|
|
150
|
+
per_page=per_page,
|
|
151
|
+
path=path,
|
|
152
|
+
is_flow=is_flow,
|
|
153
|
+
path_start=path_start,
|
|
154
|
+
).parsed
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
async def asyncio_detailed(
|
|
158
|
+
workspace: str,
|
|
159
|
+
*,
|
|
160
|
+
client: Union[AuthenticatedClient, Client],
|
|
161
|
+
page: Union[Unset, None, int] = UNSET,
|
|
162
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
163
|
+
path: Union[Unset, None, str] = UNSET,
|
|
164
|
+
is_flow: Union[Unset, None, bool] = UNSET,
|
|
165
|
+
path_start: Union[Unset, None, str] = UNSET,
|
|
166
|
+
) -> Response[List["ListPostgresTriggersResponse200Item"]]:
|
|
167
|
+
"""list postgres triggers
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
workspace (str):
|
|
171
|
+
page (Union[Unset, None, int]):
|
|
172
|
+
per_page (Union[Unset, None, int]):
|
|
173
|
+
path (Union[Unset, None, str]):
|
|
174
|
+
is_flow (Union[Unset, None, bool]):
|
|
175
|
+
path_start (Union[Unset, None, str]):
|
|
176
|
+
|
|
177
|
+
Raises:
|
|
178
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
179
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
180
|
+
|
|
181
|
+
Returns:
|
|
182
|
+
Response[List['ListPostgresTriggersResponse200Item']]
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
kwargs = _get_kwargs(
|
|
186
|
+
workspace=workspace,
|
|
187
|
+
page=page,
|
|
188
|
+
per_page=per_page,
|
|
189
|
+
path=path,
|
|
190
|
+
is_flow=is_flow,
|
|
191
|
+
path_start=path_start,
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
195
|
+
|
|
196
|
+
return _build_response(client=client, response=response)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
async def asyncio(
|
|
200
|
+
workspace: str,
|
|
201
|
+
*,
|
|
202
|
+
client: Union[AuthenticatedClient, Client],
|
|
203
|
+
page: Union[Unset, None, int] = UNSET,
|
|
204
|
+
per_page: Union[Unset, None, int] = UNSET,
|
|
205
|
+
path: Union[Unset, None, str] = UNSET,
|
|
206
|
+
is_flow: Union[Unset, None, bool] = UNSET,
|
|
207
|
+
path_start: Union[Unset, None, str] = UNSET,
|
|
208
|
+
) -> Optional[List["ListPostgresTriggersResponse200Item"]]:
|
|
209
|
+
"""list postgres triggers
|
|
210
|
+
|
|
211
|
+
Args:
|
|
212
|
+
workspace (str):
|
|
213
|
+
page (Union[Unset, None, int]):
|
|
214
|
+
per_page (Union[Unset, None, int]):
|
|
215
|
+
path (Union[Unset, None, str]):
|
|
216
|
+
is_flow (Union[Unset, None, bool]):
|
|
217
|
+
path_start (Union[Unset, None, str]):
|
|
218
|
+
|
|
219
|
+
Raises:
|
|
220
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
221
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
222
|
+
|
|
223
|
+
Returns:
|
|
224
|
+
List['ListPostgresTriggersResponse200Item']
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
return (
|
|
228
|
+
await asyncio_detailed(
|
|
229
|
+
workspace=workspace,
|
|
230
|
+
client=client,
|
|
231
|
+
page=page,
|
|
232
|
+
per_page=per_page,
|
|
233
|
+
path=path,
|
|
234
|
+
is_flow=is_flow,
|
|
235
|
+
path_start=path_start,
|
|
236
|
+
)
|
|
237
|
+
).parsed
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.set_postgres_trigger_enabled_json_body import SetPostgresTriggerEnabledJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
path: str,
|
|
15
|
+
*,
|
|
16
|
+
json_body: SetPostgresTriggerEnabledJsonBody,
|
|
17
|
+
) -> Dict[str, Any]:
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
json_json_body = json_body.to_dict()
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
"method": "post",
|
|
24
|
+
"url": "/w/{workspace}/postgres_triggers/setenabled/{path}".format(
|
|
25
|
+
workspace=workspace,
|
|
26
|
+
path=path,
|
|
27
|
+
),
|
|
28
|
+
"json": json_json_body,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
33
|
+
if client.raise_on_unexpected_status:
|
|
34
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
|
+
else:
|
|
36
|
+
return None
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
40
|
+
return Response(
|
|
41
|
+
status_code=HTTPStatus(response.status_code),
|
|
42
|
+
content=response.content,
|
|
43
|
+
headers=response.headers,
|
|
44
|
+
parsed=_parse_response(client=client, response=response),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def sync_detailed(
|
|
49
|
+
workspace: str,
|
|
50
|
+
path: str,
|
|
51
|
+
*,
|
|
52
|
+
client: Union[AuthenticatedClient, Client],
|
|
53
|
+
json_body: SetPostgresTriggerEnabledJsonBody,
|
|
54
|
+
) -> Response[Any]:
|
|
55
|
+
"""set enabled postgres trigger
|
|
56
|
+
|
|
57
|
+
Args:
|
|
58
|
+
workspace (str):
|
|
59
|
+
path (str):
|
|
60
|
+
json_body (SetPostgresTriggerEnabledJsonBody):
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
64
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
65
|
+
|
|
66
|
+
Returns:
|
|
67
|
+
Response[Any]
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
kwargs = _get_kwargs(
|
|
71
|
+
workspace=workspace,
|
|
72
|
+
path=path,
|
|
73
|
+
json_body=json_body,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
response = client.get_httpx_client().request(
|
|
77
|
+
**kwargs,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
return _build_response(client=client, response=response)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
async def asyncio_detailed(
|
|
84
|
+
workspace: str,
|
|
85
|
+
path: str,
|
|
86
|
+
*,
|
|
87
|
+
client: Union[AuthenticatedClient, Client],
|
|
88
|
+
json_body: SetPostgresTriggerEnabledJsonBody,
|
|
89
|
+
) -> Response[Any]:
|
|
90
|
+
"""set enabled postgres trigger
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
workspace (str):
|
|
94
|
+
path (str):
|
|
95
|
+
json_body (SetPostgresTriggerEnabledJsonBody):
|
|
96
|
+
|
|
97
|
+
Raises:
|
|
98
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
99
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
100
|
+
|
|
101
|
+
Returns:
|
|
102
|
+
Response[Any]
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
kwargs = _get_kwargs(
|
|
106
|
+
workspace=workspace,
|
|
107
|
+
path=path,
|
|
108
|
+
json_body=json_body,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
112
|
+
|
|
113
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.update_postgres_publication_json_body import UpdatePostgresPublicationJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
publication: str,
|
|
15
|
+
path: str,
|
|
16
|
+
*,
|
|
17
|
+
json_body: UpdatePostgresPublicationJsonBody,
|
|
18
|
+
) -> Dict[str, Any]:
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
json_json_body = json_body.to_dict()
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
"method": "post",
|
|
25
|
+
"url": "/w/{workspace}/postgres_triggers/publication/update/{publication}/{path}".format(
|
|
26
|
+
workspace=workspace,
|
|
27
|
+
publication=publication,
|
|
28
|
+
path=path,
|
|
29
|
+
),
|
|
30
|
+
"json": json_json_body,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
35
|
+
if client.raise_on_unexpected_status:
|
|
36
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
37
|
+
else:
|
|
38
|
+
return None
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
42
|
+
return Response(
|
|
43
|
+
status_code=HTTPStatus(response.status_code),
|
|
44
|
+
content=response.content,
|
|
45
|
+
headers=response.headers,
|
|
46
|
+
parsed=_parse_response(client=client, response=response),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def sync_detailed(
|
|
51
|
+
workspace: str,
|
|
52
|
+
publication: str,
|
|
53
|
+
path: str,
|
|
54
|
+
*,
|
|
55
|
+
client: Union[AuthenticatedClient, Client],
|
|
56
|
+
json_body: UpdatePostgresPublicationJsonBody,
|
|
57
|
+
) -> Response[Any]:
|
|
58
|
+
"""update publication for postgres
|
|
59
|
+
|
|
60
|
+
Args:
|
|
61
|
+
workspace (str):
|
|
62
|
+
publication (str):
|
|
63
|
+
path (str):
|
|
64
|
+
json_body (UpdatePostgresPublicationJsonBody):
|
|
65
|
+
|
|
66
|
+
Raises:
|
|
67
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
68
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
69
|
+
|
|
70
|
+
Returns:
|
|
71
|
+
Response[Any]
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
kwargs = _get_kwargs(
|
|
75
|
+
workspace=workspace,
|
|
76
|
+
publication=publication,
|
|
77
|
+
path=path,
|
|
78
|
+
json_body=json_body,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
response = client.get_httpx_client().request(
|
|
82
|
+
**kwargs,
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
return _build_response(client=client, response=response)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
async def asyncio_detailed(
|
|
89
|
+
workspace: str,
|
|
90
|
+
publication: str,
|
|
91
|
+
path: str,
|
|
92
|
+
*,
|
|
93
|
+
client: Union[AuthenticatedClient, Client],
|
|
94
|
+
json_body: UpdatePostgresPublicationJsonBody,
|
|
95
|
+
) -> Response[Any]:
|
|
96
|
+
"""update publication for postgres
|
|
97
|
+
|
|
98
|
+
Args:
|
|
99
|
+
workspace (str):
|
|
100
|
+
publication (str):
|
|
101
|
+
path (str):
|
|
102
|
+
json_body (UpdatePostgresPublicationJsonBody):
|
|
103
|
+
|
|
104
|
+
Raises:
|
|
105
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
106
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
107
|
+
|
|
108
|
+
Returns:
|
|
109
|
+
Response[Any]
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
kwargs = _get_kwargs(
|
|
113
|
+
workspace=workspace,
|
|
114
|
+
publication=publication,
|
|
115
|
+
path=path,
|
|
116
|
+
json_body=json_body,
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
120
|
+
|
|
121
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.update_postgres_trigger_json_body import UpdatePostgresTriggerJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
path: str,
|
|
15
|
+
*,
|
|
16
|
+
json_body: UpdatePostgresTriggerJsonBody,
|
|
17
|
+
) -> Dict[str, Any]:
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
json_json_body = json_body.to_dict()
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
"method": "post",
|
|
24
|
+
"url": "/w/{workspace}/postgres_triggers/update/{path}".format(
|
|
25
|
+
workspace=workspace,
|
|
26
|
+
path=path,
|
|
27
|
+
),
|
|
28
|
+
"json": json_json_body,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
33
|
+
if client.raise_on_unexpected_status:
|
|
34
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
|
+
else:
|
|
36
|
+
return None
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
40
|
+
return Response(
|
|
41
|
+
status_code=HTTPStatus(response.status_code),
|
|
42
|
+
content=response.content,
|
|
43
|
+
headers=response.headers,
|
|
44
|
+
parsed=_parse_response(client=client, response=response),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def sync_detailed(
|
|
49
|
+
workspace: str,
|
|
50
|
+
path: str,
|
|
51
|
+
*,
|
|
52
|
+
client: Union[AuthenticatedClient, Client],
|
|
53
|
+
json_body: UpdatePostgresTriggerJsonBody,
|
|
54
|
+
) -> Response[Any]:
|
|
55
|
+
"""update postgres trigger
|
|
56
|
+
|
|
57
|
+
Args:
|
|
58
|
+
workspace (str):
|
|
59
|
+
path (str):
|
|
60
|
+
json_body (UpdatePostgresTriggerJsonBody):
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
64
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
65
|
+
|
|
66
|
+
Returns:
|
|
67
|
+
Response[Any]
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
kwargs = _get_kwargs(
|
|
71
|
+
workspace=workspace,
|
|
72
|
+
path=path,
|
|
73
|
+
json_body=json_body,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
response = client.get_httpx_client().request(
|
|
77
|
+
**kwargs,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
return _build_response(client=client, response=response)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
async def asyncio_detailed(
|
|
84
|
+
workspace: str,
|
|
85
|
+
path: str,
|
|
86
|
+
*,
|
|
87
|
+
client: Union[AuthenticatedClient, Client],
|
|
88
|
+
json_body: UpdatePostgresTriggerJsonBody,
|
|
89
|
+
) -> Response[Any]:
|
|
90
|
+
"""update postgres trigger
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
workspace (str):
|
|
94
|
+
path (str):
|
|
95
|
+
json_body (UpdatePostgresTriggerJsonBody):
|
|
96
|
+
|
|
97
|
+
Raises:
|
|
98
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
99
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
100
|
+
|
|
101
|
+
Returns:
|
|
102
|
+
Response[Any]
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
kwargs = _get_kwargs(
|
|
106
|
+
workspace=workspace,
|
|
107
|
+
path=path,
|
|
108
|
+
json_body=json_body,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
112
|
+
|
|
113
|
+
return _build_response(client=client, response=response)
|
|
File without changes
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, List, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.sync_teams_response_200_item import SyncTeamsResponse200Item
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs() -> Dict[str, Any]:
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
"method": "post",
|
|
17
|
+
"url": "/teams/sync",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def _parse_response(
|
|
22
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
23
|
+
) -> Optional[List["SyncTeamsResponse200Item"]]:
|
|
24
|
+
if response.status_code == HTTPStatus.OK:
|
|
25
|
+
response_200 = []
|
|
26
|
+
_response_200 = response.json()
|
|
27
|
+
for response_200_item_data in _response_200:
|
|
28
|
+
response_200_item = SyncTeamsResponse200Item.from_dict(response_200_item_data)
|
|
29
|
+
|
|
30
|
+
response_200.append(response_200_item)
|
|
31
|
+
|
|
32
|
+
return response_200
|
|
33
|
+
if client.raise_on_unexpected_status:
|
|
34
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
|
+
else:
|
|
36
|
+
return None
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _build_response(
|
|
40
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
41
|
+
) -> Response[List["SyncTeamsResponse200Item"]]:
|
|
42
|
+
return Response(
|
|
43
|
+
status_code=HTTPStatus(response.status_code),
|
|
44
|
+
content=response.content,
|
|
45
|
+
headers=response.headers,
|
|
46
|
+
parsed=_parse_response(client=client, response=response),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def sync_detailed(
|
|
51
|
+
*,
|
|
52
|
+
client: Union[AuthenticatedClient, Client],
|
|
53
|
+
) -> Response[List["SyncTeamsResponse200Item"]]:
|
|
54
|
+
"""synchronize Microsoft Teams information (teams/channels)
|
|
55
|
+
|
|
56
|
+
Raises:
|
|
57
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
58
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
59
|
+
|
|
60
|
+
Returns:
|
|
61
|
+
Response[List['SyncTeamsResponse200Item']]
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
kwargs = _get_kwargs()
|
|
65
|
+
|
|
66
|
+
response = client.get_httpx_client().request(
|
|
67
|
+
**kwargs,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
return _build_response(client=client, response=response)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def sync(
|
|
74
|
+
*,
|
|
75
|
+
client: Union[AuthenticatedClient, Client],
|
|
76
|
+
) -> Optional[List["SyncTeamsResponse200Item"]]:
|
|
77
|
+
"""synchronize Microsoft Teams information (teams/channels)
|
|
78
|
+
|
|
79
|
+
Raises:
|
|
80
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
81
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
82
|
+
|
|
83
|
+
Returns:
|
|
84
|
+
List['SyncTeamsResponse200Item']
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
return sync_detailed(
|
|
88
|
+
client=client,
|
|
89
|
+
).parsed
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
async def asyncio_detailed(
|
|
93
|
+
*,
|
|
94
|
+
client: Union[AuthenticatedClient, Client],
|
|
95
|
+
) -> Response[List["SyncTeamsResponse200Item"]]:
|
|
96
|
+
"""synchronize Microsoft Teams information (teams/channels)
|
|
97
|
+
|
|
98
|
+
Raises:
|
|
99
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
100
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
101
|
+
|
|
102
|
+
Returns:
|
|
103
|
+
Response[List['SyncTeamsResponse200Item']]
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
kwargs = _get_kwargs()
|
|
107
|
+
|
|
108
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
109
|
+
|
|
110
|
+
return _build_response(client=client, response=response)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
async def asyncio(
|
|
114
|
+
*,
|
|
115
|
+
client: Union[AuthenticatedClient, Client],
|
|
116
|
+
) -> Optional[List["SyncTeamsResponse200Item"]]:
|
|
117
|
+
"""synchronize Microsoft Teams information (teams/channels)
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
List['SyncTeamsResponse200Item']
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
return (
|
|
128
|
+
await asyncio_detailed(
|
|
129
|
+
client=client,
|
|
130
|
+
)
|
|
131
|
+
).parsed
|