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

@@ -1,7 +1,9 @@
1
+ import datetime
1
2
  from typing import Any, Dict, List, Type, TypeVar, Union
2
3
 
3
4
  from attrs import define as _attrs_define
4
5
  from attrs import field as _attrs_field
6
+ from dateutil.parser import isoparse
5
7
 
6
8
  from ..types import UNSET, Unset
7
9
 
@@ -18,6 +20,7 @@ class CreateVariable:
18
20
  description (str):
19
21
  account (Union[Unset, int]):
20
22
  is_oauth (Union[Unset, bool]):
23
+ expires_at (Union[Unset, datetime.datetime]):
21
24
  """
22
25
 
23
26
  path: str
@@ -26,6 +29,7 @@ class CreateVariable:
26
29
  description: str
27
30
  account: Union[Unset, int] = UNSET
28
31
  is_oauth: Union[Unset, bool] = UNSET
32
+ expires_at: Union[Unset, datetime.datetime] = UNSET
29
33
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
30
34
 
31
35
  def to_dict(self) -> Dict[str, Any]:
@@ -35,6 +39,9 @@ class CreateVariable:
35
39
  description = self.description
36
40
  account = self.account
37
41
  is_oauth = self.is_oauth
42
+ expires_at: Union[Unset, str] = UNSET
43
+ if not isinstance(self.expires_at, Unset):
44
+ expires_at = self.expires_at.isoformat()
38
45
 
39
46
  field_dict: Dict[str, Any] = {}
40
47
  field_dict.update(self.additional_properties)
@@ -50,6 +57,8 @@ class CreateVariable:
50
57
  field_dict["account"] = account
51
58
  if is_oauth is not UNSET:
52
59
  field_dict["is_oauth"] = is_oauth
60
+ if expires_at is not UNSET:
61
+ field_dict["expires_at"] = expires_at
53
62
 
54
63
  return field_dict
55
64
 
@@ -68,6 +77,13 @@ class CreateVariable:
68
77
 
69
78
  is_oauth = d.pop("is_oauth", UNSET)
70
79
 
80
+ _expires_at = d.pop("expires_at", UNSET)
81
+ expires_at: Union[Unset, datetime.datetime]
82
+ if isinstance(_expires_at, Unset):
83
+ expires_at = UNSET
84
+ else:
85
+ expires_at = isoparse(_expires_at)
86
+
71
87
  create_variable = cls(
72
88
  path=path,
73
89
  value=value,
@@ -75,6 +91,7 @@ class CreateVariable:
75
91
  description=description,
76
92
  account=account,
77
93
  is_oauth=is_oauth,
94
+ expires_at=expires_at,
78
95
  )
79
96
 
80
97
  create_variable.additional_properties = d
@@ -1,7 +1,9 @@
1
+ import datetime
1
2
  from typing import Any, Dict, List, Type, TypeVar, Union
2
3
 
3
4
  from attrs import define as _attrs_define
4
5
  from attrs import field as _attrs_field
6
+ from dateutil.parser import isoparse
5
7
 
6
8
  from ..types import UNSET, Unset
7
9
 
@@ -18,6 +20,7 @@ class CreateVariableJsonBody:
18
20
  description (str):
19
21
  account (Union[Unset, int]):
20
22
  is_oauth (Union[Unset, bool]):
23
+ expires_at (Union[Unset, datetime.datetime]):
21
24
  """
22
25
 
23
26
  path: str
@@ -26,6 +29,7 @@ class CreateVariableJsonBody:
26
29
  description: str
27
30
  account: Union[Unset, int] = UNSET
28
31
  is_oauth: Union[Unset, bool] = UNSET
32
+ expires_at: Union[Unset, datetime.datetime] = UNSET
29
33
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
30
34
 
31
35
  def to_dict(self) -> Dict[str, Any]:
@@ -35,6 +39,9 @@ class CreateVariableJsonBody:
35
39
  description = self.description
36
40
  account = self.account
37
41
  is_oauth = self.is_oauth
42
+ expires_at: Union[Unset, str] = UNSET
43
+ if not isinstance(self.expires_at, Unset):
44
+ expires_at = self.expires_at.isoformat()
38
45
 
39
46
  field_dict: Dict[str, Any] = {}
40
47
  field_dict.update(self.additional_properties)
@@ -50,6 +57,8 @@ class CreateVariableJsonBody:
50
57
  field_dict["account"] = account
51
58
  if is_oauth is not UNSET:
52
59
  field_dict["is_oauth"] = is_oauth
