windmill-api 1.558.1__py3-none-any.whl → 1.560.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 windmill-api might be problematic. Click here for more details.

@@ -5,19 +5,27 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...types import Response
8
+ from ...types import UNSET, Response, Unset
9
9
 
10
10
 
11
11
  def _get_kwargs(
12
12
  workspace: str,
13
+ *,
14
+ only_delete_forks: Union[Unset, None, bool] = UNSET,
13
15
  ) -> Dict[str, Any]:
14
16
  pass
15
17
 
18
+ params: Dict[str, Any] = {}
19
+ params["only_delete_forks"] = only_delete_forks
20
+
21
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
+
16
23
  return {
17
24
  "method": "delete",
18
25
  "url": "/workspaces/delete/{workspace}".format(
19
26
  workspace=workspace,
20
27
  ),
28
+ "params": params,
21
29
  }
22
30
 
23
31
 
@@ -41,11 +49,13 @@ def sync_detailed(
41
49
  workspace: str,
42
50
  *,
43
51
  client: Union[AuthenticatedClient, Client],
52
+ only_delete_forks: Union[Unset, None, bool] = UNSET,
44
53
  ) -> Response[Any]:
45
54
  """delete workspace (require super admin)
46
55
 
47
56
  Args:
48
57
  workspace (str):
58
+ only_delete_forks (Union[Unset, None, bool]):
49
59
 
50
60
  Raises:
51
61
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -57,6 +67,7 @@ def sync_detailed(
57
67
 
58
68
  kwargs = _get_kwargs(
59
69
  workspace=workspace,
70
+ only_delete_forks=only_delete_forks,
60
71
  )
61
72
 
62
73
  response = client.get_httpx_client().request(
@@ -70,11 +81,13 @@ async def asyncio_detailed(
70
81
  workspace: str,
71
82
  *,
72
83
  client: Union[AuthenticatedClient, Client],
84
+ only_delete_forks: Union[Unset, None, bool] = UNSET,
73
85
  ) -> Response[Any]:
74
86
  """delete workspace (require super admin)
75
87
 
76
88
  Args:
77
89
  workspace (str):
90
+ only_delete_forks (Union[Unset, None, bool]):
78
91
 
79
92
  Raises:
80
93
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -86,6 +99,7 @@ async def asyncio_detailed(
86
99
 
87
100
  kwargs = _get_kwargs(
88
101
  workspace=workspace,
102
+ only_delete_forks=only_delete_forks,
89
103
  )
90
104
 
91
105
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.558.1
3
+ Version: 1.560.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -529,7 +529,7 @@ windmill_api/api/workspace/create_workspace.py,sha256=Ykhaqdsp0a5C6pkyNUYW8Js9Lt
529
529
  windmill_api/api/workspace/create_workspace_fork.py,sha256=QlTYKD51DnPIGd4YWUzZNms8lAm-I-cYodP0S_TaR5A,2529
530
530
  windmill_api/api/workspace/delete_git_sync_repository.py,sha256=vTT0_IH4qHzLmqVcEsIrwSMKj_SAyPP1NtqVVdcCWD0,2902
531
531
  windmill_api/api/workspace/delete_invite.py,sha256=PfwTA5svQKFrbl_aiDc4NkL4POvd9uDxHQFApD7OYRg,2704
532
- windmill_api/api/workspace/delete_workspace.py,sha256=Ih8AA7J_MWllJwJ5vhM-At8rJsdk50lJxeqvjlv6HNQ,2336
532
+ windmill_api/api/workspace/delete_workspace.py,sha256=RPcF68hin2-ebX1Nf0XjCWIu6dJADFlkOMUKfpS45c0,2921
533
533
  windmill_api/api/workspace/edit_auto_invite.py,sha256=u-EY_aZyqp9vkXKWffDoNxCVheMLR9hDx0RCVYO0Muk,2718
534
534
  windmill_api/api/workspace/edit_copilot_config.py,sha256=U1gPohEbsQwruoBnol6s5EQP1mcKrVSkQZSMuoBX-Oo,2748
535
535
  windmill_api/api/workspace/edit_default_scripts.py,sha256=Zi7xXuSAf7fiYJu6nerr5pX4Ah84VTAjhl8ZJvdxjek,2781
@@ -5546,7 +5546,7 @@ windmill_api/models/workspace_invite.py,sha256=wp-J-VJLkXsfQzw1PdNPGQhETsFCFXh1e
5546
5546
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
5547
5547
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
5548
5548
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
5549
- windmill_api-1.558.1.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
5550
- windmill_api-1.558.1.dist-info/METADATA,sha256=MYsQxRQGvvTd1AWwmyCndpKeFwCySmnghdovGFnSiY8,5023
5551
- windmill_api-1.558.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
5552
- windmill_api-1.558.1.dist-info/RECORD,,
5549
+ windmill_api-1.560.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
5550
+ windmill_api-1.560.0.dist-info/METADATA,sha256=Sd8acesrgrylIzh6gMaQTs_mb242khxmHiGW7X1n6b4,5023
5551
+ windmill_api-1.560.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
5552
+ windmill_api-1.560.0.dist-info/RECORD,,