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

@@ -4,7 +4,7 @@ from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
5
5
 
6
6
  if TYPE_CHECKING:
7
- from ..models.main_arg_signature_args_item_typ_type_3_object_item import MainArgSignatureArgsItemTypType3ObjectItem
7
+ from ..models.main_arg_signature_args_item_typ_type_3_object import MainArgSignatureArgsItemTypType3Object
8
8
 
9
9
 
10
10
  T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3")
@@ -14,18 +14,14 @@ T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3")
14
14
  class MainArgSignatureArgsItemTypType3:
15
15
  """
16
16
  Attributes:
17
- object_ (List['MainArgSignatureArgsItemTypType3ObjectItem']):
17
+ object_ (MainArgSignatureArgsItemTypType3Object):
18
18
  """
19
19
 
20
- object_: List["MainArgSignatureArgsItemTypType3ObjectItem"]
20
+ object_: "MainArgSignatureArgsItemTypType3Object"
21
21
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
22
 
23
23
  def to_dict(self) -> Dict[str, Any]:
24
- object_ = []
25
- for object_item_data in self.object_:
26
- object_item = object_item_data.to_dict()
27
-
28
- object_.append(object_item)
24
+ object_ = self.object_.to_dict()
29
25
 
30
26
  field_dict: Dict[str, Any] = {}
31
27
  field_dict.update(self.additional_properties)
@@ -39,17 +35,10 @@ class MainArgSignatureArgsItemTypType3:
39
35
 
40
36
  @classmethod
41
37
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
42
- from ..models.main_arg_signature_args_item_typ_type_3_object_item import (
43
- MainArgSignatureArgsItemTypType3ObjectItem,
44
- )
38
+ from ..models.main_arg_signature_args_item_typ_type_3_object import MainArgSignatureArgsItemTypType3Object
45
39
 
46
40
  d = src_dict.copy()
47
- object_ = []
48
- _object_ = d.pop("object")
49
- for object_item_data in _object_:
50
- object_item = MainArgSignatureArgsItemTypType3ObjectItem.from_dict(object_item_data)
51
-
52
- object_.append(object_item)
41
+ object_ = MainArgSignatureArgsItemTypType3Object.from_dict(d.pop("object"))
53
42
 
