daytona_api_client 0.108.0__py3-none-any.whl → 0.108.1rc1__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.

@@ -277,6 +277,7 @@ class ObjectStorageApi:
277
277
 
278
278
  # authentication setting
279
279
  _auth_settings: List[str] = [
280
+ 'bearer',
280
281
  'oauth2'
281
282
  ]
282
283
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daytona_api_client
3
- Version: 0.108.0
3
+ Version: 0.108.1rc1
4
4
  Summary: Daytona
5
5
  Home-page:
6
6
  Author: Daytona Platforms Inc.
@@ -12,7 +12,7 @@ daytona_api_client/api/config_api.py,sha256=yI2MFFZrMThchVBYQGrGrsmaOLHs7cksnHbt
12
12
  daytona_api_client/api/default_api.py,sha256=4-VA8V8k3HRRMrs94ANAwkyDKVAZWmNlm2g1X87WOrA,74162
13
13
  daytona_api_client/api/docker_registry_api.py,sha256=ids7YUbqX4s2uwv7ROhqFqNzHzdYa7nK9wOPQ5rgB8U,78838
14
14
  daytona_api_client/api/health_api.py,sha256=alnAhh9vQkpx2OmVre6dHmHTlcFldBfqsogNoUPzFsc,10533
15
- daytona_api_client/api/object_storage_api.py,sha256=wvOdTUjvlChxzwwzA-49iwjl46F0uFt06Axfcb_BX4Q,11605
15
+ daytona_api_client/api/object_storage_api.py,sha256=aliX_Jj8omBsm-H82lf10L4jnPvFpnovQTSScVaEtko,11628
16
16
  daytona_api_client/api/organizations_api.py,sha256=ve8cb9Oa6fAeKgcysbl4MVZ6I6_0pI51vYs_3g9Yn4g,276339
17
17
  daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
18
18
  daytona_api_client/api/runners_api.py,sha256=kl74Mg19G71Kcj9dNK9xeJCaZ2upk4z-DS7Ul70n-Ww,49018
@@ -111,7 +111,6 @@ daytona_api_client/models/paginated_audit_logs.py,sha256=CThN80Prqq93G6w6GqFxAA6
111
111
  daytona_api_client/models/paginated_sandboxes.py,sha256=W4c3DkdTecRNGwA_JcsRUyTliuzOc3tq85IoDpCLw4w,3830
112
112
  daytona_api_client/models/paginated_snapshots.py,sha256=JR1uNBGE_GhCWSROnpL1BRxQt4FaOOb56yDfYLUh5O0,3847
113
113
  daytona_api_client/models/paginated_snapshots_dto.py,sha256=v0b9U3XZUjQ2AVJE0Vv-2Do9rCuy2aN4ZwU8s_L8fUw,3859
114
- daytona_api_client/models/paginated_workspaces.py,sha256=cWRUveqYDUYZmlrHHGenIPHKTJ7khRSu3wKE7NNiWoc,3842
115
114
  daytona_api_client/models/port_preview_url.py,sha256=QnOqJ0-wu7Zy_WiPRG-FeBRTaTZQTUvJrqlSsULQ8rU,3390
116
115
  daytona_api_client/models/position.py,sha256=cdJuHMmQrTCxYhKwFbi7NODF7W4fbIxuu4rjw5pJjF0,3141
117
116
  daytona_api_client/models/posthog_config.py,sha256=G_bxf3xbxeikp1jbtJbfFCsjHl8CI61DyTc-VSjOmP4,3192
@@ -166,11 +165,9 @@ daytona_api_client/models/snapshot_state_updated_post_request_data_snapshot.py,s
166
165
  daytona_api_client/models/ssh_access_dto.py,sha256=SlKSwrMITp1Gs84p4g9Jo8jOp7pyXgZM-DSj1ywTnUc,3857
167
166
  daytona_api_client/models/ssh_access_validation_dto.py,sha256=pZPI4xS3fV-FqdH6KbPSAWToTjR4Gmv8KnXbOIXZ7-w,3708
168
167
  daytona_api_client/models/storage_access_dto.py,sha256=aivW_3ewAA5jcevSPyvsTaqqY5nUeaW8_2OPUeih614,3879
