beamlit 0.0.47rc94__py3-none-any.whl → 0.0.48__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 (39) hide show
  1. beamlit/agents/decorator.py +3 -3
  2. beamlit/api/{model_providers/delete_model_provider.py → accounts/delete_account.py} +42 -35
  3. beamlit/api/{model_providers/get_model_provider.py → accounts/get_account.py} +34 -34
  4. beamlit/api/{model_providers/list_model_providers.py → accounts/list_accounts.py} +21 -21
  5. beamlit/api/{model_providers/update_model_provider.py → accounts/update_account.py} +43 -43
  6. beamlit/api/{model_providers/create_model_provider.py → default/create_account.py} +30 -30
  7. beamlit/models/__init__.py +10 -4
  8. beamlit/models/{model_metadata.py → account.py} +93 -15
  9. beamlit/models/{function_metadata.py → account_metadata.py} +13 -40
  10. beamlit/models/account_spec.py +123 -0
  11. beamlit/models/{agent_render.py → account_spec_address.py} +6 -6
  12. beamlit/models/billing_address.py +133 -0
  13. beamlit/models/workspace.py +9 -0
  14. {beamlit-0.0.47rc94.dist-info → beamlit-0.0.48.dist-info}/METADATA +1 -1
  15. {beamlit-0.0.47rc94.dist-info → beamlit-0.0.48.dist-info}/RECORD +18 -37
  16. beamlit/models/agent_metadata.py +0 -146
  17. beamlit/models/core_status.py +0 -45
  18. beamlit/models/function_render.py +0 -45
  19. beamlit/models/increase_and_rate_metric.py +0 -61
  20. beamlit/models/integration_config.py +0 -45
  21. beamlit/models/integration_connection_config.py +0 -45
  22. beamlit/models/integration_connection_secret.py +0 -61
  23. beamlit/models/model_provider.py +0 -173
  24. beamlit/models/model_render.py +0 -45
  25. beamlit/models/pod_template.py +0 -45
  26. beamlit/models/provider_config.py +0 -94
  27. beamlit/models/qps.py +0 -61
  28. beamlit/models/repository_type_0.py +0 -70
  29. beamlit/models/resource_deployment_metrics.py +0 -176
  30. beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +0 -77
  31. beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +0 -75
  32. beamlit/models/resource_environment_metrics_inference_per_region.py +0 -77
  33. beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +0 -77
  34. beamlit/models/resource_environment_metrics_query_per_region_per_code.py +0 -75
  35. beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +0 -75
  36. beamlit/models/resource_metrics.py +0 -96
  37. /beamlit/api/{model_providers → accounts}/__init__.py +0 -0
  38. {beamlit-0.0.47rc94.dist-info → beamlit-0.0.48.dist-info}/WHEEL +0 -0
  39. {beamlit-0.0.47rc94.dist-info → beamlit-0.0.48.dist-info}/licenses/LICENSE +0 -0
