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

@@ -6,19 +6,27 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.get_premium_info_response_200 import GetPremiumInfoResponse200
9
- from ...types import Response
9
+ from ...types import UNSET, Response, Unset
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  workspace: str,
14
+ *,
15
+ skip_subscription_fetch: Union[Unset, None, bool] = UNSET,
14
16
  ) -> Dict[str, Any]:
15
17
  pass
16
18
 
19
+ params: Dict[str, Any] = {}
20
+ params["skip_subscription_fetch"] = skip_subscription_fetch
21
+
22
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
23
+
17
24
  return {
18
25
  "method": "get",
19
26
  "url": "/w/{workspace}/workspaces/premium_info".format(
20
27
  workspace=workspace,
21
28
  ),
29
+ "params": params,
22
30
  }
23
31
 
24
32
 
@@ -50,11 +58,13 @@ def sync_detailed(
50
58
  workspace: str,
51
59
  *,
52
60
  client: Union[AuthenticatedClient, Client],
61
+ skip_subscription_fetch: Union[Unset, None, bool] = UNSET,
53
62
  ) -> Response[GetPremiumInfoResponse200]:
54
63
  """get premium info
55
64
 
56
65
  Args:
57
66
  workspace (str):
67
+ skip_subscription_fetch (Union[Unset, None, bool]):
58
68
 
59
69
  Raises:
60
70
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -66,6 +76,7 @@ def sync_detailed(
66
76
 
67
77
  kwargs = _get_kwargs(
68
78
  workspace=workspace,
79
+ skip_subscription_fetch=skip_subscription_fetch,
69
80
  )
70
81
 
71
82
  response = client.get_httpx_client().request(
@@ -79,11 +90,13 @@ def sync(
79
90
  workspace: str,
80
91
  *,
81
92
  client: Union[AuthenticatedClient, Client],
93
+ skip_subscription_fetch: Union[Unset, None, bool] = UNSET,
82
94
  ) -> Optional[GetPremiumInfoResponse200]:
83
95
  """get premium info
84
96
 
85
97
  Args:
86
98
  workspace (str):
99
+ skip_subscription_fetch (Union[Unset, None, bool]):
87
100
 
88
101
  Raises:
