dart-tools 0.7.2__py3-none-any.whl → 0.7.3__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 dart-tools might be problematic. Click here for more details.
- dart/generated/api/__init__.py +5 -12
- dart/generated/api/dartboard/retrieve_dartboard.py +3 -1
- dart/generated/api/doc/delete_doc.py +3 -1
- dart/generated/api/doc/retrieve_doc.py +3 -1
- dart/generated/api/doc/update_doc.py +3 -1
- dart/generated/api/folder/retrieve_folder.py +3 -1
- dart/generated/api/task/delete_task.py +3 -1
- dart/generated/api/task/retrieve_task.py +3 -1
- dart/generated/api/task/update_task.py +3 -1
- dart/generated/api/view/retrieve_view.py +3 -1
- dart/generated/models/__init__.py +42 -0
- dart/generated/models/concise_task.py +68 -7
- dart/generated/models/custom_properties.py +131 -0
- dart/generated/models/task.py +68 -7
- dart/generated/models/task_create.py +66 -15
- dart/generated/models/task_update.py +66 -15
- dart/generated/models/user_space_configuration.py +242 -0
- dart/generated/models/user_space_configuration_custom_property_checkbox_type_def.py +74 -0
- dart/generated/models/user_space_configuration_custom_property_dates_type_def.py +82 -0
- dart/generated/models/user_space_configuration_custom_property_multiselect_type_def.py +82 -0
- dart/generated/models/user_space_configuration_custom_property_number_type_def.py +86 -0
- dart/generated/models/user_space_configuration_custom_property_number_type_def_custom_property_number_format_type_def.py +10 -0
- dart/generated/models/user_space_configuration_custom_property_select_type_def.py +82 -0
- dart/generated/models/user_space_configuration_custom_property_status_type_def.py +74 -0
- dart/generated/models/user_space_configuration_custom_property_text_type_def.py +74 -0
- dart/generated/models/user_space_configuration_custom_property_time_tracking_type_def.py +74 -0
- dart/generated/models/user_space_configuration_custom_property_user_type_def.py +82 -0
- {dart_tools-0.7.2.dist-info → dart_tools-0.7.3.dist-info}/METADATA +7 -7
- {dart_tools-0.7.2.dist-info → dart_tools-0.7.3.dist-info}/RECORD +33 -23
- {dart_tools-0.7.2.dist-info → dart_tools-0.7.3.dist-info}/WHEEL +1 -1
- {dart_tools-0.7.2.dist-info → dart_tools-0.7.3.dist-info}/licenses/LICENSE +1 -1
- dart/generated/py.typed +0 -1
- {dart_tools-0.7.2.dist-info → dart_tools-0.7.3.dist-info}/entry_points.txt +0 -0
- {dart_tools-0.7.2.dist-info → dart_tools-0.7.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import (
|
|
3
|
+
Any,
|
|
4
|
+
Literal,
|
|
5
|
+
TypeVar,
|
|
6
|
+
cast,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from attrs import define as _attrs_define
|
|
10
|
+
from attrs import field as _attrs_field
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="UserSpaceConfigurationCustomPropertyCheckboxTypeDef")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class UserSpaceConfigurationCustomPropertyCheckboxTypeDef:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
name (str):
|
|
20
|
+
type_ (Literal['Checkbox']):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
name: str
|
|
24
|
+
type_: Literal["Checkbox"]
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
|
+
name = self.name
|
|
29
|
+
|
|
30
|
+
type_ = self.type_
|
|
31
|
+
|
|
32
|
+
field_dict: dict[str, Any] = {}
|
|
33
|
+
field_dict.update(self.additional_properties)
|
|
34
|
+
field_dict.update(
|
|
35
|
+
{
|
|
36
|
+
"name": name,
|
|
37
|
+
"type": type_,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
return field_dict
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
45
|
+
d = dict(src_dict)
|
|
46
|
+
name = d.pop("name")
|
|
47
|
+
|
|
48
|
+
type_ = cast(Literal["Checkbox"], d.pop("type"))
|
|
49
|
+
if type_ != "Checkbox":
|
|
50
|
+
raise ValueError(f"type must match const 'Checkbox', got '{type_}'")
|
|
51
|
+
|
|
52
|
+
user_space_configuration_custom_property_checkbox_type_def = cls(
|
|
53
|
+
name=name,
|
|
54
|
+
type_=type_,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
user_space_configuration_custom_property_checkbox_type_def.additional_properties = d
|
|
58
|
+
return user_space_configuration_custom_property_checkbox_type_def
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def additional_keys(self) -> list[str]:
|
|
62
|
+
return list(self.additional_properties.keys())
|
|
63
|
+
|
|
64
|
+
def __getitem__(self, key: str) -> Any:
|
|
65
|
+
return self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
68
|
+
self.additional_properties[key] = value
|
|
69
|
+
|
|
70
|
+
def __delitem__(self, key: str) -> None:
|
|
71
|
+
del self.additional_properties[key]
|
|
72
|
+
|
|
73
|
+
def __contains__(self, key: str) -> bool:
|
|
74
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import (
|
|
3
|
+
Any,
|
|
4
|
+
Literal,
|
|
5
|
+
TypeVar,
|
|
6
|
+
cast,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from attrs import define as _attrs_define
|
|
10
|
+
from attrs import field as _attrs_field
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="UserSpaceConfigurationCustomPropertyDatesTypeDef")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class UserSpaceConfigurationCustomPropertyDatesTypeDef:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
name (str):
|
|
20
|
+
type_ (Literal['Dates']):
|
|
21
|
+
is_range (bool):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
name: str
|
|
25
|
+
type_: Literal["Dates"]
|
|
26
|
+
is_range: bool
|
|
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
|
+
|
|
32
|
+
type_ = self.type_
|
|
33
|
+
|
|
34
|
+
is_range = self.is_range
|
|
35
|
+
|
|
36
|
+
field_dict: dict[str, Any] = {}
|
|
37
|
+
field_dict.update(self.additional_properties)
|
|
38
|
+
field_dict.update(
|
|
39
|
+
{
|
|
40
|
+
"name": name,
|
|
41
|
+
"type": type_,
|
|
42
|
+
"isRange": is_range,
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
return field_dict
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
50
|
+
d = dict(src_dict)
|
|
51
|
+
name = d.pop("name")
|
|
52
|
+
|
|
53
|
+
type_ = cast(Literal["Dates"], d.pop("type"))
|
|
54
|
+
if type_ != "Dates":
|
|
55
|
+
raise ValueError(f"type must match const 'Dates', got '{type_}'")
|
|
56
|
+
|
|
57
|
+
is_range = d.pop("isRange")
|
|
58
|
+
|
|
59
|
+
user_space_configuration_custom_property_dates_type_def = cls(
|
|
60
|
+
name=name,
|
|
61
|
+
type_=type_,
|
|
62
|
+
is_range=is_range,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
user_space_configuration_custom_property_dates_type_def.additional_properties = d
|
|
66
|
+
return user_space_configuration_custom_property_dates_type_def
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def additional_keys(self) -> list[str]:
|
|
70
|
+
return list(self.additional_properties.keys())
|
|
71
|
+
|
|
72
|
+
def __getitem__(self, key: str) -> Any:
|
|
73
|
+
return self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
76
|
+
self.additional_properties[key] = value
|
|
77
|
+
|
|
78
|
+
def __delitem__(self, key: str) -> None:
|
|
79
|
+
del self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __contains__(self, key: str) -> bool:
|
|
82
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import (
|
|
3
|
+
Any,
|
|
4
|
+
Literal,
|
|
5
|
+
TypeVar,
|
|
6
|
+
cast,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from attrs import define as _attrs_define
|
|
10
|
+
from attrs import field as _attrs_field
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="UserSpaceConfigurationCustomPropertyMultiselectTypeDef")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class UserSpaceConfigurationCustomPropertyMultiselectTypeDef:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
name (str):
|
|
20
|
+
type_ (Literal['Multiselect']):
|
|
21
|
+
options (list[str]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
name: str
|
|
25
|
+
type_: Literal["Multiselect"]
|
|
26
|
+
options: list[str]
|
|
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
|
+
|
|
32
|
+
type_ = self.type_
|
|
33
|
+
|
|
34
|
+
options = self.options
|
|
35
|
+
|
|
36
|
+
field_dict: dict[str, Any] = {}
|
|
37
|
+
field_dict.update(self.additional_properties)
|
|
38
|
+
field_dict.update(
|
|
39
|
+
{
|
|
40
|
+
"name": name,
|
|
41
|
+
"type": type_,
|
|
42
|
+
"options": options,
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
return field_dict
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
50
|
+
d = dict(src_dict)
|
|
51
|
+
name = d.pop("name")
|
|
52
|
+
|
|
53
|
+
type_ = cast(Literal["Multiselect"], d.pop("type"))
|
|
54
|
+
if type_ != "Multiselect":
|
|
55
|
+
raise ValueError(f"type must match const 'Multiselect', got '{type_}'")
|
|
56
|
+
|
|
57
|
+
options = cast(list[str], d.pop("options"))
|
|
58
|
+
|
|
59
|
+
user_space_configuration_custom_property_multiselect_type_def = cls(
|
|
60
|
+
name=name,
|
|
61
|
+
type_=type_,
|
|
62
|
+
options=options,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
user_space_configuration_custom_property_multiselect_type_def.additional_properties = d
|
|
66
|
+
return user_space_configuration_custom_property_multiselect_type_def
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def additional_keys(self) -> list[str]:
|
|
70
|
+
return list(self.additional_properties.keys())
|
|
71
|
+
|
|
72
|
+
def __getitem__(self, key: str) -> Any:
|
|
73
|
+
return self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
76
|
+
self.additional_properties[key] = value
|
|
77
|
+
|
|
78
|
+
def __delitem__(self, key: str) -> None:
|
|
79
|
+
del self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __contains__(self, key: str) -> bool:
|
|
82
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import (
|
|
3
|
+
Any,
|
|
4
|
+
Literal,
|
|
5
|
+
TypeVar,
|
|
6
|
+
cast,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from attrs import define as _attrs_define
|
|
10
|
+
from attrs import field as _attrs_field
|
|
11
|
+
|
|
12
|
+
from ..models.user_space_configuration_custom_property_number_type_def_custom_property_number_format_type_def import (
|
|
13
|
+
UserSpaceConfigurationCustomPropertyNumberTypeDefCustomPropertyNumberFormatTypeDef,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
T = TypeVar("T", bound="UserSpaceConfigurationCustomPropertyNumberTypeDef")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@_attrs_define
|
|
20
|
+
class UserSpaceConfigurationCustomPropertyNumberTypeDef:
|
|
21
|
+
"""
|
|
22
|
+
Attributes:
|
|
23
|
+
name (str):
|
|
24
|
+
type_ (Literal['Number']):
|
|
25
|
+
format_ (UserSpaceConfigurationCustomPropertyNumberTypeDefCustomPropertyNumberFormatTypeDef):
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
name: str
|
|
29
|
+
type_: Literal["Number"]
|
|
30
|
+
format_: UserSpaceConfigurationCustomPropertyNumberTypeDefCustomPropertyNumberFormatTypeDef
|
|
31
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
|
+
|
|
33
|
+
def to_dict(self) -> dict[str, Any]:
|
|
34
|
+
name = self.name
|
|
35
|
+
|
|
36
|
+
type_ = self.type_
|
|
37
|
+
|
|
38
|
+
format_ = self.format_.value
|
|
39
|
+
|
|
40
|
+
field_dict: dict[str, Any] = {}
|
|
41
|
+
field_dict.update(self.additional_properties)
|
|
42
|
+
field_dict.update(
|
|
43
|
+
{
|
|
44
|
+
"name": name,
|
|
45
|
+
"type": type_,
|
|
46
|
+
"format": format_,
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
return field_dict
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
54
|
+
d = dict(src_dict)
|
|
55
|
+
name = d.pop("name")
|
|
56
|
+
|
|
57
|
+
type_ = cast(Literal["Number"], d.pop("type"))
|
|
58
|
+
if type_ != "Number":
|
|
59
|
+
raise ValueError(f"type must match const 'Number', got '{type_}'")
|
|
60
|
+
|
|
61
|
+
format_ = UserSpaceConfigurationCustomPropertyNumberTypeDefCustomPropertyNumberFormatTypeDef(d.pop("format"))
|
|
62
|
+
|
|
63
|
+
user_space_configuration_custom_property_number_type_def = cls(
|
|
64
|
+
name=name,
|
|
65
|
+
type_=type_,
|
|
66
|
+
format_=format_,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
user_space_configuration_custom_property_number_type_def.additional_properties = d
|
|
70
|
+
return user_space_configuration_custom_property_number_type_def
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def additional_keys(self) -> list[str]:
|
|
74
|
+
return list(self.additional_properties.keys())
|
|
75
|
+
|
|
76
|
+
def __getitem__(self, key: str) -> Any:
|
|
77
|
+
return self.additional_properties[key]
|
|
78
|
+
|
|
79
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
80
|
+
self.additional_properties[key] = value
|
|
81
|
+
|
|
82
|
+
def __delitem__(self, key: str) -> None:
|
|
83
|
+
del self.additional_properties[key]
|
|
84
|
+
|
|
85
|
+
def __contains__(self, key: str) -> bool:
|
|
86
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import (
|
|
3
|
+
Any,
|
|
4
|
+
Literal,
|
|
5
|
+
TypeVar,
|
|
6
|
+
cast,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from attrs import define as _attrs_define
|
|
10
|
+
from attrs import field as _attrs_field
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="UserSpaceConfigurationCustomPropertySelectTypeDef")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class UserSpaceConfigurationCustomPropertySelectTypeDef:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
name (str):
|
|
20
|
+
type_ (Literal['Select']):
|
|
21
|
+
options (list[str]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
name: str
|
|
25
|
+
type_: Literal["Select"]
|
|
26
|
+
options: list[str]
|
|
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
|
+
|
|
32
|
+
type_ = self.type_
|
|
33
|
+
|
|
34
|
+
options = self.options
|
|
35
|
+
|
|
36
|
+
field_dict: dict[str, Any] = {}
|
|
37
|
+
field_dict.update(self.additional_properties)
|
|
38
|
+
field_dict.update(
|
|
39
|
+
{
|
|
40
|
+
"name": name,
|
|
41
|
+
"type": type_,
|
|
42
|
+
"options": options,
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
return field_dict
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
50
|
+
d = dict(src_dict)
|
|
51
|
+
name = d.pop("name")
|
|
52
|
+
|
|
53
|
+
type_ = cast(Literal["Select"], d.pop("type"))
|
|
54
|
+
if type_ != "Select":
|
|
55
|
+
raise ValueError(f"type must match const 'Select', got '{type_}'")
|
|
56
|
+
|
|
57
|
+
options = cast(list[str], d.pop("options"))
|
|
58
|
+
|
|
59
|
+
user_space_configuration_custom_property_select_type_def = cls(
|
|
60
|
+
name=name,
|
|
61
|
+
type_=type_,
|
|
62
|
+
options=options,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
user_space_configuration_custom_property_select_type_def.additional_properties = d
|
|
66
|
+
return user_space_configuration_custom_property_select_type_def
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def additional_keys(self) -> list[str]:
|
|
70
|
+
return list(self.additional_properties.keys())
|
|
71
|
+
|
|
72
|
+
def __getitem__(self, key: str) -> Any:
|
|
73
|
+
return self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
76
|
+
self.additional_properties[key] = value
|
|
77
|
+
|
|
78
|
+
def __delitem__(self, key: str) -> None:
|
|
79
|
+
del self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __contains__(self, key: str) -> bool:
|
|
82
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import (
|
|
3
|
+
Any,
|
|
4
|
+
Literal,
|
|
5
|
+
TypeVar,
|
|
6
|
+
cast,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from attrs import define as _attrs_define
|
|
10
|
+
from attrs import field as _attrs_field
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="UserSpaceConfigurationCustomPropertyStatusTypeDef")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class UserSpaceConfigurationCustomPropertyStatusTypeDef:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
name (str):
|
|
20
|
+
type_ (Literal['Status']):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
name: str
|
|
24
|
+
type_: Literal["Status"]
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
|
+
name = self.name
|
|
29
|
+
|
|
30
|
+
type_ = self.type_
|
|
31
|
+
|
|
32
|
+
field_dict: dict[str, Any] = {}
|
|
33
|
+
field_dict.update(self.additional_properties)
|
|
34
|
+
field_dict.update(
|
|
35
|
+
{
|
|
36
|
+
"name": name,
|
|
37
|
+
"type": type_,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
return field_dict
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
45
|
+
d = dict(src_dict)
|
|
46
|
+
name = d.pop("name")
|
|
47
|
+
|
|
48
|
+
type_ = cast(Literal["Status"], d.pop("type"))
|
|
49
|
+
if type_ != "Status":
|
|
50
|
+
raise ValueError(f"type must match const 'Status', got '{type_}'")
|
|
51
|
+
|
|
52
|
+
user_space_configuration_custom_property_status_type_def = cls(
|
|
53
|
+
name=name,
|
|
54
|
+
type_=type_,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
user_space_configuration_custom_property_status_type_def.additional_properties = d
|
|
58
|
+
return user_space_configuration_custom_property_status_type_def
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def additional_keys(self) -> list[str]:
|
|
62
|
+
return list(self.additional_properties.keys())
|
|
63
|
+
|
|
64
|
+
def __getitem__(self, key: str) -> Any:
|
|
65
|
+
return self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
68
|
+
self.additional_properties[key] = value
|
|
69
|
+
|
|
70
|
+
def __delitem__(self, key: str) -> None:
|
|
71
|
+
del self.additional_properties[key]
|
|
72
|
+
|
|
73
|
+
def __contains__(self, key: str) -> bool:
|
|
74
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import (
|
|
3
|
+
Any,
|
|
4
|
+
Literal,
|
|
5
|
+
TypeVar,
|
|
6
|
+
cast,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from attrs import define as _attrs_define
|
|
10
|
+
from attrs import field as _attrs_field
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="UserSpaceConfigurationCustomPropertyTextTypeDef")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class UserSpaceConfigurationCustomPropertyTextTypeDef:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
name (str):
|
|
20
|
+
type_ (Literal['Text']):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
name: str
|
|
24
|
+
type_: Literal["Text"]
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
|
+
name = self.name
|
|
29
|
+
|
|
30
|
+
type_ = self.type_
|
|
31
|
+
|
|
32
|
+
field_dict: dict[str, Any] = {}
|
|
33
|
+
field_dict.update(self.additional_properties)
|
|
34
|
+
field_dict.update(
|
|
35
|
+
{
|
|
36
|
+
"name": name,
|
|
37
|
+
"type": type_,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
return field_dict
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
45
|
+
d = dict(src_dict)
|
|
46
|
+
name = d.pop("name")
|
|
47
|
+
|
|
48
|
+
type_ = cast(Literal["Text"], d.pop("type"))
|
|
49
|
+
if type_ != "Text":
|
|
50
|
+
raise ValueError(f"type must match const 'Text', got '{type_}'")
|
|
51
|
+
|
|
52
|
+
user_space_configuration_custom_property_text_type_def = cls(
|
|
53
|
+
name=name,
|
|
54
|
+
type_=type_,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
user_space_configuration_custom_property_text_type_def.additional_properties = d
|
|
58
|
+
return user_space_configuration_custom_property_text_type_def
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def additional_keys(self) -> list[str]:
|
|
62
|
+
return list(self.additional_properties.keys())
|
|
63
|
+
|
|
64
|
+
def __getitem__(self, key: str) -> Any:
|
|
65
|
+
return self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
68
|
+
self.additional_properties[key] = value
|
|
69
|
+
|
|
70
|
+
def __delitem__(self, key: str) -> None:
|
|
71
|
+
del self.additional_properties[key]
|
|
72
|
+
|
|
73
|
+
def __contains__(self, key: str) -> bool:
|
|
74
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import (
|
|
3
|
+
Any,
|
|
4
|
+
Literal,
|
|
5
|
+
TypeVar,
|
|
6
|
+
cast,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from attrs import define as _attrs_define
|
|
10
|
+
from attrs import field as _attrs_field
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="UserSpaceConfigurationCustomPropertyTimeTrackingTypeDef")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class UserSpaceConfigurationCustomPropertyTimeTrackingTypeDef:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
name (str):
|
|
20
|
+
type_ (Literal['Time tracking']):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
name: str
|
|
24
|
+
type_: Literal["Time tracking"]
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
|
+
name = self.name
|
|
29
|
+
|
|
30
|
+
type_ = self.type_
|
|
31
|
+
|
|
32
|
+
field_dict: dict[str, Any] = {}
|
|
33
|
+
field_dict.update(self.additional_properties)
|
|
34
|
+
field_dict.update(
|
|
35
|
+
{
|
|
36
|
+
"name": name,
|
|
37
|
+
"type": type_,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
return field_dict
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
45
|
+
d = dict(src_dict)
|
|
46
|
+
name = d.pop("name")
|
|
47
|
+
|
|
48
|
+
type_ = cast(Literal["Time tracking"], d.pop("type"))
|
|
49
|
+
if type_ != "Time tracking":
|
|
50
|
+
raise ValueError(f"type must match const 'Time tracking', got '{type_}'")
|
|
51
|
+
|
|
52
|
+
user_space_configuration_custom_property_time_tracking_type_def = cls(
|
|
53
|
+
name=name,
|
|
54
|
+
type_=type_,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
user_space_configuration_custom_property_time_tracking_type_def.additional_properties = d
|
|
58
|
+
return user_space_configuration_custom_property_time_tracking_type_def
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def additional_keys(self) -> list[str]:
|
|
62
|
+
return list(self.additional_properties.keys())
|
|
63
|
+
|
|
64
|
+
def __getitem__(self, key: str) -> Any:
|
|
65
|
+
return self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
68
|
+
self.additional_properties[key] = value
|
|
69
|
+
|
|
70
|
+
def __delitem__(self, key: str) -> None:
|
|
71
|
+
del self.additional_properties[key]
|
|
72
|
+
|
|
73
|
+
def __contains__(self, key: str) -> bool:
|
|
74
|
+
return key in self.additional_properties
|