@@ -1,146 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, 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.metadata_labels import MetadataLabels
10
-
11
-
12
- T = TypeVar("T", bound="AgentMetadata")
13
-
14
-
15
- @_attrs_define
16
- class AgentMetadata:
17
- """Agent metadata
18
-
19
- Attributes:
20
- created_at (Union[Unset, str]): The date and time when the resource was created
21
- updated_at (Union[Unset, str]): The date and time when the resource was updated
22
- created_by (Union[Unset, str]): The user or service account who created the resource
23
- updated_by (Union[Unset, str]): The user or service account who updated the resource
24
- display_name (Union[Unset, str]): Model display name
25
- labels (Union[Unset, MetadataLabels]): Labels
26
- name (Union[Unset, str]): Model name
27
- workspace (Union[Unset, str]): Workspace name
28
- environment (Union[Unset, str]): Environment name
29
- """
30
-
31
- created_at: Union[Unset, str] = UNSET
32
- updated_at: Union[Unset, str] = UNSET
33
- created_by: Union[Unset, str] = UNSET
34
- updated_by: Union[Unset, str] = UNSET
35
- display_name: Union[Unset, str] = UNSET
36
- labels: Union[Unset, "MetadataLabels"] = UNSET
37
- name: Union[Unset, str] = UNSET
38
- workspace: Union[Unset, str] = UNSET
39
- environment: Union[Unset, str] = UNSET
40
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
41
-
42
- def to_dict(self) -> dict[str, Any]:
43
- created_at = self.created_at
44
-
45
- updated_at = self.updated_at
46
-
47
- created_by = self.created_by
48
-
49
- updated_by = self.updated_by
50
-
51
- display_name = self.display_name
52
-
53
- labels: Union[Unset, dict[str, Any]] = UNSET
54
- if self.labels and not isinstance(self.labels, Unset):
55
- labels = self.labels.to_dict()
56
-
57
- name = self.name
58
-
59
- workspace = self.workspace
60
-
61
- environment = self.environment
62
-
63
- field_dict: dict[str, Any] = {}
64
- field_dict.update(self.additional_properties)
65
- field_dict.update({})
66
- if created_at is not UNSET:
67
- field_dict["createdAt"] = created_at
68
- if updated_at is not UNSET:
69
- field_dict["updatedAt"] = updated_at
70
- if created_by is not UNSET:
71
- field_dict["createdBy"] = created_by
72
- if updated_by is not UNSET:
73
- field_dict["updatedBy"] = updated_by
74
- if display_name is not UNSET:
75
- field_dict["displayName"] = display_name
76
- if labels is not UNSET:
77
- field_dict["labels"] = labels
78
- if name is not UNSET:
79
- field_dict["name"] = name
80
- if workspace is not UNSET:
81
- field_dict["workspace"] = workspace
82
- if environment is not UNSET:
83
- field_dict["environment"] = environment
84
-
85
- return field_dict
86
-
87
- @classmethod
88
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
89
- from ..models.metadata_labels import MetadataLabels
90
-
91
- if not src_dict:
92
- return None
93
- d = src_dict.copy()
94
- created_at = d.pop("createdAt", UNSET)
95
-
96
- updated_at = d.pop("updatedAt", UNSET)
97
-
98
- created_by = d.pop("createdBy", UNSET)
99
-
100
- updated_by = d.pop("updatedBy", UNSET)
101
-
102
- display_name = d.pop("displayName", UNSET)
103
-
104
- _labels = d.pop("labels", UNSET)
105
- labels: Union[Unset, MetadataLabels]
106
- if isinstance(_labels, Unset):
107
- labels = UNSET
108
- else:
109
- labels = MetadataLabels.from_dict(_labels)
110
-
111
- name = d.pop("name", UNSET)
112
-
113
- workspace = d.pop("workspace", UNSET)
114
-
115
- environment = d.pop("environment", UNSET)
116
-
117
- agent_metadata = cls(
118
- created_at=created_at,
119
- updated_at=updated_at,
120
- created_by=created_by,
121
- updated_by=updated_by,
122
- display_name=display_name,
123
- labels=labels,
124
- name=name,
125
- workspace=workspace,
126
- environment=environment,
127
- )
128
-
129
- agent_metadata.additional_properties = d
130
- return agent_metadata
131
-
132
- @property
133
- def additional_keys(self) -> list[str]:
134
- return list(self.additional_properties.keys())
135
-
136
- def __getitem__(self, key: str) -> Any:
137
- return self.additional_properties[key]
138
-
139
- def __setitem__(self, key: str, value: Any) -> None:
140
- self.additional_properties[key] = value
141
-
142
- def __delitem__(self, key: str) -> None:
143
- del self.additional_properties[key]
144
-
145
- def __contains__(self, key: str) -> bool:
146
- return key in self.additional_properties
@@ -1,45 +0,0 @@
1
- from typing import Any, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="CoreStatus")
7
-
8
-
9
- @_attrs_define
10
- class CoreStatus:
11
- """Core status"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
23
- if not src_dict:
24
- return None
25
- d = src_dict.copy()
26
- core_status = cls()
27
-
28
- core_status.additional_properties = d
29
- return core_status
30
-
31
- @property
32
- def additional_keys(self) -> list[str]:
33
- return list(self.additional_properties.keys())
34
-
35
- def __getitem__(self, key: str) -> Any:
36
- return self.additional_properties[key]
37
-
38
- def __setitem__(self, key: str, value: Any) -> None:
39
- self.additional_properties[key] = value
40
-
41
- def __delitem__(self, key: str) -> None:
42
- del self.additional_properties[key]
43
-
44
- def __contains__(self, key: str) -> bool:
45
- return key in self.additional_properties
@@ -1,45 +0,0 @@
1
- from typing import Any, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="FunctionRender")
7
-
8
-
9
- @_attrs_define
10
- class FunctionRender:
11
- """FunctionRender"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
23
- if not src_dict:
24
- return None
25
- d = src_dict.copy()
26
- function_render = cls()
27
-
28
- function_render.additional_properties = d
29
- return function_render
30
-
31
- @property
32
- def additional_keys(self) -> list[str]:
33
- return list(self.additional_properties.keys())
34
-
35
- def __getitem__(self, key: str) -> Any:
36
- return self.additional_properties[key]
37
-
38
- def __setitem__(self, key: str, value: Any) -> None:
39
- self.additional_properties[key] = value
40
-
41
- def __delitem__(self, key: str) -> None:
42
- del self.additional_properties[key]
43
-
44
- def __contains__(self, key: str) -> bool:
45
- return key in self.additional_properties
@@ -1,61 +0,0 @@
1
- from typing import Any, 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
- T = TypeVar("T", bound="IncreaseAndRateMetric")
9
-
10
-
11
- @_attrs_define
12
- class IncreaseAndRateMetric:
13
- """Metrics for resources
14
-
15
- Attributes:
16
- inference_global (Union[Unset, Any]): Historical requests for all resources globally
17
- """
18
-
19
- inference_global: Union[Unset, Any] = UNSET
20
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
-
22
- def to_dict(self) -> dict[str, Any]:
23
- inference_global = self.inference_global
24
-
25
- field_dict: dict[str, Any] = {}
26
- field_dict.update(self.additional_properties)
27
- field_dict.update({})
28
- if inference_global is not UNSET:
29
- field_dict["inferenceGlobal"] = inference_global
30
-
31
- return field_dict
32
-
33
- @classmethod
34
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
35
- if not src_dict:
36
- return None
37
- d = src_dict.copy()
38
- inference_global = d.pop("inferenceGlobal", UNSET)
39
-
40
- increase_and_rate_metric = cls(
41
- inference_global=inference_global,
42
- )
43
-
44
- increase_and_rate_metric.additional_properties = d
45
- return increase_and_rate_metric
46
-
47
- @property
48
- def additional_keys(self) -> list[str]:
49
- return list(self.additional_properties.keys())
50
-
51
- def __getitem__(self, key: str) -> Any:
52
- return self.additional_properties[key]
53
-
54
- def __setitem__(self, key: str, value: Any) -> None:
55
- self.additional_properties[key] = value
56
-
57
- def __delitem__(self, key: str) -> None:
58
- del self.additional_properties[key]
59
-
60
- def __contains__(self, key: str) -> bool:
61
- return key in self.additional_properties
@@ -1,45 +0,0 @@
1
- from typing import Any, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="IntegrationConfig")
7
-
8
-
9
- @_attrs_define
10
- class IntegrationConfig:
11
- """Integration config"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
23
- if not src_dict:
24
- return None
25
- d = src_dict.copy()
26
- integration_config = cls()
27
-
28
- integration_config.additional_properties = d
29
- return integration_config
30
-
31
- @property
32
- def additional_keys(self) -> list[str]:
33
- return list(self.additional_properties.keys())
34
-
35
- def __getitem__(self, key: str) -> Any:
36
- return self.additional_properties[key]
37
-
38
- def __setitem__(self, key: str, value: Any) -> None:
39
- self.additional_properties[key] = value
40
-
41
- def __delitem__(self, key: str) -> None:
42
- del self.additional_properties[key]
43
-
44
- def __contains__(self, key: str) -> bool:
45
- return key in self.additional_properties
@@ -1,45 +0,0 @@
1
- from typing import Any, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="IntegrationConnectionConfig")
7
-
8
-
9
- @_attrs_define
10
- class IntegrationConnectionConfig:
11
- """Integration config"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
23
- if not src_dict:
24
- return None
25
- d = src_dict.copy()
26
- integration_connection_config = cls()
27
-
28
- integration_connection_config.additional_properties = d
29
- return integration_connection_config
30
-
31
- @property
32
- def additional_keys(self) -> list[str]:
33
- return list(self.additional_properties.keys())
34
-
35
- def __getitem__(self, key: str) -> Any:
36
- return self.additional_properties[key]
37
-
38
- def __setitem__(self, key: str, value: Any) -> None:
39
- self.additional_properties[key] = value
40
-
41
- def __delitem__(self, key: str) -> None:
42
- del self.additional_properties[key]
43
-
44
- def __contains__(self, key: str) -> bool:
45
- return key in self.additional_properties
@@ -1,61 +0,0 @@
1
- from typing import Any, 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
- T = TypeVar("T", bound="IntegrationConnectionSecret")
9
-
10
-
11
- @_attrs_define
12
- class IntegrationConnectionSecret:
13
- """Integration secret
14
-
15
- Attributes:
16
- api_key (Union[Unset, str]): The API key to use for the integration
17
- """
18
-
19
- api_key: Union[Unset, str] = UNSET
20
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
-
22
- def to_dict(self) -> dict[str, Any]:
23
- api_key = self.api_key
24
-
25
- field_dict: dict[str, Any] = {}
26
- field_dict.update(self.additional_properties)
27
- field_dict.update({})
28
- if api_key is not UNSET:
29
- field_dict["apiKey"] = api_key
30
-
31
- return field_dict
32
-
33
- @classmethod
34
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
35
- if not src_dict:
36
- return None
37
- d = src_dict.copy()
38
- api_key = d.pop("apiKey", UNSET)
39
-
40
- integration_connection_secret = cls(
41
- api_key=api_key,
42
- )
43
-
44
- integration_connection_secret.additional_properties = d
45
- return integration_connection_secret
46
-
47
- @property
48
- def additional_keys(self) -> list[str]:
49
- return list(self.additional_properties.keys())
50
-
51
- def __getitem__(self, key: str) -> Any:
52
- return self.additional_properties[key]
53
-
54
- def __setitem__(self, key: str, value: Any) -> None:
55
- self.additional_properties[key] = value
56
-
57
- def __delitem__(self, key: str) -> None:
58
- del self.additional_properties[key]
59
-
60
- def __contains__(self, key: str) -> bool:
61
- return key in self.additional_properties
@@ -1,173 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, 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.metadata_labels import MetadataLabels
10
- from ..models.provider_config import ProviderConfig
11
-
12
-
13
- T = TypeVar("T", bound="ModelProvider")
14
-
15
-
16
- @_attrs_define
17
- class ModelProvider:
18
- """Model provider
19
-
20
- Attributes:
21
- created_at (Union[Unset, str]): The date and time when the resource was created
22
- updated_at (Union[Unset, str]): The date and time when the resource was updated
23
- created_by (Union[Unset, str]): The user or service account who created the resource
24
- updated_by (Union[Unset, str]): The user or service account who updated the resource
25
- comment (Union[Unset, str]): Model provider description
26
- config (Union[Unset, ProviderConfig]): Model provider config
27
- display_name (Union[Unset, str]): Model provider display name
28
- labels (Union[Unset, MetadataLabels]): Labels
29
- name (Union[Unset, str]): Model provider name
30
- type_ (Union[Unset, str]): Model provider type
31
- workspace (Union[Unset, str]): Workspace name
32
- """
33
-
34
- created_at: Union[Unset, str] = UNSET
35
- updated_at: Union[Unset, str] = UNSET
36
- created_by: Union[Unset, str] = UNSET
37
- updated_by: Union[Unset, str] = UNSET
38
- comment: Union[Unset, str] = UNSET
39
- config: Union[Unset, "ProviderConfig"] = UNSET
40
- display_name: Union[Unset, str] = UNSET
41
- labels: Union[Unset, "MetadataLabels"] = UNSET
42
- name: Union[Unset, str] = UNSET
43
- type_: Union[Unset, str] = UNSET
44
- workspace: Union[Unset, str] = UNSET
45
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
46
-
47
- def to_dict(self) -> dict[str, Any]:
48
- created_at = self.created_at
49
-
50
- updated_at = self.updated_at
51
-
52
- created_by = self.created_by
53
-
54
- updated_by = self.updated_by
55
-
56
- comment = self.comment
57
-
58
- config: Union[Unset, dict[str, Any]] = UNSET
59
- if self.config and not isinstance(self.config, Unset):
60
- config = self.config.to_dict()
61
-
62
- display_name = self.display_name
63
-
64
- labels: Union[Unset, dict[str, Any]] = UNSET
65
- if self.labels and not isinstance(self.labels, Unset):
66
- labels = self.labels.to_dict()
67
-
68
- name = self.name
69
-
70
- type_ = self.type_
71
-
72
- workspace = self.workspace
73
-
74
- field_dict: dict[str, Any] = {}
75
- field_dict.update(self.additional_properties)
76
- field_dict.update({})
77
- if created_at is not UNSET:
78
- field_dict["createdAt"] = created_at
79
- if updated_at is not UNSET:
80
- field_dict["updatedAt"] = updated_at
81
- if created_by is not UNSET:
82
- field_dict["createdBy"] = created_by
83
- if updated_by is not UNSET:
84
- field_dict["updatedBy"] = updated_by
85
- if comment is not UNSET:
86
- field_dict["comment"] = comment
87
- if config is not UNSET:
88
- field_dict["config"] = config
89
- if display_name is not UNSET:
90
- field_dict["displayName"] = display_name
91
- if labels is not UNSET:
92
- field_dict["labels"] = labels
93
- if name is not UNSET:
94
- field_dict["name"] = name
95
- if type_ is not UNSET:
96
- field_dict["type"] = type_
97
- if workspace is not UNSET:
98
- field_dict["workspace"] = workspace
99
-
100
- return field_dict
101
-
102
- @classmethod
103
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
104
- from ..models.metadata_labels import MetadataLabels
105
- from ..models.provider_config import ProviderConfig
106
-
107
- if not src_dict:
108
- return None
109
- d = src_dict.copy()
110
- created_at = d.pop("createdAt", UNSET)
111
-
112
- updated_at = d.pop("updatedAt", UNSET)
113
-
114
- created_by = d.pop("createdBy", UNSET)
115
-
116
- updated_by = d.pop("updatedBy", UNSET)
117
-
118
- comment = d.pop("comment", UNSET)
119
-
120
- _config = d.pop("config", UNSET)
121
- config: Union[Unset, ProviderConfig]
122
- if isinstance(_config, Unset):
123
- config = UNSET
124
- else:
125
- config = ProviderConfig.from_dict(_config)
126
-
127
- display_name = d.pop("displayName", UNSET)
128
-
129
- _labels = d.pop("labels", UNSET)
130
- labels: Union[Unset, MetadataLabels]
131
- if isinstance(_labels, Unset):
132
- labels = UNSET
133
- else:
134
- labels = MetadataLabels.from_dict(_labels)
135
-
136
- name = d.pop("name", UNSET)
137
-
138
- type_ = d.pop("type", UNSET)
139
-
140
- workspace = d.pop("workspace", UNSET)
141
-
142
- model_provider = cls(
143
- created_at=created_at,
144
- updated_at=updated_at,
145
- created_by=created_by,
146
- updated_by=updated_by,
147
- comment=comment,
148
- config=config,
149
- display_name=display_name,
150
- labels=labels,
151
- name=name,
152
- type_=type_,
153
- workspace=workspace,
154
- )
155
-
156
- model_provider.additional_properties = d
157
- return model_provider
158
-
159
- @property
160
- def additional_keys(self) -> list[str]:
161
- return list(self.additional_properties.keys())
162
-
163
- def __getitem__(self, key: str) -> Any:
164
- return self.additional_properties[key]
165
-
166
- def __setitem__(self, key: str, value: Any) -> None:
167
- self.additional_properties[key] = value
168
-
169
- def __delitem__(self, key: str) -> None:
170
- del self.additional_properties[key]
171
-
172
- def __contains__(self, key: str) -> bool:
173
- return key in self.additional_properties
@@ -1,45 +0,0 @@
1
- from typing import Any, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="ModelRender")
7
-
8
-
9
- @_attrs_define
10
- class ModelRender:
11
- """ModelRender"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
23
- if not src_dict:
24
- return None
25
- d = src_dict.copy()
26
- model_render = cls()
27
-
28
- model_render.additional_properties = d
29
- return model_render
30
-
31
- @property
32
- def additional_keys(self) -> list[str]:
33
- return list(self.additional_properties.keys())
34
-
35
- def __getitem__(self, key: str) -> Any:
36
- return self.additional_properties[key]
37
-
38
- def __setitem__(self, key: str, value: Any) -> None:
39
- self.additional_properties[key] = value
40
-
41
- def __delitem__(self, key: str) -> None:
42
- del self.additional_properties[key]
43
-
44
- def __contains__(self, key: str) -> bool:
45
- return key in self.additional_properties