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

@@ -29,6 +29,7 @@ def _get_kwargs(
29
29
  created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
30
30
  created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
31
31
  job_kinds: Union[Unset, None, str] = UNSET,
32
+ suspended: Union[Unset, None, bool] = UNSET,
32
33
  args: Union[Unset, None, str] = UNSET,
33
34
  tag: Union[Unset, None, str] = UNSET,
34
35
  result: Union[Unset, None, str] = UNSET,
@@ -96,6 +97,8 @@ def _get_kwargs(
96
97
 
97
98
  params["job_kinds"] = job_kinds
98
99
 
100
+ params["suspended"] = suspended
101
+
99
102
  params["args"] = args
100
103
 
101
104
  params["tag"] = tag
@@ -195,6 +198,7 @@ def sync_detailed(
195
198
  created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
196
199
  created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
197
200
  job_kinds: Union[Unset, None, str] = UNSET,
201
+ suspended: Union[Unset, None, bool] = UNSET,
198
202
  args: Union[Unset, None, str] = UNSET,
199
203
  tag: Union[Unset, None, str] = UNSET,
200
204
  result: Union[Unset, None, str] = UNSET,
@@ -226,6 +230,7 @@ def sync_detailed(
226
230
  created_or_started_after (Union[Unset, None, datetime.datetime]):
227
231
  created_or_started_after_completed_jobs (Union[Unset, None, datetime.datetime]):
228
232
  job_kinds (Union[Unset, None, str]):
233
+ suspended (Union[Unset, None, bool]):
229
234
  args (Union[Unset, None, str]):
230
235
  tag (Union[Unset, None, str]):
231
236
  result (Union[Unset, None, str]):
@@ -263,6 +268,7 @@ def sync_detailed(
263
268
  created_or_started_after=created_or_started_after,
264
269
  created_or_started_after_completed_jobs=created_or_started_after_completed_jobs,
265
270
  job_kinds=job_kinds,
271
+ suspended=suspended,
266
272
  args=args,
267
273
  tag=tag,
268
274
  result=result,
@@ -302,6 +308,7 @@ def sync(
302
308
  created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
303
309
  created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
304
310
  job_kinds: Union[Unset, None, str] = UNSET,
311
+ suspended: Union[Unset, None, bool] = UNSET,
305
312
  args: Union[Unset, None, str] = UNSET,
306
313
  tag: Union[Unset, None, str] = UNSET,
307
314
  result: Union[Unset, None, str] = UNSET,
@@ -333,6 +340,7 @@ def sync(
333
340
  created_or_started_after (Union[Unset, None, datetime.datetime]):
334
341
  created_or_started_after_completed_jobs (Union[Unset, None, datetime.datetime]):
335
342
  job_kinds (Union[Unset, None, str]):
343
+ suspended (Union[Unset, None, bool]):
336
344
  args (Union[Unset, None, str]):
337
345
  tag (Union[Unset, None, str]):
338
346
  result (Union[Unset, None, str]):
@@ -371,6 +379,7 @@ def sync(
371
379
  created_or_started_after=created_or_started_after,
372
380
  created_or_started_after_completed_jobs=created_or_started_after_completed_jobs,
373
381
  job_kinds=job_kinds,
382
+ suspended=suspended,
374
383
  args=args,
375
384
  tag=tag,
376
385
  result=result,
@@ -404,6 +413,7 @@ async def asyncio_detailed(
404
413
  created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
405
414
  created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
406
415
  job_kinds: Union[Unset, None, str] = UNSET,
416
+ suspended: Union[Unset, None, bool] = UNSET,
407
417
  args: Union[Unset, None, str] = UNSET,
408
418
  tag: Union[Unset, None, str] = UNSET,
409
419
  result: Union[Unset, None, str] = UNSET,
@@ -435,6 +445,7 @@ async def asyncio_detailed(
435
445
  created_or_started_after (Union[Unset, None, datetime.datetime]):
436
446
  created_or_started_after_completed_jobs (Union[Unset, None, datetime.datetime]):
437
447
  job_kinds (Union[Unset, None, str]):
448
+ suspended (Union[Unset, None, bool]):
438
449
  args (Union[Unset, None, str]):
439
450
  tag (Union[Unset, None, str]):
440
451
  result (Union[Unset, None, str]):
@@ -472,6 +483,7 @@ async def asyncio_detailed(
472
483
  created_or_started_after=created_or_started_after,
473
484
  created_or_started_after_completed_jobs=created_or_started_after_completed_jobs,
474
485
  job_kinds=job_kinds,
486
+ suspended=suspended,
475
487
  args=args,
476
488
  tag=tag,
477
489
  result=result,
@@ -509,6 +521,7 @@ async def asyncio(
509
521
  created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET,
510
522
  created_or_started_after_completed_jobs: Union[Unset, None, datetime.datetime] = UNSET,
511
523
  job_kinds: Union[Unset, None, str] = UNSET,
524
+ suspended: Union[Unset, None, bool] = UNSET,
512
525
  args: Union[Unset, None, str] = UNSET,
513
526
  tag: Union[Unset, None, str] = UNSET,
514
527
  result: Union[Unset, None, str] = UNSET,
@@ -540,6 +553,7 @@ async def asyncio(
540
553
  created_or_started_after (Union[Unset, None, datetime.datetime]):
541
554
  created_or_started_after_completed_jobs (Union[Unset, None, datetime.datetime]):
542
555
  job_kinds (Union[Unset, None, str]):
556
+ suspended (Union[Unset, None, bool]):
543
557
  args (Union[Unset, None, str]):
544
558
  tag (Union[Unset, None, str]):
545
559
  result (Union[Unset, None, str]):
@@ -579,6 +593,7 @@ async def asyncio(
579
593
  created_or_started_after=created_or_started_after,
580
594
  created_or_started_after_completed_jobs=created_or_started_after_completed_jobs,
581
595
  job_kinds=job_kinds,
596
+ suspended=suspended,
582
597
  args=args,
583
598
  tag=tag,
584
599
  result=result,
@@ -5,15 +5,24 @@ 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
- def _get_kwargs() -> Dict[str, Any]:
11
+ def _get_kwargs(
12
+ *,
13
+ license_key: Union[Unset, None, str] = UNSET,
14
+ ) -> Dict[str, Any]:
12
15
  pass
13
16
 
17
+ params: Dict[str, Any] = {}
18
+ params["license_key"] = license_key
19
+
20
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
21
+
14
22
  return {
15
23
  "method": "post",
16
24
  "url": "/settings/customer_portal",
25
+ "params": params,
17
26
  }
18
27
 
19
28
 
@@ -36,9 +45,13 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
36
45
  def sync_detailed(
37
46
  *,
38
47
  client: Union[AuthenticatedClient, Client],
48
+ license_key: Union[Unset, None, str] = UNSET,
39
49
  ) -> Response[Any]:
40
50
  """create customer portal session
41
51
 
52
+ Args:
53
+ license_key (Union[Unset, None, str]):
54
+
42
55
  Raises:
43
56
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
44
57
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -47,7 +60,9 @@ def sync_detailed(
47
60
  Response[Any]
48
61
  """
49
62
 
50
- kwargs = _get_kwargs()
63
+ kwargs = _get_kwargs(
64
+ license_key=license_key,
65
+ )
51
66
 
52
67
  response = client.get_httpx_client().request(
53
68
  **kwargs,
@@ -59,9 +74,13 @@ def sync_detailed(
59
74
  async def asyncio_detailed(
60
75
  *,
61
76
  client: Union[AuthenticatedClient, Client],
77
+ license_key: Union[Unset, None, str] = UNSET,
62
78
  ) -> Response[Any]:
63
79
  """create customer portal session
64
80
 
81
+ Args:
82
+ license_key (Union[Unset, None, str]):
83
+
65
84
  Raises:
66
85
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
67
86
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -70,7 +89,9 @@ async def asyncio_detailed(
70
89
  Response[Any]
71
90
  """
72
91
 
73
- kwargs = _get_kwargs()
92
+ kwargs = _get_kwargs(
93
+ license_key=license_key,
94
+ )
74
95
 
75
96
  response = await client.get_async_httpx_client().request(**kwargs)
76
97
 
@@ -5,15 +5,24 @@ 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
- def _get_kwargs() -> Dict[str, Any]:
11
+ def _get_kwargs(
12
+ *,
13
+ license_key: Union[Unset, None, str] = UNSET,
14
+ ) -> Dict[str, Any]:
12
15
  pass
13
16
 
17
+ params: Dict[str, Any] = {}
18
+ params["license_key"] = license_key
19
+
20
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
21
+
14
22
  return {
15
23
  "method": "post",
16
24
  "url": "/settings/renew_license_key",
25
+ "params": params,
17
26
  }
18
27
 
19
28
 
@@ -36,9 +45,13 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
36
45
  def sync_detailed(
37
46
  *,
38
47
  client: Union[AuthenticatedClient, Client],
48
+ license_key: Union[Unset, None, str] = UNSET,
39
49
  ) -> Response[Any]:
40
50
  """renew license key
41
51
 
52
+ Args:
53
+ license_key (Union[Unset, None, str]):
54
+
42
55
  Raises:
43
56
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
44
57
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -47,7 +60,9 @@ def sync_detailed(
47
60
  Response[Any]
48
61
  """
49
62
 
50
- kwargs = _get_kwargs()
63
+ kwargs = _get_kwargs(
64
+ license_key=license_key,
65
+ )
51
66
 
52
67
  response = client.get_httpx_client().request(
53
68
  **kwargs,
@@ -59,9 +74,13 @@ def sync_detailed(
59
74
  async def asyncio_detailed(
60
75
  *,
61
76
  client: Union[AuthenticatedClient, Client],
77
+ license_key: Union[Unset, None, str] = UNSET,
62
78
  ) -> Response[Any]:
63
79
  """renew license key
64
80
 
81
+ Args:
82
+ license_key (Union[Unset, None, str]):
83
+
65
84
  Raises:
66
85
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
67
86
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -70,7 +89,9 @@ async def asyncio_detailed(
70
89
  Response[Any]
71
90
  """
72
91
 
73
- kwargs = _get_kwargs()
92
+ kwargs = _get_kwargs(
93
+ license_key=license_key,
94
+ )
74
95
 
75
96
  response = await client.get_async_httpx_client().request(**kwargs)
76
97
 
@@ -1,8 +1,10 @@
1
- from typing import Any, Dict, List, Type, TypeVar
1
+ from typing import Any, Dict, List, Type, TypeVar, Union
2
2
 
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
5
5
 
6
+ from ..types import UNSET, Unset
7
+
6
8
  T = TypeVar("T", bound="GetQueueCountResponse200")
7
9
 
8
10
 
@@ -11,13 +13,16 @@ class GetQueueCountResponse200:
11
13
  """
12
14
  Attributes:
13
15
  database_length (int):
16
+ suspended (Union[Unset, int]):
14
17
  """
15
18
 
16
19
  database_length: int
20
+ suspended: Union[Unset, int] = UNSET
17
21
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
18
22
 
19
23
  def to_dict(self) -> Dict[str, Any]:
20
24
  database_length = self.database_length
25
+ suspended = self.suspended
21
26
 
22
27
  field_dict: Dict[str, Any] = {}
23
28
  field_dict.update(self.additional_properties)
@@ -26,6 +31,8 @@ class GetQueueCountResponse200:
26
31
  "database_length": database_length,
27
32
  }
28
33
  )
34
+ if suspended is not UNSET:
35
+ field_dict["suspended"] = suspended
29
36
 
30
37
  return field_dict
31
38
 
@@ -34,8 +41,11 @@ class GetQueueCountResponse200:
34
41
  d = src_dict.copy()
35
42
  database_length = d.pop("database_length")
36
43
 
44
+ suspended = d.pop("suspended", UNSET)
45
+
37
46
  get_queue_count_response_200 = cls(
38
47
  database_length=database_length,
48
+ suspended=suspended,
39
49
  )
40
50
 
41
51
  get_queue_count_response_200.additional_properties = d
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.377.1
3
+ Version: 1.379.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -147,7 +147,7 @@ windmill_api/api/job/get_root_job_id.py,sha256=LZMq-95eOA0y3UAcEfS9gj0zTI35KwNvS
147
147
  windmill_api/api/job/get_suspended_job_flow.py,sha256=1ujITk_TDUgnZ-uWPRfBfb58qFtfGrEJF9TndIcHhok,5652
148
148
  windmill_api/api/job/list_completed_jobs.py,sha256=-_8rtCuQmkGcNppaOxvl8ikJatPWAD5NtNPGpPKRwQA,17668
149
149
  windmill_api/api/job/list_filtered_uuids.py,sha256=PUwO85DZ171E-O6HjcFR-hWllhhUulu3v1qt9BxHaVM,18092
150
- windmill_api/api/job/list_jobs.py,sha256=QafNBxk1f-1ySJZlwf_7LITufxeFz4EybcE_7LhNEhw,24334
150
+ windmill_api/api/job/list_jobs.py,sha256=FCFi6BHvPXu6_Vei78c7k1kG4hyyIpWPymasxIsXV6I,24920
151
151
  windmill_api/api/job/list_queue.py,sha256=MaF7X_u2UkABIOIOHSFd_OaopTytq09fX6_kih61fkY,17784
152
152
  windmill_api/api/job/openai_sync_flow_by_path.py,sha256=PAHUYl2LwbUWlZB7rUJ32vS4DWoDZ5oxThVFrg22NgQ,4245
153
153
  windmill_api/api/job/openai_sync_script_by_path.py,sha256=lK8L2aKmm13glTutxr_7qas2EqCZm5xzXrbZwSkItfA,4551
@@ -244,12 +244,12 @@ windmill_api/api/script/raw_script_by_path_tokened.py,sha256=SGbwTzl-03V1aceSts_
244
244
  windmill_api/api/script/toggle_workspace_error_handler_for_script.py,sha256=DTPlpQK4Qn4dT_hZZcCFs5dfJGFQ3K-jqG62hSi1Lr8,3137
245
245
  windmill_api/api/script/update_script_history.py,sha256=mRE0R8_9RCIo5cmz6OtZEL6ytNrN11X22tZTaFjI9QQ,3088
246
246
  windmill_api/api/setting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
247
- windmill_api/api/setting/create_customer_portal_session.py,sha256=D5MwOETAuB4sfcG0NlkisST8L-corIw5wlkbrhSQux0,2061
247
+ windmill_api/api/setting/create_customer_portal_session.py,sha256=rUOT27UsoKKImfwdgIXF57u2fMWe-DtEaeFflD314mY,2608
248
248
  windmill_api/api/setting/get_global.py,sha256=fROXxArQM5x7HHue_VWX9Y2i-Dm_byRs9Y1yIsYDogI,2287
249
249
  windmill_api/api/setting/get_latest_key_renewal_attempt.py,sha256=MJtImlDMxdeizItTpsMIbBlWcJLc0pjwVTkeOIinAKE,3916
250
250
  windmill_api/api/setting/get_local.py,sha256=zSx_gnsuRuDjUb0GA5tS5eiZk_8OVTM54j_d06Wxf2M,2092
251
251
  windmill_api/api/setting/list_global_settings.py,sha256=1-gFCx7HLyU-I_5SGXvrKg8vkWqfwrYDi1YcehQUsrk,3789
252
- windmill_api/api/setting/renew_license_key.py,sha256=OhrgTzSY7xzDBAQh-NLBW4B934n4vaaCP9PZb8sFIKo,2037
252
+ windmill_api/api/setting/renew_license_key.py,sha256=Pe8aWUBKv1_gRagYPafeZtrfCV8s3qUMKyYnKCoUn7E,2584
253
253
  windmill_api/api/setting/send_stats.py,sha256=mcTxeJlSkxLAiFI7Ox6agX7xiki0XVWxtymaMt03FoA,2016
254
254
  windmill_api/api/setting/set_global.py,sha256=h9qT9c3gOFhAefRBBb80acIZ4M7LaTSr18Y6ak4aJJE,2604
255
255
  windmill_api/api/setting/test_license_key.py,sha256=p07Z9-7WhuP-sqnNK6ek22luluiocCFLjXdUeAc1kCM,2483
@@ -1411,7 +1411,7 @@ windmill_api/models/get_public_app_by_secret_response_200_policy_triggerables_ad
1411
1411
  windmill_api/models/get_public_app_by_secret_response_200_policy_triggerables_v2.py,sha256=FTVwo326D0_-X8cDmK0QqJLuFci-GmtE54MfKbkr23Y,2505
1412
1412
  windmill_api/models/get_public_app_by_secret_response_200_policy_triggerables_v2_additional_property.py,sha256=GlE1lVxWJV9r93kgXgpZPgOCqmg4WjqywRcEqRVbZtQ,1530
1413
1413
  windmill_api/models/get_public_app_by_secret_response_200_value.py,sha256=ZZ0TJwDf_F3RQQKmVo39krhLz7APa6XAv7hl3xGeqvw,1353
1414
- windmill_api/models/get_queue_count_response_200.py,sha256=A5FEtPaRnMXBkBE2PPpK0Uzq4fbGhNjXXlqYwLn6WDo,1601
1414
+ windmill_api/models/get_queue_count_response_200.py,sha256=u5VUZM166RkUXaHfDRGNqukeFZt8v4bfBH0yQjYmnLM,1920
1415
1415
  windmill_api/models/get_queue_metrics_response_200_item.py,sha256=utefQGQh6rmwCgYi-4QJL5haGf3YM8mZJuuqcwYsws8,2350
1416
1416
  windmill_api/models/get_queue_metrics_response_200_item_values_item.py,sha256=hYFf0j7yKNm67pPydF-hIElnPCVebT5Tzv5ArPy9ZJc,1796
1417
1417
  windmill_api/models/get_resource_response_200.py,sha256=dwTaD2TIn-ayKYJNVOLUWnciGrlgbaPBZDJexv1Ezmg,4681
@@ -2552,7 +2552,7 @@ windmill_api/models/workspace_git_sync_settings_repositories_item_exclude_types_
2552
2552
  windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1lixwUUXG6CXs,2037
2553
2553
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
2554
2554
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
2555
- windmill_api-1.377.1.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
2556
- windmill_api-1.377.1.dist-info/METADATA,sha256=gXM3BemRUKO6Zuou8Ppqq1YQkP3bY5nl7IGp61ag5HI,5023
2557
- windmill_api-1.377.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
2558
- windmill_api-1.377.1.dist-info/RECORD,,
2555
+ windmill_api-1.379.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
2556
+ windmill_api-1.379.0.dist-info/METADATA,sha256=XPOmzHdfXOth2PmT8t-aozANXIsbpGd6CTPWcrJJYPc,5023
2557
+ windmill_api-1.379.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
2558
+ windmill_api-1.379.0.dist-info/RECORD,,