169
- daytona_api_client/models/update_assigned_organization_roles.py,sha256=G8-T_36mlvj5o0QGO5rhXcMed86NaWyEc8kvhRm4Uho,3172
170
168
  daytona_api_client/models/update_docker_registry.py,sha256=ya9FuZ3xvkUr0Dt69umaIJZjnH3Fy882qs82pt2iytw,3604
171
169
  daytona_api_client/models/update_organization_invitation.py,sha256=_98DviKjGYq1h_zKngy0WphVyvi19d6kO8yiMgviX5A,3809
172
170
  daytona_api_client/models/update_organization_member_access.py,sha256=I0q60678RqxDc_-ZWqNf2drqEmEB1FMPpJ60ZL7-MbY,3646
173
- daytona_api_client/models/update_organization_member_role.py,sha256=-B8wsTJgQSkQTiYqD0nuc8yUXRRzIX5U0z5z94CTc5Q,3401
174
171
  daytona_api_client/models/update_organization_quota.py,sha256=qfwgYkEKBJHhksdhbC0_LZUt5fBBFehQdtfq5seFSGc,6830
175
172
  daytona_api_client/models/update_organization_role.py,sha256=-Z8oRpO3ebQRtlzMaeYKyfyNiFARD76kGvY_9-mF4os,4069
176
173
  daytona_api_client/models/update_sandbox_state_dto.py,sha256=XzzeHDDpWoobgxUe8egnE3r0Po9VJwhCOMGDWqhc1LU,3780
@@ -193,8 +190,8 @@ daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcE
193
190
  daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
194
191
  daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
195
192
  daytona_api_client/models/workspace.py,sha256=uwAStXOLrVJzbxdTfPZokrcMr4Dp4ghgH8V5fy5r0gY,11488