60
+ if expires_at is not UNSET:
61
+ field_dict["expires_at"] = expires_at
53
62
 
54
63
  return field_dict
55
64
 
@@ -68,6 +77,13 @@ class CreateVariableJsonBody:
68
77
 
69
78
  is_oauth = d.pop("is_oauth", UNSET)
70
79
 
80
+ _expires_at = d.pop("expires_at", UNSET)
81
+ expires_at: Union[Unset, datetime.datetime]
82
+ if isinstance(_expires_at, Unset):
83
+ expires_at = UNSET
84
+ else:
85
+ expires_at = isoparse(_expires_at)
86
+
71
87
  create_variable_json_body = cls(
72
88
  path=path,
73
89
  value=value,
@@ -75,6 +91,7 @@ class CreateVariableJsonBody:
75
91
  description=description,
76
92
  account=account,
77
93
  is_oauth=is_oauth,
94
+ expires_at=expires_at,
78
95
  )
79
96
 
80
97
  create_variable_json_body.additional_properties = d
@@ -1,7 +1,9 @@
1
+ import datetime
1
2
  from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
3
 
3
4
  from attrs import define as _attrs_define
4
5
  from attrs import field as _attrs_field
6
+ from dateutil.parser import isoparse
5
7
 
6
8
  from ..types import UNSET, Unset
7
9
 
@@ -28,6 +30,7 @@ class GetVariableResponse200:
28
30
  refresh_error (Union[Unset, str]):
29
31
  is_linked (Union[Unset, bool]):
30
32
  is_refreshed (Union[Unset, bool]):
33
+ expires_at (Union[Unset, datetime.datetime]):
31
34
  """
32
35
 
33
36
  workspace_id: str
@@ -42,6 +45,7 @@ class GetVariableResponse200:
42
45
  refresh_error: Union[Unset, str] = UNSET
43
46
  is_linked: Union[Unset, bool] = UNSET
44
47
  is_refreshed: Union[Unset, bool] = UNSET
48
+ expires_at: Union[Unset, datetime.datetime] = UNSET
45
49
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
46
50
 
47
51
  def to_dict(self) -> Dict[str, Any]:
@@ -58,6 +62,9 @@ class GetVariableResponse200:
58
62
  refresh_error = self.refresh_error
59
63
  is_linked = self.is_linked
60
64
  is_refreshed = self.is_refreshed
65
+ expires_at: Union[Unset, str] = UNSET
66
+ if not isinstance(self.expires_at, Unset):
67
+ expires_at = self.expires_at.isoformat()
61
68
 
62
69
  field_dict: Dict[str, Any] = {}
63
70
  field_dict.update(self.additional_properties)
@@ -85,6 +92,8 @@ class GetVariableResponse200:
85
92
  field_dict["is_linked"] = is_linked
86
93
  if is_refreshed is not UNSET:
87
94
  field_dict["is_refreshed"] = is_refreshed
95
+ if expires_at is not UNSET:
96
+ field_dict["expires_at"] = expires_at
88
97
 
89
98
  return field_dict
90
99
 
@@ -117,6 +126,13 @@ class GetVariableResponse200:
117
126
 
118
127
  is_refreshed = d.pop("is_refreshed", UNSET)
119
128
 
129
+ _expires_at = d.pop("expires_at", UNSET)
130
+ expires_at: Union[Unset, datetime.datetime]
131
+ if isinstance(_expires_at, Unset):
132
+ expires_at = UNSET
133
+ else:
134
+ expires_at = isoparse(_expires_at)
135
+
120
136
  get_variable_response_200 = cls(
121
137
  workspace_id=workspace_id,
122
138
  path=path,
@@ -130,6 +146,7 @@ class GetVariableResponse200:
130
146
  refresh_error=refresh_error,
131
147
  is_linked=is_linked,
132
148
  is_refreshed=is_refreshed,
149
+ expires_at=expires_at,
133
150
  )
134
151
 
135
152
  get_variable_response_200.additional_properties = d
@@ -1,7 +1,9 @@
1
+ import datetime
1
2
  from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
3
 
3
4
  from attrs import define as _attrs_define
4
5
  from attrs import field as _attrs_field
6
+ from dateutil.parser import isoparse
5
7
 
6
8
  from ..types import UNSET, Unset
7
9
 
@@ -28,6 +30,7 @@ class ListVariableResponse200Item:
28
30
  refresh_error (Union[Unset, str]):
29
31
  is_linked (Union[Unset, bool]):
30
32
  is_refreshed (Union[Unset, bool]):
33
+ expires_at (Union[Unset, datetime.datetime]):
31
34
  """
