daytona_api_client_async 0.25.5__py3-none-any.whl → 0.25.6__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_async might be problematic. Click here for more details.
- daytona_api_client_async/__init__.py +1 -1
- daytona_api_client_async/api/organizations_api.py +6 -6
- daytona_api_client_async/models/__init__.py +1 -1
- daytona_api_client_async/models/create_audit_log.py +2 -2
- daytona_api_client_async/models/create_sandbox.py +5 -1
- daytona_api_client_async/models/organization_usage_overview.py +119 -0
- daytona_api_client_async/models/sandbox.py +5 -1
- daytona_api_client_async/models/sandbox_state.py +1 -1
- daytona_api_client_async/models/workspace.py +5 -1
- {daytona_api_client_async-0.25.5.dist-info → daytona_api_client_async-0.25.6.dist-info}/METADATA +1 -1
- {daytona_api_client_async-0.25.5.dist-info → daytona_api_client_async-0.25.6.dist-info}/RECORD +14 -13
- {daytona_api_client_async-0.25.5.dist-info → daytona_api_client_async-0.25.6.dist-info}/WHEEL +0 -0
- {daytona_api_client_async-0.25.5.dist-info → daytona_api_client_async-0.25.6.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client_async-0.25.5.dist-info → daytona_api_client_async-0.25.6.dist-info}/top_level.txt +0 -0
|
@@ -112,6 +112,7 @@ from daytona_api_client_async.models.organization import Organization
|
|
|
112
112
|
from daytona_api_client_async.models.organization_invitation import OrganizationInvitation
|
|
113
113
|
from daytona_api_client_async.models.organization_role import OrganizationRole
|
|
114
114
|
from daytona_api_client_async.models.organization_suspension import OrganizationSuspension
|
|
115
|
+
from daytona_api_client_async.models.organization_usage_overview import OrganizationUsageOverview
|
|
115
116
|
from daytona_api_client_async.models.organization_user import OrganizationUser
|
|
116
117
|
from daytona_api_client_async.models.paginated_audit_logs import PaginatedAuditLogs
|
|
117
118
|
from daytona_api_client_async.models.paginated_snapshots_dto import PaginatedSnapshotsDto
|
|
@@ -152,7 +153,6 @@ from daytona_api_client_async.models.update_organization_invitation import Updat
|
|
|
152
153
|
from daytona_api_client_async.models.update_organization_member_role import UpdateOrganizationMemberRole
|
|
153
154
|
from daytona_api_client_async.models.update_organization_quota import UpdateOrganizationQuota
|
|
154
155
|
from daytona_api_client_async.models.update_organization_role import UpdateOrganizationRole
|
|
155
|
-
from daytona_api_client_async.models.usage_overview import UsageOverview
|
|
156
156
|
from daytona_api_client_async.models.user import User
|
|
157
157
|
from daytona_api_client_async.models.user_public_key import UserPublicKey
|
|
158
158
|
from daytona_api_client_async.models.volume_dto import VolumeDto
|
|
@@ -27,13 +27,13 @@ from daytona_api_client_async.models.organization import Organization
|
|
|
27
27
|
from daytona_api_client_async.models.organization_invitation import OrganizationInvitation
|
|
28
28
|
from daytona_api_client_async.models.organization_role import OrganizationRole
|
|
29
29
|
from daytona_api_client_async.models.organization_suspension import OrganizationSuspension
|
|
30
|
+
from daytona_api_client_async.models.organization_usage_overview import OrganizationUsageOverview
|
|
30
31
|
from daytona_api_client_async.models.organization_user import OrganizationUser
|
|
31
32
|
from daytona_api_client_async.models.update_assigned_organization_roles import UpdateAssignedOrganizationRoles
|
|
32
33
|
from daytona_api_client_async.models.update_organization_invitation import UpdateOrganizationInvitation
|
|
33
34
|
from daytona_api_client_async.models.update_organization_member_role import UpdateOrganizationMemberRole
|
|
34
35
|
from daytona_api_client_async.models.update_organization_quota import UpdateOrganizationQuota
|
|
35
36
|
from daytona_api_client_async.models.update_organization_role import UpdateOrganizationRole
|
|
36
|
-
from daytona_api_client_async.models.usage_overview import UsageOverview
|
|
37
37
|
|
|
38
38
|
from daytona_api_client_async.api_client import ApiClient, RequestSerialized
|
|
39
39
|
from daytona_api_client_async.api_response import ApiResponse
|
|
@@ -3234,7 +3234,7 @@ class OrganizationsApi:
|
|
|
3234
3234
|
_content_type: Optional[StrictStr] = None,
|
|
3235
3235
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3236
3236
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3237
|
-
) ->
|
|
3237
|
+
) -> OrganizationUsageOverview:
|
|
3238
3238
|
"""Get organization current usage overview
|
|
3239
3239
|
|
|
3240
3240
|
|
|
@@ -3271,7 +3271,7 @@ class OrganizationsApi:
|
|
|
3271
3271
|
)
|
|
3272
3272
|
|
|
3273
3273
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3274
|
-
'200': "
|
|
3274
|
+
'200': "OrganizationUsageOverview",
|
|
3275
3275
|
}
|
|
3276
3276
|
response_data = await self.api_client.call_api(
|
|
3277
3277
|
*_param,
|
|
@@ -3300,7 +3300,7 @@ class OrganizationsApi:
|
|
|
3300
3300
|
_content_type: Optional[StrictStr] = None,
|
|
3301
3301
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3302
3302
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3303
|
-
) -> ApiResponse[
|
|
3303
|
+
) -> ApiResponse[OrganizationUsageOverview]:
|
|
3304
3304
|
"""Get organization current usage overview
|
|
3305
3305
|
|
|
3306
3306
|
|
|
@@ -3337,7 +3337,7 @@ class OrganizationsApi:
|
|
|
3337
3337
|
)
|
|
3338
3338
|
|
|
3339
3339
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3340
|
-
'200': "
|
|
3340
|
+
'200': "OrganizationUsageOverview",
|
|
3341
3341
|
}
|
|
3342
3342
|
response_data = await self.api_client.call_api(
|
|
3343
3343
|
*_param,
|
|
@@ -3403,7 +3403,7 @@ class OrganizationsApi:
|
|
|
3403
3403
|
)
|
|
3404
3404
|
|
|
3405
3405
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3406
|
-
'200': "
|
|
3406
|
+
'200': "OrganizationUsageOverview",
|
|
3407
3407
|
}
|
|
3408
3408
|
response_data = await self.api_client.call_api(
|
|
3409
3409
|
*_param,
|
|
@@ -83,6 +83,7 @@ from daytona_api_client_async.models.organization import Organization
|
|
|
83
83
|
from daytona_api_client_async.models.organization_invitation import OrganizationInvitation
|
|
84
84
|
from daytona_api_client_async.models.organization_role import OrganizationRole
|
|
85
85
|
from daytona_api_client_async.models.organization_suspension import OrganizationSuspension
|
|
86
|
+
from daytona_api_client_async.models.organization_usage_overview import OrganizationUsageOverview
|
|
86
87
|
from daytona_api_client_async.models.organization_user import OrganizationUser
|
|
87
88
|
from daytona_api_client_async.models.paginated_audit_logs import PaginatedAuditLogs
|
|
88
89
|
from daytona_api_client_async.models.paginated_snapshots_dto import PaginatedSnapshotsDto
|
|
@@ -123,7 +124,6 @@ from daytona_api_client_async.models.update_organization_invitation import Updat
|
|
|
123
124
|
from daytona_api_client_async.models.update_organization_member_role import UpdateOrganizationMemberRole
|
|
124
125
|
from daytona_api_client_async.models.update_organization_quota import UpdateOrganizationQuota
|
|
125
126
|
from daytona_api_client_async.models.update_organization_role import UpdateOrganizationRole
|
|
126
|
-
from daytona_api_client_async.models.usage_overview import UsageOverview
|
|
127
127
|
from daytona_api_client_async.models.user import User
|
|
128
128
|
from daytona_api_client_async.models.user_public_key import UserPublicKey
|
|
129
129
|
from daytona_api_client_async.models.volume_dto import VolumeDto
|
|
@@ -39,8 +39,8 @@ class CreateAuditLog(BaseModel):
|
|
|
39
39
|
@field_validator('action')
|
|
40
40
|
def action_validate_enum(cls, value):
|
|
41
41
|
"""Validates the enum"""
|
|
42
|
-
if value not in set(['create', 'read', 'update', 'delete', 'login', 'set_default', 'update_role', 'update_assigned_roles', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process']):
|
|
43
|
-
raise ValueError("must be one of enum values ('create', 'read', 'update', 'delete', 'login', 'set_default', 'update_role', 'update_assigned_roles', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process')")
|
|
42
|
+
if value not in set(['create', 'read', 'update', 'delete', 'login', 'set_default', 'update_role', 'update_assigned_roles', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process']):
|
|
43
|
+
raise ValueError("must be one of enum values ('create', 'read', 'update', 'delete', 'login', 'set_default', 'update_role', 'update_assigned_roles', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process')")
|
|
44
44
|
return value
|
|
45
45
|
|
|
46
46
|
@field_validator('target_type')
|
|
@@ -34,6 +34,8 @@ class CreateSandbox(BaseModel):
|
|
|
34
34
|
env: Optional[Dict[str, StrictStr]] = Field(default=None, description="Environment variables for the sandbox")
|
|
35
35
|
labels: Optional[Dict[str, StrictStr]] = Field(default=None, description="Labels for the sandbox")
|
|
36
36
|
public: Optional[StrictBool] = Field(default=None, description="Whether the sandbox http preview is publicly accessible")
|
|
37
|
+
network_block_all: Optional[StrictBool] = Field(default=None, description="Whether to block all network access for the sandbox", alias="networkBlockAll")
|
|
38
|
+
network_allow_list: Optional[StrictStr] = Field(default=None, description="Comma-separated list of allowed CIDR network addresses for the sandbox", alias="networkAllowList")
|
|
37
39
|
var_class: Optional[StrictStr] = Field(default=None, description="The sandbox class type", alias="class")
|
|
38
40
|
target: Optional[StrictStr] = Field(default=None, description="The target (region) where the sandbox will be created")
|
|
39
41
|
cpu: Optional[StrictInt] = Field(default=None, description="CPU cores allocated to the sandbox")
|
|
@@ -46,7 +48,7 @@ class CreateSandbox(BaseModel):
|
|
|
46
48
|
volumes: Optional[List[SandboxVolume]] = Field(default=None, description="Array of volumes to attach to the sandbox")
|
|
47
49
|
build_info: Optional[CreateBuildInfo] = Field(default=None, description="Build information for the sandbox", alias="buildInfo")
|
|
48
50
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__properties: ClassVar[List[str]] = ["snapshot", "user", "env", "labels", "public", "class", "target", "cpu", "gpu", "memory", "disk", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "volumes", "buildInfo"]
|
|
51
|
+
__properties: ClassVar[List[str]] = ["snapshot", "user", "env", "labels", "public", "networkBlockAll", "networkAllowList", "class", "target", "cpu", "gpu", "memory", "disk", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "volumes", "buildInfo"]
|
|
50
52
|
|
|
51
53
|
@field_validator('var_class')
|
|
52
54
|
def var_class_validate_enum(cls, value):
|
|
@@ -131,6 +133,8 @@ class CreateSandbox(BaseModel):
|
|
|
131
133
|
"env": obj.get("env"),
|
|
132
134
|
"labels": obj.get("labels"),
|
|
133
135
|
"public": obj.get("public"),
|
|
136
|
+
"networkBlockAll": obj.get("networkBlockAll"),
|
|
137
|
+
"networkAllowList": obj.get("networkAllowList"),
|
|
134
138
|
"class": obj.get("class"),
|
|
135
139
|
"target": obj.get("target"),
|
|
136
140
|
"cpu": obj.get("cpu"),
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class OrganizationUsageOverview(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
OrganizationUsageOverview
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
total_cpu_quota: Union[StrictFloat, StrictInt] = Field(alias="totalCpuQuota")
|
|
31
|
+
total_memory_quota: Union[StrictFloat, StrictInt] = Field(alias="totalMemoryQuota")
|
|
32
|
+
total_disk_quota: Union[StrictFloat, StrictInt] = Field(alias="totalDiskQuota")
|
|
33
|
+
current_cpu_usage: Union[StrictFloat, StrictInt] = Field(alias="currentCpuUsage")
|
|
34
|
+
current_memory_usage: Union[StrictFloat, StrictInt] = Field(alias="currentMemoryUsage")
|
|
35
|
+
current_disk_usage: Union[StrictFloat, StrictInt] = Field(alias="currentDiskUsage")
|
|
36
|
+
total_snapshot_quota: Union[StrictFloat, StrictInt] = Field(alias="totalSnapshotQuota")
|
|
37
|
+
current_snapshot_usage: Union[StrictFloat, StrictInt] = Field(alias="currentSnapshotUsage")
|
|
38
|
+
total_volume_quota: Union[StrictFloat, StrictInt] = Field(alias="totalVolumeQuota")
|
|
39
|
+
current_volume_usage: Union[StrictFloat, StrictInt] = Field(alias="currentVolumeUsage")
|
|
40
|
+
additional_properties: Dict[str, Any] = {}
|
|
41
|
+
__properties: ClassVar[List[str]] = ["totalCpuQuota", "totalMemoryQuota", "totalDiskQuota", "currentCpuUsage", "currentMemoryUsage", "currentDiskUsage", "totalSnapshotQuota", "currentSnapshotUsage", "totalVolumeQuota", "currentVolumeUsage"]
|
|
42
|
+
|
|
43
|
+
model_config = ConfigDict(
|
|
44
|
+
populate_by_name=True,
|
|
45
|
+
validate_assignment=True,
|
|
46
|
+
protected_namespaces=(),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def to_str(self) -> str:
|
|
51
|
+
"""Returns the string representation of the model using alias"""
|
|
52
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
53
|
+
|
|
54
|
+
def to_json(self) -> str:
|
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
|
56
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
57
|
+
return json.dumps(self.to_dict())
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
61
|
+
"""Create an instance of OrganizationUsageOverview from a JSON string"""
|
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
|
63
|
+
|
|
64
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
65
|
+
"""Return the dictionary representation of the model using alias.
|
|
66
|
+
|
|
67
|
+
This has the following differences from calling pydantic's
|
|
68
|
+
`self.model_dump(by_alias=True)`:
|
|
69
|
+
|
|
70
|
+
* `None` is only added to the output dict for nullable fields that
|
|
71
|
+
were set at model initialization. Other fields with value `None`
|
|
72
|
+
are ignored.
|
|
73
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
74
|
+
"""
|
|
75
|
+
excluded_fields: Set[str] = set([
|
|
76
|
+
"additional_properties",
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
_dict = self.model_dump(
|
|
80
|
+
by_alias=True,
|
|
81
|
+
exclude=excluded_fields,
|
|
82
|
+
exclude_none=True,
|
|
83
|
+
)
|
|
84
|
+
# puts key-value pairs in additional_properties in the top level
|
|
85
|
+
if self.additional_properties is not None:
|
|
86
|
+
for _key, _value in self.additional_properties.items():
|
|
87
|
+
_dict[_key] = _value
|
|
88
|
+
|
|
89
|
+
return _dict
|
|
90
|
+
|
|
91
|
+
@classmethod
|
|
92
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
93
|
+
"""Create an instance of OrganizationUsageOverview from a dict"""
|
|
94
|
+
if obj is None:
|
|
95
|
+
return None
|
|
96
|
+
|
|
97
|
+
if not isinstance(obj, dict):
|
|
98
|
+
return cls.model_validate(obj)
|
|
99
|
+
|
|
100
|
+
_obj = cls.model_validate({
|
|
101
|
+
"totalCpuQuota": obj.get("totalCpuQuota"),
|
|
102
|
+
"totalMemoryQuota": obj.get("totalMemoryQuota"),
|
|
103
|
+
"totalDiskQuota": obj.get("totalDiskQuota"),
|
|
104
|
+
"currentCpuUsage": obj.get("currentCpuUsage"),
|
|
105
|
+
"currentMemoryUsage": obj.get("currentMemoryUsage"),
|
|
106
|
+
"currentDiskUsage": obj.get("currentDiskUsage"),
|
|
107
|
+
"totalSnapshotQuota": obj.get("totalSnapshotQuota"),
|
|
108
|
+
"currentSnapshotUsage": obj.get("currentSnapshotUsage"),
|
|
109
|
+
"totalVolumeQuota": obj.get("totalVolumeQuota"),
|
|
110
|
+
"currentVolumeUsage": obj.get("currentVolumeUsage")
|
|
111
|
+
})
|
|
112
|
+
# store additional fields in additional_properties
|
|
113
|
+
for _key in obj.keys():
|
|
114
|
+
if _key not in cls.__properties:
|
|
115
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
116
|
+
|
|
117
|
+
return _obj
|
|
118
|
+
|
|
119
|
+
|
|
@@ -38,6 +38,8 @@ class Sandbox(BaseModel):
|
|
|
38
38
|
env: Dict[str, StrictStr] = Field(description="Environment variables for the sandbox")
|
|
39
39
|
labels: Dict[str, StrictStr] = Field(description="Labels for the sandbox")
|
|
40
40
|
public: StrictBool = Field(description="Whether the sandbox http preview is public")
|
|
41
|
+
network_block_all: StrictBool = Field(description="Whether to block all network access for the sandbox", alias="networkBlockAll")
|
|
42
|
+
network_allow_list: Optional[StrictStr] = Field(default=None, description="Comma-separated list of allowed CIDR network addresses for the sandbox", alias="networkAllowList")
|
|
41
43
|
target: StrictStr = Field(description="The target environment for the sandbox")
|
|
42
44
|
cpu: Union[StrictFloat, StrictInt] = Field(description="The CPU quota for the sandbox")
|
|
43
45
|
gpu: Union[StrictFloat, StrictInt] = Field(description="The GPU quota for the sandbox")
|
|
@@ -59,7 +61,7 @@ class Sandbox(BaseModel):
|
|
|
59
61
|
var_class: Optional[StrictStr] = Field(default=None, description="The class of the sandbox", alias="class")
|
|
60
62
|
daemon_version: Optional[StrictStr] = Field(default=None, description="The version of the daemon running in the sandbox", alias="daemonVersion")
|
|
61
63
|
additional_properties: Dict[str, Any] = {}
|
|
62
|
-
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion"]
|
|
64
|
+
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "networkBlockAll", "networkAllowList", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion"]
|
|
63
65
|
|
|
64
66
|
@field_validator('backup_state')
|
|
65
67
|
def backup_state_validate_enum(cls, value):
|
|
@@ -156,6 +158,8 @@ class Sandbox(BaseModel):
|
|
|
156
158
|
"env": obj.get("env"),
|
|
157
159
|
"labels": obj.get("labels"),
|
|
158
160
|
"public": obj.get("public"),
|
|
161
|
+
"networkBlockAll": obj.get("networkBlockAll"),
|
|
162
|
+
"networkAllowList": obj.get("networkAllowList"),
|
|
159
163
|
"target": obj.get("target"),
|
|
160
164
|
"cpu": obj.get("cpu"),
|
|
161
165
|
"gpu": obj.get("gpu"),
|
|
@@ -41,8 +41,8 @@ class SandboxState(str, Enum):
|
|
|
41
41
|
BUILDING_SNAPSHOT = 'building_snapshot'
|
|
42
42
|
UNKNOWN = 'unknown'
|
|
43
43
|
PULLING_SNAPSHOT = 'pulling_snapshot'
|
|
44
|
-
ARCHIVING = 'archiving'
|
|
45
44
|
ARCHIVED = 'archived'
|
|
45
|
+
ARCHIVING = 'archiving'
|
|
46
46
|
|
|
47
47
|
@classmethod
|
|
48
48
|
def from_json(cls, json_str: str) -> Self:
|
|
@@ -39,6 +39,8 @@ class Workspace(BaseModel):
|
|
|
39
39
|
env: Dict[str, StrictStr] = Field(description="Environment variables for the sandbox")
|
|
40
40
|
labels: Dict[str, StrictStr] = Field(description="Labels for the sandbox")
|
|
41
41
|
public: StrictBool = Field(description="Whether the sandbox http preview is public")
|
|
42
|
+
network_block_all: StrictBool = Field(description="Whether to block all network access for the sandbox", alias="networkBlockAll")
|
|
43
|
+
network_allow_list: Optional[StrictStr] = Field(default=None, description="Comma-separated list of allowed CIDR network addresses for the sandbox", alias="networkAllowList")
|
|
42
44
|
target: StrictStr = Field(description="The target environment for the sandbox")
|
|
43
45
|
cpu: Union[StrictFloat, StrictInt] = Field(description="The CPU quota for the sandbox")
|
|
44
46
|
gpu: Union[StrictFloat, StrictInt] = Field(description="The GPU quota for the sandbox")
|
|
@@ -65,7 +67,7 @@ class Workspace(BaseModel):
|
|
|
65
67
|
snapshot_created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the last snapshot", alias="snapshotCreatedAt")
|
|
66
68
|
info: Optional[SandboxInfo] = Field(default=None, description="Additional information about the sandbox")
|
|
67
69
|
additional_properties: Dict[str, Any] = {}
|
|
68
|
-
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion", "name", "image", "snapshotState", "snapshotCreatedAt", "info"]
|
|
70
|
+
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "networkBlockAll", "networkAllowList", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion", "name", "image", "snapshotState", "snapshotCreatedAt", "info"]
|
|
69
71
|
|
|
70
72
|
@field_validator('backup_state')
|
|
71
73
|
def backup_state_validate_enum(cls, value):
|
|
@@ -175,6 +177,8 @@ class Workspace(BaseModel):
|
|
|
175
177
|
"env": obj.get("env"),
|
|
176
178
|
"labels": obj.get("labels"),
|
|
177
179
|
"public": obj.get("public"),
|
|
180
|
+
"networkBlockAll": obj.get("networkBlockAll"),
|
|
181
|
+
"networkAllowList": obj.get("networkAllowList"),
|
|
178
182
|
"target": obj.get("target"),
|
|
179
183
|
"cpu": obj.get("cpu"),
|
|
180
184
|
"gpu": obj.get("gpu"),
|
{daytona_api_client_async-0.25.5.dist-info → daytona_api_client_async-0.25.6.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
daytona_api_client_async/__init__.py,sha256=
|
|
1
|
+
daytona_api_client_async/__init__.py,sha256=pxdKm09XE_7cTNrBAofwaXiGIJ2v6ti1uCkwUPvaFdU,11011
|
|
2
2
|
daytona_api_client_async/api_client.py,sha256=FrpVLztK7lFu1O0ZPkojl5l-tB_jGIKmDAc5k-VOWJg,27598
|
|
3
3
|
daytona_api_client_async/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
4
|
daytona_api_client_async/configuration.py,sha256=hWTtQJ-3aR2SzZScWV02gUUaOt1-L99egXbDD6X692Y,17963
|
|
@@ -12,7 +12,7 @@ daytona_api_client_async/api/docker_registry_api.py,sha256=AOX05uUPF7PNilvYJrhxs
|
|
|
12
12
|
daytona_api_client_async/api/images_api.py,sha256=BRQ3DBgRQqu8VPmLb3ILmtd31jjALVsRra-Qm8Xt1Vc,93499
|
|
13
13
|
daytona_api_client_async/api/nodes_api.py,sha256=Ecm01Dot8NN5ScqYziMavHmuMkiQ-D190TExSSW8IbU,29201
|
|
14
14
|
daytona_api_client_async/api/object_storage_api.py,sha256=gPhd3kPth8L26BV6C9QL3-VXax9W0S20_lZgEpoz02U,11677
|
|
15
|
-
daytona_api_client_async/api/organizations_api.py,sha256=
|
|
15
|
+
daytona_api_client_async/api/organizations_api.py,sha256=a7lgjZwlfoxCnGkpaE6tRZmTtJfJ6w65Ebua31jpSBM,278010
|
|
16
16
|
daytona_api_client_async/api/preview_api.py,sha256=tflnMN3QXSTx-tI1GZf70VY714MQTx1DX2edNFbemb8,31216
|
|
17
17
|
daytona_api_client_async/api/runners_api.py,sha256=DjL55SHmiIG1CkNrhiNGiiW9tBMrkLo1DiqAmNhpDoI,49294
|
|
18
18
|
daytona_api_client_async/api/sandbox_api.py,sha256=2oyzc0SG5NyzBb2ZC8swUqKephtxgrVsqsvShjPPqwM,176031
|
|
@@ -21,7 +21,7 @@ daytona_api_client_async/api/toolbox_api.py,sha256=plhAImkMRhqC4qcCvlRUpjiLD3Uli
|
|
|
21
21
|
daytona_api_client_async/api/users_api.py,sha256=5vpJFiutNo-ygzejbkOz3iPMT4mLjNyvBZdNWTaQSFw,86876
|
|
22
22
|
daytona_api_client_async/api/volumes_api.py,sha256=Hhmny-51SBZhvm3Vztaud1ImEY3p14c3VdjeZN8SP7M,56883
|
|
23
23
|
daytona_api_client_async/api/workspace_api.py,sha256=krpDz2ro-e1QuQ8Bi4cnckymIEIlPJePBM6ieksguq8,170042
|
|
24
|
-
daytona_api_client_async/models/__init__.py,sha256=
|
|
24
|
+
daytona_api_client_async/models/__init__.py,sha256=9YAFszDaoZ1G3BDYrifzWArCFdCEizBfHN0k8CQfwog,9500
|
|
25
25
|
daytona_api_client_async/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
|
|
26
26
|
daytona_api_client_async/models/api_key_list.py,sha256=LwEm8q2SjDOGa04S0kkk4GRbZPvrpVJ-4Ju1dgcp0b8,5005
|
|
27
27
|
daytona_api_client_async/models/api_key_response.py,sha256=XWqJdKTMp1w8uoUpmeKn0tKeXeImTJElnTvLunZGX5Y,4611
|
|
@@ -38,7 +38,7 @@ daytona_api_client_async/models/computer_use_start_response.py,sha256=9VYe5UMBU-
|
|
|
38
38
|
daytona_api_client_async/models/computer_use_status_response.py,sha256=P2dNSx1Ot-szu4y5gk1GCEJixCxsXrVnMNetxeYMh54,3489
|
|
39
39
|
daytona_api_client_async/models/computer_use_stop_response.py,sha256=FUpPYsIMPXqCGKYqdvVozjHHthg5j0o8NOMCYXjp5lY,3332
|
|
40
40
|
daytona_api_client_async/models/create_api_key.py,sha256=GFv3d-rA2Mbr9UhP-0O0DKm-gvln_JSGFJjMyoSAc8A,4351
|
|
41
|
-
daytona_api_client_async/models/create_audit_log.py,sha256=
|
|
41
|
+
daytona_api_client_async/models/create_audit_log.py,sha256=wWI3XbgOEBmjeljAzP-R5HJ9v3xpsiQ1uSQuBYwQNM8,6917
|
|
42
42
|
daytona_api_client_async/models/create_build_info.py,sha256=hepmmgcZn199sgLksLm3ksJNSv-XLSgqL2BPdFnNAdg,3402
|
|
43
43
|
daytona_api_client_async/models/create_docker_registry.py,sha256=dyWgwtTu6RcbGgXyosFbwtvPJ55FjuK0duof-jK9o7Q,4337
|
|
44
44
|
daytona_api_client_async/models/create_image.py,sha256=THngVmDF8VoDwRu8rQFcja3JGkSVsfguVmvjPRkJnbU,3415
|
|
@@ -49,7 +49,7 @@ daytona_api_client_async/models/create_organization_invitation.py,sha256=U5uLVrI
|
|
|
49
49
|
daytona_api_client_async/models/create_organization_quota.py,sha256=HERVvV6pRerMtV05dPTwEec82HcSJ_tKFpEcYfLlLrQ,4716
|
|
50
50
|
daytona_api_client_async/models/create_organization_role.py,sha256=vQai9U9x82hVCfRCotP1UKtaDz3yehtHxOqVEIhG_Ds,4069
|
|
51
51
|
daytona_api_client_async/models/create_runner.py,sha256=vbNmuFuefPIdhatTu6qALi8GUT0AyP6quf-ZhL1jzdc,4530
|
|
52
|
-
daytona_api_client_async/models/create_sandbox.py,sha256=
|
|
52
|
+
daytona_api_client_async/models/create_sandbox.py,sha256=bZnN9zmtlR9XpQyn2jtvpojvsoL-aBmjoGKnlFCZ2O4,7583
|
|
53
53
|
daytona_api_client_async/models/create_session_request.py,sha256=8Zv23ZXzrW6v2GmygwTUz5bTugAikCT-T8eHwwYRLxc,3136
|
|
54
54
|
daytona_api_client_async/models/create_snapshot.py,sha256=wBhM3BVLDM_zUIcnln0tU0MDARjzHp3fSfRmeAtgVXc,4774
|
|
55
55
|
daytona_api_client_async/models/create_user.py,sha256=Amtw3BopSp20zD9QlpZnQHunhSO_yCyKaq3bYBGxJvc,4396
|
|
@@ -101,6 +101,7 @@ daytona_api_client_async/models/organization.py,sha256=C9r47QH32-YeOmoE3EgtnXpiU
|
|
|
101
101
|
daytona_api_client_async/models/organization_invitation.py,sha256=vnnZ5zx05weSLymc4IQMtaJEnnxFLrQcG74AmqOMW6Q,5728
|
|
102
102
|
daytona_api_client_async/models/organization_role.py,sha256=RXGyGoi6XQI94zMzYU0h7UzI6Dm245t4hwNkKV9TCiE,4571
|
|
103
103
|
daytona_api_client_async/models/organization_suspension.py,sha256=Pd6oBCKzlvI7xAfjDamyte2eHJKOZBFgG3GXMUVOe2A,3586
|
|
104
|
+
daytona_api_client_async/models/organization_usage_overview.py,sha256=49A5lhlQf30c2i5YdEZ17VCnFp_35zhVHBC76Eju_R0,4736
|
|
104
105
|
daytona_api_client_async/models/organization_user.py,sha256=Dsk4ziJPNVk4_Nkm-RTePYTeS8sw3RBfHJ-ulY9-A2w,4895
|
|
105
106
|
daytona_api_client_async/models/paginated_audit_logs.py,sha256=x9kQCrPbgECBptkquJzd-OtULdxgTYa5jSDoHBOBA04,3841
|
|
106
107
|
daytona_api_client_async/models/paginated_images_dto.py,sha256=3I2PVVW6j3dlvBQepNSfkTjcq89l07R81U9b_fTV57s,3841
|
|
@@ -121,12 +122,12 @@ daytona_api_client_async/models/runner.py,sha256=f06I4M5klVGVtU0kysR6BaZYDRf9DUW
|
|
|
121
122
|
daytona_api_client_async/models/runner_region.py,sha256=Lkxx3kYTx8m4w3ntEiaOafMrUknhtNMfk00oD92kXZE,716
|
|
122
123
|
daytona_api_client_async/models/runner_snapshot_dto.py,sha256=ZBv1j3_4huI-z4GWbCqxOOT85OSyNYX3FHVAHQU6rbo,3447
|
|
123
124
|
daytona_api_client_async/models/runner_state.py,sha256=_cGjUiDdFZtUQjPc76YKgawOdxV1BDq0ehyKqWFMjD4,819
|
|
124
|
-
daytona_api_client_async/models/sandbox.py,sha256=
|
|
125
|
+
daytona_api_client_async/models/sandbox.py,sha256=xTOSMqimyPDvUSvd0C7NJ2Sev7p5t6hrPdzD645IeGY,9939
|
|
125
126
|
daytona_api_client_async/models/sandbox_class.py,sha256=Suwn9F4jLgtEdLtCWV86PpCtcfZ653h4bMYrmzrwBBc,731
|
|
126
127
|
daytona_api_client_async/models/sandbox_desired_state.py,sha256=BHvsm7h8ydWf5e48D7eFGRL9tD8vt7eMBMguZ1GChbc,818
|
|
127
128
|
daytona_api_client_async/models/sandbox_info.py,sha256=u8wFXAS36AyRIwEfcPphUEBxjOLmtZTvYAq4aoeCJsU,3493
|
|
128
129
|
daytona_api_client_async/models/sandbox_labels.py,sha256=szanqeO42NwBygvKOq8EZtp6-ExERvumB42II24maUY,3091
|
|
129
|
-
daytona_api_client_async/models/sandbox_state.py,sha256=
|
|
130
|
+
daytona_api_client_async/models/sandbox_state.py,sha256=a3niQChUHt9p-l4Jd2Qio6t6iP6Ic5iBk1G8_ttpGIU,1136
|
|
130
131
|
daytona_api_client_async/models/sandbox_volume.py,sha256=R-cNh7LCK6IWjEcAXA6bS_JVkmd54X6tCcAEtJtijKE,3260
|
|
131
132
|
daytona_api_client_async/models/screenshot_response.py,sha256=n-K-Zpk92a3tFY665fcNDJQxDF80YOhLHVzDRbAl_aE,3621
|
|
132
133
|
daytona_api_client_async/models/search_files_response.py,sha256=3m7itQRgoeqJ8I6PyW-BbRthN5oLEP4pMr4HZsB8uqU,3050
|
|
@@ -152,13 +153,13 @@ daytona_api_client_async/models/user_public_key.py,sha256=Y0_O7Sq8NP3XzCdKJJj7iT
|
|
|
152
153
|
daytona_api_client_async/models/volume_dto.py,sha256=yqEdmaSVOLfHdF5nMXJUzbVChRh2K2lmpjfUi5vbJnA,4600
|
|
153
154
|
daytona_api_client_async/models/volume_state.py,sha256=AaOsyPygY58fquvIkrwFndsXMrG0dCYcGKd8HRZhulg,848
|
|
154
155
|
daytona_api_client_async/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcEyawzwtnWnwGngsFs,3295
|
|
155
|
-
daytona_api_client_async/models/workspace.py,sha256=
|
|
156
|
+
daytona_api_client_async/models/workspace.py,sha256=OaLAKPDmeJ0mRoisZg62smbc4GBBTYUZkLqQbIaCHZY,11518
|
|
156
157
|
daytona_api_client_async/models/workspace_info.py,sha256=aO9EkS6E4LhjrFAY25FJZYnhI6VZt2wQVS-Rj0ptILQ,3503
|
|
157
158
|
daytona_api_client_async/models/workspace_labels.py,sha256=aMjsVYM4rezpMD6jLVbPqdi72DIIltjqPP0kuGueUsg,3099
|
|
158
159
|
daytona_api_client_async/models/workspace_state.py,sha256=AqPukjpvYLhkThzx8T4WsKKSuXOOxLwFZ8385AtNVtE,1108
|
|
159
160
|
daytona_api_client_async/models/workspace_volume.py,sha256=Suo2yiRw80i_24Yp5lFsWpQoykTOxqjHYVQPnx84vGc,3268
|
|
160
|
-
daytona_api_client_async-0.25.
|
|
161
|
-
daytona_api_client_async-0.25.
|
|
162
|
-
daytona_api_client_async-0.25.
|
|
163
|
-
daytona_api_client_async-0.25.
|
|
164
|
-
daytona_api_client_async-0.25.
|
|
161
|
+
daytona_api_client_async-0.25.6.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
162
|
+
daytona_api_client_async-0.25.6.dist-info/METADATA,sha256=RP31ELOhGOnMWE_P40ySR2BLLKPNHYs_StgCMGfCI38,690
|
|
163
|
+
daytona_api_client_async-0.25.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
164
|
+
daytona_api_client_async-0.25.6.dist-info/top_level.txt,sha256=PdOUDLVBJmZNDB8ak8FMMwmlyfRqUhQQ9SUDgNnbdZo,25
|
|
165
|
+
daytona_api_client_async-0.25.6.dist-info/RECORD,,
|
{daytona_api_client_async-0.25.5.dist-info → daytona_api_client_async-0.25.6.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|