daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.5a0__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 daytona_api_client might be problematic. Click here for more details.
- daytona_api_client/api/__init__.py +1 -0
- daytona_api_client/api/api_keys_api.py +328 -171
- daytona_api_client/api/docker_registry_api.py +463 -239
- daytona_api_client/api/object_storage_api.py +63 -33
- daytona_api_client/api/organizations_api.py +1582 -612
- daytona_api_client/api/preview_api.py +175 -71
- daytona_api_client/api/runners_api.py +195 -67
- daytona_api_client/api/sandbox_api.py +909 -499
- daytona_api_client/api/snapshots_api.py +482 -253
- daytona_api_client/api/toolbox_api.py +2684 -1410
- daytona_api_client/api/users_api.py +526 -184
- daytona_api_client/api/volumes_api.py +332 -180
- daytona_api_client/api/workspace_api.py +909 -499
- daytona_api_client/api_client.py +192 -90
- daytona_api_client/api_response.py +3 -2
- daytona_api_client/configuration.py +52 -55
- daytona_api_client/exceptions.py +16 -15
- daytona_api_client/models/account_provider.py +11 -9
- daytona_api_client/models/api_key_list.py +21 -40
- daytona_api_client/models/api_key_response.py +19 -38
- daytona_api_client/models/build_info.py +15 -22
- daytona_api_client/models/command.py +13 -12
- daytona_api_client/models/completion_context.py +11 -11
- daytona_api_client/models/completion_item.py +17 -28
- daytona_api_client/models/completion_list.py +12 -17
- daytona_api_client/models/create_api_key.py +17 -32
- daytona_api_client/models/create_build_info.py +13 -17
- daytona_api_client/models/create_docker_registry.py +18 -21
- daytona_api_client/models/create_linked_account.py +11 -9
- daytona_api_client/models/create_organization.py +10 -9
- daytona_api_client/models/create_organization_invitation.py +17 -24
- daytona_api_client/models/create_organization_quota.py +19 -32
- daytona_api_client/models/create_organization_role.py +15 -28
- daytona_api_client/models/create_runner.py +26 -41
- daytona_api_client/models/create_sandbox.py +39 -76
- daytona_api_client/models/create_session_request.py +10 -9
- daytona_api_client/models/create_snapshot.py +22 -39
- daytona_api_client/models/create_user.py +19 -26
- daytona_api_client/models/create_volume.py +10 -9
- daytona_api_client/models/create_workspace.py +38 -73
- daytona_api_client/models/docker_registry.py +21 -33
- daytona_api_client/models/execute_request.py +13 -12
- daytona_api_client/models/execute_response.py +11 -9
- daytona_api_client/models/file_info.py +17 -20
- daytona_api_client/models/file_status.py +13 -16
- daytona_api_client/models/git_add_request.py +11 -9
- daytona_api_client/models/git_branch_request.py +11 -9
- daytona_api_client/models/git_checkout_request.py +11 -9
- daytona_api_client/models/git_clone_request.py +15 -18
- daytona_api_client/models/git_commit_info.py +14 -17
- daytona_api_client/models/git_commit_request.py +13 -16
- daytona_api_client/models/git_commit_response.py +10 -9
- daytona_api_client/models/git_delete_branch_request.py +11 -9
- daytona_api_client/models/git_repo_request.py +12 -11
- daytona_api_client/models/git_status.py +15 -20
- daytona_api_client/models/list_branch_response.py +10 -9
- daytona_api_client/models/lsp_completion_params.py +16 -19
- daytona_api_client/models/lsp_document_request.py +12 -11
- daytona_api_client/models/lsp_location.py +12 -12
- daytona_api_client/models/lsp_server_request.py +11 -9
- daytona_api_client/models/lsp_symbol.py +13 -16
- daytona_api_client/models/match.py +12 -9
- daytona_api_client/models/organization.py +20 -34
- daytona_api_client/models/organization_invitation.py +27 -44
- daytona_api_client/models/organization_role.py +21 -46
- daytona_api_client/models/organization_suspension.py +11 -9
- daytona_api_client/models/organization_user.py +22 -36
- daytona_api_client/models/paginated_snapshots_dto.py +14 -19
- daytona_api_client/models/port_preview_url.py +11 -9
- daytona_api_client/models/position.py +11 -9
- daytona_api_client/models/project_dir_response.py +10 -9
- daytona_api_client/models/range.py +13 -16
- daytona_api_client/models/registry_push_access_dto.py +15 -18
- daytona_api_client/models/replace_request.py +12 -11
- daytona_api_client/models/replace_result.py +12 -9
- daytona_api_client/models/sandbox.py +49 -95
- daytona_api_client/models/sandbox_info.py +13 -18
- daytona_api_client/models/sandbox_labels.py +10 -9
- daytona_api_client/models/sandbox_state.py +18 -16
- daytona_api_client/models/sandbox_volume.py +11 -9
- daytona_api_client/models/search_files_response.py +10 -9
- daytona_api_client/models/session.py +13 -18
- daytona_api_client/models/session_execute_request.py +14 -19
- daytona_api_client/models/session_execute_response.py +13 -14
- daytona_api_client/models/set_snapshot_general_status_dto.py +10 -9
- daytona_api_client/models/snapshot_dto.py +34 -58
- daytona_api_client/models/snapshot_state.py +12 -10
- daytona_api_client/models/storage_access_dto.py +16 -26
- daytona_api_client/models/toggle_state.py +10 -9
- daytona_api_client/models/update_assigned_organization_roles.py +10 -9
- daytona_api_client/models/update_docker_registry.py +12 -11
- daytona_api_client/models/update_organization_invitation.py +15 -16
- daytona_api_client/models/update_organization_member_role.py +12 -11
- daytona_api_client/models/update_organization_quota.py +28 -41
- daytona_api_client/models/update_organization_role.py +15 -28
- daytona_api_client/models/usage_overview.py +17 -28
- daytona_api_client/models/user.py +14 -19
- daytona_api_client/models/user_public_key.py +11 -9
- daytona_api_client/models/volume_dto.py +20 -32
- daytona_api_client/models/volume_state.py +9 -7
- daytona_api_client/models/workspace.py +58 -113
- daytona_api_client/rest.py +77 -26
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/METADATA +1 -1
- daytona_api_client-0.21.5a0.dist-info/RECORD +117 -0
- daytona_api_client-0.21.3a0.dist-info/RECORD +0 -117
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/top_level.txt +0 -0
|
@@ -25,12 +25,10 @@ from daytona_api_client.models.organization_role import OrganizationRole
|
|
|
25
25
|
from typing import Optional, Set
|
|
26
26
|
from typing_extensions import Self
|
|
27
27
|
|
|
28
|
-
|
|
29
28
|
class OrganizationInvitation(BaseModel):
|
|
30
29
|
"""
|
|
31
30
|
OrganizationInvitation
|
|
32
|
-
"""
|
|
33
|
-
|
|
31
|
+
""" # noqa: E501
|
|
34
32
|
id: StrictStr = Field(description="Invitation ID")
|
|
35
33
|
email: StrictStr = Field(description="Email address of the invitee")
|
|
36
34
|
invited_by: StrictStr = Field(description="Email address of the inviter", alias="invitedBy")
|
|
@@ -43,31 +41,19 @@ class OrganizationInvitation(BaseModel):
|
|
|
43
41
|
created_at: datetime = Field(description="Creation timestamp", alias="createdAt")
|
|
44
42
|
updated_at: datetime = Field(description="Last update timestamp", alias="updatedAt")
|
|
45
43
|
additional_properties: Dict[str, Any] = {}
|
|
46
|
-
__properties: ClassVar[List[str]] = [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"invitedBy",
|
|
50
|
-
"organizationId",
|
|
51
|
-
"organizationName",
|
|
52
|
-
"expiresAt",
|
|
53
|
-
"status",
|
|
54
|
-
"role",
|
|
55
|
-
"assignedRoles",
|
|
56
|
-
"createdAt",
|
|
57
|
-
"updatedAt",
|
|
58
|
-
]
|
|
59
|
-
|
|
60
|
-
@field_validator("status")
|
|
44
|
+
__properties: ClassVar[List[str]] = ["id", "email", "invitedBy", "organizationId", "organizationName", "expiresAt", "status", "role", "assignedRoles", "createdAt", "updatedAt"]
|
|
45
|
+
|
|
46
|
+
@field_validator('status')
|
|
61
47
|
def status_validate_enum(cls, value):
|
|
62
48
|
"""Validates the enum"""
|
|
63
|
-
if value not in set([
|
|
49
|
+
if value not in set(['pending', 'accepted', 'declined', 'cancelled']):
|
|
64
50
|
raise ValueError("must be one of enum values ('pending', 'accepted', 'declined', 'cancelled')")
|
|
65
51
|
return value
|
|
66
52
|
|
|
67
|
-
@field_validator(
|
|
53
|
+
@field_validator('role')
|
|
68
54
|
def role_validate_enum(cls, value):
|
|
69
55
|
"""Validates the enum"""
|
|
70
|
-
if value not in set([
|
|
56
|
+
if value not in set(['owner', 'member']):
|
|
71
57
|
raise ValueError("must be one of enum values ('owner', 'member')")
|
|
72
58
|
return value
|
|
73
59
|
|
|
@@ -77,6 +63,7 @@ class OrganizationInvitation(BaseModel):
|
|
|
77
63
|
protected_namespaces=(),
|
|
78
64
|
)
|
|
79
65
|
|
|
66
|
+
|
|
80
67
|
def to_str(self) -> str:
|
|
81
68
|
"""Returns the string representation of the model using alias"""
|
|
82
69
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -102,11 +89,9 @@ class OrganizationInvitation(BaseModel):
|
|
|
102
89
|
are ignored.
|
|
103
90
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
104
91
|
"""
|
|
105
|
-
excluded_fields: Set[str] = set(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
]
|
|
109
|
-
)
|
|
92
|
+
excluded_fields: Set[str] = set([
|
|
93
|
+
"additional_properties",
|
|
94
|
+
])
|
|
110
95
|
|
|
111
96
|
_dict = self.model_dump(
|
|
112
97
|
by_alias=True,
|
|
@@ -119,7 +104,7 @@ class OrganizationInvitation(BaseModel):
|
|
|
119
104
|
for _item_assigned_roles in self.assigned_roles:
|
|
120
105
|
if _item_assigned_roles:
|
|
121
106
|
_items.append(_item_assigned_roles.to_dict())
|
|
122
|
-
_dict[
|
|
107
|
+
_dict['assignedRoles'] = _items
|
|
123
108
|
# puts key-value pairs in additional_properties in the top level
|
|
124
109
|
if self.additional_properties is not None:
|
|
125
110
|
for _key, _value in self.additional_properties.items():
|
|
@@ -136,26 +121,24 @@ class OrganizationInvitation(BaseModel):
|
|
|
136
121
|
if not isinstance(obj, dict):
|
|
137
122
|
return cls.model_validate(obj)
|
|
138
123
|
|
|
139
|
-
_obj = cls.model_validate(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"createdAt": obj.get("createdAt"),
|
|
153
|
-
"updatedAt": obj.get("updatedAt"),
|
|
154
|
-
}
|
|
155
|
-
)
|
|
124
|
+
_obj = cls.model_validate({
|
|
125
|
+
"id": obj.get("id"),
|
|
126
|
+
"email": obj.get("email"),
|
|
127
|
+
"invitedBy": obj.get("invitedBy"),
|
|
128
|
+
"organizationId": obj.get("organizationId"),
|
|
129
|
+
"organizationName": obj.get("organizationName"),
|
|
130
|
+
"expiresAt": obj.get("expiresAt"),
|
|
131
|
+
"status": obj.get("status"),
|
|
132
|
+
"role": obj.get("role"),
|
|
133
|
+
"assignedRoles": [OrganizationRole.from_dict(_item) for _item in obj["assignedRoles"]] if obj.get("assignedRoles") is not None else None,
|
|
134
|
+
"createdAt": obj.get("createdAt"),
|
|
135
|
+
"updatedAt": obj.get("updatedAt")
|
|
136
|
+
})
|
|
156
137
|
# store additional fields in additional_properties
|
|
157
138
|
for _key in obj.keys():
|
|
158
139
|
if _key not in cls.__properties:
|
|
159
140
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
160
141
|
|
|
161
142
|
return _obj
|
|
143
|
+
|
|
144
|
+
|
|
@@ -24,12 +24,10 @@ from typing import Any, ClassVar, Dict, List
|
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
class OrganizationRole(BaseModel):
|
|
29
28
|
"""
|
|
30
29
|
OrganizationRole
|
|
31
|
-
"""
|
|
32
|
-
|
|
30
|
+
""" # noqa: E501
|
|
33
31
|
id: StrictStr = Field(description="Role ID")
|
|
34
32
|
name: StrictStr = Field(description="Role name")
|
|
35
33
|
description: StrictStr = Field(description="Role description")
|
|
@@ -38,36 +36,14 @@ class OrganizationRole(BaseModel):
|
|
|
38
36
|
created_at: datetime = Field(description="Creation timestamp", alias="createdAt")
|
|
39
37
|
updated_at: datetime = Field(description="Last update timestamp", alias="updatedAt")
|
|
40
38
|
additional_properties: Dict[str, Any] = {}
|
|
41
|
-
__properties: ClassVar[List[str]] = [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"description",
|
|
45
|
-
"permissions",
|
|
46
|
-
"isGlobal",
|
|
47
|
-
"createdAt",
|
|
48
|
-
"updatedAt",
|
|
49
|
-
]
|
|
50
|
-
|
|
51
|
-
@field_validator("permissions")
|
|
39
|
+
__properties: ClassVar[List[str]] = ["id", "name", "description", "permissions", "isGlobal", "createdAt", "updatedAt"]
|
|
40
|
+
|
|
41
|
+
@field_validator('permissions')
|
|
52
42
|
def permissions_validate_enum(cls, value):
|
|
53
43
|
"""Validates the enum"""
|
|
54
44
|
for i in value:
|
|
55
|
-
if i not in set(
|
|
56
|
-
|
|
57
|
-
"write:registries",
|
|
58
|
-
"delete:registries",
|
|
59
|
-
"write:snapshots",
|
|
60
|
-
"delete:snapshots",
|
|
61
|
-
"write:sandboxes",
|
|
62
|
-
"delete:sandboxes",
|
|
63
|
-
"read:volumes",
|
|
64
|
-
"write:volumes",
|
|
65
|
-
"delete:volumes",
|
|
66
|
-
]
|
|
67
|
-
):
|
|
68
|
-
raise ValueError(
|
|
69
|
-
"each list item must be one of ('write:registries', 'delete:registries', 'write:snapshots', 'delete:snapshots', 'write:sandboxes', 'delete:sandboxes', 'read:volumes', 'write:volumes', 'delete:volumes')"
|
|
70
|
-
)
|
|
45
|
+
if i not in set(['write:registries', 'delete:registries', 'write:snapshots', 'delete:snapshots', 'write:sandboxes', 'delete:sandboxes', 'read:volumes', 'write:volumes', 'delete:volumes']):
|
|
46
|
+
raise ValueError("each list item must be one of ('write:registries', 'delete:registries', 'write:snapshots', 'delete:snapshots', 'write:sandboxes', 'delete:sandboxes', 'read:volumes', 'write:volumes', 'delete:volumes')")
|
|
71
47
|
return value
|
|
72
48
|
|
|
73
49
|
model_config = ConfigDict(
|
|
@@ -76,6 +52,7 @@ class OrganizationRole(BaseModel):
|
|
|
76
52
|
protected_namespaces=(),
|
|
77
53
|
)
|
|
78
54
|
|
|
55
|
+
|
|
79
56
|
def to_str(self) -> str:
|
|
80
57
|
"""Returns the string representation of the model using alias"""
|
|
81
58
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -101,11 +78,9 @@ class OrganizationRole(BaseModel):
|
|
|
101
78
|
are ignored.
|
|
102
79
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
103
80
|
"""
|
|
104
|
-
excluded_fields: Set[str] = set(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
]
|
|
108
|
-
)
|
|
81
|
+
excluded_fields: Set[str] = set([
|
|
82
|
+
"additional_properties",
|
|
83
|
+
])
|
|
109
84
|
|
|
110
85
|
_dict = self.model_dump(
|
|
111
86
|
by_alias=True,
|
|
@@ -128,20 +103,20 @@ class OrganizationRole(BaseModel):
|
|
|
128
103
|
if not isinstance(obj, dict):
|
|
129
104
|
return cls.model_validate(obj)
|
|
130
105
|
|
|
131
|
-
_obj = cls.model_validate(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
)
|
|
106
|
+
_obj = cls.model_validate({
|
|
107
|
+
"id": obj.get("id"),
|
|
108
|
+
"name": obj.get("name"),
|
|
109
|
+
"description": obj.get("description"),
|
|
110
|
+
"permissions": obj.get("permissions"),
|
|
111
|
+
"isGlobal": obj.get("isGlobal"),
|
|
112
|
+
"createdAt": obj.get("createdAt"),
|
|
113
|
+
"updatedAt": obj.get("updatedAt")
|
|
114
|
+
})
|
|
142
115
|
# store additional fields in additional_properties
|
|
143
116
|
for _key in obj.keys():
|
|
144
117
|
if _key not in cls.__properties:
|
|
145
118
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
146
119
|
|
|
147
120
|
return _obj
|
|
121
|
+
|
|
122
|
+
|
|
@@ -24,12 +24,10 @@ from typing import Any, ClassVar, Dict, List
|
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
class OrganizationSuspension(BaseModel):
|
|
29
28
|
"""
|
|
30
29
|
OrganizationSuspension
|
|
31
|
-
"""
|
|
32
|
-
|
|
30
|
+
""" # noqa: E501
|
|
33
31
|
reason: StrictStr = Field(description="Suspension reason")
|
|
34
32
|
until: datetime = Field(description="Suspension until")
|
|
35
33
|
additional_properties: Dict[str, Any] = {}
|
|
@@ -41,6 +39,7 @@ class OrganizationSuspension(BaseModel):
|
|
|
41
39
|
protected_namespaces=(),
|
|
42
40
|
)
|
|
43
41
|
|
|
42
|
+
|
|
44
43
|
def to_str(self) -> str:
|
|
45
44
|
"""Returns the string representation of the model using alias"""
|
|
46
45
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -66,11 +65,9 @@ class OrganizationSuspension(BaseModel):
|
|
|
66
65
|
are ignored.
|
|
67
66
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
68
67
|
"""
|
|
69
|
-
excluded_fields: Set[str] = set(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
]
|
|
73
|
-
)
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
74
71
|
|
|
75
72
|
_dict = self.model_dump(
|
|
76
73
|
by_alias=True,
|
|
@@ -93,10 +90,15 @@ class OrganizationSuspension(BaseModel):
|
|
|
93
90
|
if not isinstance(obj, dict):
|
|
94
91
|
return cls.model_validate(obj)
|
|
95
92
|
|
|
96
|
-
_obj = cls.model_validate({
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"reason": obj.get("reason"),
|
|
95
|
+
"until": obj.get("until")
|
|
96
|
+
})
|
|
97
97
|
# store additional fields in additional_properties
|
|
98
98
|
for _key in obj.keys():
|
|
99
99
|
if _key not in cls.__properties:
|
|
100
100
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
101
101
|
|
|
102
102
|
return _obj
|
|
103
|
+
|
|
104
|
+
|
|
@@ -25,12 +25,10 @@ from daytona_api_client.models.organization_role import OrganizationRole
|
|
|
25
25
|
from typing import Optional, Set
|
|
26
26
|
from typing_extensions import Self
|
|
27
27
|
|
|
28
|
-
|
|
29
28
|
class OrganizationUser(BaseModel):
|
|
30
29
|
"""
|
|
31
30
|
OrganizationUser
|
|
32
|
-
"""
|
|
33
|
-
|
|
31
|
+
""" # noqa: E501
|
|
34
32
|
user_id: StrictStr = Field(description="User ID", alias="userId")
|
|
35
33
|
organization_id: StrictStr = Field(description="Organization ID", alias="organizationId")
|
|
36
34
|
name: StrictStr = Field(description="User name")
|
|
@@ -40,21 +38,12 @@ class OrganizationUser(BaseModel):
|
|
|
40
38
|
created_at: datetime = Field(description="Creation timestamp", alias="createdAt")
|
|
41
39
|
updated_at: datetime = Field(description="Last update timestamp", alias="updatedAt")
|
|
42
40
|
additional_properties: Dict[str, Any] = {}
|
|
43
|
-
__properties: ClassVar[List[str]] = [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"name",
|
|
47
|
-
"email",
|
|
48
|
-
"role",
|
|
49
|
-
"assignedRoles",
|
|
50
|
-
"createdAt",
|
|
51
|
-
"updatedAt",
|
|
52
|
-
]
|
|
53
|
-
|
|
54
|
-
@field_validator("role")
|
|
41
|
+
__properties: ClassVar[List[str]] = ["userId", "organizationId", "name", "email", "role", "assignedRoles", "createdAt", "updatedAt"]
|
|
42
|
+
|
|
43
|
+
@field_validator('role')
|
|
55
44
|
def role_validate_enum(cls, value):
|
|
56
45
|
"""Validates the enum"""
|
|
57
|
-
if value not in set([
|
|
46
|
+
if value not in set(['owner', 'member']):
|
|
58
47
|
raise ValueError("must be one of enum values ('owner', 'member')")
|
|
59
48
|
return value
|
|
60
49
|
|
|
@@ -64,6 +53,7 @@ class OrganizationUser(BaseModel):
|
|
|
64
53
|
protected_namespaces=(),
|
|
65
54
|
)
|
|
66
55
|
|
|
56
|
+
|
|
67
57
|
def to_str(self) -> str:
|
|
68
58
|
"""Returns the string representation of the model using alias"""
|
|
69
59
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -89,11 +79,9 @@ class OrganizationUser(BaseModel):
|
|
|
89
79
|
are ignored.
|
|
90
80
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
91
81
|
"""
|
|
92
|
-
excluded_fields: Set[str] = set(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
]
|
|
96
|
-
)
|
|
82
|
+
excluded_fields: Set[str] = set([
|
|
83
|
+
"additional_properties",
|
|
84
|
+
])
|
|
97
85
|
|
|
98
86
|
_dict = self.model_dump(
|
|
99
87
|
by_alias=True,
|
|
@@ -106,7 +94,7 @@ class OrganizationUser(BaseModel):
|
|
|
106
94
|
for _item_assigned_roles in self.assigned_roles:
|
|
107
95
|
if _item_assigned_roles:
|
|
108
96
|
_items.append(_item_assigned_roles.to_dict())
|
|
109
|
-
_dict[
|
|
97
|
+
_dict['assignedRoles'] = _items
|
|
110
98
|
# puts key-value pairs in additional_properties in the top level
|
|
111
99
|
if self.additional_properties is not None:
|
|
112
100
|
for _key, _value in self.additional_properties.items():
|
|
@@ -123,23 +111,21 @@ class OrganizationUser(BaseModel):
|
|
|
123
111
|
if not isinstance(obj, dict):
|
|
124
112
|
return cls.model_validate(obj)
|
|
125
113
|
|
|
126
|
-
_obj = cls.model_validate(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"createdAt": obj.get("createdAt"),
|
|
137
|
-
"updatedAt": obj.get("updatedAt"),
|
|
138
|
-
}
|
|
139
|
-
)
|
|
114
|
+
_obj = cls.model_validate({
|
|
115
|
+
"userId": obj.get("userId"),
|
|
116
|
+
"organizationId": obj.get("organizationId"),
|
|
117
|
+
"name": obj.get("name"),
|
|
118
|
+
"email": obj.get("email"),
|
|
119
|
+
"role": obj.get("role"),
|
|
120
|
+
"assignedRoles": [OrganizationRole.from_dict(_item) for _item in obj["assignedRoles"]] if obj.get("assignedRoles") is not None else None,
|
|
121
|
+
"createdAt": obj.get("createdAt"),
|
|
122
|
+
"updatedAt": obj.get("updatedAt")
|
|
123
|
+
})
|
|
140
124
|
# store additional fields in additional_properties
|
|
141
125
|
for _key in obj.keys():
|
|
142
126
|
if _key not in cls.__properties:
|
|
143
127
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
144
128
|
|
|
145
129
|
return _obj
|
|
130
|
+
|
|
131
|
+
|
|
@@ -24,12 +24,10 @@ from daytona_api_client.models.snapshot_dto import SnapshotDto
|
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
class PaginatedSnapshotsDto(BaseModel):
|
|
29
28
|
"""
|
|
30
29
|
PaginatedSnapshotsDto
|
|
31
|
-
"""
|
|
32
|
-
|
|
30
|
+
""" # noqa: E501
|
|
33
31
|
items: List[SnapshotDto]
|
|
34
32
|
total: Union[StrictFloat, StrictInt]
|
|
35
33
|
page: Union[StrictFloat, StrictInt]
|
|
@@ -43,6 +41,7 @@ class PaginatedSnapshotsDto(BaseModel):
|
|
|
43
41
|
protected_namespaces=(),
|
|
44
42
|
)
|
|
45
43
|
|
|
44
|
+
|
|
46
45
|
def to_str(self) -> str:
|
|
47
46
|
"""Returns the string representation of the model using alias"""
|
|
48
47
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -68,11 +67,9 @@ class PaginatedSnapshotsDto(BaseModel):
|
|
|
68
67
|
are ignored.
|
|
69
68
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
70
69
|
"""
|
|
71
|
-
excluded_fields: Set[str] = set(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
]
|
|
75
|
-
)
|
|
70
|
+
excluded_fields: Set[str] = set([
|
|
71
|
+
"additional_properties",
|
|
72
|
+
])
|
|
76
73
|
|
|
77
74
|
_dict = self.model_dump(
|
|
78
75
|
by_alias=True,
|
|
@@ -85,7 +82,7 @@ class PaginatedSnapshotsDto(BaseModel):
|
|
|
85
82
|
for _item_items in self.items:
|
|
86
83
|
if _item_items:
|
|
87
84
|
_items.append(_item_items.to_dict())
|
|
88
|
-
_dict[
|
|
85
|
+
_dict['items'] = _items
|
|
89
86
|
# puts key-value pairs in additional_properties in the top level
|
|
90
87
|
if self.additional_properties is not None:
|
|
91
88
|
for _key, _value in self.additional_properties.items():
|
|
@@ -102,19 +99,17 @@ class PaginatedSnapshotsDto(BaseModel):
|
|
|
102
99
|
if not isinstance(obj, dict):
|
|
103
100
|
return cls.model_validate(obj)
|
|
104
101
|
|
|
105
|
-
_obj = cls.model_validate(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"page": obj.get("page"),
|
|
112
|
-
"totalPages": obj.get("totalPages"),
|
|
113
|
-
}
|
|
114
|
-
)
|
|
102
|
+
_obj = cls.model_validate({
|
|
103
|
+
"items": [SnapshotDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
|
|
104
|
+
"total": obj.get("total"),
|
|
105
|
+
"page": obj.get("page"),
|
|
106
|
+
"totalPages": obj.get("totalPages")
|
|
107
|
+
})
|
|
115
108
|
# store additional fields in additional_properties
|
|
116
109
|
for _key in obj.keys():
|
|
117
110
|
if _key not in cls.__properties:
|
|
118
111
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
119
112
|
|
|
120
113
|
return _obj
|
|
114
|
+
|
|
115
|
+
|
|
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
class PortPreviewUrl(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
PortPreviewUrl
|
|
30
|
-
"""
|
|
31
|
-
|
|
29
|
+
""" # noqa: E501
|
|
32
30
|
url: StrictStr = Field(description="Preview url")
|
|
33
31
|
token: StrictStr = Field(description="Access token")
|
|
34
32
|
additional_properties: Dict[str, Any] = {}
|
|
@@ -40,6 +38,7 @@ class PortPreviewUrl(BaseModel):
|
|
|
40
38
|
protected_namespaces=(),
|
|
41
39
|
)
|
|
42
40
|
|
|
41
|
+
|
|
43
42
|
def to_str(self) -> str:
|
|
44
43
|
"""Returns the string representation of the model using alias"""
|
|
45
44
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -65,11 +64,9 @@ class PortPreviewUrl(BaseModel):
|
|
|
65
64
|
are ignored.
|
|
66
65
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
66
|
"""
|
|
68
|
-
excluded_fields: Set[str] = set(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
]
|
|
72
|
-
)
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
"additional_properties",
|
|
69
|
+
])
|
|
73
70
|
|
|
74
71
|
_dict = self.model_dump(
|
|
75
72
|
by_alias=True,
|
|
@@ -92,10 +89,15 @@ class PortPreviewUrl(BaseModel):
|
|
|
92
89
|
if not isinstance(obj, dict):
|
|
93
90
|
return cls.model_validate(obj)
|
|
94
91
|
|
|
95
|
-
_obj = cls.model_validate({
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"url": obj.get("url"),
|
|
94
|
+
"token": obj.get("token")
|
|
95
|
+
})
|
|
96
96
|
# store additional fields in additional_properties
|
|
97
97
|
for _key in obj.keys():
|
|
98
98
|
if _key not in cls.__properties:
|
|
99
99
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
100
100
|
|
|
101
101
|
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List, Union
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
class Position(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
Position
|
|
30
|
-
"""
|
|
31
|
-
|
|
29
|
+
""" # noqa: E501
|
|
32
30
|
line: Union[StrictFloat, StrictInt]
|
|
33
31
|
character: Union[StrictFloat, StrictInt]
|
|
34
32
|
additional_properties: Dict[str, Any] = {}
|
|
@@ -40,6 +38,7 @@ class Position(BaseModel):
|
|
|
40
38
|
protected_namespaces=(),
|
|
41
39
|
)
|
|
42
40
|
|
|
41
|
+
|
|
43
42
|
def to_str(self) -> str:
|
|
44
43
|
"""Returns the string representation of the model using alias"""
|
|
45
44
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -65,11 +64,9 @@ class Position(BaseModel):
|
|
|
65
64
|
are ignored.
|
|
66
65
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
66
|
"""
|
|
68
|
-
excluded_fields: Set[str] = set(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
]
|
|
72
|
-
)
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
"additional_properties",
|
|
69
|
+
])
|
|
73
70
|
|
|
74
71
|
_dict = self.model_dump(
|
|
75
72
|
by_alias=True,
|
|
@@ -92,10 +89,15 @@ class Position(BaseModel):
|
|
|
92
89
|
if not isinstance(obj, dict):
|
|
93
90
|
return cls.model_validate(obj)
|
|
94
91
|
|
|
95
|
-
_obj = cls.model_validate({
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"line": obj.get("line"),
|
|
94
|
+
"character": obj.get("character")
|
|
95
|
+
})
|
|
96
96
|
# store additional fields in additional_properties
|
|
97
97
|
for _key in obj.keys():
|
|
98
98
|
if _key not in cls.__properties:
|
|
99
99
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
100
100
|
|
|
101
101
|
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
class ProjectDirResponse(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
ProjectDirResponse
|
|
30
|
-
"""
|
|
31
|
-
|
|
29
|
+
""" # noqa: E501
|
|
32
30
|
dir: Optional[StrictStr] = None
|
|
33
31
|
additional_properties: Dict[str, Any] = {}
|
|
34
32
|
__properties: ClassVar[List[str]] = ["dir"]
|
|
@@ -39,6 +37,7 @@ class ProjectDirResponse(BaseModel):
|
|
|
39
37
|
protected_namespaces=(),
|
|
40
38
|
)
|
|
41
39
|
|
|
40
|
+
|
|
42
41
|
def to_str(self) -> str:
|
|
43
42
|
"""Returns the string representation of the model using alias"""
|
|
44
43
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -64,11 +63,9 @@ class ProjectDirResponse(BaseModel):
|
|
|
64
63
|
are ignored.
|
|
65
64
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
66
65
|
"""
|
|
67
|
-
excluded_fields: Set[str] = set(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
]
|
|
71
|
-
)
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
72
69
|
|
|
73
70
|
_dict = self.model_dump(
|
|
74
71
|
by_alias=True,
|
|
@@ -91,10 +88,14 @@ class ProjectDirResponse(BaseModel):
|
|
|
91
88
|
if not isinstance(obj, dict):
|
|
92
89
|
return cls.model_validate(obj)
|
|
93
90
|
|
|
94
|
-
_obj = cls.model_validate({
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"dir": obj.get("dir")
|
|
93
|
+
})
|
|
95
94
|
# store additional fields in additional_properties
|
|
96
95
|
for _key in obj.keys():
|
|
97
96
|
if _key not in cls.__properties:
|
|
98
97
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
99
98
|
|
|
100
99
|
return _obj
|
|
100
|
+
|
|
101
|
+
|