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

@@ -0,0 +1,79 @@
1
+ from typing import Any, Dict, List, Type, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="TeamsChannel")
7
+
8
+
9
+ @_attrs_define
10
+ class TeamsChannel:
11
+ """
12
+ Attributes:
13
+ team_id (str): Microsoft Teams team ID
14
+ team_name (str): Microsoft Teams team name
15
+ channel_id (str): Microsoft Teams channel ID
16
+ channel_name (str): Microsoft Teams channel name
17
+ """
18
+
19
+ team_id: str
20
+ team_name: str
21
+ channel_id: str
22
+ channel_name: str
23
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
24
+
25
+ def to_dict(self) -> Dict[str, Any]:
26
+ team_id = self.team_id
27
+ team_name = self.team_name
28
+ channel_id = self.channel_id
29
+ channel_name = self.channel_name
30
+
31
+ field_dict: Dict[str, Any] = {}
32
+ field_dict.update(self.additional_properties)
33
+ field_dict.update(
34
+ {
35
+ "team_id": team_id,
36
+ "team_name": team_name,
37
+ "channel_id": channel_id,
38
+ "channel_name": channel_name,
39
+ }
40
+ )
41
+
42
+ return field_dict
43
+
44
+ @classmethod
45
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
46
+ d = src_dict.copy()
47
+ team_id = d.pop("team_id")
48
+
49
+ team_name = d.pop("team_name")
50
+
51
+ channel_id = d.pop("channel_id")
52
+
53
+ channel_name = d.pop("channel_name")
54
+
55
+ teams_channel = cls(
56
+ team_id=team_id,
57
+ team_name=team_name,
58
+ channel_id=channel_id,
59
+ channel_name=channel_name,
60
+ )
61
+
62
+ teams_channel.additional_properties = d
63
+ return teams_channel
64
+
65
+ @property
66
+ def additional_keys(self) -> List[str]:
67
+ return list(self.additional_properties.keys())
68
+
69
+ def __getitem__(self, key: str) -> Any:
70
+ return self.additional_properties[key]
71
+
72
+ def __setitem__(self, key: str, value: Any) -> None:
73
+ self.additional_properties[key] = value
74
+
75
+ def __delitem__(self, key: str) -> None:
76
+ del self.additional_properties[key]
77
+
78
+ def __contains__(self, key: str) -> bool:
79
+ return key in self.additional_properties
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.483.2
3
+ Version: 1.484.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -3783,6 +3783,7 @@ windmill_api/models/sync_teams_response_200_item_channels_item.py,sha256=cicOIVM
3783
3783
  windmill_api/models/table_to_track_item.py,sha256=jsKOo9WejPIqnb7qbBP9Nux5K1KVhqggYCs6Rl7vyqw,2318
3784
3784
  windmill_api/models/team_info.py,sha256=fsiSa1x8qDctqhR-EBDMW6r1TxO0Pv2lAbnum-UinAQ,2560
3785
3785
  windmill_api/models/team_info_channels_item.py,sha256=krwOGDaY1axR0by3lDYEFlzyOv5Ygfz_f4MFo5GciSE,2492
3786
+ windmill_api/models/teams_channel.py,sha256=IntidR8HKDy9ZIgaftGq0I2Hex78AwRfBYxF30f77fg,2174
3786
3787
  windmill_api/models/template_script.py,sha256=T4fhjMooSiI7Y5wR0LtLOU5ZRNX1cTVr8PZIB_b0mrI,2746
3787
3788
  windmill_api/models/template_script_language.py,sha256=jH31z3K0AIt7Lta-ZZgmE3GbhsHcmoxk4dn3_mLp-WU,157
3788
3789
  windmill_api/models/template_script_relations_item.py,sha256=C_eG6yEjCiQGXY3KqPvj9uamg2Rd0InWhJsAPY9EdSc,2641
@@ -3958,7 +3959,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
3958
3959
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
3959
3960
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
3960
3961
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
3961
- windmill_api-1.483.2.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
3962
- windmill_api-1.483.2.dist-info/METADATA,sha256=-sobCJtNRWLJ-zoHP2B4pff_tOsei-fhI-tlXX89zxs,5023
3963
- windmill_api-1.483.2.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
3964
- windmill_api-1.483.2.dist-info/RECORD,,
3962
+ windmill_api-1.484.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
3963
+ windmill_api-1.484.0.dist-info/METADATA,sha256=2DcQUxg89dng3VMtiVZs_wEshjBR-eatS_94RWuVT_k,5023
3964
+ windmill_api-1.484.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
3965
+ windmill_api-1.484.0.dist-info/RECORD,,