windmill-api 1.433.0__py3-none-any.whl → 1.434.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.

@@ -0,0 +1,94 @@
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.clear_index_idx_name import ClearIndexIdxName
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ idx_name: ClearIndexIdxName,
14
+ ) -> Dict[str, Any]:
15
+ pass
16
+
17
+ return {
18
+ "method": "delete",
19
+ "url": "/srch/index/delete/{idx_name}".format(
20
+ idx_name=idx_name,
21
+ ),
22
+ }
23
+
24
+
25
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
26
+ if client.raise_on_unexpected_status:
27
+ raise errors.UnexpectedStatus(response.status_code, response.content)
28
+ else:
29
+ return None
30
+
31
+
32
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
33
+ return Response(
34
+ status_code=HTTPStatus(response.status_code),
35
+ content=response.content,
36
+ headers=response.headers,
37
+ parsed=_parse_response(client=client, response=response),
38
+ )
39
+
40
+
41
+ def sync_detailed(
42
+ idx_name: ClearIndexIdxName,
43
+ *,
44
+ client: Union[AuthenticatedClient, Client],
45
+ ) -> Response[Any]:
46
+ """Restart container and delete the index to recreate it.
47
+
48
+ Args:
49
+ idx_name (ClearIndexIdxName):
50
+
51
+ Raises:
52
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
53
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
54
+
55
+ Returns:
56
+ Response[Any]
57
+ """
58
+
59
+ kwargs = _get_kwargs(
60
+ idx_name=idx_name,
61
+ )
62
+
63
+ response = client.get_httpx_client().request(
64
+ **kwargs,
65
+ )
66
+
67
+ return _build_response(client=client, response=response)
68
+
69
+
70
+ async def asyncio_detailed(
71
+ idx_name: ClearIndexIdxName,
72
+ *,
73
+ client: Union[AuthenticatedClient, Client],
74
+ ) -> Response[Any]:
75
+ """Restart container and delete the index to recreate it.
76
+
77
+ Args:
78
+ idx_name (ClearIndexIdxName):
79
+
80
+ Raises:
81
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
82
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
83
+
84
+ Returns:
85
+ Response[Any]
86
+ """
87
+
88
+ kwargs = _get_kwargs(
89
+ idx_name=idx_name,
90
+ )
91
+
92
+ response = await client.get_async_httpx_client().request(**kwargs)
93
+
94
+ return _build_response(client=client, response=response)
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class ClearIndexIdxName(str, Enum):
5
+ JOBINDEX = "JobIndex"
6
+ SERVICELOGINDEX = "ServiceLogIndex"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.433.0
3
+ Version: 1.434.1
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -123,6 +123,7 @@ windmill_api/api/http_trigger/get_http_trigger.py,sha256=GmUmv6swqV4HFgk5srhKwpP
123
123
  windmill_api/api/http_trigger/list_http_triggers.py,sha256=fhAT0M640wzrgOBUR8ANN--HGAif7-MkyvMxUOlQYQM,7022
124
124
  windmill_api/api/http_trigger/update_http_trigger.py,sha256=Tlgze6wtpZ6baz8hSLJNTib_TPNShoZ2mBXlupngixA,2891
125
125
  windmill_api/api/index_search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
126
+ windmill_api/api/index_search/clear_index.py,sha256=K2w8skoq7VH65mZRYN-CLwylsmset0GMwv652zpSAuA,2487
126
127
  windmill_api/api/index_search/count_search_logs_index.py,sha256=aVf2u0-PlKMs0zRysj3BguHutsm3OhFhj3zKZJHN5_U,5902
127
128
  windmill_api/api/index_search/search_jobs_index.py,sha256=R36HpLYKtw05NavGU-oXB0h-DTleDRzq19j-dAaowtY,4511
128
129
  windmill_api/api/index_search/search_logs_index.py,sha256=uHixXlL-C18uWi-1IbMAGBo5sghJbu0flEN1njZC7NI,7024
@@ -529,6 +530,7 @@ windmill_api/models/cancel_queued_job_json_body.py,sha256=bEDGehOWMK5OxJ1FXH3KHM
529
530
  windmill_api/models/cancel_suspended_job_post_json_body.py,sha256=IdId9-s4n5FrTr8KkeGLU_9NYzQynom1fp2mjRrbpTg,1317
530
531
  windmill_api/models/change_workspace_id_json_body.py,sha256=1OmKBEAA_R2o75VlpWTjgxDXdP2SE6OJ1FDbGD_f_b8,1872
531
532
  windmill_api/models/change_workspace_name_json_body.py,sha256=ByJQqO7uQfddlxSbuKE-C540auKYuWFbvapdIltcdBg,1637
533
+ windmill_api/models/clear_index_idx_name.py,sha256=zZ1Yiqd-K2Gz80K5q0aKiWDAe1bILZDCgGxC7ezWJNw,188
532
534
  windmill_api/models/completed_job.py,sha256=eKIzToaop6aRVYqcRdlSh6yj3YVBE7l3m1FqFpReYw8,12282
533
535
  windmill_api/models/completed_job_args.py,sha256=p0zj9zYkwhu82vNBz-jS8iaAuBXlHrcBrPaW32Pr_00,1238
534
536
  windmill_api/models/completed_job_flow_status.py,sha256=U3nUMjfhqX8-eVVMEWdRuot6nd5Jb2RKHhJ4cNzH7kw,5112
@@ -3503,7 +3505,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
3503
3505
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
3504
3506
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
3505
3507
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
3506
- windmill_api-1.433.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
3507
- windmill_api-1.433.0.dist-info/METADATA,sha256=sb9jXiv4-kMtrAU0GmFLr8B2R_9yVNu8O5BjSDCZSoc,5023
3508
- windmill_api-1.433.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
3509
- windmill_api-1.433.0.dist-info/RECORD,,
3508
+ windmill_api-1.434.1.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
3509
+ windmill_api-1.434.1.dist-info/METADATA,sha256=SrrAYl-xOrdegXPq4YKzXkP5Cpy-9KIXgtgwnZkv9-s,5023
3510
+ windmill_api-1.434.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
3511
+ windmill_api-1.434.1.dist-info/RECORD,,