196
- daytona_api_client-0.108.0.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
197
- daytona_api_client-0.108.0.dist-info/METADATA,sha256=EwzPPLI9Pa6BOVh1Bdw6GdnCzyf5RpUX1NoalmdWFHs,619
198
- daytona_api_client-0.108.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
199
- daytona_api_client-0.108.0.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
200
- daytona_api_client-0.108.0.dist-info/RECORD,,
193
+ daytona_api_client-0.108.1rc1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
194
+ daytona_api_client-0.108.1rc1.dist-info/METADATA,sha256=SLBx5Z8PTii6nMxEcjnEipWbBBXXv-s8WRw0ri0MQ8Y,622
195
+ daytona_api_client-0.108.1rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
196
+ daytona_api_client-0.108.1rc1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
197
+ daytona_api_client-0.108.1rc1.dist-info/RECORD,,
@@ -1,115 +0,0 @@
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 daytona_api_client.models.workspace import Workspace
24
- from typing import Optional, Set
25
- from typing_extensions import Self
26
-
27
- class PaginatedWorkspaces(BaseModel):
28
- """
29
- PaginatedWorkspaces
30
- """ # noqa: E501
31
- items: List[Workspace]
32
- total: Union[StrictFloat, StrictInt]
33
- page: Union[StrictFloat, StrictInt]
34
- total_pages: Union[StrictFloat, StrictInt] = Field(alias="totalPages")
35
- additional_properties: Dict[str, Any] = {}
36
- __properties: ClassVar[List[str]] = ["items", "total", "page", "totalPages"]
37
-
38
- model_config = ConfigDict(
39
- populate_by_name=True,
40
- validate_assignment=True,
41
- protected_namespaces=(),
42
- )
43
-
44
-
45
- def to_str(self) -> str:
46
- """Returns the string representation of the model using alias"""
47
- return pprint.pformat(self.model_dump(by_alias=True))
48
-
49
- def to_json(self) -> str:
50
- """Returns the JSON representation of the model using alias"""
51
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
52
- return json.dumps(self.to_dict())
53
-
54
- @classmethod
55
- def from_json(cls, json_str: str) -> Optional[Self]:
56
- """Create an instance of PaginatedWorkspaces from a JSON string"""
57
- return cls.from_dict(json.loads(json_str))
58
-
59
- def to_dict(self) -> Dict[str, Any]:
60
- """Return the dictionary representation of the model using alias.
61
-
62
- This has the following differences from calling pydantic's
63
- `self.model_dump(by_alias=True)`:
64
-
65
- * `None` is only added to the output dict for nullable fields that
66
- were set at model initialization. Other fields with value `None`
67
- are ignored.
68
- * Fields in `self.additional_properties` are added to the output dict.
69
- """
70
- excluded_fields: Set[str] = set([
71
- "additional_properties",
72
- ])
73
-
74
- _dict = self.model_dump(
75
- by_alias=True,
76
- exclude=excluded_fields,
77
- exclude_none=True,
78
- )
79
- # override the default output from pydantic by calling `to_dict()` of each item in items (list)
80
- _items = []
81
- if self.items:
82
- for _item_items in self.items:
83
- if _item_items:
84
- _items.append(_item_items.to_dict())
85
- _dict['items'] = _items
86
- # puts key-value pairs in additional_properties in the top level
87
- if self.additional_properties is not None:
88
- for _key, _value in self.additional_properties.items():
89
- _dict[_key] = _value
90
-
91
- return _dict
92
-
93
- @classmethod
94
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
95
- """Create an instance of PaginatedWorkspaces from a dict"""
96
- if obj is None:
97
- return None
98
-
99
- if not isinstance(obj, dict):
100
- return cls.model_validate(obj)
101
-
102
- _obj = cls.model_validate({
103
- "items": [Workspace.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
104
- "total": obj.get("total"),
105
- "page": obj.get("page"),
106
- "totalPages": obj.get("totalPages")
107
- })
108
- # store additional fields in additional_properties
109
- for _key in obj.keys():
110
- if _key not in cls.__properties:
111
- _obj.additional_properties[_key] = obj.get(_key)
112
-
113
- return _obj
114
-
115
-
@@ -1,101 +0,0 @@
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
22
- from typing import Any, ClassVar, Dict, List
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class UpdateAssignedOrganizationRoles(BaseModel):
27
- """
28
- UpdateAssignedOrganizationRoles
29
- """ # noqa: E501
30
- role_ids: List[StrictStr] = Field(description="Array of role IDs", alias="roleIds")
31
- additional_properties: Dict[str, Any] = {}
32
- __properties: ClassVar[List[str]] = ["roleIds"]
33
-
34
- model_config = ConfigDict(
35
- populate_by_name=True,
36
- validate_assignment=True,
37
- protected_namespaces=(),
38
- )
39
-
40
-
41
- def to_str(self) -> str:
42
- """Returns the string representation of the model using alias"""
43
- return pprint.pformat(self.model_dump(by_alias=True))
44
-
45
- def to_json(self) -> str:
46
- """Returns the JSON representation of the model using alias"""
47
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
- return json.dumps(self.to_dict())
49
-
50
- @classmethod
51
- def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of UpdateAssignedOrganizationRoles from a JSON string"""
53
- return cls.from_dict(json.loads(json_str))
54
-
55
- def to_dict(self) -> Dict[str, Any]:
56
- """Return the dictionary representation of the model using alias.
57
-
58
- This has the following differences from calling pydantic's
59
- `self.model_dump(by_alias=True)`:
60
-
61
- * `None` is only added to the output dict for nullable fields that
62
- were set at model initialization. Other fields with value `None`
63
- are ignored.
64
- * Fields in `self.additional_properties` are added to the output dict.
65
- """
66
- excluded_fields: Set[str] = set([
67
- "additional_properties",
68
- ])
69
-
70
- _dict = self.model_dump(
71
- by_alias=True,
72
- exclude=excluded_fields,
73
- exclude_none=True,
74
- )
75
- # puts key-value pairs in additional_properties in the top level
76
- if self.additional_properties is not None:
77
- for _key, _value in self.additional_properties.items():
78
- _dict[_key] = _value
79
-
80
- return _dict
81
-
82
- @classmethod
83
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
- """Create an instance of UpdateAssignedOrganizationRoles from a dict"""
85
- if obj is None:
86
- return None
87
-
88
- if not isinstance(obj, dict):
89
- return cls.model_validate(obj)
90
-
91
- _obj = cls.model_validate({
92
- "roleIds": obj.get("roleIds")
93
- })
94
- # store additional fields in additional_properties
95
- for _key in obj.keys():
96
- if _key not in cls.__properties:
97
- _obj.additional_properties[_key] = obj.get(_key)
98
-
99
- return _obj
100
-
101
-
@@ -1,108 +0,0 @@
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
-