32
35
 
33
36
  workspace_id: str
@@ -42,6 +45,7 @@ class ListVariableResponse200Item:
42
45
  refresh_error: Union[Unset, str] = UNSET
43
46
  is_linked: Union[Unset, bool] = UNSET
44
47
  is_refreshed: Union[Unset, bool] = UNSET
48
+ expires_at: Union[Unset, datetime.datetime] = UNSET
45
49
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
46
50
 
47
51
  def to_dict(self) -> Dict[str, Any]:
@@ -58,6 +62,9 @@ class ListVariableResponse200Item:
58
62
  refresh_error = self.refresh_error
59
63
  is_linked = self.is_linked
60
64
  is_refreshed = self.is_refreshed
65
+ expires_at: Union[Unset, str] = UNSET
66
+ if not isinstance(self.expires_at, Unset):
67
+ expires_at = self.expires_at.isoformat()
61
68
 
62
69
  field_dict: Dict[str, Any] = {}
63
70
  field_dict.update(self.additional_properties)
@@ -85,6 +92,8 @@ class ListVariableResponse200Item:
85
92
  field_dict["is_linked"] = is_linked
86
93
  if is_refreshed is not UNSET:
87
94
  field_dict["is_refreshed"] = is_refreshed
95
+ if expires_at is not UNSET:
96
+ field_dict["expires_at"] = expires_at
88
97
 
89
98
  return field_dict
90
99
 
@@ -117,6 +126,13 @@ class ListVariableResponse200Item:
117
126
 
118
127
  is_refreshed = d.pop("is_refreshed", UNSET)
119
128
 
129
+ _expires_at = d.pop("expires_at", UNSET)
130
+ expires_at: Union[Unset, datetime.datetime]
131
+ if isinstance(_expires_at, Unset):
132
+ expires_at = UNSET
133
+ else:
134
+ expires_at = isoparse(_expires_at)
135
+
120
136
  list_variable_response_200_item = cls(
121
137
  workspace_id=workspace_id,
122
138
  path=path,
@@ -130,6 +146,7 @@ class ListVariableResponse200Item:
130
146
  refresh_error=refresh_error,
131
147
  is_linked=is_linked,
132
148
  is_refreshed=is_refreshed,
149
+ expires_at=expires_at,
133
150
  )
134
151
 
135
152
  list_variable_response_200_item.additional_properties = d
@@ -1,7 +1,9 @@
1
+ import datetime
1
2
  from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
3
 
3
4
  from attrs import define as _attrs_define
4
5
  from attrs import field as _attrs_field
6
+ from dateutil.parser import isoparse
5
7
 
6
8
  from ..types import UNSET, Unset
7
9
 
@@ -28,6 +30,7 @@ class ListableVariable:
28
30
  refresh_error (Union[Unset, str]):
29
31
  is_linked (Union[Unset, bool]):
30
32
  is_refreshed (Union[Unset, bool]):