89
102
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -96,6 +109,7 @@ def sync(
96
109
  return sync_detailed(
97
110
  workspace=workspace,
98
111
  client=client,
112
+ skip_subscription_fetch=skip_subscription_fetch,
99
113
  ).parsed
100
114
 
101
115
 
@@ -103,11 +117,13 @@ async def asyncio_detailed(
103
117
  workspace: str,
104
118
  *,
105
119
  client: Union[AuthenticatedClient, Client],
120
+ skip_subscription_fetch: Union[Unset, None, bool] = UNSET,
106
121
  ) -> Response[GetPremiumInfoResponse200]:
107
122
  """get premium info
108
123
 
109
124
  Args:
110
125
  workspace (str):
126
+ skip_subscription_fetch (Union[Unset, None, bool]):
111
127
 
112
128
  Raises:
113
129
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -119,6 +135,7 @@ async def asyncio_detailed(
119
135
 
120
136
  kwargs = _get_kwargs(
121
137
  workspace=workspace,
138
+ skip_subscription_fetch=skip_subscription_fetch,
122
139
  )
123
140
 
124
141
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -130,11 +147,13 @@ async def asyncio(
130
147
  workspace: str,
131
148
  *,
132
149
  client: Union[AuthenticatedClient, Client],
150
+ skip_subscription_fetch: Union[Unset, None, bool] = UNSET,
133
151
  ) -> Optional[GetPremiumInfoResponse200]:
134
152
  """get premium info
135
153
 
136
154
  Args:
137
155
  workspace (str):
156
+ skip_subscription_fetch (Union[Unset, None, bool]):
138
157
 
139
158
  Raises:
140
159
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -148,5 +167,6 @@ async def asyncio(
148
167
  await asyncio_detailed(
149
168
  workspace=workspace,
150
169
  client=client,
170
+ skip_subscription_fetch=skip_subscription_fetch,
151
171
  )
152
172
  ).parsed
@@ -14,21 +14,27 @@ class GetPremiumInfoResponse200:
14
14
  Attributes:
15
15
  premium (bool):
16
16
  owner (str):
17
+ is_past_due (bool):
17
18
  usage (Union[Unset, float]):
18
19
  status (Union[Unset, str]):
20
+ max_tolerated_executions (Union[Unset, float]):
19
21
  """
20
22
 
21
23
  premium: bool
22
24
  owner: str
25
+ is_past_due: bool
23
26
  usage: Union[Unset, float] = UNSET
24
27
  status: Union[Unset, str] = UNSET
28
+ max_tolerated_executions: Union[Unset, float] = UNSET
25
29
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
26
30
 
27
31
  def to_dict(self) -> Dict[str, Any]:
28
32
  premium = self.premium
29
33
  owner = self.owner
34
+ is_past_due = self.is_past_due
30
35
  usage = self.usage
31
36
  status = self.status
37
+ max_tolerated_executions = self.max_tolerated_executions
32
38
 
33
39
  field_dict: Dict[str, Any] = {}
34
40
  field_dict.update(self.additional_properties)
@@ -36,12 +42,15 @@ class GetPremiumInfoResponse200:
36
42
  {
37
43
  "premium": premium,
38
44
  "owner": owner,
45
+ "is_past_due": is_past_due,
39
46
  }
40
47
  )
41
48
  if usage is not UNSET:
42
49
  field_dict["usage"] = usage
43
50
  if status is not UNSET:
44
51
  field_dict["status"] = status
52
+ if max_tolerated_executions is not UNSET:
53
+ field_dict["max_tolerated_executions"] = max_tolerated_executions
45
54
 
46
55
  return field_dict
47
56
 
@@ -52,15 +61,21 @@ class GetPremiumInfoResponse200:
52
61
 
53
62
  owner = d.pop("owner")
54
63
 
64
+ is_past_due = d.pop("is_past_due")
65
+
55
66
  usage = d.pop("usage", UNSET)
56
67
 
57
68
  status = d.pop("status", UNSET)
58
69
 
70
+ max_tolerated_executions = d.pop("max_tolerated_executions", UNSET)
71
+
59
72
  get_premium_info_response_200 = cls(
60
73
  premium=premium,
61
74
  owner=owner,
75
+ is_past_due=is_past_due,
62
76
  usage=usage,
63
77
  status=status,
78
+ max_tolerated_executions=max_tolerated_executions,
64
79
  )
65
80
 
66
81
  get_premium_info_response_200.additional_properties = d
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.536.0
3
+ Version: 1.537.1
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -528,7 +528,7 @@ windmill_api/api/workspace/get_deploy_to.py,sha256=svqiDBqN9dTF-oyXDg9yzqoHdBBmM
528
528
  windmill_api/api/workspace/get_github_app_token.py,sha256=b-DC2cU5YRqz7eXB5kxPpWTK7zQ9ojg6919aPG4hzdw,4566
529
529
  windmill_api/api/workspace/get_is_premium.py,sha256=G1Dp-UbeRhoQUr-DXvEQvkJfXgPeUDmM_y7dILZ312c,3560
530
530
  windmill_api/api/workspace/get_large_file_storage_config.py,sha256=oPTAsbPjWJ9GpkflLzVex1S5dDtWAoNAANxyjPEAycs,4052
531
- windmill_api/api/workspace/get_premium_info.py,sha256=L4ITPG2Iuqjm-1wb390UZ2FYZVYp5X7C2fibXaxQ_MM,3838
531
+ windmill_api/api/workspace/get_premium_info.py,sha256=SezlLIBvxjGHwTZjyvyeE6KA_e7szmQ9wdqA98yh1oM,4853
532
532
  windmill_api/api/workspace/get_settings.py,sha256=X6qRdutwo5RSYsu2bHgf8XWLJ-I7TOPpniP02ty_rFE,3782
533
533
  windmill_api/api/workspace/get_threshold_alert.py,sha256=533-kj2rmIFuAL6gh31KeQPPRgeQV9SI1GSWcrk7qW0,3912
534
534
  windmill_api/api/workspace/get_used_triggers.py,sha256=YnShrlix42jOJUEgKyZULaFUHI8FqiwODOUe87aNzbM,3856
@@ -2527,7 +2527,7 @@ windmill_api/models/get_postgres_trigger_response_200_extra_perms.py,sha256=G9is
2527
2527
  windmill_api/models/get_postgres_trigger_response_200_retry.py,sha256=SeHEfMwvvQTL7uY_lEaZ_NtADKz7iHPBfZlJaHEym3E,3465
2528
2528
  windmill_api/models/get_postgres_trigger_response_200_retry_constant.py,sha256=cjfJtNBaxsyZrGmkcXH7dlbQGq274hOjf4I3GH_kNF8,1974
2529
2529
  windmill_api/models/get_postgres_trigger_response_200_retry_exponential.py,sha256=ka5k7xv3G6VdQydxhvakkIykDPH6qF7LebnenmkrofU,2600
2530
- windmill_api/models/get_premium_info_response_200.py,sha256=y3wAkEdyrfqBfMF4PWYHurWL32mc2nzmRSzsnIBoDaQ,2204
2530
+ windmill_api/models/get_premium_info_response_200.py,sha256=Km3HpQFRssJ9nWMTw9FXXsgynkN3ECZv_nxv11mcspE,2865
2531
2531
  windmill_api/models/get_public_app_by_custom_path_response_200.py,sha256=Heheaag6JOeiKvwPDPZ0s9heq9G2yRVaWnwXXJjIOQA,5431
2532
2532
  windmill_api/models/get_public_app_by_custom_path_response_200_execution_mode.py,sha256=8AHFEIQwy7IFT40PlEtKijJWDHWPl9rpgSBY92mHtq0,231
2533
2533
  windmill_api/models/get_public_app_by_custom_path_response_200_extra_perms.py,sha256=mjuwiaaSPsKsj35V3hMz4UC9EPmt5o0vbtwCxtmWr2w,1407
@@ -4782,7 +4782,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
4782
4782
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
4783
4783
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
4784
4784
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
4785
- windmill_api-1.536.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
4786
- windmill_api-1.536.0.dist-info/METADATA,sha256=oyIbb1NraqramyyTJqblPiedlxdre7pFYasZKrAChsg,5023
4787
- windmill_api-1.536.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
4788
- windmill_api-1.536.0.dist-info/RECORD,,
4785
+ windmill_api-1.537.1.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
4786
+ windmill_api-1.537.1.dist-info/METADATA,sha256=LFAHV9-uSxbv0cm0NJ64syA7Rc9uMRZ5icQrbyYvLYM,5023
4787
+ windmill_api-1.537.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
4788
+ windmill_api-1.537.1.dist-info/RECORD,,