thrustlab 0.1.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.
Files changed (119) hide show
  1. thrustlab/__init__.py +23 -0
  2. thrustlab/_async_polling.py +47 -0
  3. thrustlab/_http.py +166 -0
  4. thrustlab/_models/__init__.py +211 -0
  5. thrustlab/_models/api_key.py +184 -0
  6. thrustlab/_models/api_key_create.py +74 -0
  7. thrustlab/_models/api_key_with_secret.py +192 -0
  8. thrustlab/_models/billing_portal_session_resource.py +74 -0
  9. thrustlab/_models/checkout_session_resource.py +94 -0
  10. thrustlab/_models/component_brand.py +80 -0
  11. thrustlab/_models/component_brands_response.py +108 -0
  12. thrustlab/_models/component_create_body.py +83 -0
  13. thrustlab/_models/component_create_body_spec_json.py +46 -0
  14. thrustlab/_models/component_list_response.py +108 -0
  15. thrustlab/_models/component_patch.py +111 -0
  16. thrustlab/_models/component_patch_spec_json_type_0.py +46 -0
  17. thrustlab/_models/component_resource.py +188 -0
  18. thrustlab/_models/component_resource_spec_json.py +46 -0
  19. thrustlab/_models/create_webhook_endpoint_v1_webhook_endpoints_post_response_create_webhook_endpoint_v1_webhook_endpoints_post.py +50 -0
  20. thrustlab/_models/credit_balance_resource.py +135 -0
  21. thrustlab/_models/credit_bucket_breakdown.py +92 -0
  22. thrustlab/_models/credit_bucket_breakdown_type.py +9 -0
  23. thrustlab/_models/credit_usage_event_resource.py +154 -0
  24. thrustlab/_models/credit_usage_event_resource_credit_type.py +9 -0
  25. thrustlab/_models/credit_usage_event_resource_type.py +16 -0
  26. thrustlab/_models/credit_usage_list_response.py +116 -0
  27. thrustlab/_models/credit_usage_related_resource.py +71 -0
  28. thrustlab/_models/credit_usage_related_resource_object.py +9 -0
  29. thrustlab/_models/fire_test_event_v1_webhook_endpoints_public_id_test_post_response_fire_test_event_v1_webhook_endpoints_public_id_test_post.py +48 -0
  30. thrustlab/_models/get_delivery_v1_webhook_endpoints_public_id_deliveries_delivery_public_id_get_response_get_delivery_v1_webhook_endpoints_public_id_deliveries_delivery_public_id_get.py +49 -0
  31. thrustlab/_models/get_event_v1_events_event_id_get_response_get_event_v1_events_event_id_get.py +46 -0
  32. thrustlab/_models/get_webhook_endpoint_v1_webhook_endpoints_public_id_get_response_get_webhook_endpoint_v1_webhook_endpoints_public_id_get.py +48 -0
  33. thrustlab/_models/http_validation_error.py +79 -0
  34. thrustlab/_models/list_deliveries_v1_webhook_endpoints_public_id_deliveries_get_response_list_deliveries_v1_webhook_endpoints_public_id_deliveries_get.py +49 -0
  35. thrustlab/_models/list_events_v1_events_get_response_list_events_v1_events_get.py +46 -0
  36. thrustlab/_models/list_response_api_key.py +116 -0
  37. thrustlab/_models/list_webhook_endpoints_v1_webhook_endpoints_get_response_list_webhook_endpoints_v1_webhook_endpoints_get.py +46 -0
  38. thrustlab/_models/patch_webhook_endpoint_v1_webhook_endpoints_public_id_patch_response_patch_webhook_endpoint_v1_webhook_endpoints_public_id_patch.py +49 -0
  39. thrustlab/_models/portal_session_in.py +42 -0
  40. thrustlab/_models/project_create_body.py +103 -0
  41. thrustlab/_models/project_list_response.py +108 -0
  42. thrustlab/_models/project_patch.py +113 -0
  43. thrustlab/_models/project_resource.py +127 -0
  44. thrustlab/_models/retry_delivery_v1_webhook_endpoints_public_id_deliveries_delivery_public_id_retry_post_response_retry_delivery_v1_webhook_endpoints_public_id_deliveries_delivery_public_id_retry_post.py +49 -0
  45. thrustlab/_models/rotate_webhook_secret_v1_webhook_endpoints_public_id_rotate_secret_post_response_rotate_webhook_secret_v1_webhook_endpoints_public_id_rotate_secret_post.py +49 -0
  46. thrustlab/_models/rotor_group_in.py +107 -0
  47. thrustlab/_models/rotor_group_resource.py +97 -0
  48. thrustlab/_models/simulation_cancel_body.py +24 -0
  49. thrustlab/_models/simulation_create_body.py +128 -0
  50. thrustlab/_models/simulation_inputs.py +66 -0
  51. thrustlab/_models/simulation_list_response.py +88 -0
  52. thrustlab/_models/simulation_patch.py +121 -0
  53. thrustlab/_models/simulation_patch_plot_config_json_type_0_item.py +46 -0
  54. thrustlab/_models/simulation_resource.py +283 -0
  55. thrustlab/_models/simulation_resource_error_type_0.py +46 -0
  56. thrustlab/_models/simulation_resource_plot_config_json_type_0_item.py +46 -0
  57. thrustlab/_models/simulation_resource_result_type_0.py +46 -0
  58. thrustlab/_models/starred_component_create_body.py +80 -0
  59. thrustlab/_models/starred_component_list_response.py +108 -0
  60. thrustlab/_models/starred_component_resource.py +106 -0
  61. thrustlab/_models/submission_create_body.py +121 -0
  62. thrustlab/_models/submission_create_body_data_json.py +46 -0
  63. thrustlab/_models/submission_list_response.py +108 -0
  64. thrustlab/_models/submission_patch.py +174 -0
  65. thrustlab/_models/submission_patch_data_json_type_0.py +46 -0
  66. thrustlab/_models/submission_resource.py +197 -0
  67. thrustlab/_models/submission_resource_data_json.py +46 -0
  68. thrustlab/_models/subscription_create.py +58 -0
  69. thrustlab/_models/subscription_resource.py +168 -0
  70. thrustlab/_models/subscription_resource_status.py +12 -0
  71. thrustlab/_models/subscription_resource_tier.py +12 -0
  72. thrustlab/_models/sweep_cancel_body.py +42 -0
  73. thrustlab/_models/sweep_config_in.py +172 -0
  74. thrustlab/_models/sweep_create_body.py +138 -0
  75. thrustlab/_models/sweep_inputs.py +66 -0
  76. thrustlab/_models/sweep_list_response.py +88 -0
  77. thrustlab/_models/sweep_param_range_in.py +136 -0
  78. thrustlab/_models/sweep_param_range_in_mode.py +9 -0
  79. thrustlab/_models/sweep_patch.py +121 -0
  80. thrustlab/_models/sweep_patch_plot_config_json_type_0_item.py +46 -0
  81. thrustlab/_models/sweep_point_list_response.py +88 -0
  82. thrustlab/_models/sweep_point_resource.py +103 -0
  83. thrustlab/_models/sweep_point_resource_inputs.py +46 -0
  84. thrustlab/_models/sweep_point_resource_rotors_type_0.py +46 -0
  85. thrustlab/_models/sweep_resource.py +327 -0
  86. thrustlab/_models/sweep_resource_error_type_0.py +46 -0
  87. thrustlab/_models/sweep_resource_plot_config_json_type_0_item.py +46 -0
  88. thrustlab/_models/sweep_resource_summary_type_0.py +46 -0
  89. thrustlab/_models/sweep_resource_sweep_config_type_0.py +46 -0
  90. thrustlab/_models/sweep_rotor_group_in.py +95 -0
  91. thrustlab/_models/types.py +55 -0
  92. thrustlab/_models/user_patch.py +73 -0
  93. thrustlab/_models/user_resource.py +170 -0
  94. thrustlab/_models/v1_health_v1_health_get_response_v1_health_v1_health_get.py +46 -0
  95. thrustlab/_models/validation_error.py +90 -0
  96. thrustlab/_models/webhook_endpoint_create.py +91 -0
  97. thrustlab/_models/webhook_endpoint_patch.py +144 -0
  98. thrustlab/_pagination.py +109 -0
  99. thrustlab/_version.py +3 -0
  100. thrustlab/client.py +100 -0
  101. thrustlab/exceptions.py +121 -0
  102. thrustlab/resources/__init__.py +1 -0
  103. thrustlab/resources/_base.py +12 -0
  104. thrustlab/resources/api_keys.py +43 -0
  105. thrustlab/resources/components.py +60 -0
  106. thrustlab/resources/credits.py +40 -0
  107. thrustlab/resources/projects.py +54 -0
  108. thrustlab/resources/simulations.py +74 -0
  109. thrustlab/resources/starred_components.py +57 -0
  110. thrustlab/resources/submissions.py +44 -0
  111. thrustlab/resources/subscriptions.py +42 -0
  112. thrustlab/resources/sweeps.py +96 -0
  113. thrustlab/resources/users.py +13 -0
  114. thrustlab/resources/webhook_endpoints.py +138 -0
  115. thrustlab/webhooks.py +121 -0
  116. thrustlab-0.1.0.dist-info/METADATA +190 -0
  117. thrustlab-0.1.0.dist-info/RECORD +119 -0
  118. thrustlab-0.1.0.dist-info/WHEEL +4 -0
  119. thrustlab-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,121 @@
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import Mapping
4
+ from typing import TYPE_CHECKING, Any, TypeVar, cast
5
+
6
+ from attrs import define as _attrs_define
7
+
8
+ from thrustlab._models.types import UNSET, Unset
9
+
10
+ if TYPE_CHECKING:
11
+ from thrustlab._models.sweep_patch_plot_config_json_type_0_item import SweepPatchPlotConfigJsonType0Item
12
+
13
+
14
+ T = TypeVar("T", bound="SweepPatch")
15
+
16
+
17
+ @_attrs_define
18
+ class SweepPatch:
19
+ """
20
+ Attributes:
21
+ is_starred (bool | None | Unset):
22
+ name (None | str | Unset):
23
+ plot_config_json (list[SweepPatchPlotConfigJsonType0Item] | None | Unset):
24
+ """
25
+
26
+ is_starred: bool | None | Unset = UNSET
27
+ name: None | str | Unset = UNSET
28
+ plot_config_json: list[SweepPatchPlotConfigJsonType0Item] | None | Unset = UNSET
29
+
30
+ def to_dict(self) -> dict[str, Any]:
31
+ is_starred: bool | None | Unset
32
+ if isinstance(self.is_starred, Unset):
33
+ is_starred = UNSET
34
+ else:
35
+ is_starred = self.is_starred
36
+
37
+ name: None | str | Unset
38
+ if isinstance(self.name, Unset):
39
+ name = UNSET
40
+ else:
41
+ name = self.name
42
+
43
+ plot_config_json: list[dict[str, Any]] | None | Unset
44
+ if isinstance(self.plot_config_json, Unset):
45
+ plot_config_json = UNSET
46
+ elif isinstance(self.plot_config_json, list):
47
+ plot_config_json = []
48
+ for plot_config_json_type_0_item_data in self.plot_config_json:
49
+ plot_config_json_type_0_item = plot_config_json_type_0_item_data.to_dict()
50
+ plot_config_json.append(plot_config_json_type_0_item)
51
+
52
+ else:
53
+ plot_config_json = self.plot_config_json
54
+
55
+ field_dict: dict[str, Any] = {}
56
+
57
+ field_dict.update({})
58
+ if is_starred is not UNSET:
59
+ field_dict["is_starred"] = is_starred
60
+ if name is not UNSET:
61
+ field_dict["name"] = name
62
+ if plot_config_json is not UNSET:
63
+ field_dict["plot_config_json"] = plot_config_json
64
+
65
+ return field_dict
66
+
67
+ @classmethod
68
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
69
+ from thrustlab._models.sweep_patch_plot_config_json_type_0_item import SweepPatchPlotConfigJsonType0Item
70
+
71
+ d = dict(src_dict)
72
+
73
+ def _parse_is_starred(data: object) -> bool | None | Unset:
74
+ if data is None:
75
+ return data
76
+ if isinstance(data, Unset):
77
+ return data
78
+ return cast(bool | None | Unset, data)
79
+
80
+ is_starred = _parse_is_starred(d.pop("is_starred", UNSET))
81
+
82
+ def _parse_name(data: object) -> None | str | Unset:
83
+ if data is None:
84
+ return data
85
+ if isinstance(data, Unset):
86
+ return data
87
+ return cast(None | str | Unset, data)
88
+
89
+ name = _parse_name(d.pop("name", UNSET))
90
+
91
+ def _parse_plot_config_json(data: object) -> list[SweepPatchPlotConfigJsonType0Item] | None | Unset:
92
+ if data is None:
93
+ return data
94
+ if isinstance(data, Unset):
95
+ return data
96
+ try:
97
+ if not isinstance(data, list):
98
+ raise TypeError()
99
+ plot_config_json_type_0 = []
100
+ _plot_config_json_type_0 = data
101
+ for plot_config_json_type_0_item_data in _plot_config_json_type_0:
102
+ plot_config_json_type_0_item = SweepPatchPlotConfigJsonType0Item.from_dict(
103
+ plot_config_json_type_0_item_data
104
+ )
105
+
106
+ plot_config_json_type_0.append(plot_config_json_type_0_item)
107
+
108
+ return plot_config_json_type_0
109
+ except (TypeError, ValueError, AttributeError, KeyError):
110
+ pass
111
+ return cast(list[SweepPatchPlotConfigJsonType0Item] | None | Unset, data)
112
+
113
+ plot_config_json = _parse_plot_config_json(d.pop("plot_config_json", UNSET))
114
+
115
+ sweep_patch = cls(
116
+ is_starred=is_starred,
117
+ name=name,
118
+ plot_config_json=plot_config_json,
119
+ )
120
+
121
+ return sweep_patch
@@ -0,0 +1,46 @@
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import Mapping
4
+ from typing import Any, TypeVar
5
+
6
+ from attrs import define as _attrs_define
7
+ from attrs import field as _attrs_field
8
+
9
+ T = TypeVar("T", bound="SweepPatchPlotConfigJsonType0Item")
10
+
11
+
12
+ @_attrs_define
13
+ class SweepPatchPlotConfigJsonType0Item:
14
+ """ """
15
+
16
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
17
+
18
+ def to_dict(self) -> dict[str, Any]:
19
+ field_dict: dict[str, Any] = {}
20
+ field_dict.update(self.additional_properties)
21
+
22
+ return field_dict
23
+
24
+ @classmethod
25
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
26
+ d = dict(src_dict)
27
+ sweep_patch_plot_config_json_type_0_item = cls()
28
+
29
+ sweep_patch_plot_config_json_type_0_item.additional_properties = d
30
+ return sweep_patch_plot_config_json_type_0_item
31
+
32
+ @property
33
+ def additional_keys(self) -> list[str]:
34
+ return list(self.additional_properties.keys())
35
+
36
+ def __getitem__(self, key: str) -> Any:
37
+ return self.additional_properties[key]
38
+
39
+ def __setitem__(self, key: str, value: Any) -> None:
40
+ self.additional_properties[key] = value
41
+
42
+ def __delitem__(self, key: str) -> None:
43
+ del self.additional_properties[key]
44
+
45
+ def __contains__(self, key: str) -> bool:
46
+ return key in self.additional_properties
@@ -0,0 +1,88 @@
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import Mapping
4
+ from typing import TYPE_CHECKING, Any, Literal, TypeVar, cast
5
+
6
+ from attrs import define as _attrs_define
7
+
8
+ if TYPE_CHECKING:
9
+ from thrustlab._models.sweep_point_resource import SweepPointResource
10
+
11
+
12
+ T = TypeVar("T", bound="SweepPointListResponse")
13
+
14
+
15
+ @_attrs_define
16
+ class SweepPointListResponse:
17
+ """
18
+ Attributes:
19
+ data (list[SweepPointResource]):
20
+ has_more (bool):
21
+ next_cursor (None | str):
22
+ object_ (Literal['list']):
23
+ """
24
+
25
+ data: list[SweepPointResource]
26
+ has_more: bool
27
+ next_cursor: None | str
28
+ object_: Literal["list"]
29
+
30
+ def to_dict(self) -> dict[str, Any]:
31
+ data = []
32
+ for data_item_data in self.data:
33
+ data_item = data_item_data.to_dict()
34
+ data.append(data_item)
35
+
36
+ has_more = self.has_more
37
+
38
+ next_cursor: None | str
39
+ next_cursor = self.next_cursor
40
+
41
+ object_ = self.object_
42
+
43
+ field_dict: dict[str, Any] = {}
44
+
45
+ field_dict.update(
46
+ {
47
+ "data": data,
48
+ "has_more": has_more,
49
+ "next_cursor": next_cursor,
50
+ "object": object_,
51
+ }
52
+ )
53
+
54
+ return field_dict
55
+
56
+ @classmethod
57
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
58
+ from thrustlab._models.sweep_point_resource import SweepPointResource
59
+
60
+ d = dict(src_dict)
61
+ data = []
62
+ _data = d.pop("data")
63
+ for data_item_data in _data:
64
+ data_item = SweepPointResource.from_dict(data_item_data)
65
+
66
+ data.append(data_item)
67
+
68
+ has_more = d.pop("has_more")
69
+
70
+ def _parse_next_cursor(data: object) -> None | str:
71
+ if data is None:
72
+ return data
73
+ return cast(None | str, data)
74
+
75
+ next_cursor = _parse_next_cursor(d.pop("next_cursor"))
76
+
77
+ object_ = cast(Literal["list"], d.pop("object"))
78
+ if object_ != "list":
79
+ raise ValueError(f"object must match const 'list', got '{object_}'")
80
+
81
+ sweep_point_list_response = cls(
82
+ data=data,
83
+ has_more=has_more,
84
+ next_cursor=next_cursor,
85
+ object_=object_,
86
+ )
87
+
88
+ return sweep_point_list_response
@@ -0,0 +1,103 @@
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import Mapping
4
+ from typing import TYPE_CHECKING, Any, Literal, TypeVar, cast
5
+
6
+ from attrs import define as _attrs_define
7
+
8
+ if TYPE_CHECKING:
9
+ from thrustlab._models.sweep_point_resource_inputs import SweepPointResourceInputs
10
+ from thrustlab._models.sweep_point_resource_rotors_type_0 import SweepPointResourceRotorsType0
11
+
12
+
13
+ T = TypeVar("T", bound="SweepPointResource")
14
+
15
+
16
+ @_attrs_define
17
+ class SweepPointResource:
18
+ """
19
+ Attributes:
20
+ failed (bool):
21
+ index (int):
22
+ inputs (SweepPointResourceInputs):
23
+ object_ (Literal['sweep_point']):
24
+ rotors (None | SweepPointResourceRotorsType0):
25
+ """
26
+
27
+ failed: bool
28
+ index: int
29
+ inputs: SweepPointResourceInputs
30
+ object_: Literal["sweep_point"]
31
+ rotors: None | SweepPointResourceRotorsType0
32
+
33
+ def to_dict(self) -> dict[str, Any]:
34
+ from thrustlab._models.sweep_point_resource_rotors_type_0 import SweepPointResourceRotorsType0
35
+
36
+ failed = self.failed
37
+
38
+ index = self.index
39
+
40
+ inputs = self.inputs.to_dict()
41
+
42
+ object_ = self.object_
43
+
44
+ rotors: dict[str, Any] | None
45
+ if isinstance(self.rotors, SweepPointResourceRotorsType0):
46
+ rotors = self.rotors.to_dict()
47
+ else:
48
+ rotors = self.rotors
49
+
50
+ field_dict: dict[str, Any] = {}
51
+
52
+ field_dict.update(
53
+ {
54
+ "failed": failed,
55
+ "index": index,
56
+ "inputs": inputs,
57
+ "object": object_,
58
+ "rotors": rotors,
59
+ }
60
+ )
61
+
62
+ return field_dict
63
+
64
+ @classmethod
65
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
66
+ from thrustlab._models.sweep_point_resource_inputs import SweepPointResourceInputs
67
+ from thrustlab._models.sweep_point_resource_rotors_type_0 import SweepPointResourceRotorsType0
68
+
69
+ d = dict(src_dict)
70
+ failed = d.pop("failed")
71
+
72
+ index = d.pop("index")
73
+
74
+ inputs = SweepPointResourceInputs.from_dict(d.pop("inputs"))
75
+
76
+ object_ = cast(Literal["sweep_point"], d.pop("object"))
77
+ if object_ != "sweep_point":
78
+ raise ValueError(f"object must match const 'sweep_point', got '{object_}'")
79
+
80
+ def _parse_rotors(data: object) -> None | SweepPointResourceRotorsType0:
81
+ if data is None:
82
+ return data
83
+ try:
84
+ if not isinstance(data, dict):
85
+ raise TypeError()
86
+ rotors_type_0 = SweepPointResourceRotorsType0.from_dict(data)
87
+
88
+ return rotors_type_0
89
+ except (TypeError, ValueError, AttributeError, KeyError):
90
+ pass
91
+ return cast(None | SweepPointResourceRotorsType0, data)
92
+
93
+ rotors = _parse_rotors(d.pop("rotors"))
94
+
95
+ sweep_point_resource = cls(
96
+ failed=failed,
97
+ index=index,
98
+ inputs=inputs,
99
+ object_=object_,
100
+ rotors=rotors,
101
+ )
102
+
103
+ return sweep_point_resource
@@ -0,0 +1,46 @@
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import Mapping
4
+ from typing import Any, TypeVar
5
+
6
+ from attrs import define as _attrs_define
7
+ from attrs import field as _attrs_field
8
+
9
+ T = TypeVar("T", bound="SweepPointResourceInputs")
10
+
11
+
12
+ @_attrs_define
13
+ class SweepPointResourceInputs:
14
+ """ """
15
+
16
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
17
+
18
+ def to_dict(self) -> dict[str, Any]:
19
+ field_dict: dict[str, Any] = {}
20
+ field_dict.update(self.additional_properties)
21
+
22
+ return field_dict
23
+
24
+ @classmethod
25
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
26
+ d = dict(src_dict)
27
+ sweep_point_resource_inputs = cls()
28
+
29
+ sweep_point_resource_inputs.additional_properties = d
30
+ return sweep_point_resource_inputs
31
+
32
+ @property
33
+ def additional_keys(self) -> list[str]:
34
+ return list(self.additional_properties.keys())
35
+
36
+ def __getitem__(self, key: str) -> Any:
37
+ return self.additional_properties[key]
38
+
39
+ def __setitem__(self, key: str, value: Any) -> None:
40
+ self.additional_properties[key] = value
41
+
42
+ def __delitem__(self, key: str) -> None:
43
+ del self.additional_properties[key]
44
+
45
+ def __contains__(self, key: str) -> bool:
46
+ return key in self.additional_properties
@@ -0,0 +1,46 @@
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import Mapping
4
+ from typing import Any, TypeVar
5
+
6
+ from attrs import define as _attrs_define
7
+ from attrs import field as _attrs_field
8
+
9
+ T = TypeVar("T", bound="SweepPointResourceRotorsType0")
10
+
11
+
12
+ @_attrs_define
13
+ class SweepPointResourceRotorsType0:
14
+ """ """
15
+
16
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
17
+
18
+ def to_dict(self) -> dict[str, Any]:
19
+ field_dict: dict[str, Any] = {}
20
+ field_dict.update(self.additional_properties)
21
+
22
+ return field_dict
23
+
24
+ @classmethod
25
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
26
+ d = dict(src_dict)
27
+ sweep_point_resource_rotors_type_0 = cls()
28
+
29
+ sweep_point_resource_rotors_type_0.additional_properties = d
30
+ return sweep_point_resource_rotors_type_0
31
+
32
+ @property
33
+ def additional_keys(self) -> list[str]:
34
+ return list(self.additional_properties.keys())
35
+
36
+ def __getitem__(self, key: str) -> Any:
37
+ return self.additional_properties[key]
38
+
39
+ def __setitem__(self, key: str, value: Any) -> None:
40
+ self.additional_properties[key] = value
41
+
42
+ def __delitem__(self, key: str) -> None:
43
+ del self.additional_properties[key]
44
+
45
+ def __contains__(self, key: str) -> bool:
46
+ return key in self.additional_properties