daytona_api_client_async 0.0.0.dev0__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.
- daytona_api_client_async/__init__.py +195 -0
- daytona_api_client_async/api/__init__.py +21 -0
- daytona_api_client_async/api/api_keys_api.py +1673 -0
- daytona_api_client_async/api/audit_api.py +750 -0
- daytona_api_client_async/api/config_api.py +279 -0
- daytona_api_client_async/api/default_api.py +1884 -0
- daytona_api_client_async/api/docker_registry_api.py +1965 -0
- daytona_api_client_async/api/health_api.py +282 -0
- daytona_api_client_async/api/object_storage_api.py +299 -0
- daytona_api_client_async/api/organizations_api.py +7836 -0
- daytona_api_client_async/api/preview_api.py +826 -0
- daytona_api_client_async/api/regions_api.py +316 -0
- daytona_api_client_async/api/runners_api.py +1560 -0
- daytona_api_client_async/api/sandbox_api.py +6927 -0
- daytona_api_client_async/api/snapshots_api.py +2630 -0
- daytona_api_client_async/api/toolbox_api.py +20759 -0
- daytona_api_client_async/api/users_api.py +2319 -0
- daytona_api_client_async/api/volumes_api.py +1419 -0
- daytona_api_client_async/api/webhooks_api.py +1704 -0
- daytona_api_client_async/api/workspace_api.py +4036 -0
- daytona_api_client_async/api_client.py +801 -0
- daytona_api_client_async/api_response.py +21 -0
- daytona_api_client_async/configuration.py +579 -0
- daytona_api_client_async/exceptions.py +217 -0
- daytona_api_client_async/models/__init__.py +162 -0
- daytona_api_client_async/models/account_provider.py +103 -0
- daytona_api_client_async/models/announcement.py +103 -0
- daytona_api_client_async/models/api_key_list.py +132 -0
- daytona_api_client_async/models/api_key_response.py +123 -0
- daytona_api_client_async/models/audit_log.py +128 -0
- daytona_api_client_async/models/build_info.py +108 -0
- daytona_api_client_async/models/command.py +105 -0
- daytona_api_client_async/models/completion_context.py +103 -0
- daytona_api_client_async/models/completion_item.py +113 -0
- daytona_api_client_async/models/completion_list.py +111 -0
- daytona_api_client_async/models/compressed_screenshot_response.py +105 -0
- daytona_api_client_async/models/computer_use_start_response.py +103 -0
- daytona_api_client_async/models/computer_use_status_response.py +108 -0
- daytona_api_client_async/models/computer_use_stop_response.py +103 -0
- daytona_api_client_async/models/configuration.py +145 -0
- daytona_api_client_async/models/create_api_key.py +119 -0
- daytona_api_client_async/models/create_audit_log.py +128 -0
- daytona_api_client_async/models/create_build_info.py +103 -0
- daytona_api_client_async/models/create_docker_registry.py +120 -0
- daytona_api_client_async/models/create_linked_account.py +103 -0
- daytona_api_client_async/models/create_organization.py +103 -0
- daytona_api_client_async/models/create_organization_invitation.py +115 -0
- daytona_api_client_async/models/create_organization_quota.py +117 -0
- daytona_api_client_async/models/create_organization_role.py +113 -0
- daytona_api_client_async/models/create_runner.py +130 -0
- daytona_api_client_async/models/create_sandbox.py +159 -0
- daytona_api_client_async/models/create_session_request.py +101 -0
- daytona_api_client_async/models/create_snapshot.py +121 -0
- daytona_api_client_async/models/create_user.py +127 -0
- daytona_api_client_async/models/create_volume.py +101 -0
- daytona_api_client_async/models/create_workspace.py +161 -0
- daytona_api_client_async/models/daytona_configuration.py +158 -0
- daytona_api_client_async/models/display_info_response.py +101 -0
- daytona_api_client_async/models/docker_registry.py +123 -0
- daytona_api_client_async/models/download_files.py +101 -0
- daytona_api_client_async/models/empty_response.py +101 -0
- daytona_api_client_async/models/execute_request.py +105 -0
- daytona_api_client_async/models/execute_response.py +103 -0
- daytona_api_client_async/models/file_info.py +115 -0
- daytona_api_client_async/models/file_status.py +107 -0
- daytona_api_client_async/models/git_add_request.py +103 -0
- daytona_api_client_async/models/git_branch_request.py +103 -0
- daytona_api_client_async/models/git_checkout_request.py +103 -0
- daytona_api_client_async/models/git_clone_request.py +111 -0
- daytona_api_client_async/models/git_commit_info.py +109 -0
- daytona_api_client_async/models/git_commit_request.py +109 -0
- daytona_api_client_async/models/git_commit_response.py +101 -0
- daytona_api_client_async/models/git_delete_branch_request.py +103 -0
- daytona_api_client_async/models/git_repo_request.py +105 -0
- daytona_api_client_async/models/git_status.py +117 -0
- daytona_api_client_async/models/health_controller_check200_response.py +154 -0
- daytona_api_client_async/models/health_controller_check200_response_info_value.py +101 -0
- daytona_api_client_async/models/health_controller_check503_response.py +154 -0
- daytona_api_client_async/models/keyboard_hotkey_request.py +101 -0
- daytona_api_client_async/models/keyboard_hotkey_response.py +103 -0
- daytona_api_client_async/models/keyboard_press_request.py +103 -0
- daytona_api_client_async/models/keyboard_press_response.py +105 -0
- daytona_api_client_async/models/keyboard_type_request.py +103 -0
- daytona_api_client_async/models/keyboard_type_response.py +103 -0
- daytona_api_client_async/models/list_branch_response.py +101 -0
- daytona_api_client_async/models/lsp_completion_params.py +117 -0
- daytona_api_client_async/models/lsp_document_request.py +105 -0
- daytona_api_client_async/models/lsp_location.py +107 -0
- daytona_api_client_async/models/lsp_server_request.py +103 -0
- daytona_api_client_async/models/lsp_symbol.py +109 -0
- daytona_api_client_async/models/match.py +105 -0
- daytona_api_client_async/models/mouse_click_request.py +107 -0
- daytona_api_client_async/models/mouse_click_response.py +103 -0
- daytona_api_client_async/models/mouse_drag_request.py +109 -0
- daytona_api_client_async/models/mouse_drag_response.py +103 -0
- daytona_api_client_async/models/mouse_move_request.py +103 -0
- daytona_api_client_async/models/mouse_move_response.py +103 -0
- daytona_api_client_async/models/mouse_position.py +103 -0
- daytona_api_client_async/models/mouse_scroll_request.py +107 -0
- daytona_api_client_async/models/mouse_scroll_response.py +101 -0
- daytona_api_client_async/models/oidc_config.py +105 -0
- daytona_api_client_async/models/organization.py +153 -0
- daytona_api_client_async/models/organization_invitation.py +144 -0
- daytona_api_client_async/models/organization_role.py +122 -0
- daytona_api_client_async/models/organization_sandbox_default_limited_network_egress.py +101 -0
- daytona_api_client_async/models/organization_sandbox_default_network_block_all.py +101 -0
- daytona_api_client_async/models/organization_suspension.py +106 -0
- daytona_api_client_async/models/organization_usage_overview.py +117 -0
- daytona_api_client_async/models/organization_user.py +131 -0
- daytona_api_client_async/models/paginated_audit_logs.py +117 -0
- daytona_api_client_async/models/paginated_sandboxes.py +115 -0
- daytona_api_client_async/models/paginated_snapshots.py +115 -0
- daytona_api_client_async/models/paginated_snapshots_dto.py +115 -0
- daytona_api_client_async/models/paginated_workspaces.py +115 -0
- daytona_api_client_async/models/port_preview_url.py +105 -0
- daytona_api_client_async/models/position.py +103 -0
- daytona_api_client_async/models/posthog_config.py +103 -0
- daytona_api_client_async/models/process_errors_response.py +103 -0
- daytona_api_client_async/models/process_logs_response.py +103 -0
- daytona_api_client_async/models/process_restart_response.py +103 -0
- daytona_api_client_async/models/process_status_response.py +103 -0
- daytona_api_client_async/models/project_dir_response.py +101 -0
- daytona_api_client_async/models/pty_create_request.py +111 -0
- daytona_api_client_async/models/pty_create_response.py +101 -0
- daytona_api_client_async/models/pty_list_response.py +109 -0
- daytona_api_client_async/models/pty_resize_request.py +103 -0
- daytona_api_client_async/models/pty_session_info.py +115 -0
- daytona_api_client_async/models/range.py +110 -0
- daytona_api_client_async/models/rate_limit_config.py +120 -0
- daytona_api_client_async/models/rate_limit_entry.py +103 -0
- daytona_api_client_async/models/region.py +114 -0
- daytona_api_client_async/models/region_quota.py +109 -0
- daytona_api_client_async/models/region_screenshot_response.py +105 -0
- daytona_api_client_async/models/region_usage_overview.py +113 -0
- daytona_api_client_async/models/registry_push_access_dto.py +111 -0
- daytona_api_client_async/models/replace_request.py +105 -0
- daytona_api_client_async/models/replace_result.py +105 -0
- daytona_api_client_async/models/runner.py +153 -0
- daytona_api_client_async/models/runner_region.py +39 -0
- daytona_api_client_async/models/runner_snapshot_dto.py +105 -0
- daytona_api_client_async/models/runner_state.py +41 -0
- daytona_api_client_async/models/sandbox.py +193 -0
- daytona_api_client_async/models/sandbox_class.py +39 -0
- daytona_api_client_async/models/sandbox_created_post_request.py +110 -0
- daytona_api_client_async/models/sandbox_created_post_request_data.py +152 -0
- daytona_api_client_async/models/sandbox_desired_state.py +41 -0
- daytona_api_client_async/models/sandbox_info.py +105 -0
- daytona_api_client_async/models/sandbox_labels.py +101 -0
- daytona_api_client_async/models/sandbox_state.py +52 -0
- daytona_api_client_async/models/sandbox_state_updated_post_request.py +110 -0
- daytona_api_client_async/models/sandbox_state_updated_post_request_data.py +129 -0
- daytona_api_client_async/models/sandbox_state_updated_post_request_data_sandbox.py +115 -0
- daytona_api_client_async/models/sandbox_volume.py +105 -0
- daytona_api_client_async/models/screenshot_response.py +105 -0
- daytona_api_client_async/models/search_files_response.py +101 -0
- daytona_api_client_async/models/send_webhook_dto.py +105 -0
- daytona_api_client_async/models/session.py +116 -0
- daytona_api_client_async/models/session_command_logs_response.py +103 -0
- daytona_api_client_async/models/session_execute_request.py +105 -0
- daytona_api_client_async/models/session_execute_response.py +105 -0
- daytona_api_client_async/models/set_snapshot_general_status_dto.py +101 -0
- daytona_api_client_async/models/snapshot_created_post_request.py +110 -0
- daytona_api_client_async/models/snapshot_created_post_request_data.py +136 -0
- daytona_api_client_async/models/snapshot_dto.py +159 -0
- daytona_api_client_async/models/snapshot_removed_post_request.py +106 -0
- daytona_api_client_async/models/snapshot_state.py +44 -0
- daytona_api_client_async/models/snapshot_state_updated_post_request.py +110 -0
- daytona_api_client_async/models/snapshot_state_updated_post_request_data.py +129 -0
- daytona_api_client_async/models/snapshot_state_updated_post_request_data_snapshot.py +115 -0
- daytona_api_client_async/models/ssh_access_dto.py +112 -0
- daytona_api_client_async/models/ssh_access_validation_dto.py +103 -0
- daytona_api_client_async/models/storage_access_dto.py +111 -0
- daytona_api_client_async/models/update_assigned_organization_roles.py +101 -0
- daytona_api_client_async/models/update_docker_registry.py +109 -0
- daytona_api_client_async/models/update_organization_default_region.py +101 -0
- daytona_api_client_async/models/update_organization_invitation.py +113 -0
- daytona_api_client_async/models/update_organization_member_access.py +110 -0
- daytona_api_client_async/models/update_organization_member_role.py +108 -0
- daytona_api_client_async/models/update_organization_quota.py +162 -0
- daytona_api_client_async/models/update_organization_region_quota.py +120 -0
- daytona_api_client_async/models/update_organization_role.py +113 -0
- daytona_api_client_async/models/update_sandbox_state_dto.py +110 -0
- daytona_api_client_async/models/user.py +118 -0
- daytona_api_client_async/models/user_home_dir_response.py +101 -0
- daytona_api_client_async/models/user_public_key.py +103 -0
- daytona_api_client_async/models/volume_created_post_request.py +110 -0
- daytona_api_client_async/models/volume_created_post_request_data.py +126 -0
- daytona_api_client_async/models/volume_dto.py +126 -0
- daytona_api_client_async/models/volume_state.py +43 -0
- daytona_api_client_async/models/volume_state_updated_post_request.py +110 -0
- daytona_api_client_async/models/volume_state_updated_post_request_data.py +129 -0
- daytona_api_client_async/models/volume_state_updated_post_request_data_volume.py +115 -0
- daytona_api_client_async/models/webhook_app_portal_access.py +101 -0
- daytona_api_client_async/models/webhook_controller_get_app_portal_access200_response.py +101 -0
- daytona_api_client_async/models/webhook_controller_get_initialization_status200_response.py +118 -0
- daytona_api_client_async/models/webhook_controller_get_status200_response.py +101 -0
- daytona_api_client_async/models/webhook_initialization_status.py +121 -0
- daytona_api_client_async/models/windows_response.py +103 -0
- daytona_api_client_async/models/work_dir_response.py +101 -0
- daytona_api_client_async/models/workdir_response.py +101 -0
- daytona_api_client_async/models/workspace.py +215 -0
- daytona_api_client_async/models/workspace_port_preview_url.py +103 -0
- daytona_api_client_async/py.typed +0 -0
- daytona_api_client_async/rest.py +214 -0
- daytona_api_client_async-0.0.0.dev0.dist-info/METADATA +27 -0
- daytona_api_client_async-0.0.0.dev0.dist-info/RECORD +209 -0
- daytona_api_client_async-0.0.0.dev0.dist-info/WHEEL +5 -0
- daytona_api_client_async-0.0.0.dev0.dist-info/licenses/LICENSE +190 -0
- daytona_api_client_async-0.0.0.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,110 @@
|
|
|
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, StrictStr, field_validator
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class UpdateOrganizationMemberAccess(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UpdateOrganizationMemberAccess
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
role: StrictStr = Field(description="Organization member role")
|
|
31
|
+
assigned_role_ids: List[StrictStr] = Field(description="Array of assigned role IDs", alias="assignedRoleIds")
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties: ClassVar[List[str]] = ["role", "assignedRoleIds"]
|
|
34
|
+
|
|
35
|
+
@field_validator('role')
|
|
36
|
+
def role_validate_enum(cls, value):
|
|
37
|
+
"""Validates the enum"""
|
|
38
|
+
if value not in set(['owner', 'member']):
|
|
39
|
+
raise ValueError("must be one of enum values ('owner', 'member')")
|
|
40
|
+
return value
|
|
41
|
+
|
|
42
|
+
model_config = ConfigDict(
|
|
43
|
+
populate_by_name=True,
|
|
44
|
+
validate_assignment=True,
|
|
45
|
+
protected_namespaces=(),
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def to_str(self) -> str:
|
|
50
|
+
"""Returns the string representation of the model using alias"""
|
|
51
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
+
|
|
53
|
+
def to_json(self) -> str:
|
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
|
55
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
56
|
+
return json.dumps(self.to_dict())
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
+
"""Create an instance of UpdateOrganizationMemberAccess from a JSON string"""
|
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
|
62
|
+
|
|
63
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
64
|
+
"""Return the dictionary representation of the model using alias.
|
|
65
|
+
|
|
66
|
+
This has the following differences from calling pydantic's
|
|
67
|
+
`self.model_dump(by_alias=True)`:
|
|
68
|
+
|
|
69
|
+
* `None` is only added to the output dict for nullable fields that
|
|
70
|
+
were set at model initialization. Other fields with value `None`
|
|
71
|
+
are ignored.
|
|
72
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
73
|
+
"""
|
|
74
|
+
excluded_fields: Set[str] = set([
|
|
75
|
+
"additional_properties",
|
|
76
|
+
])
|
|
77
|
+
|
|
78
|
+
_dict = self.model_dump(
|
|
79
|
+
by_alias=True,
|
|
80
|
+
exclude=excluded_fields,
|
|
81
|
+
exclude_none=True,
|
|
82
|
+
)
|
|
83
|
+
# puts key-value pairs in additional_properties in the top level
|
|
84
|
+
if self.additional_properties is not None:
|
|
85
|
+
for _key, _value in self.additional_properties.items():
|
|
86
|
+
_dict[_key] = _value
|
|
87
|
+
|
|
88
|
+
return _dict
|
|
89
|
+
|
|
90
|
+
@classmethod
|
|
91
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
92
|
+
"""Create an instance of UpdateOrganizationMemberAccess from a dict"""
|
|
93
|
+
if obj is None:
|
|
94
|
+
return None
|
|
95
|
+
|
|
96
|
+
if not isinstance(obj, dict):
|
|
97
|
+
return cls.model_validate(obj)
|
|
98
|
+
|
|
99
|
+
_obj = cls.model_validate({
|
|
100
|
+
"role": obj.get("role") if obj.get("role") is not None else 'member',
|
|
101
|
+
"assignedRoleIds": obj.get("assignedRoleIds")
|
|
102
|
+
})
|
|
103
|
+
# store additional fields in additional_properties
|
|
104
|
+
for _key in obj.keys():
|
|
105
|
+
if _key not in cls.__properties:
|
|
106
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
107
|
+
|
|
108
|
+
return _obj
|
|
109
|
+
|
|
110
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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, StrictStr, field_validator
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class UpdateOrganizationMemberRole(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UpdateOrganizationMemberRole
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
role: StrictStr = Field(description="Organization member role")
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["role"]
|
|
33
|
+
|
|
34
|
+
@field_validator('role')
|
|
35
|
+
def role_validate_enum(cls, value):
|
|
36
|
+
"""Validates the enum"""
|
|
37
|
+
if value not in set(['owner', 'member']):
|
|
38
|
+
raise ValueError("must be one of enum values ('owner', 'member')")
|
|
39
|
+
return value
|
|
40
|
+
|
|
41
|
+
model_config = ConfigDict(
|
|
42
|
+
populate_by_name=True,
|
|
43
|
+
validate_assignment=True,
|
|
44
|
+
protected_namespaces=(),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def to_str(self) -> str:
|
|
49
|
+
"""Returns the string representation of the model using alias"""
|
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
51
|
+
|
|
52
|
+
def to_json(self) -> str:
|
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
|
54
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
55
|
+
return json.dumps(self.to_dict())
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
+
"""Create an instance of UpdateOrganizationMemberRole from a JSON string"""
|
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
|
61
|
+
|
|
62
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
63
|
+
"""Return the dictionary representation of the model using alias.
|
|
64
|
+
|
|
65
|
+
This has the following differences from calling pydantic's
|
|
66
|
+
`self.model_dump(by_alias=True)`:
|
|
67
|
+
|
|
68
|
+
* `None` is only added to the output dict for nullable fields that
|
|
69
|
+
were set at model initialization. Other fields with value `None`
|
|
70
|
+
are ignored.
|
|
71
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
72
|
+
"""
|
|
73
|
+
excluded_fields: Set[str] = set([
|
|
74
|
+
"additional_properties",
|
|
75
|
+
])
|
|
76
|
+
|
|
77
|
+
_dict = self.model_dump(
|
|
78
|
+
by_alias=True,
|
|
79
|
+
exclude=excluded_fields,
|
|
80
|
+
exclude_none=True,
|
|
81
|
+
)
|
|
82
|
+
# puts key-value pairs in additional_properties in the top level
|
|
83
|
+
if self.additional_properties is not None:
|
|
84
|
+
for _key, _value in self.additional_properties.items():
|
|
85
|
+
_dict[_key] = _value
|
|
86
|
+
|
|
87
|
+
return _dict
|
|
88
|
+
|
|
89
|
+
@classmethod
|
|
90
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
91
|
+
"""Create an instance of UpdateOrganizationMemberRole from a dict"""
|
|
92
|
+
if obj is None:
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
if not isinstance(obj, dict):
|
|
96
|
+
return cls.model_validate(obj)
|
|
97
|
+
|
|
98
|
+
_obj = cls.model_validate({
|
|
99
|
+
"role": obj.get("role")
|
|
100
|
+
})
|
|
101
|
+
# store additional fields in additional_properties
|
|
102
|
+
for _key in obj.keys():
|
|
103
|
+
if _key not in cls.__properties:
|
|
104
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
105
|
+
|
|
106
|
+
return _obj
|
|
107
|
+
|
|
108
|
+
|
|
@@ -0,0 +1,162 @@
|
|
|
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, Optional, Union
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class UpdateOrganizationQuota(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UpdateOrganizationQuota
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
max_cpu_per_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(alias="maxCpuPerSandbox")
|
|
31
|
+
max_memory_per_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(alias="maxMemoryPerSandbox")
|
|
32
|
+
max_disk_per_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(alias="maxDiskPerSandbox")
|
|
33
|
+
snapshot_quota: Optional[Union[StrictFloat, StrictInt]] = Field(alias="snapshotQuota")
|
|
34
|
+
max_snapshot_size: Optional[Union[StrictFloat, StrictInt]] = Field(alias="maxSnapshotSize")
|
|
35
|
+
volume_quota: Optional[Union[StrictFloat, StrictInt]] = Field(alias="volumeQuota")
|
|
36
|
+
authenticated_rate_limit: Optional[Union[StrictFloat, StrictInt]] = Field(alias="authenticatedRateLimit")
|
|
37
|
+
sandbox_create_rate_limit: Optional[Union[StrictFloat, StrictInt]] = Field(alias="sandboxCreateRateLimit")
|
|
38
|
+
sandbox_lifecycle_rate_limit: Optional[Union[StrictFloat, StrictInt]] = Field(alias="sandboxLifecycleRateLimit")
|
|
39
|
+
additional_properties: Dict[str, Any] = {}
|
|
40
|
+
__properties: ClassVar[List[str]] = ["maxCpuPerSandbox", "maxMemoryPerSandbox", "maxDiskPerSandbox", "snapshotQuota", "maxSnapshotSize", "volumeQuota", "authenticatedRateLimit", "sandboxCreateRateLimit", "sandboxLifecycleRateLimit"]
|
|
41
|
+
|
|
42
|
+
model_config = ConfigDict(
|
|
43
|
+
populate_by_name=True,
|
|
44
|
+
validate_assignment=True,
|
|
45
|
+
protected_namespaces=(),
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def to_str(self) -> str:
|
|
50
|
+
"""Returns the string representation of the model using alias"""
|
|
51
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
+
|
|
53
|
+
def to_json(self) -> str:
|
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
|
55
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
56
|
+
return json.dumps(self.to_dict())
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
+
"""Create an instance of UpdateOrganizationQuota from a JSON string"""
|
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
|
62
|
+
|
|
63
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
64
|
+
"""Return the dictionary representation of the model using alias.
|
|
65
|
+
|
|
66
|
+
This has the following differences from calling pydantic's
|
|
67
|
+
`self.model_dump(by_alias=True)`:
|
|
68
|
+
|
|
69
|
+
* `None` is only added to the output dict for nullable fields that
|
|
70
|
+
were set at model initialization. Other fields with value `None`
|
|
71
|
+
are ignored.
|
|
72
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
73
|
+
"""
|
|
74
|
+
excluded_fields: Set[str] = set([
|
|
75
|
+
"additional_properties",
|
|
76
|
+
])
|
|
77
|
+
|
|
78
|
+
_dict = self.model_dump(
|
|
79
|
+
by_alias=True,
|
|
80
|
+
exclude=excluded_fields,
|
|
81
|
+
exclude_none=True,
|
|
82
|
+
)
|
|
83
|
+
# puts key-value pairs in additional_properties in the top level
|
|
84
|
+
if self.additional_properties is not None:
|
|
85
|
+
for _key, _value in self.additional_properties.items():
|
|
86
|
+
_dict[_key] = _value
|
|
87
|
+
|
|
88
|
+
# set to None if max_cpu_per_sandbox (nullable) is None
|
|
89
|
+
# and model_fields_set contains the field
|
|
90
|
+
if self.max_cpu_per_sandbox is None and "max_cpu_per_sandbox" in self.model_fields_set:
|
|
91
|
+
_dict['maxCpuPerSandbox'] = None
|
|
92
|
+
|
|
93
|
+
# set to None if max_memory_per_sandbox (nullable) is None
|
|
94
|
+
# and model_fields_set contains the field
|
|
95
|
+
if self.max_memory_per_sandbox is None and "max_memory_per_sandbox" in self.model_fields_set:
|
|
96
|
+
_dict['maxMemoryPerSandbox'] = None
|
|
97
|
+
|
|
98
|
+
# set to None if max_disk_per_sandbox (nullable) is None
|
|
99
|
+
# and model_fields_set contains the field
|
|
100
|
+
if self.max_disk_per_sandbox is None and "max_disk_per_sandbox" in self.model_fields_set:
|
|
101
|
+
_dict['maxDiskPerSandbox'] = None
|
|
102
|
+
|
|
103
|
+
# set to None if snapshot_quota (nullable) is None
|
|
104
|
+
# and model_fields_set contains the field
|
|
105
|
+
if self.snapshot_quota is None and "snapshot_quota" in self.model_fields_set:
|
|
106
|
+
_dict['snapshotQuota'] = None
|
|
107
|
+
|
|
108
|
+
# set to None if max_snapshot_size (nullable) is None
|
|
109
|
+
# and model_fields_set contains the field
|
|
110
|
+
if self.max_snapshot_size is None and "max_snapshot_size" in self.model_fields_set:
|
|
111
|
+
_dict['maxSnapshotSize'] = None
|
|
112
|
+
|
|
113
|
+
# set to None if volume_quota (nullable) is None
|
|
114
|
+
# and model_fields_set contains the field
|
|
115
|
+
if self.volume_quota is None and "volume_quota" in self.model_fields_set:
|
|
116
|
+
_dict['volumeQuota'] = None
|
|
117
|
+
|
|
118
|
+
# set to None if authenticated_rate_limit (nullable) is None
|
|
119
|
+
# and model_fields_set contains the field
|
|
120
|
+
if self.authenticated_rate_limit is None and "authenticated_rate_limit" in self.model_fields_set:
|
|
121
|
+
_dict['authenticatedRateLimit'] = None
|
|
122
|
+
|
|
123
|
+
# set to None if sandbox_create_rate_limit (nullable) is None
|
|
124
|
+
# and model_fields_set contains the field
|
|
125
|
+
if self.sandbox_create_rate_limit is None and "sandbox_create_rate_limit" in self.model_fields_set:
|
|
126
|
+
_dict['sandboxCreateRateLimit'] = None
|
|
127
|
+
|
|
128
|
+
# set to None if sandbox_lifecycle_rate_limit (nullable) is None
|
|
129
|
+
# and model_fields_set contains the field
|
|
130
|
+
if self.sandbox_lifecycle_rate_limit is None and "sandbox_lifecycle_rate_limit" in self.model_fields_set:
|
|
131
|
+
_dict['sandboxLifecycleRateLimit'] = None
|
|
132
|
+
|
|
133
|
+
return _dict
|
|
134
|
+
|
|
135
|
+
@classmethod
|
|
136
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
137
|
+
"""Create an instance of UpdateOrganizationQuota from a dict"""
|
|
138
|
+
if obj is None:
|
|
139
|
+
return None
|
|
140
|
+
|
|
141
|
+
if not isinstance(obj, dict):
|
|
142
|
+
return cls.model_validate(obj)
|
|
143
|
+
|
|
144
|
+
_obj = cls.model_validate({
|
|
145
|
+
"maxCpuPerSandbox": obj.get("maxCpuPerSandbox"),
|
|
146
|
+
"maxMemoryPerSandbox": obj.get("maxMemoryPerSandbox"),
|
|
147
|
+
"maxDiskPerSandbox": obj.get("maxDiskPerSandbox"),
|
|
148
|
+
"snapshotQuota": obj.get("snapshotQuota"),
|
|
149
|
+
"maxSnapshotSize": obj.get("maxSnapshotSize"),
|
|
150
|
+
"volumeQuota": obj.get("volumeQuota"),
|
|
151
|
+
"authenticatedRateLimit": obj.get("authenticatedRateLimit"),
|
|
152
|
+
"sandboxCreateRateLimit": obj.get("sandboxCreateRateLimit"),
|
|
153
|
+
"sandboxLifecycleRateLimit": obj.get("sandboxLifecycleRateLimit")
|
|
154
|
+
})
|
|
155
|
+
# store additional fields in additional_properties
|
|
156
|
+
for _key in obj.keys():
|
|
157
|
+
if _key not in cls.__properties:
|
|
158
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
159
|
+
|
|
160
|
+
return _obj
|
|
161
|
+
|
|
162
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
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, Optional, Union
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class UpdateOrganizationRegionQuota(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UpdateOrganizationRegionQuota
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
total_cpu_quota: Optional[Union[StrictFloat, StrictInt]] = Field(alias="totalCpuQuota")
|
|
31
|
+
total_memory_quota: Optional[Union[StrictFloat, StrictInt]] = Field(alias="totalMemoryQuota")
|
|
32
|
+
total_disk_quota: Optional[Union[StrictFloat, StrictInt]] = Field(alias="totalDiskQuota")
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["totalCpuQuota", "totalMemoryQuota", "totalDiskQuota"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of UpdateOrganizationRegionQuota from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# puts key-value pairs in additional_properties in the top level
|
|
78
|
+
if self.additional_properties is not None:
|
|
79
|
+
for _key, _value in self.additional_properties.items():
|
|
80
|
+
_dict[_key] = _value
|
|
81
|
+
|
|
82
|
+
# set to None if total_cpu_quota (nullable) is None
|
|
83
|
+
# and model_fields_set contains the field
|
|
84
|
+
if self.total_cpu_quota is None and "total_cpu_quota" in self.model_fields_set:
|
|
85
|
+
_dict['totalCpuQuota'] = None
|
|
86
|
+
|
|
87
|
+
# set to None if total_memory_quota (nullable) is None
|
|
88
|
+
# and model_fields_set contains the field
|
|
89
|
+
if self.total_memory_quota is None and "total_memory_quota" in self.model_fields_set:
|
|
90
|
+
_dict['totalMemoryQuota'] = None
|
|
91
|
+
|
|
92
|
+
# set to None if total_disk_quota (nullable) is None
|
|
93
|
+
# and model_fields_set contains the field
|
|
94
|
+
if self.total_disk_quota is None and "total_disk_quota" in self.model_fields_set:
|
|
95
|
+
_dict['totalDiskQuota'] = None
|
|
96
|
+
|
|
97
|
+
return _dict
|
|
98
|
+
|
|
99
|
+
@classmethod
|
|
100
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
101
|
+
"""Create an instance of UpdateOrganizationRegionQuota from a dict"""
|
|
102
|
+
if obj is None:
|
|
103
|
+
return None
|
|
104
|
+
|
|
105
|
+
if not isinstance(obj, dict):
|
|
106
|
+
return cls.model_validate(obj)
|
|
107
|
+
|
|
108
|
+
_obj = cls.model_validate({
|
|
109
|
+
"totalCpuQuota": obj.get("totalCpuQuota"),
|
|
110
|
+
"totalMemoryQuota": obj.get("totalMemoryQuota"),
|
|
111
|
+
"totalDiskQuota": obj.get("totalDiskQuota")
|
|
112
|
+
})
|
|
113
|
+
# store additional fields in additional_properties
|
|
114
|
+
for _key in obj.keys():
|
|
115
|
+
if _key not in cls.__properties:
|
|
116
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
117
|
+
|
|
118
|
+
return _obj
|
|
119
|
+
|
|
120
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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, StrictStr, field_validator
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class UpdateOrganizationRole(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UpdateOrganizationRole
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
name: StrictStr = Field(description="The name of the role")
|
|
31
|
+
description: StrictStr = Field(description="The description of the role")
|
|
32
|
+
permissions: List[StrictStr] = Field(description="The list of permissions assigned to the role")
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["name", "description", "permissions"]
|
|
35
|
+
|
|
36
|
+
@field_validator('permissions')
|
|
37
|
+
def permissions_validate_enum(cls, value):
|
|
38
|
+
"""Validates the enum"""
|
|
39
|
+
for i in value:
|
|
40
|
+
if i not in set(['write:registries', 'delete:registries', 'write:snapshots', 'delete:snapshots', 'write:sandboxes', 'delete:sandboxes', 'read:volumes', 'write:volumes', 'delete:volumes', 'read:audit_logs']):
|
|
41
|
+
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', 'read:audit_logs')")
|
|
42
|
+
return value
|
|
43
|
+
|
|
44
|
+
model_config = ConfigDict(
|
|
45
|
+
populate_by_name=True,
|
|
46
|
+
validate_assignment=True,
|
|
47
|
+
protected_namespaces=(),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def to_str(self) -> str:
|
|
52
|
+
"""Returns the string representation of the model using alias"""
|
|
53
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
54
|
+
|
|
55
|
+
def to_json(self) -> str:
|
|
56
|
+
"""Returns the JSON representation of the model using alias"""
|
|
57
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
58
|
+
return json.dumps(self.to_dict())
|
|
59
|
+
|
|
60
|
+
@classmethod
|
|
61
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
62
|
+
"""Create an instance of UpdateOrganizationRole from a JSON string"""
|
|
63
|
+
return cls.from_dict(json.loads(json_str))
|
|
64
|
+
|
|
65
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
66
|
+
"""Return the dictionary representation of the model using alias.
|
|
67
|
+
|
|
68
|
+
This has the following differences from calling pydantic's
|
|
69
|
+
`self.model_dump(by_alias=True)`:
|
|
70
|
+
|
|
71
|
+
* `None` is only added to the output dict for nullable fields that
|
|
72
|
+
were set at model initialization. Other fields with value `None`
|
|
73
|
+
are ignored.
|
|
74
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
75
|
+
"""
|
|
76
|
+
excluded_fields: Set[str] = set([
|
|
77
|
+
"additional_properties",
|
|
78
|
+
])
|
|
79
|
+
|
|
80
|
+
_dict = self.model_dump(
|
|
81
|
+
by_alias=True,
|
|
82
|
+
exclude=excluded_fields,
|
|
83
|
+
exclude_none=True,
|
|
84
|
+
)
|
|
85
|
+
# puts key-value pairs in additional_properties in the top level
|
|
86
|
+
if self.additional_properties is not None:
|
|
87
|
+
for _key, _value in self.additional_properties.items():
|
|
88
|
+
_dict[_key] = _value
|
|
89
|
+
|
|
90
|
+
return _dict
|
|
91
|
+
|
|
92
|
+
@classmethod
|
|
93
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
94
|
+
"""Create an instance of UpdateOrganizationRole from a dict"""
|
|
95
|
+
if obj is None:
|
|
96
|
+
return None
|
|
97
|
+
|
|
98
|
+
if not isinstance(obj, dict):
|
|
99
|
+
return cls.model_validate(obj)
|
|
100
|
+
|
|
101
|
+
_obj = cls.model_validate({
|
|
102
|
+
"name": obj.get("name"),
|
|
103
|
+
"description": obj.get("description"),
|
|
104
|
+
"permissions": obj.get("permissions")
|
|
105
|
+
})
|
|
106
|
+
# store additional fields in additional_properties
|
|
107
|
+
for _key in obj.keys():
|
|
108
|
+
if _key not in cls.__properties:
|
|
109
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
110
|
+
|
|
111
|
+
return _obj
|
|
112
|
+
|
|
113
|
+
|