54
43
  main_arg_signature_args_item_typ_type_3 = cls(
55
44
  object_=object_,
@@ -0,0 +1,87 @@
1
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..types import UNSET, Unset
7
+
8
+ if TYPE_CHECKING:
9
+ from ..models.main_arg_signature_args_item_typ_type_3_object_props_item import (
10
+ MainArgSignatureArgsItemTypType3ObjectPropsItem,
11
+ )
12
+
13
+
14
+ T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3Object")
15
+
16
+
17
+ @_attrs_define
18
+ class MainArgSignatureArgsItemTypType3Object:
19
+ """
20
+ Attributes:
21
+ name (Union[Unset, str]):
22
+ props (Union[Unset, List['MainArgSignatureArgsItemTypType3ObjectPropsItem']]):
23
+ """
24
+
25
+ name: Union[Unset, str] = UNSET
26
+ props: Union[Unset, List["MainArgSignatureArgsItemTypType3ObjectPropsItem"]] = UNSET
27
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
28
+
29
+ def to_dict(self) -> Dict[str, Any]:
30
+ name = self.name
31
+ props: Union[Unset, List[Dict[str, Any]]] = UNSET
32
+ if not isinstance(self.props, Unset):
33
+ props = []
34
+ for props_item_data in self.props:
35
+ props_item = props_item_data.to_dict()
36
+
37
+ props.append(props_item)
38
+
39
+ field_dict: Dict[str, Any] = {}
40
+ field_dict.update(self.additional_properties)
41
+ field_dict.update({})
42
+ if name is not UNSET:
43
+ field_dict["name"] = name
44
+ if props is not UNSET:
45
+ field_dict["props"] = props
46
+
47
+ return field_dict
48
+
49
+ @classmethod
50
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
51
+ from ..models.main_arg_signature_args_item_typ_type_3_object_props_item import (
52
+ MainArgSignatureArgsItemTypType3ObjectPropsItem,
53
+ )
54
+
55
+ d = src_dict.copy()
56
+ name = d.pop("name", UNSET)
57
+
58
+ props = []
59
+ _props = d.pop("props", UNSET)
60
+ for props_item_data in _props or []:
61
+ props_item = MainArgSignatureArgsItemTypType3ObjectPropsItem.from_dict(props_item_data)
62
+
63
+ props.append(props_item)
64
+
65
+ main_arg_signature_args_item_typ_type_3_object = cls(
66
+ name=name,
67
+ props=props,
68
+ )
69
+
70
+ main_arg_signature_args_item_typ_type_3_object.additional_properties = d
71
+ return main_arg_signature_args_item_typ_type_3_object
72
+
73
+ @property
74
+ def additional_keys(self) -> List[str]:
75
+ return list(self.additional_properties.keys())
76
+
77
+ def __getitem__(self, key: str) -> Any:
78
+ return self.additional_properties[key]
79
+
80
+ def __setitem__(self, key: str, value: Any) -> None:
81
+ self.additional_properties[key] = value
82
+
83
+ def __delitem__(self, key: str) -> None:
84
+ del self.additional_properties[key]
85
+
86
+ def __contains__(self, key: str) -> bool:
87
+ return key in self.additional_properties
@@ -3,37 +3,40 @@ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
5
5
 
6
- from ..models.main_arg_signature_args_item_typ_type_3_object_item_typ_type_0 import (
7
- MainArgSignatureArgsItemTypType3ObjectItemTypType0,
6
+ from ..models.main_arg_signature_args_item_typ_type_3_object_props_item_typ_type_0 import (
7
+ MainArgSignatureArgsItemTypType3ObjectPropsItemTypType0,
8
8
  )
9
9
 
10
10
  if TYPE_CHECKING:
11
- from ..models.main_arg_signature_args_item_typ_type_3_object_item_typ_type_1 import (
12
- MainArgSignatureArgsItemTypType3ObjectItemTypType1,
11
+ from ..models.main_arg_signature_args_item_typ_type_3_object_props_item_typ_type_1 import (
12
+ MainArgSignatureArgsItemTypType3ObjectPropsItemTypType1,
13
13
  )
14
14
 
15
15
 
16
- T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3ObjectItem")
16
+ T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3ObjectPropsItem")
17
17
 
18
18
 
19
19
  @_attrs_define
20
- class MainArgSignatureArgsItemTypType3ObjectItem:
20
+ class MainArgSignatureArgsItemTypType3ObjectPropsItem:
21
21
  """
22
22
  Attributes:
23
23
  key (str):
24
- typ (Union['MainArgSignatureArgsItemTypType3ObjectItemTypType1',
25
- MainArgSignatureArgsItemTypType3ObjectItemTypType0]):
24
+ typ (Union['MainArgSignatureArgsItemTypType3ObjectPropsItemTypType1',
25
+ MainArgSignatureArgsItemTypType3ObjectPropsItemTypType0]):
26
26
  """
27
27
 
28
28
  key: str
29
- typ: Union["MainArgSignatureArgsItemTypType3ObjectItemTypType1", MainArgSignatureArgsItemTypType3ObjectItemTypType0]
29
+ typ: Union[
30
+ "MainArgSignatureArgsItemTypType3ObjectPropsItemTypType1",
31
+ MainArgSignatureArgsItemTypType3ObjectPropsItemTypType0,
32
+ ]
30
33
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
31
34
 
32
35
  def to_dict(self) -> Dict[str, Any]:
33
36
  key = self.key
34
37
  typ: Union[Dict[str, Any], str]
35
38
 
36
- if isinstance(self.typ, MainArgSignatureArgsItemTypType3ObjectItemTypType0):
39
+ if isinstance(self.typ, MainArgSignatureArgsItemTypType3ObjectPropsItemTypType0):
37
40
  typ = self.typ.value
38
41
 
39
42
  else:
@@ -52,8 +55,8 @@ class MainArgSignatureArgsItemTypType3ObjectItem:
52
55
 
53
56
  @classmethod
54
57
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
55
- from ..models.main_arg_signature_args_item_typ_type_3_object_item_typ_type_1 import (
56
- MainArgSignatureArgsItemTypType3ObjectItemTypType1,
58
+ from ..models.main_arg_signature_args_item_typ_type_3_object_props_item_typ_type_1 import (
59
+ MainArgSignatureArgsItemTypType3ObjectPropsItemTypType1,
57
60
  )
58
61
 
59
62
  d = src_dict.copy()
@@ -62,31 +65,32 @@ class MainArgSignatureArgsItemTypType3ObjectItem:
62
65
  def _parse_typ(
63
66
  data: object,
64
67
  ) -> Union[
65
- "MainArgSignatureArgsItemTypType3ObjectItemTypType1", MainArgSignatureArgsItemTypType3ObjectItemTypType0
68
+ "MainArgSignatureArgsItemTypType3ObjectPropsItemTypType1",
69
+ MainArgSignatureArgsItemTypType3ObjectPropsItemTypType0,
66
70
  ]:
67
71
  try:
68
72
  if not isinstance(data, str):
69
73
  raise TypeError()
70
- typ_type_0 = MainArgSignatureArgsItemTypType3ObjectItemTypType0(data)
74
+ typ_type_0 = MainArgSignatureArgsItemTypType3ObjectPropsItemTypType0(data)
71
75
 
72
76
  return typ_type_0
73
77
  except: # noqa: E722
74
78
  pass
75
79
  if not isinstance(data, dict):
76
80
  raise TypeError()
77
- typ_type_1 = MainArgSignatureArgsItemTypType3ObjectItemTypType1.from_dict(data)
81
+ typ_type_1 = MainArgSignatureArgsItemTypType3ObjectPropsItemTypType1.from_dict(data)
78
82
 
79
83
  return typ_type_1
80
84
 
81
85
  typ = _parse_typ(d.pop("typ"))
82
86
 
83
- main_arg_signature_args_item_typ_type_3_object_item = cls(
87
+ main_arg_signature_args_item_typ_type_3_object_props_item = cls(
84
88
  key=key,
85
89
  typ=typ,
86
90
  )
87
91
 
88
- main_arg_signature_args_item_typ_type_3_object_item.additional_properties = d
89
- return main_arg_signature_args_item_typ_type_3_object_item
92
+ main_arg_signature_args_item_typ_type_3_object_props_item.additional_properties = d
93
+ return main_arg_signature_args_item_typ_type_3_object_props_item
90
94
 
91
95
  @property
92
96
  def additional_keys(self) -> List[str]:
@@ -1,7 +1,7 @@
1
1
  from enum import Enum
2
2
 
3
3
 
4
- class MainArgSignatureArgsItemTypType3ObjectItemTypType0(str, Enum):
4
+ class MainArgSignatureArgsItemTypType3ObjectPropsItemTypType0(str, Enum):
5
5
  BOOL = "bool"
6
6
  BYTES = "bytes"
7
7
  DATETIME = "datetime"
@@ -3,11 +3,11 @@ from typing import Any, Dict, List, Type, TypeVar
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
5
5
 
6
- T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3ObjectItemTypType1")
6
+ T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3ObjectPropsItemTypType1")
7
7
 
8
8
 
9
9
  @_attrs_define
10
- class MainArgSignatureArgsItemTypType3ObjectItemTypType1:
10
+ class MainArgSignatureArgsItemTypType3ObjectPropsItemTypType1:
11
11
  """
12
12
  Attributes:
13
13
  str_ (Any):
@@ -34,12 +34,12 @@ class MainArgSignatureArgsItemTypType3ObjectItemTypType1:
34
34
  d = src_dict.copy()
35
35
  str_ = d.pop("str")
36
36
 
37
- main_arg_signature_args_item_typ_type_3_object_item_typ_type_1 = cls(
37
+ main_arg_signature_args_item_typ_type_3_object_props_item_typ_type_1 = cls(
38
38
  str_=str_,
39
39
  )
40
40
 
41
- main_arg_signature_args_item_typ_type_3_object_item_typ_type_1.additional_properties = d
42
- return main_arg_signature_args_item_typ_type_3_object_item_typ_type_1
41
+ main_arg_signature_args_item_typ_type_3_object_props_item_typ_type_1.additional_properties = d
42
+ return main_arg_signature_args_item_typ_type_3_object_props_item_typ_type_1
43
43
 
44
44
  @property
45
45
  def additional_keys(self) -> List[str]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.511.0
3
+ Version: 1.513.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -3545,10 +3545,11 @@ windmill_api/models/main_arg_signature_args_item.py,sha256=ou9T0BX-eI4SxZBx4DBVg
3545
3545
  windmill_api/models/main_arg_signature_args_item_typ_type_0.py,sha256=WwMiD8sTa5uCJYX8jhXgd_O6Au_87k_LL-TCmxm1DGI,315
3546
3546
  windmill_api/models/main_arg_signature_args_item_typ_type_1.py,sha256=wMPLvplw0swW2C9nqHNFqWXSbLxQjuI3UZxgkNv-Z_o,1610
3547
3547
  windmill_api/models/main_arg_signature_args_item_typ_type_2.py,sha256=fNVuWsfHa7uag4TA1rHyEQrGCPd2OKSqzkGBQTa0cXE,1675
3548
- windmill_api/models/main_arg_signature_args_item_typ_type_3.py,sha256=tnEOg0ecp9my0RsARRxabj4YJQEGtlrmRKlqren2w_4,2299
3549
- windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item.py,sha256=53Rkuj7Si2CfxT7T4A3XOhQe6KrtZBADdaLFcJ-OQgE,3334
3550
- windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item_typ_type_0.py,sha256=uSYe1MyUYfHbxOdQLbprSCVyGFvspGeS2z2nYibIxxM,333
3551
- windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item_typ_type_1.py,sha256=MmNnw8hnw_omUnDL86M0-ZdcyDRiASOYQ9_bqkTn9Rs,1643
3548
+ windmill_api/models/main_arg_signature_args_item_typ_type_3.py,sha256=8n2sXVqzEuzdRNNlQDnaK_RtPGdAkJzFL9Sets73jmk,1962
3549
+ windmill_api/models/main_arg_signature_args_item_typ_type_3_object.py,sha256=k1F27D-lO2FwPPMJJzpO7LSBJFtZ1gql_XGevjeXTho,2789
3550
+ windmill_api/models/main_arg_signature_args_item_typ_type_3_object_props_item.py,sha256=VvJsykAI96JUPNIbaPSXI6mb4culmCVLdl2ASlcfwYs,3476
3551
+ windmill_api/models/main_arg_signature_args_item_typ_type_3_object_props_item_typ_type_0.py,sha256=BU80hY7xeFO-u2iCmIZNKa6SJWVjnEjah6CuKjaRhCQ,338
3552
+ windmill_api/models/main_arg_signature_args_item_typ_type_3_object_props_item_typ_type_1.py,sha256=WwEHdg0A9x1ZgTerB-69X8gOEYmrk9Edy8_UZQeGefo,1671
3552
3553
  windmill_api/models/main_arg_signature_args_item_typ_type_4.py,sha256=nRHqZiWA0LA62RyaAKOq6pfY_3ZeBj7BynE9JPxCOX0,3119
3553
3554
  windmill_api/models/main_arg_signature_args_item_typ_type_4_list_type_0.py,sha256=nXAgJcv7IyaWOXfz5_uOuRZ8_2dRfzS9Kgfgr_s78ns,324
3554
3555
  windmill_api/models/main_arg_signature_args_item_typ_type_4_list_type_1.py,sha256=FdHZNA_F2MXPpdNfHTUeroQf82quYbTltYq5ygB4-BM,1592
@@ -4354,7 +4355,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
4354
4355
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
4355
4356
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
4356
4357
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
4357
- windmill_api-1.511.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
4358
- windmill_api-1.511.0.dist-info/METADATA,sha256=2SJlXpkC7mcg3nKGyWjenrh1njxE_PDas4krzKpmnec,5023
4359
- windmill_api-1.511.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
4360
- windmill_api-1.511.0.dist-info/RECORD,,
4358
+ windmill_api-1.513.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
4359
+ windmill_api-1.513.0.dist-info/METADATA,sha256=4lFLJWCQ8uhxe7Z14wR4RT8rNA7IIptWIE5qnBZ7mvU,5023
4360
+ windmill_api-1.513.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
4361
+ windmill_api-1.513.0.dist-info/RECORD,,