daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.4a0__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.4a0.dist-info}/METADATA +1 -1
- daytona_api_client-0.21.4a0.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.4a0.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a0.dist-info}/top_level.txt +0 -0
|
@@ -23,17 +23,13 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
class Command(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
Command
|
|
30
|
-
"""
|
|
31
|
-
|
|
29
|
+
""" # noqa: E501
|
|
32
30
|
id: StrictStr = Field(description="The ID of the command")
|
|
33
31
|
command: StrictStr = Field(description="The command that was executed")
|
|
34
|
-
exit_code: Optional[Union[StrictFloat, StrictInt]] = Field(
|
|
35
|
-
default=None, description="The exit code of the command", alias="exitCode"
|
|
36
|
-
)
|
|
32
|
+
exit_code: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The exit code of the command", alias="exitCode")
|
|
37
33
|
additional_properties: Dict[str, Any] = {}
|
|
38
34
|
__properties: ClassVar[List[str]] = ["id", "command", "exitCode"]
|
|
39
35
|
|
|
@@ -43,6 +39,7 @@ class Command(BaseModel):
|
|
|
43
39
|
protected_namespaces=(),
|
|
44
40
|
)
|
|
45
41
|
|
|
42
|
+
|
|
46
43
|
def to_str(self) -> str:
|
|
47
44
|
"""Returns the string representation of the model using alias"""
|
|
48
45
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -68,11 +65,9 @@ class Command(BaseModel):
|
|
|
68
65
|
are ignored.
|
|
69
66
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
70
67
|
"""
|
|
71
|
-
excluded_fields: Set[str] = set(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
]
|
|
75
|
-
)
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
76
71
|
|
|
77
72
|
_dict = self.model_dump(
|
|
78
73
|
by_alias=True,
|
|
@@ -95,10 +90,16 @@ class Command(BaseModel):
|
|
|
95
90
|
if not isinstance(obj, dict):
|
|
96
91
|
return cls.model_validate(obj)
|
|
97
92
|
|
|
98
|
-
_obj = cls.model_validate({
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"id": obj.get("id"),
|
|
95
|
+
"command": obj.get("command"),
|
|
96
|
+
"exitCode": obj.get("exitCode")
|
|
97
|
+
})
|
|
99
98
|
# store additional fields in additional_properties
|
|
100
99
|
for _key in obj.keys():
|
|
101
100
|
if _key not in cls.__properties:
|
|
102
101
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
103
102
|
|
|
104
103
|
return _obj
|
|
104
|
+
|
|
105
|
+
|
|
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
class CompletionContext(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
CompletionContext
|
|
30
|
-
"""
|
|
31
|
-
|
|
29
|
+
""" # noqa: E501
|
|
32
30
|
trigger_kind: Union[StrictFloat, StrictInt] = Field(alias="triggerKind")
|
|
33
31
|
trigger_character: Optional[StrictStr] = Field(default=None, alias="triggerCharacter")
|
|
34
32
|
additional_properties: Dict[str, Any] = {}
|
|
@@ -40,6 +38,7 @@ class CompletionContext(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 CompletionContext(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,12 +89,15 @@ class CompletionContext(BaseModel):
|
|
|
92
89
|
if not isinstance(obj, dict):
|
|
93
90
|
return cls.model_validate(obj)
|
|
94
91
|
|
|
95
|
-
_obj = cls.model_validate(
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"triggerKind": obj.get("triggerKind"),
|
|
94
|
+
"triggerCharacter": obj.get("triggerCharacter")
|
|
95
|
+
})
|
|
98
96
|
# store additional fields in additional_properties
|
|
99
97
|
for _key in obj.keys():
|
|
100
98
|
if _key not in cls.__properties:
|
|
101
99
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
102
100
|
|
|
103
101
|
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
class CompletionItem(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
CompletionItem
|
|
30
|
-
"""
|
|
31
|
-
|
|
29
|
+
""" # noqa: E501
|
|
32
30
|
label: StrictStr
|
|
33
31
|
kind: Optional[Union[StrictFloat, StrictInt]] = None
|
|
34
32
|
detail: Optional[StrictStr] = None
|
|
@@ -37,15 +35,7 @@ class CompletionItem(BaseModel):
|
|
|
37
35
|
filter_text: Optional[StrictStr] = Field(default=None, alias="filterText")
|
|
38
36
|
insert_text: Optional[StrictStr] = Field(default=None, alias="insertText")
|
|
39
37
|
additional_properties: Dict[str, Any] = {}
|
|
40
|
-
__properties: ClassVar[List[str]] = [
|
|
41
|
-
"label",
|
|
42
|
-
"kind",
|
|
43
|
-
"detail",
|
|
44
|
-
"documentation",
|
|
45
|
-
"sortText",
|
|
46
|
-
"filterText",
|
|
47
|
-
"insertText",
|
|
48
|
-
]
|
|
38
|
+
__properties: ClassVar[List[str]] = ["label", "kind", "detail", "documentation", "sortText", "filterText", "insertText"]
|
|
49
39
|
|
|
50
40
|
model_config = ConfigDict(
|
|
51
41
|
populate_by_name=True,
|
|
@@ -53,6 +43,7 @@ class CompletionItem(BaseModel):
|
|
|
53
43
|
protected_namespaces=(),
|
|
54
44
|
)
|
|
55
45
|
|
|
46
|
+
|
|
56
47
|
def to_str(self) -> str:
|
|
57
48
|
"""Returns the string representation of the model using alias"""
|
|
58
49
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -78,11 +69,9 @@ class CompletionItem(BaseModel):
|
|
|
78
69
|
are ignored.
|
|
79
70
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
80
71
|
"""
|
|
81
|
-
excluded_fields: Set[str] = set(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
]
|
|
85
|
-
)
|
|
72
|
+
excluded_fields: Set[str] = set([
|
|
73
|
+
"additional_properties",
|
|
74
|
+
])
|
|
86
75
|
|
|
87
76
|
_dict = self.model_dump(
|
|
88
77
|
by_alias=True,
|
|
@@ -105,20 +94,20 @@ class CompletionItem(BaseModel):
|
|
|
105
94
|
if not isinstance(obj, dict):
|
|
106
95
|
return cls.model_validate(obj)
|
|
107
96
|
|
|
108
|
-
_obj = cls.model_validate(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
)
|
|
97
|
+
_obj = cls.model_validate({
|
|
98
|
+
"label": obj.get("label"),
|
|
99
|
+
"kind": obj.get("kind"),
|
|
100
|
+
"detail": obj.get("detail"),
|
|
101
|
+
"documentation": obj.get("documentation"),
|
|
102
|
+
"sortText": obj.get("sortText"),
|
|
103
|
+
"filterText": obj.get("filterText"),
|
|
104
|
+
"insertText": obj.get("insertText")
|
|
105
|
+
})
|
|
119
106
|
# store additional fields in additional_properties
|
|
120
107
|
for _key in obj.keys():
|
|
121
108
|
if _key not in cls.__properties:
|
|
122
109
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
123
110
|
|
|
124
111
|
return _obj
|
|
112
|
+
|
|
113
|
+
|
|
@@ -24,12 +24,10 @@ from daytona_api_client.models.completion_item import CompletionItem
|
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
class CompletionList(BaseModel):
|
|
29
28
|
"""
|
|
30
29
|
CompletionList
|
|
31
|
-
"""
|
|
32
|
-
|
|
30
|
+
""" # noqa: E501
|
|
33
31
|
is_incomplete: StrictBool = Field(alias="isIncomplete")
|
|
34
32
|
items: List[CompletionItem]
|
|
35
33
|
additional_properties: Dict[str, Any] = {}
|
|
@@ -41,6 +39,7 @@ class CompletionList(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 CompletionList(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,
|
|
@@ -83,7 +80,7 @@ class CompletionList(BaseModel):
|
|
|
83
80
|
for _item_items in self.items:
|
|
84
81
|
if _item_items:
|
|
85
82
|
_items.append(_item_items.to_dict())
|
|
86
|
-
_dict[
|
|
83
|
+
_dict['items'] = _items
|
|
87
84
|
# puts key-value pairs in additional_properties in the top level
|
|
88
85
|
if self.additional_properties is not None:
|
|
89
86
|
for _key, _value in self.additional_properties.items():
|
|
@@ -100,17 +97,15 @@ class CompletionList(BaseModel):
|
|
|
100
97
|
if not isinstance(obj, dict):
|
|
101
98
|
return cls.model_validate(obj)
|
|
102
99
|
|
|
103
|
-
_obj = cls.model_validate(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
if obj.get("items") is not None
|
|
108
|
-
else None,
|
|
109
|
-
}
|
|
110
|
-
)
|
|
100
|
+
_obj = cls.model_validate({
|
|
101
|
+
"isIncomplete": obj.get("isIncomplete"),
|
|
102
|
+
"items": [CompletionItem.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None
|
|
103
|
+
})
|
|
111
104
|
# store additional fields in additional_properties
|
|
112
105
|
for _key in obj.keys():
|
|
113
106
|
if _key not in cls.__properties:
|
|
114
107
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
115
108
|
|
|
116
109
|
return _obj
|
|
110
|
+
|
|
111
|
+
|
|
@@ -24,40 +24,22 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
class CreateApiKey(BaseModel):
|
|
29
28
|
"""
|
|
30
29
|
CreateApiKey
|
|
31
|
-
"""
|
|
32
|
-
|
|
30
|
+
""" # noqa: E501
|
|
33
31
|
name: StrictStr = Field(description="The name of the API key")
|
|
34
|
-
permissions: List[StrictStr] = Field(
|
|
35
|
-
description="The list of organization resource permissions assigned to the API key"
|
|
36
|
-
)
|
|
32
|
+
permissions: List[StrictStr] = Field(description="The list of organization resource permissions assigned to the API key")
|
|
37
33
|
expires_at: Optional[datetime] = Field(default=None, description="When the API key expires", alias="expiresAt")
|
|
38
34
|
additional_properties: Dict[str, Any] = {}
|
|
39
35
|
__properties: ClassVar[List[str]] = ["name", "permissions", "expiresAt"]
|
|
40
36
|
|
|
41
|
-
@field_validator(
|
|
37
|
+
@field_validator('permissions')
|
|
42
38
|
def permissions_validate_enum(cls, value):
|
|
43
39
|
"""Validates the enum"""
|
|
44
40
|
for i in value:
|
|
45
|
-
if i not in set(
|
|
46
|
-
|
|
47
|
-
"write:registries",
|
|
48
|
-
"delete:registries",
|
|
49
|
-
"write:snapshots",
|
|
50
|
-
"delete:snapshots",
|
|
51
|
-
"write:sandboxes",
|
|
52
|
-
"delete:sandboxes",
|
|
53
|
-
"read:volumes",
|
|
54
|
-
"write:volumes",
|
|
55
|
-
"delete:volumes",
|
|
56
|
-
]
|
|
57
|
-
):
|
|
58
|
-
raise ValueError(
|
|
59
|
-
"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')"
|
|
60
|
-
)
|
|
41
|
+
if i not in set(['write:registries', 'delete:registries', 'write:snapshots', 'delete:snapshots', 'write:sandboxes', 'delete:sandboxes', 'read:volumes', 'write:volumes', 'delete:volumes']):
|
|
42
|
+
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')")
|
|
61
43
|
return value
|
|
62
44
|
|
|
63
45
|
model_config = ConfigDict(
|
|
@@ -66,6 +48,7 @@ class CreateApiKey(BaseModel):
|
|
|
66
48
|
protected_namespaces=(),
|
|
67
49
|
)
|
|
68
50
|
|
|
51
|
+
|
|
69
52
|
def to_str(self) -> str:
|
|
70
53
|
"""Returns the string representation of the model using alias"""
|
|
71
54
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -91,11 +74,9 @@ class CreateApiKey(BaseModel):
|
|
|
91
74
|
are ignored.
|
|
92
75
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
93
76
|
"""
|
|
94
|
-
excluded_fields: Set[str] = set(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
]
|
|
98
|
-
)
|
|
77
|
+
excluded_fields: Set[str] = set([
|
|
78
|
+
"additional_properties",
|
|
79
|
+
])
|
|
99
80
|
|
|
100
81
|
_dict = self.model_dump(
|
|
101
82
|
by_alias=True,
|
|
@@ -110,7 +91,7 @@ class CreateApiKey(BaseModel):
|
|
|
110
91
|
# set to None if expires_at (nullable) is None
|
|
111
92
|
# and model_fields_set contains the field
|
|
112
93
|
if self.expires_at is None and "expires_at" in self.model_fields_set:
|
|
113
|
-
_dict[
|
|
94
|
+
_dict['expiresAt'] = None
|
|
114
95
|
|
|
115
96
|
return _dict
|
|
116
97
|
|
|
@@ -123,12 +104,16 @@ class CreateApiKey(BaseModel):
|
|
|
123
104
|
if not isinstance(obj, dict):
|
|
124
105
|
return cls.model_validate(obj)
|
|
125
106
|
|
|
126
|
-
_obj = cls.model_validate(
|
|
127
|
-
|
|
128
|
-
|
|
107
|
+
_obj = cls.model_validate({
|
|
108
|
+
"name": obj.get("name"),
|
|
109
|
+
"permissions": obj.get("permissions"),
|
|
110
|
+
"expiresAt": obj.get("expiresAt")
|
|
111
|
+
})
|
|
129
112
|
# store additional fields in additional_properties
|
|
130
113
|
for _key in obj.keys():
|
|
131
114
|
if _key not in cls.__properties:
|
|
132
115
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
133
116
|
|
|
134
117
|
return _obj
|
|
118
|
+
|
|
119
|
+
|
|
@@ -23,18 +23,12 @@ 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 CreateBuildInfo(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
CreateBuildInfo
|
|
30
|
-
"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
description="The Dockerfile content used for the build", alias="dockerfileContent"
|
|
34
|
-
)
|
|
35
|
-
context_hashes: Optional[List[StrictStr]] = Field(
|
|
36
|
-
default=None, description="The context hashes used for the build", alias="contextHashes"
|
|
37
|
-
)
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
dockerfile_content: StrictStr = Field(description="The Dockerfile content used for the build", alias="dockerfileContent")
|
|
31
|
+
context_hashes: Optional[List[StrictStr]] = Field(default=None, description="The context hashes used for the build", alias="contextHashes")
|
|
38
32
|
additional_properties: Dict[str, Any] = {}
|
|
39
33
|
__properties: ClassVar[List[str]] = ["dockerfileContent", "contextHashes"]
|
|
40
34
|
|
|
@@ -44,6 +38,7 @@ class CreateBuildInfo(BaseModel):
|
|
|
44
38
|
protected_namespaces=(),
|
|
45
39
|
)
|
|
46
40
|
|
|
41
|
+
|
|
47
42
|
def to_str(self) -> str:
|
|
48
43
|
"""Returns the string representation of the model using alias"""
|
|
49
44
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -69,11 +64,9 @@ class CreateBuildInfo(BaseModel):
|
|
|
69
64
|
are ignored.
|
|
70
65
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
71
66
|
"""
|
|
72
|
-
excluded_fields: Set[str] = set(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
]
|
|
76
|
-
)
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
"additional_properties",
|
|
69
|
+
])
|
|
77
70
|
|
|
78
71
|
_dict = self.model_dump(
|
|
79
72
|
by_alias=True,
|
|
@@ -96,12 +89,15 @@ class CreateBuildInfo(BaseModel):
|
|
|
96
89
|
if not isinstance(obj, dict):
|
|
97
90
|
return cls.model_validate(obj)
|
|
98
91
|
|
|
99
|
-
_obj = cls.model_validate(
|
|
100
|
-
|
|
101
|
-
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"dockerfileContent": obj.get("dockerfileContent"),
|
|
94
|
+
"contextHashes": obj.get("contextHashes")
|
|
95
|
+
})
|
|
102
96
|
# store additional fields in additional_properties
|
|
103
97
|
for _key in obj.keys():
|
|
104
98
|
if _key not in cls.__properties:
|
|
105
99
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
106
100
|
|
|
107
101
|
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -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 CreateDockerRegistry(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
CreateDockerRegistry
|
|
30
|
-
"""
|
|
31
|
-
|
|
29
|
+
""" # noqa: E501
|
|
32
30
|
name: StrictStr = Field(description="Registry name")
|
|
33
31
|
url: StrictStr = Field(description="Registry URL")
|
|
34
32
|
username: StrictStr = Field(description="Registry username")
|
|
@@ -39,10 +37,10 @@ class CreateDockerRegistry(BaseModel):
|
|
|
39
37
|
additional_properties: Dict[str, Any] = {}
|
|
40
38
|
__properties: ClassVar[List[str]] = ["name", "url", "username", "password", "project", "registryType", "isDefault"]
|
|
41
39
|
|
|
42
|
-
@field_validator(
|
|
40
|
+
@field_validator('registry_type')
|
|
43
41
|
def registry_type_validate_enum(cls, value):
|
|
44
42
|
"""Validates the enum"""
|
|
45
|
-
if value not in set([
|
|
43
|
+
if value not in set(['internal', 'organization', 'public', 'transient']):
|
|
46
44
|
raise ValueError("must be one of enum values ('internal', 'organization', 'public', 'transient')")
|
|
47
45
|
return value
|
|
48
46
|
|
|
@@ -52,6 +50,7 @@ class CreateDockerRegistry(BaseModel):
|
|
|
52
50
|
protected_namespaces=(),
|
|
53
51
|
)
|
|
54
52
|
|
|
53
|
+
|
|
55
54
|
def to_str(self) -> str:
|
|
56
55
|
"""Returns the string representation of the model using alias"""
|
|
57
56
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
@@ -77,11 +76,9 @@ class CreateDockerRegistry(BaseModel):
|
|
|
77
76
|
are ignored.
|
|
78
77
|
* Fields in `self.additional_properties` are added to the output dict.
|
|
79
78
|
"""
|
|
80
|
-
excluded_fields: Set[str] = set(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
]
|
|
84
|
-
)
|
|
79
|
+
excluded_fields: Set[str] = set([
|
|
80
|
+
"additional_properties",
|
|
81
|
+
])
|
|
85
82
|
|
|
86
83
|
_dict = self.model_dump(
|
|
87
84
|
by_alias=True,
|
|
@@ -104,20 +101,20 @@ class CreateDockerRegistry(BaseModel):
|
|
|
104
101
|
if not isinstance(obj, dict):
|
|
105
102
|
return cls.model_validate(obj)
|
|
106
103
|
|
|
107
|
-
_obj = cls.model_validate(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
)
|
|
104
|
+
_obj = cls.model_validate({
|
|
105
|
+
"name": obj.get("name"),
|
|
106
|
+
"url": obj.get("url"),
|
|
107
|
+
"username": obj.get("username"),
|
|
108
|
+
"password": obj.get("password"),
|
|
109
|
+
"project": obj.get("project"),
|
|
110
|
+
"registryType": obj.get("registryType") if obj.get("registryType") is not None else 'internal',
|
|
111
|
+
"isDefault": obj.get("isDefault") if obj.get("isDefault") is not None else False
|
|
112
|
+
})
|
|
118
113
|
# store additional fields in additional_properties
|
|
119
114
|
for _key in obj.keys():
|
|
120
115
|
if _key not in cls.__properties:
|
|
121
116
|
_obj.additional_properties[_key] = obj.get(_key)
|
|
122
117
|
|
|
123
118
|
return _obj
|
|
119
|
+
|
|
120
|
+
|
|
@@ -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 CreateLinkedAccount(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
CreateLinkedAccount
|
|
30
|
-
"""
|
|
31
|
-
|
|
29
|
+
""" # noqa: E501
|
|
32
30
|
provider: StrictStr = Field(description="The authentication provider of the secondary account")
|
|
33
31
|
user_id: StrictStr = Field(description="The user ID of the secondary account", alias="userId")
|
|
34
32
|
additional_properties: Dict[str, Any] = {}
|
|
@@ -40,6 +38,7 @@ class CreateLinkedAccount(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 CreateLinkedAccount(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 CreateLinkedAccount(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
|
+
"provider": obj.get("provider"),
|
|
94
|
+
"userId": obj.get("userId")
|
|
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
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
class CreateOrganization(BaseModel):
|
|
28
27
|
"""
|
|
29
28
|
CreateOrganization
|
|
30
|
-
"""
|
|
31
|
-
|
|
29
|
+
""" # noqa: E501
|
|
32
30
|
name: StrictStr = Field(description="The name of organization")
|
|
33
31
|
additional_properties: Dict[str, Any] = {}
|
|
34
32
|
__properties: ClassVar[List[str]] = ["name"]
|
|
@@ -39,6 +37,7 @@ class CreateOrganization(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 CreateOrganization(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 CreateOrganization(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
|
+
"name": obj.get("name")
|
|
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
|
+
|