33
+ expires_at (Union[Unset, datetime.datetime]):
31
34
  """
32
35
 
33
36
  workspace_id: str
@@ -42,6 +45,7 @@ class ListableVariable:
42
45
  refresh_error: Union[Unset, str] = UNSET
43
46
  is_linked: Union[Unset, bool] = UNSET
44
47
  is_refreshed: Union[Unset, bool] = UNSET
48
+ expires_at: Union[Unset, datetime.datetime] = UNSET
45
49
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
46
50
 
47
51
  def to_dict(self) -> Dict[str, Any]:
@@ -58,6 +62,9 @@ class ListableVariable:
58
62
  refresh_error = self.refresh_error
59
63
  is_linked = self.is_linked
60
64
  is_refreshed = self.is_refreshed
65
+ expires_at: Union[Unset, str] = UNSET
66
+ if not isinstance(self.expires_at, Unset):
67
+ expires_at = self.expires_at.isoformat()
61
68
 
62
69
  field_dict: Dict[str, Any] = {}
63
70
  field_dict.update(self.additional_properties)
@@ -85,6 +92,8 @@ class ListableVariable:
85
92
  field_dict["is_linked"] = is_linked
86
93
  if is_refreshed is not UNSET:
87
94
  field_dict["is_refreshed"] = is_refreshed
95
+ if expires_at is not UNSET:
96
+ field_dict["expires_at"] = expires_at
88
97
 
89
98
  return field_dict
90
99
 
@@ -117,6 +126,13 @@ class ListableVariable:
117
126
 
118
127
  is_refreshed = d.pop("is_refreshed", UNSET)
119
128
 
129
+ _expires_at = d.pop("expires_at", UNSET)
130
+ expires_at: Union[Unset, datetime.datetime]
131
+ if isinstance(_expires_at, Unset):
132
+ expires_at = UNSET
133
+ else:
134
+ expires_at = isoparse(_expires_at)
135
+
120
136
  listable_variable = cls(
121
137
  workspace_id=workspace_id,
122
138
  path=path,
@@ -130,6 +146,7 @@ class ListableVariable:
130
146
  refresh_error=refresh_error,
131
147
  is_linked=is_linked,
132
148
  is_refreshed=is_refreshed,
149
+ expires_at=expires_at,
133
150
  )
134
151
 
135
152
  listable_variable.additional_properties = d
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.371.4
3
+ Version: 1.372.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -562,8 +562,8 @@ windmill_api/models/create_script_json_body_schema.py,sha256=fLtVF02xA72yAHEsO-w
562
562
  windmill_api/models/create_token_impersonate_json_body.py,sha256=_L6Kx_6KEO9tgT3Xa0A0fJ_3hKR9HywsUFrkt4sziVY,2597
563
563
  windmill_api/models/create_token_json_body.py,sha256=V0UNjbYl17wSnOQz8fofZSQKH1PZK_rLYXO0p5ag7Q4,2612
564
564
  windmill_api/models/create_user_globally_json_body.py,sha256=MrDk6Voi0gHLvhzS48pwixj7wRZ05bu1Bce5J-sXsVc,2427
565
- windmill_api/models/create_variable.py,sha256=KWGimx547XYMTtb9zWfoNenC80sL66JqM8XjL2xcx3o,2556
566
- windmill_api/models/create_variable_json_body.py,sha256=-oyIDKhjORikx5fDP19hOsEx4ok8kv7hHvThkH1ff0I,2602
565
+ windmill_api/models/create_variable.py,sha256=IJcYEB53wQ8avSx0W_ZSYi1BZ9aZ1bserdFsrSQHkA8,3227
566
+ windmill_api/models/create_variable_json_body.py,sha256=5qITUtE7-0T8tILyCMkpdzWUJmvnJxvqvyCSN5k-ytI,3273
567
567
  windmill_api/models/create_workspace.py,sha256=WO8QwIF11s_Lxgode8eC59QmBsPiepnfes6vIMcJihs,1867
568
568
  windmill_api/models/create_workspace_json_body.py,sha256=EH0XdQbDncCaLa7qWY5peYzj3cZeUGSwmwyLa_09IDg,1913
569
569
  windmill_api/models/decline_invite_json_body.py,sha256=APY6WrYS2XvpWr0TefDZUSgNN-1gICXnmDHmit9MI88,1553
@@ -1573,7 +1573,7 @@ windmill_api/models/get_top_hub_scripts_response_200.py,sha256=kqbTv8x-kJH3_FmTk
1573
1573
  windmill_api/models/get_top_hub_scripts_response_200_asks_item.py,sha256=o9hlAPS045SoJ_iObndt-2SqYhZpiJ5bbhe3nViCF2E,2669
1574
1574
  windmill_api/models/get_tutorial_progress_response_200.py,sha256=b4BtXIK5s1-7alHtT8j67cPqg39qh_u9mkK0LXE2YhA,1652
1575
1575
  windmill_api/models/get_user_response_200.py,sha256=1EIw1zAOf66Max-mO0gq6YE9QyN83U2paS5iT3GQT9k,3646
1576
- windmill_api/models/get_variable_response_200.py,sha256=3el-t3EeYnbGz8mj4_Ks3vmJy92w3f1PbgnRWDVvVaM,4759
1576
+ windmill_api/models/get_variable_response_200.py,sha256=3WK2IMm6-Jr7tvy-jfOFrt1eMIUXVQyLzTcogJZQZlw,5430
1577
1577
  windmill_api/models/get_variable_response_200_extra_perms.py,sha256=NkIQGAWfX954BcR6UBrYbATENEmbWT7-8639NOeTtdE,1330
1578
1578
  windmill_api/models/get_workspace_default_app_response_200.py,sha256=FKINlHD6u4qyUDJgJjDuDIyIsWAuvRdPKYQA9s_Y00g,1758
1579
1579
  windmill_api/models/get_workspace_encryption_key_response_200.py,sha256=Fvs0c2FiaRvYp_qRzJ4xj-gQ-2mF58Ae5dOol6Onuow,1544
@@ -2102,7 +2102,7 @@ windmill_api/models/list_users_as_super_admin_response_200_item.py,sha256=NLCj7H
2102
2102
  windmill_api/models/list_users_as_super_admin_response_200_item_login_type.py,sha256=GqFojYh0I3SpWAhKpt5iup-ck8kMDmSapmBLjZ0XX8U,198
2103
2103
  windmill_api/models/list_users_response_200_item.py,sha256=J7_wItdtNe1D2WiA4XrcnSC4RC1vNy2i8Oy1vlWPt1U,3679
2104
2104
  windmill_api/models/list_users_usage_response_200_item.py,sha256=0ZKMktaSC_LTPolx1JXEEwINvWmf03Tl4OKSakKf6JU,1910
2105
- windmill_api/models/list_variable_response_200_item.py,sha256=u-sdXLa5oAaKu4ZSoAWuguy_fJOFohZFz48Z3tSTV8I,4824
2105
+ windmill_api/models/list_variable_response_200_item.py,sha256=nrPTcHabE71NPFFws-4Zl-7I8u1JOZacAabbiVdLjfk,5495
2106
2106
  windmill_api/models/list_variable_response_200_item_extra_perms.py,sha256=Tx5hXdRHxg4SBN__jLzKf5cT09WbuLSmuOgDDkaKBlU,1358
2107
2107
  windmill_api/models/list_worker_groups_response_200_item.py,sha256=w_PZKDxTlz3OBBTitMFwj0N040mfkd7HFsEuvhThTgQ,1691
2108
2108
  windmill_api/models/list_workers_response_200_item.py,sha256=nYsA5xwHzxT0q3J_uuEVfgRBietpkc844-tCTVXhZSI,5888
@@ -2116,7 +2116,7 @@ windmill_api/models/listable_raw_app.py,sha256=WeCNeHik5L-tuUi0KApx_jB08ghhj4HNS
2116
2116
  windmill_api/models/listable_raw_app_extra_perms.py,sha256=R20ByQCUzEFOqIOdpUZajIIHDAUdzo1B1-u1C61PQFA,1287
2117
2117
  windmill_api/models/listable_resource.py,sha256=PfufZayEzxR9I47tP5seJjuT4MO4qjAEqb4DZltIfXs,5884
2118
2118
  windmill_api/models/listable_resource_extra_perms.py,sha256=zDYi-7bciAY86ws1RPe6YCbzOuVx9nExv9XFvQULKec,1294
2119
- windmill_api/models/listable_variable.py,sha256=sWAKW727AtV_kCnWwCtVG62k1NbPOhXTSqMA7FSYrPE,4677
2119
+ windmill_api/models/listable_variable.py,sha256=LL66C0SAYMH5o0DiYCtomPyk3-R947O8eYWQ_9pvU4g,5348
2120
2120
  windmill_api/models/listable_variable_extra_perms.py,sha256=viMFDewwc-Q5iYf-nyweQbxiAxxNQoUpfNkYXXSBijI,1294
2121
2121
  windmill_api/models/load_file_metadata_response_200.py,sha256=NggKsh-6uMj07SWnhiR6Qk57PCvOOy6T3CM7zkLfh4w,3550
2122
2122
  windmill_api/models/load_file_preview_response_200.py,sha256=cvqfLlkgTWLHCexILwu3DA-0QcfYTCyW8NMjlHtx8Gs,2307
@@ -2544,7 +2544,7 @@ windmill_api/models/workspace_git_sync_settings_repositories_item_exclude_types_
2544
2544
  windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1lixwUUXG6CXs,2037
2545
2545
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
2546
2546
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
2547
- windmill_api-1.371.4.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
2548
- windmill_api-1.371.4.dist-info/METADATA,sha256=t9P1XDoKkFWWmtYKL4WXyfYcJYz_aTNT82xEg9JeVQ4,5023
2549
- windmill_api-1.371.4.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
2550
- windmill_api-1.371.4.dist-info/RECORD,,
2547
+ windmill_api-1.372.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
2548
+ windmill_api-1.372.0.dist-info/METADATA,sha256=BLOSE9uRO6VYIVLvjbP9f7MXkvNwqaBsICHX4snP8tw,5023
2549
+ windmill_api-1.372.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
2550
+ windmill_api-1.372.0.dist-info/RECORD,,