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.
- beamlit/agents/decorator.py +3 -3
- beamlit/api/{model_providers/delete_model_provider.py → accounts/delete_account.py} +42 -35
- beamlit/api/{model_providers/get_model_provider.py → accounts/get_account.py} +34 -34
- beamlit/api/{model_providers/list_model_providers.py → accounts/list_accounts.py} +21 -21
- beamlit/api/{model_providers/update_model_provider.py → accounts/update_account.py} +43 -43
- beamlit/api/{model_providers/create_model_provider.py → default/create_account.py} +30 -30
- beamlit/models/__init__.py +10 -4
- beamlit/models/{model_metadata.py → account.py} +93 -15
- beamlit/models/{function_metadata.py → account_metadata.py} +13 -40
- beamlit/models/account_spec.py +123 -0
- beamlit/models/{agent_render.py → account_spec_address.py} +6 -6
- beamlit/models/billing_address.py +133 -0
- beamlit/models/workspace.py +9 -0
- {beamlit-0.0.47rc94.dist-info → beamlit-0.0.48.dist-info}/METADATA +1 -1
- {beamlit-0.0.47rc94.dist-info → beamlit-0.0.48.dist-info}/RECORD +18 -37
- beamlit/models/agent_metadata.py +0 -146
- beamlit/models/core_status.py +0 -45
- beamlit/models/function_render.py +0 -45
- beamlit/models/increase_and_rate_metric.py +0 -61
- beamlit/models/integration_config.py +0 -45
- beamlit/models/integration_connection_config.py +0 -45
- beamlit/models/integration_connection_secret.py +0 -61
- beamlit/models/model_provider.py +0 -173
- beamlit/models/model_render.py +0 -45
- beamlit/models/pod_template.py +0 -45
- beamlit/models/provider_config.py +0 -94
- beamlit/models/qps.py +0 -61
- beamlit/models/repository_type_0.py +0 -70
- beamlit/models/resource_deployment_metrics.py +0 -176
- beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +0 -77
- beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +0 -75
- beamlit/models/resource_environment_metrics_inference_per_region.py +0 -77
- beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +0 -77
- beamlit/models/resource_environment_metrics_query_per_region_per_code.py +0 -75
- beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +0 -75
- beamlit/models/resource_metrics.py +0 -96
- /beamlit/api/{model_providers → accounts}/__init__.py +0 -0
- {beamlit-0.0.47rc94.dist-info → beamlit-0.0.48.dist-info}/WHEEL +0 -0
- {beamlit-0.0.47rc94.dist-info → beamlit-0.0.48.dist-info}/licenses/LICENSE +0 -0
@@ -5,20 +5,20 @@ import httpx
|
|
5
5
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
|
-
from ...models.
|
8
|
+
from ...models.account import Account
|
9
9
|
from ...types import Response
|
10
10
|
|
11
11
|
|
12
12
|
def _get_kwargs(
|
13
|
-
|
13
|
+
account_id: str,
|
14
14
|
*,
|
15
|
-
body:
|
15
|
+
body: Account,
|
16
16
|
) -> dict[str, Any]:
|
17
17
|
headers: dict[str, Any] = {}
|
18
18
|
|
19
19
|
_kwargs: dict[str, Any] = {
|
20
20
|
"method": "put",
|
21
|
-
"url": f"/
|
21
|
+
"url": f"/accounts/{account_id}",
|
22
22
|
}
|
23
23
|
|
24
24
|
_body = body.to_dict()
|
@@ -30,9 +30,9 @@ def _get_kwargs(
|
|
30
30
|
return _kwargs
|
31
31
|
|
32
32
|
|
33
|
-
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[
|
33
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Account]:
|
34
34
|
if response.status_code == 200:
|
35
|
-
response_200 =
|
35
|
+
response_200 = Account.from_dict(response.json())
|
36
36
|
|
37
37
|
return response_200
|
38
38
|
if client.raise_on_unexpected_status:
|
@@ -41,7 +41,7 @@ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
41
41
|
return None
|
42
42
|
|
43
43
|
|
44
|
-
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[
|
44
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Account]:
|
45
45
|
return Response(
|
46
46
|
status_code=HTTPStatus(response.status_code),
|
47
47
|
content=response.content,
|
@@ -51,29 +51,29 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
51
51
|
|
52
52
|
|
53
53
|
def sync_detailed(
|
54
|
-
|
54
|
+
account_id: str,
|
55
55
|
*,
|
56
56
|
client: AuthenticatedClient,
|
57
|
-
body:
|
58
|
-
) -> Response[
|
59
|
-
"""Update
|
57
|
+
body: Account,
|
58
|
+
) -> Response[Account]:
|
59
|
+
"""Update account
|
60
60
|
|
61
|
-
|
61
|
+
Updates an account by name.
|
62
62
|
|
63
63
|
Args:
|
64
|
-
|
65
|
-
body (
|
64
|
+
account_id (str):
|
65
|
+
body (Account): Account
|
66
66
|
|
67
67
|
Raises:
|
68
68
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
69
69
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
70
70
|
|
71
71
|
Returns:
|
72
|
-
Response[
|
72
|
+
Response[Account]
|
73
73
|
"""
|
74
74
|
|
75
75
|
kwargs = _get_kwargs(
|
76
|
-
|
76
|
+
account_id=account_id,
|
77
77
|
body=body,
|
78
78
|
)
|
79
79
|
|
@@ -85,58 +85,58 @@ def sync_detailed(
|
|
85
85
|
|
86
86
|
|
87
87
|
def sync(
|
88
|
-
|
88
|
+
account_id: str,
|
89
89
|
*,
|
90
90
|
client: AuthenticatedClient,
|
91
|
-
body:
|
92
|
-
) -> Optional[
|
93
|
-
"""Update
|
91
|
+
body: Account,
|
92
|
+
) -> Optional[Account]:
|
93
|
+
"""Update account
|
94
94
|
|
95
|
-
|
95
|
+
Updates an account by name.
|
96
96
|
|
97
97
|
Args:
|
98
|
-
|
99
|
-
body (
|
98
|
+
account_id (str):
|
99
|
+
body (Account): Account
|
100
100
|
|
101
101
|
Raises:
|
102
102
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
103
103
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
104
104
|
|
105
105
|
Returns:
|
106
|
-
|
106
|
+
Account
|
107
107
|
"""
|
108
108
|
|
109
109
|
return sync_detailed(
|
110
|
-
|
110
|
+
account_id=account_id,
|
111
111
|
client=client,
|
112
112
|
body=body,
|
113
113
|
).parsed
|
114
114
|
|
115
115
|
|
116
116
|
async def asyncio_detailed(
|
117
|
-
|
117
|
+
account_id: str,
|
118
118
|
*,
|
119
119
|
client: AuthenticatedClient,
|
120
|
-
body:
|
121
|
-
) -> Response[
|
122
|
-
"""Update
|
120
|
+
body: Account,
|
121
|
+
) -> Response[Account]:
|
122
|
+
"""Update account
|
123
123
|
|
124
|
-
|
124
|
+
Updates an account by name.
|
125
125
|
|
126
126
|
Args:
|
127
|
-
|
128
|
-
body (
|
127
|
+
account_id (str):
|
128
|
+
body (Account): Account
|
129
129
|
|
130
130
|
Raises:
|
131
131
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
132
132
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
133
133
|
|
134
134
|
Returns:
|
135
|
-
Response[
|
135
|
+
Response[Account]
|
136
136
|
"""
|
137
137
|
|
138
138
|
kwargs = _get_kwargs(
|
139
|
-
|
139
|
+
account_id=account_id,
|
140
140
|
body=body,
|
141
141
|
)
|
142
142
|
|
@@ -146,30 +146,30 @@ async def asyncio_detailed(
|
|
146
146
|
|
147
147
|
|
148
148
|
async def asyncio(
|
149
|
-
|
149
|
+
account_id: str,
|
150
150
|
*,
|
151
151
|
client: AuthenticatedClient,
|
152
|
-
body:
|
153
|
-
) -> Optional[
|
154
|
-
"""Update
|
152
|
+
body: Account,
|
153
|
+
) -> Optional[Account]:
|
154
|
+
"""Update account
|
155
155
|
|
156
|
-
|
156
|
+
Updates an account by name.
|
157
157
|
|
158
158
|
Args:
|
159
|
-
|
160
|
-
body (
|
159
|
+
account_id (str):
|
160
|
+
body (Account): Account
|
161
161
|
|
162
162
|
Raises:
|
163
163
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
164
164
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
165
165
|
|
166
166
|
Returns:
|
167
|
-
|
167
|
+
Account
|
168
168
|
"""
|
169
169
|
|
170
170
|
return (
|
171
171
|
await asyncio_detailed(
|
172
|
-
|
172
|
+
account_id=account_id,
|
173
173
|
client=client,
|
174
174
|
body=body,
|
175
175
|
)
|
@@ -5,19 +5,19 @@ import httpx
|
|
5
5
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
|
-
from ...models.
|
8
|
+
from ...models.account import Account
|
9
9
|
from ...types import Response
|
10
10
|
|
11
11
|
|
12
12
|
def _get_kwargs(
|
13
13
|
*,
|
14
|
-
body:
|
14
|
+
body: Account,
|
15
15
|
) -> dict[str, Any]:
|
16
16
|
headers: dict[str, Any] = {}
|
17
17
|
|
18
18
|
_kwargs: dict[str, Any] = {
|
19
19
|
"method": "post",
|
20
|
-
"url": "/
|
20
|
+
"url": "/accounts",
|
21
21
|
}
|
22
22
|
|
23
23
|
_body = body.to_dict()
|
@@ -29,9 +29,9 @@ def _get_kwargs(
|
|
29
29
|
return _kwargs
|
30
30
|
|
31
31
|
|
32
|
-
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[
|
32
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Account]:
|
33
33
|
if response.status_code == 200:
|
34
|
-
response_200 =
|
34
|
+
response_200 = Account.from_dict(response.json())
|
35
35
|
|
36
36
|
return response_200
|
37
37
|
if client.raise_on_unexpected_status:
|
@@ -40,7 +40,7 @@ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
40
40
|
return None
|
41
41
|
|
42
42
|
|
43
|
-
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[
|
43
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Account]:
|
44
44
|
return Response(
|
45
45
|
status_code=HTTPStatus(response.status_code),
|
46
46
|
content=response.content,
|
@@ -52,21 +52,21 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
52
52
|
def sync_detailed(
|
53
53
|
*,
|
54
54
|
client: AuthenticatedClient,
|
55
|
-
body:
|
56
|
-
) -> Response[
|
57
|
-
"""Create
|
55
|
+
body: Account,
|
56
|
+
) -> Response[Account]:
|
57
|
+
"""Create account
|
58
58
|
|
59
|
-
|
59
|
+
Creates an account.
|
60
60
|
|
61
61
|
Args:
|
62
|
-
body (
|
62
|
+
body (Account): Account
|
63
63
|
|
64
64
|
Raises:
|
65
65
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
66
66
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
67
67
|
|
68
68
|
Returns:
|
69
|
-
Response[
|
69
|
+
Response[Account]
|
70
70
|
"""
|
71
71
|
|
72
72
|
kwargs = _get_kwargs(
|
@@ -83,21 +83,21 @@ def sync_detailed(
|
|
83
83
|
def sync(
|
84
84
|
*,
|
85
85
|
client: AuthenticatedClient,
|
86
|
-
body:
|
87
|
-
) -> Optional[
|
88
|
-
"""Create
|
86
|
+
body: Account,
|
87
|
+
) -> Optional[Account]:
|
88
|
+
"""Create account
|
89
89
|
|
90
|
-
|
90
|
+
Creates an account.
|
91
91
|
|
92
92
|
Args:
|
93
|
-
body (
|
93
|
+
body (Account): Account
|
94
94
|
|
95
95
|
Raises:
|
96
96
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
97
97
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
98
98
|
|
99
99
|
Returns:
|
100
|
-
|
100
|
+
Account
|
101
101
|
"""
|
102
102
|
|
103
103
|
return sync_detailed(
|
@@ -109,21 +109,21 @@ def sync(
|
|
109
109
|
async def asyncio_detailed(
|
110
110
|
*,
|
111
111
|
client: AuthenticatedClient,
|
112
|
-
body:
|
113
|
-
) -> Response[
|
114
|
-
"""Create
|
112
|
+
body: Account,
|
113
|
+
) -> Response[Account]:
|
114
|
+
"""Create account
|
115
115
|
|
116
|
-
|
116
|
+
Creates an account.
|
117
117
|
|
118
118
|
Args:
|
119
|
-
body (
|
119
|
+
body (Account): Account
|
120
120
|
|
121
121
|
Raises:
|
122
122
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
123
123
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
124
124
|
|
125
125
|
Returns:
|
126
|
-
Response[
|
126
|
+
Response[Account]
|
127
127
|
"""
|
128
128
|
|
129
129
|
kwargs = _get_kwargs(
|
@@ -138,21 +138,21 @@ async def asyncio_detailed(
|
|
138
138
|
async def asyncio(
|
139
139
|
*,
|
140
140
|
client: AuthenticatedClient,
|
141
|
-
body:
|
142
|
-
) -> Optional[
|
143
|
-
"""Create
|
141
|
+
body: Account,
|
142
|
+
) -> Optional[Account]:
|
143
|
+
"""Create account
|
144
144
|
|
145
|
-
|
145
|
+
Creates an account.
|
146
146
|
|
147
147
|
Args:
|
148
|
-
body (
|
148
|
+
body (Account): Account
|
149
149
|
|
150
150
|
Raises:
|
151
151
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
152
152
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
153
153
|
|
154
154
|
Returns:
|
155
|
-
|
155
|
+
Account
|
156
156
|
"""
|
157
157
|
|
158
158
|
return (
|
beamlit/models/__init__.py
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
"""Contains all the data models used in inputs/outputs"""
|
2
2
|
|
3
|
+
from .account import Account
|
4
|
+
from .account_metadata import AccountMetadata
|
5
|
+
from .account_spec import AccountSpec
|
6
|
+
from .account_spec_address import AccountSpecAddress
|
3
7
|
from .acl import ACL
|
4
8
|
from .agent import Agent
|
5
9
|
from .agent_chain import AgentChain
|
@@ -8,6 +12,7 @@ from .agent_history_event import AgentHistoryEvent
|
|
8
12
|
from .agent_release import AgentRelease
|
9
13
|
from .agent_spec import AgentSpec
|
10
14
|
from .api_key import ApiKey
|
15
|
+
from .billing_address import BillingAddress
|
11
16
|
from .configuration import Configuration
|
12
17
|
from .continent import Continent
|
13
18
|
from .core_event import CoreEvent
|
@@ -25,7 +30,6 @@ from .environment_spec import EnvironmentSpec
|
|
25
30
|
from .flavor import Flavor
|
26
31
|
from .function import Function
|
27
32
|
from .function_kit import FunctionKit
|
28
|
-
from .function_metadata import FunctionMetadata
|
29
33
|
from .function_release import FunctionRelease
|
30
34
|
from .function_spec import FunctionSpec
|
31
35
|
from .get_trace_ids_response_200 import GetTraceIdsResponse200
|
@@ -64,7 +68,6 @@ from .pending_invitation_render import PendingInvitationRender
|
|
64
68
|
from .pending_invitation_render_invited_by import PendingInvitationRenderInvitedBy
|
65
69
|
from .pending_invitation_render_workspace import PendingInvitationRenderWorkspace
|
66
70
|
from .pending_invitation_workspace_details import PendingInvitationWorkspaceDetails
|
67
|
-
from .pod_template import PodTemplate
|
68
71
|
from .pod_template_spec import PodTemplateSpec
|
69
72
|
from .policy import Policy
|
70
73
|
from .policy_location import PolicyLocation
|
@@ -118,6 +121,10 @@ from .workspace_labels import WorkspaceLabels
|
|
118
121
|
from .workspace_user import WorkspaceUser
|
119
122
|
|
120
123
|
__all__ = (
|
124
|
+
"Account",
|
125
|
+
"AccountMetadata",
|
126
|
+
"AccountSpec",
|
127
|
+
"AccountSpecAddress",
|
121
128
|
"ACL",
|
122
129
|
"Agent",
|
123
130
|
"AgentChain",
|
@@ -126,6 +133,7 @@ __all__ = (
|
|
126
133
|
"AgentRelease",
|
127
134
|
"AgentSpec",
|
128
135
|
"ApiKey",
|
136
|
+
"BillingAddress",
|
129
137
|
"Configuration",
|
130
138
|
"Continent",
|
131
139
|
"CoreEvent",
|
@@ -143,7 +151,6 @@ __all__ = (
|
|
143
151
|
"Flavor",
|
144
152
|
"Function",
|
145
153
|
"FunctionKit",
|
146
|
-
"FunctionMetadata",
|
147
154
|
"FunctionRelease",
|
148
155
|
"FunctionSpec",
|
149
156
|
"GetTraceIdsResponse200",
|
@@ -180,7 +187,6 @@ __all__ = (
|
|
180
187
|
"PendingInvitationRenderInvitedBy",
|
181
188
|
"PendingInvitationRenderWorkspace",
|
182
189
|
"PendingInvitationWorkspaceDetails",
|
183
|
-
"PodTemplate",
|
184
190
|
"PodTemplateSpec",
|
185
191
|
"Policy",
|
186
192
|
"PolicyLocation",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from typing import TYPE_CHECKING, Any, TypeVar, Union
|
1
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
2
2
|
|
3
3
|
from attrs import define as _attrs_define
|
4
4
|
from attrs import field as _attrs_field
|
@@ -6,15 +6,16 @@ from attrs import field as _attrs_field
|
|
6
6
|
from ..types import UNSET, Unset
|
7
7
|
|
8
8
|
if TYPE_CHECKING:
|
9
|
+
from ..models.account_spec_address import AccountSpecAddress
|
9
10
|
from ..models.metadata_labels import MetadataLabels
|
10
11
|
|
11
12
|
|
12
|
-
T = TypeVar("T", bound="
|
13
|
+
T = TypeVar("T", bound="Account")
|
13
14
|
|
14
15
|
|
15
16
|
@_attrs_define
|
16
|
-
class
|
17
|
-
"""
|
17
|
+
class Account:
|
18
|
+
"""Account
|
18
19
|
|
19
20
|
Attributes:
|
20
21
|
created_at (Union[Unset, str]): The date and time when the resource was created
|
@@ -25,7 +26,14 @@ class ModelMetadata:
|
|
25
26
|
labels (Union[Unset, MetadataLabels]): Labels
|
26
27
|
name (Union[Unset, str]): Model name
|
27
28
|
workspace (Union[Unset, str]): Workspace name
|
28
|
-
|
29
|
+
address (Union[Unset, AccountSpecAddress]): Billing address
|
30
|
+
admins (Union[Unset, list[Any]]): Admins
|
31
|
+
currency (Union[Unset, str]): Currency
|
32
|
+
owner (Union[Unset, str]): Owner
|
33
|
+
status (Union[Unset, str]): Status
|
34
|
+
tax_id (Union[Unset, str]): Tax ID
|
35
|
+
metadata (Union[Unset, Any]):
|
36
|
+
spec (Union[Unset, Any]):
|
29
37
|
"""
|
30
38
|
|
31
39
|
created_at: Union[Unset, str] = UNSET
|
@@ -36,7 +44,14 @@ class ModelMetadata:
|
|
36
44
|
labels: Union[Unset, "MetadataLabels"] = UNSET
|
37
45
|
name: Union[Unset, str] = UNSET
|
38
46
|
workspace: Union[Unset, str] = UNSET
|
39
|
-
|
47
|
+
address: Union[Unset, "AccountSpecAddress"] = UNSET
|
48
|
+
admins: Union[Unset, list[Any]] = UNSET
|
49
|
+
currency: Union[Unset, str] = UNSET
|
50
|
+
owner: Union[Unset, str] = UNSET
|
51
|
+
status: Union[Unset, str] = UNSET
|
52
|
+
tax_id: Union[Unset, str] = UNSET
|
53
|
+
metadata: Union[Unset, Any] = UNSET
|
54
|
+
spec: Union[Unset, Any] = UNSET
|
40
55
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
41
56
|
|
42
57
|
def to_dict(self) -> dict[str, Any]:
|
@@ -51,14 +66,36 @@ class ModelMetadata:
|
|
51
66
|
display_name = self.display_name
|
52
67
|
|
53
68
|
labels: Union[Unset, dict[str, Any]] = UNSET
|
54
|
-
if self.labels and not isinstance(self.labels, Unset):
|
69
|
+
if self.labels and not isinstance(self.labels, Unset) and not isinstance(self.labels, dict):
|
55
70
|
labels = self.labels.to_dict()
|
71
|
+
elif self.labels and isinstance(self.labels, dict):
|
72
|
+
labels = self.labels
|
56
73
|
|
57
74
|
name = self.name
|
58
75
|
|
59
76
|
workspace = self.workspace
|
60
77
|
|
61
|
-
|
78
|
+
address: Union[Unset, dict[str, Any]] = UNSET
|
79
|
+
if self.address and not isinstance(self.address, Unset) and not isinstance(self.address, dict):
|
80
|
+
address = self.address.to_dict()
|
81
|
+
elif self.address and isinstance(self.address, dict):
|
82
|
+
address = self.address
|
83
|
+
|
84
|
+
admins: Union[Unset, list[Any]] = UNSET
|
85
|
+
if not isinstance(self.admins, Unset):
|
86
|
+
admins = self.admins
|
87
|
+
|
88
|
+
currency = self.currency
|
89
|
+
|
90
|
+
owner = self.owner
|
91
|
+
|
92
|
+
status = self.status
|
93
|
+
|
94
|
+
tax_id = self.tax_id
|
95
|
+
|
96
|
+
metadata = self.metadata
|
97
|
+
|
98
|
+
spec = self.spec
|
62
99
|
|
63
100
|
field_dict: dict[str, Any] = {}
|
64
101
|
field_dict.update(self.additional_properties)
|
@@ -79,13 +116,28 @@ class ModelMetadata:
|
|
79
116
|
field_dict["name"] = name
|
80
117
|
if workspace is not UNSET:
|
81
118
|
field_dict["workspace"] = workspace
|
82
|
-
if
|
83
|
-
field_dict["
|
119
|
+
if address is not UNSET:
|
120
|
+
field_dict["address"] = address
|
121
|
+
if admins is not UNSET:
|
122
|
+
field_dict["admins"] = admins
|
123
|
+
if currency is not UNSET:
|
124
|
+
field_dict["currency"] = currency
|
125
|
+
if owner is not UNSET:
|
126
|
+
field_dict["owner"] = owner
|
127
|
+
if status is not UNSET:
|
128
|
+
field_dict["status"] = status
|
129
|
+
if tax_id is not UNSET:
|
130
|
+
field_dict["tax_id"] = tax_id
|
131
|
+
if metadata is not UNSET:
|
132
|
+
field_dict["metadata"] = metadata
|
133
|
+
if spec is not UNSET:
|
134
|
+
field_dict["spec"] = spec
|
84
135
|
|
85
136
|
return field_dict
|
86
137
|
|
87
138
|
@classmethod
|
88
139
|
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
140
|
+
from ..models.account_spec_address import AccountSpecAddress
|
89
141
|
from ..models.metadata_labels import MetadataLabels
|
90
142
|
|
91
143
|
if not src_dict:
|
@@ -112,9 +164,28 @@ class ModelMetadata:
|
|
112
164
|
|
113
165
|
workspace = d.pop("workspace", UNSET)
|
114
166
|
|
115
|
-
|
167
|
+
_address = d.pop("address", UNSET)
|
168
|
+
address: Union[Unset, AccountSpecAddress]
|
169
|
+
if isinstance(_address, Unset):
|
170
|
+
address = UNSET
|
171
|
+
else:
|
172
|
+
address = AccountSpecAddress.from_dict(_address)
|
173
|
+
|
174
|
+
admins = cast(list[Any], d.pop("admins", UNSET))
|
175
|
+
|
176
|
+
currency = d.pop("currency", UNSET)
|
177
|
+
|
178
|
+
owner = d.pop("owner", UNSET)
|
179
|
+
|
180
|
+
status = d.pop("status", UNSET)
|
181
|
+
|
182
|
+
tax_id = d.pop("tax_id", UNSET)
|
183
|
+
|
184
|
+
metadata = d.pop("metadata", UNSET)
|
185
|
+
|
186
|
+
spec = d.pop("spec", UNSET)
|
116
187
|
|
117
|
-
|
188
|
+
account = cls(
|
118
189
|
created_at=created_at,
|
119
190
|
updated_at=updated_at,
|
120
191
|
created_by=created_by,
|
@@ -123,11 +194,18 @@ class ModelMetadata:
|
|
123
194
|
labels=labels,
|
124
195
|
name=name,
|
125
196
|
workspace=workspace,
|
126
|
-
|
197
|
+
address=address,
|
198
|
+
admins=admins,
|
199
|
+
currency=currency,
|
200
|
+
owner=owner,
|
201
|
+
status=status,
|
202
|
+
tax_id=tax_id,
|
203
|
+
metadata=metadata,
|
204
|
+
spec=spec,
|
127
205
|
)
|
128
206
|
|
129
|
-
|
130
|
-
return
|
207
|
+
account.additional_properties = d
|
208
|
+
return account
|
131
209
|
|
132
210
|
@property
|
133
211
|
def additional_keys(self) -> list[str]:
|