daytona_api_client 0.22.0a5__py3-none-any.whl → 0.22.1__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/sandbox_api.py +282 -0
- daytona_api_client/models/create_sandbox.py +3 -1
- daytona_api_client/models/sandbox.py +3 -1
- daytona_api_client/models/windows_response.py +6 -4
- daytona_api_client/models/workspace.py +3 -1
- {daytona_api_client-0.22.0a5.dist-info → daytona_api_client-0.22.1.dist-info}/METADATA +1 -1
- {daytona_api_client-0.22.0a5.dist-info → daytona_api_client-0.22.1.dist-info}/RECORD +10 -10
- {daytona_api_client-0.22.0a5.dist-info → daytona_api_client-0.22.1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.22.0a5.dist-info → daytona_api_client-0.22.1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.22.0a5.dist-info → daytona_api_client-0.22.1.dist-info}/top_level.txt +0 -0
|
@@ -2913,6 +2913,288 @@ class SandboxApi:
|
|
|
2913
2913
|
|
|
2914
2914
|
|
|
2915
2915
|
|
|
2916
|
+
@validate_call
|
|
2917
|
+
def set_auto_delete_interval(
|
|
2918
|
+
self,
|
|
2919
|
+
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2920
|
+
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)")],
|
|
2921
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2922
|
+
_request_timeout: Union[
|
|
2923
|
+
None,
|
|
2924
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2925
|
+
Tuple[
|
|
2926
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2927
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2928
|
+
]
|
|
2929
|
+
] = None,
|
|
2930
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2931
|
+
_content_type: Optional[StrictStr] = None,
|
|
2932
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2933
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2934
|
+
) -> None:
|
|
2935
|
+
"""Set sandbox auto-delete interval
|
|
2936
|
+
|
|
2937
|
+
|
|
2938
|
+
:param sandbox_id: ID of the sandbox (required)
|
|
2939
|
+
:type sandbox_id: str
|
|
2940
|
+
:param interval: Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) (required)
|
|
2941
|
+
:type interval: float
|
|
2942
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
2943
|
+
:type x_daytona_organization_id: str
|
|
2944
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2945
|
+
number provided, it will be total request
|
|
2946
|
+
timeout. It can also be a pair (tuple) of
|
|
2947
|
+
(connection, read) timeouts.
|
|
2948
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2949
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2950
|
+
request; this effectively ignores the
|
|
2951
|
+
authentication in the spec for a single request.
|
|
2952
|
+
:type _request_auth: dict, optional
|
|
2953
|
+
:param _content_type: force content-type for the request.
|
|
2954
|
+
:type _content_type: str, Optional
|
|
2955
|
+
:param _headers: set to override the headers for a single
|
|
2956
|
+
request; this effectively ignores the headers
|
|
2957
|
+
in the spec for a single request.
|
|
2958
|
+
:type _headers: dict, optional
|
|
2959
|
+
:param _host_index: set to override the host_index for a single
|
|
2960
|
+
request; this effectively ignores the host_index
|
|
2961
|
+
in the spec for a single request.
|
|
2962
|
+
:type _host_index: int, optional
|
|
2963
|
+
:return: Returns the result object.
|
|
2964
|
+
""" # noqa: E501
|
|
2965
|
+
|
|
2966
|
+
_param = self._set_auto_delete_interval_serialize(
|
|
2967
|
+
sandbox_id=sandbox_id,
|
|
2968
|
+
interval=interval,
|
|
2969
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
2970
|
+
_request_auth=_request_auth,
|
|
2971
|
+
_content_type=_content_type,
|
|
2972
|
+
_headers=_headers,
|
|
2973
|
+
_host_index=_host_index
|
|
2974
|
+
)
|
|
2975
|
+
|
|
2976
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2977
|
+
'200': None,
|
|
2978
|
+
}
|
|
2979
|
+
response_data = self.api_client.call_api(
|
|
2980
|
+
*_param,
|
|
2981
|
+
_request_timeout=_request_timeout
|
|
2982
|
+
)
|
|
2983
|
+
response_data.read()
|
|
2984
|
+
return self.api_client.response_deserialize(
|
|
2985
|
+
response_data=response_data,
|
|
2986
|
+
response_types_map=_response_types_map,
|
|
2987
|
+
).data
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
@validate_call
|
|
2991
|
+
def set_auto_delete_interval_with_http_info(
|
|
2992
|
+
self,
|
|
2993
|
+
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
2994
|
+
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)")],
|
|
2995
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2996
|
+
_request_timeout: Union[
|
|
2997
|
+
None,
|
|
2998
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2999
|
+
Tuple[
|
|
3000
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3001
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3002
|
+
]
|
|
3003
|
+
] = None,
|
|
3004
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3005
|
+
_content_type: Optional[StrictStr] = None,
|
|
3006
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3007
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3008
|
+
) -> ApiResponse[None]:
|
|
3009
|
+
"""Set sandbox auto-delete interval
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
:param sandbox_id: ID of the sandbox (required)
|
|
3013
|
+
:type sandbox_id: str
|
|
3014
|
+
:param interval: Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) (required)
|
|
3015
|
+
:type interval: float
|
|
3016
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
3017
|
+
:type x_daytona_organization_id: str
|
|
3018
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3019
|
+
number provided, it will be total request
|
|
3020
|
+
timeout. It can also be a pair (tuple) of
|
|
3021
|
+
(connection, read) timeouts.
|
|
3022
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3023
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3024
|
+
request; this effectively ignores the
|
|
3025
|
+
authentication in the spec for a single request.
|
|
3026
|
+
:type _request_auth: dict, optional
|
|
3027
|
+
:param _content_type: force content-type for the request.
|
|
3028
|
+
:type _content_type: str, Optional
|
|
3029
|
+
:param _headers: set to override the headers for a single
|
|
3030
|
+
request; this effectively ignores the headers
|
|
3031
|
+
in the spec for a single request.
|
|
3032
|
+
:type _headers: dict, optional
|
|
3033
|
+
:param _host_index: set to override the host_index for a single
|
|
3034
|
+
request; this effectively ignores the host_index
|
|
3035
|
+
in the spec for a single request.
|
|
3036
|
+
:type _host_index: int, optional
|
|
3037
|
+
:return: Returns the result object.
|
|
3038
|
+
""" # noqa: E501
|
|
3039
|
+
|
|
3040
|
+
_param = self._set_auto_delete_interval_serialize(
|
|
3041
|
+
sandbox_id=sandbox_id,
|
|
3042
|
+
interval=interval,
|
|
3043
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
3044
|
+
_request_auth=_request_auth,
|
|
3045
|
+
_content_type=_content_type,
|
|
3046
|
+
_headers=_headers,
|
|
3047
|
+
_host_index=_host_index
|
|
3048
|
+
)
|
|
3049
|
+
|
|
3050
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3051
|
+
'200': None,
|
|
3052
|
+
}
|
|
3053
|
+
response_data = self.api_client.call_api(
|
|
3054
|
+
*_param,
|
|
3055
|
+
_request_timeout=_request_timeout
|
|
3056
|
+
)
|
|
3057
|
+
response_data.read()
|
|
3058
|
+
return self.api_client.response_deserialize(
|
|
3059
|
+
response_data=response_data,
|
|
3060
|
+
response_types_map=_response_types_map,
|
|
3061
|
+
)
|
|
3062
|
+
|
|
3063
|
+
|
|
3064
|
+
@validate_call
|
|
3065
|
+
def set_auto_delete_interval_without_preload_content(
|
|
3066
|
+
self,
|
|
3067
|
+
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
3068
|
+
interval: Annotated[Union[StrictFloat, StrictInt], Field(description="Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)")],
|
|
3069
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
3070
|
+
_request_timeout: Union[
|
|
3071
|
+
None,
|
|
3072
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3073
|
+
Tuple[
|
|
3074
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3075
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3076
|
+
]
|
|
3077
|
+
] = None,
|
|
3078
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3079
|
+
_content_type: Optional[StrictStr] = None,
|
|
3080
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3081
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3082
|
+
) -> RESTResponseType:
|
|
3083
|
+
"""Set sandbox auto-delete interval
|
|
3084
|
+
|
|
3085
|
+
|
|
3086
|
+
:param sandbox_id: ID of the sandbox (required)
|
|
3087
|
+
:type sandbox_id: str
|
|
3088
|
+
:param interval: Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) (required)
|
|
3089
|
+
:type interval: float
|
|
3090
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
3091
|
+
:type x_daytona_organization_id: str
|
|
3092
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3093
|
+
number provided, it will be total request
|
|
3094
|
+
timeout. It can also be a pair (tuple) of
|
|
3095
|
+
(connection, read) timeouts.
|
|
3096
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3097
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3098
|
+
request; this effectively ignores the
|
|
3099
|
+
authentication in the spec for a single request.
|
|
3100
|
+
:type _request_auth: dict, optional
|
|
3101
|
+
:param _content_type: force content-type for the request.
|
|
3102
|
+
:type _content_type: str, Optional
|
|
3103
|
+
:param _headers: set to override the headers for a single
|
|
3104
|
+
request; this effectively ignores the headers
|
|
3105
|
+
in the spec for a single request.
|
|
3106
|
+
:type _headers: dict, optional
|
|
3107
|
+
:param _host_index: set to override the host_index for a single
|
|
3108
|
+
request; this effectively ignores the host_index
|
|
3109
|
+
in the spec for a single request.
|
|
3110
|
+
:type _host_index: int, optional
|
|
3111
|
+
:return: Returns the result object.
|
|
3112
|
+
""" # noqa: E501
|
|
3113
|
+
|
|
3114
|
+
_param = self._set_auto_delete_interval_serialize(
|
|
3115
|
+
sandbox_id=sandbox_id,
|
|
3116
|
+
interval=interval,
|
|
3117
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
3118
|
+
_request_auth=_request_auth,
|
|
3119
|
+
_content_type=_content_type,
|
|
3120
|
+
_headers=_headers,
|
|
3121
|
+
_host_index=_host_index
|
|
3122
|
+
)
|
|
3123
|
+
|
|
3124
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3125
|
+
'200': None,
|
|
3126
|
+
}
|
|
3127
|
+
response_data = self.api_client.call_api(
|
|
3128
|
+
*_param,
|
|
3129
|
+
_request_timeout=_request_timeout
|
|
3130
|
+
)
|
|
3131
|
+
return response_data.response
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
def _set_auto_delete_interval_serialize(
|
|
3135
|
+
self,
|
|
3136
|
+
sandbox_id,
|
|
3137
|
+
interval,
|
|
3138
|
+
x_daytona_organization_id,
|
|
3139
|
+
_request_auth,
|
|
3140
|
+
_content_type,
|
|
3141
|
+
_headers,
|
|
3142
|
+
_host_index,
|
|
3143
|
+
) -> RequestSerialized:
|
|
3144
|
+
|
|
3145
|
+
_host = None
|
|
3146
|
+
|
|
3147
|
+
_collection_formats: Dict[str, str] = {
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
_path_params: Dict[str, str] = {}
|
|
3151
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3152
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3153
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3154
|
+
_files: Dict[
|
|
3155
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3156
|
+
] = {}
|
|
3157
|
+
_body_params: Optional[bytes] = None
|
|
3158
|
+
|
|
3159
|
+
# process the path parameters
|
|
3160
|
+
if sandbox_id is not None:
|
|
3161
|
+
_path_params['sandboxId'] = sandbox_id
|
|
3162
|
+
if interval is not None:
|
|
3163
|
+
_path_params['interval'] = interval
|
|
3164
|
+
# process the query parameters
|
|
3165
|
+
# process the header parameters
|
|
3166
|
+
if x_daytona_organization_id is not None:
|
|
3167
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
3168
|
+
# process the form parameters
|
|
3169
|
+
# process the body parameter
|
|
3170
|
+
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
# authentication setting
|
|
3175
|
+
_auth_settings: List[str] = [
|
|
3176
|
+
'bearer',
|
|
3177
|
+
'oauth2'
|
|
3178
|
+
]
|
|
3179
|
+
|
|
3180
|
+
return self.api_client.param_serialize(
|
|
3181
|
+
method='POST',
|
|
3182
|
+
resource_path='/sandbox/{sandboxId}/autodelete/{interval}',
|
|
3183
|
+
path_params=_path_params,
|
|
3184
|
+
query_params=_query_params,
|
|
3185
|
+
header_params=_header_params,
|
|
3186
|
+
body=_body_params,
|
|
3187
|
+
post_params=_form_params,
|
|
3188
|
+
files=_files,
|
|
3189
|
+
auth_settings=_auth_settings,
|
|
3190
|
+
collection_formats=_collection_formats,
|
|
3191
|
+
_host=_host,
|
|
3192
|
+
_request_auth=_request_auth
|
|
3193
|
+
)
|
|
3194
|
+
|
|
3195
|
+
|
|
3196
|
+
|
|
3197
|
+
|
|
2916
3198
|
@validate_call
|
|
2917
3199
|
def set_autostop_interval(
|
|
2918
3200
|
self,
|
|
@@ -42,10 +42,11 @@ class CreateSandbox(BaseModel):
|
|
|
42
42
|
disk: Optional[StrictInt] = Field(default=None, description="Disk space allocated to the sandbox in GB")
|
|
43
43
|
auto_stop_interval: Optional[StrictInt] = Field(default=None, description="Auto-stop interval in minutes (0 means disabled)", alias="autoStopInterval")
|
|
44
44
|
auto_archive_interval: Optional[StrictInt] = Field(default=None, description="Auto-archive interval in minutes (0 means the maximum interval will be used)", alias="autoArchiveInterval")
|
|
45
|
+
auto_delete_interval: Optional[StrictInt] = Field(default=None, description="Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)", alias="autoDeleteInterval")
|
|
45
46
|
volumes: Optional[List[SandboxVolume]] = Field(default=None, description="Array of volumes to attach to the sandbox")
|
|
46
47
|
build_info: Optional[CreateBuildInfo] = Field(default=None, description="Build information for the sandbox", alias="buildInfo")
|
|
47
48
|
additional_properties: Dict[str, Any] = {}
|
|
48
|
-
__properties: ClassVar[List[str]] = ["snapshot", "user", "env", "labels", "public", "class", "target", "cpu", "gpu", "memory", "disk", "autoStopInterval", "autoArchiveInterval", "volumes", "buildInfo"]
|
|
49
|
+
__properties: ClassVar[List[str]] = ["snapshot", "user", "env", "labels", "public", "class", "target", "cpu", "gpu", "memory", "disk", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "volumes", "buildInfo"]
|
|
49
50
|
|
|
50
51
|
@field_validator('var_class')
|
|
51
52
|
def var_class_validate_enum(cls, value):
|
|
@@ -148,6 +149,7 @@ class CreateSandbox(BaseModel):
|
|
|
148
149
|
"disk": obj.get("disk"),
|
|
149
150
|
"autoStopInterval": obj.get("autoStopInterval"),
|
|
150
151
|
"autoArchiveInterval": obj.get("autoArchiveInterval"),
|
|
152
|
+
"autoDeleteInterval": obj.get("autoDeleteInterval"),
|
|
151
153
|
"volumes": [SandboxVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None,
|
|
152
154
|
"buildInfo": CreateBuildInfo.from_dict(obj["buildInfo"]) if obj.get("buildInfo") is not None else None
|
|
153
155
|
})
|
|
@@ -50,6 +50,7 @@ class Sandbox(BaseModel):
|
|
|
50
50
|
backup_created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the last backup", alias="backupCreatedAt")
|
|
51
51
|
auto_stop_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-stop interval in minutes (0 means disabled)", alias="autoStopInterval")
|
|
52
52
|
auto_archive_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-archive interval in minutes", alias="autoArchiveInterval")
|
|
53
|
+
auto_delete_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)", alias="autoDeleteInterval")
|
|
53
54
|
runner_domain: Optional[StrictStr] = Field(default=None, description="The domain name of the runner", alias="runnerDomain")
|
|
54
55
|
volumes: Optional[List[SandboxVolume]] = Field(default=None, description="Array of volumes attached to the sandbox")
|
|
55
56
|
build_info: Optional[BuildInfo] = Field(default=None, description="Build information for the sandbox", alias="buildInfo")
|
|
@@ -58,7 +59,7 @@ class Sandbox(BaseModel):
|
|
|
58
59
|
var_class: Optional[StrictStr] = Field(default=None, description="The class of the sandbox", alias="class")
|
|
59
60
|
daemon_version: Optional[StrictStr] = Field(default=None, description="The version of the daemon running in the sandbox", alias="daemonVersion")
|
|
60
61
|
additional_properties: Dict[str, Any] = {}
|
|
61
|
-
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion"]
|
|
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"]
|
|
62
63
|
|
|
63
64
|
@field_validator('backup_state')
|
|
64
65
|
def backup_state_validate_enum(cls, value):
|
|
@@ -167,6 +168,7 @@ class Sandbox(BaseModel):
|
|
|
167
168
|
"backupCreatedAt": obj.get("backupCreatedAt"),
|
|
168
169
|
"autoStopInterval": obj.get("autoStopInterval"),
|
|
169
170
|
"autoArchiveInterval": obj.get("autoArchiveInterval"),
|
|
171
|
+
"autoDeleteInterval": obj.get("autoDeleteInterval"),
|
|
170
172
|
"runnerDomain": obj.get("runnerDomain"),
|
|
171
173
|
"volumes": [SandboxVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None,
|
|
172
174
|
"buildInfo": BuildInfo.from_dict(obj["buildInfo"]) if obj.get("buildInfo") is not None else None,
|
|
@@ -18,8 +18,8 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -28,8 +28,9 @@ class WindowsResponse(BaseModel):
|
|
|
28
28
|
WindowsResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
windows: List[Dict[str, Any]] = Field(description="Array of window information for all visible windows")
|
|
31
|
+
count: Union[StrictFloat, StrictInt] = Field(description="The total number of windows found")
|
|
31
32
|
additional_properties: Dict[str, Any] = {}
|
|
32
|
-
__properties: ClassVar[List[str]] = ["windows"]
|
|
33
|
+
__properties: ClassVar[List[str]] = ["windows", "count"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
36
|
populate_by_name=True,
|
|
@@ -89,7 +90,8 @@ class WindowsResponse(BaseModel):
|
|
|
89
90
|
return cls.model_validate(obj)
|
|
90
91
|
|
|
91
92
|
_obj = cls.model_validate({
|
|
92
|
-
"windows": obj.get("windows")
|
|
93
|
+
"windows": obj.get("windows"),
|
|
94
|
+
"count": obj.get("count")
|
|
93
95
|
})
|
|
94
96
|
# store additional fields in additional_properties
|
|
95
97
|
for _key in obj.keys():
|
|
@@ -51,6 +51,7 @@ class Workspace(BaseModel):
|
|
|
51
51
|
backup_created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the last backup", alias="backupCreatedAt")
|
|
52
52
|
auto_stop_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-stop interval in minutes (0 means disabled)", alias="autoStopInterval")
|
|
53
53
|
auto_archive_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-archive interval in minutes", alias="autoArchiveInterval")
|
|
54
|
+
auto_delete_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)", alias="autoDeleteInterval")
|
|
54
55
|
runner_domain: Optional[StrictStr] = Field(default=None, description="The domain name of the runner", alias="runnerDomain")
|
|
55
56
|
volumes: Optional[List[SandboxVolume]] = Field(default=None, description="Array of volumes attached to the sandbox")
|
|
56
57
|
build_info: Optional[BuildInfo] = Field(default=None, description="Build information for the sandbox", alias="buildInfo")
|
|
@@ -64,7 +65,7 @@ class Workspace(BaseModel):
|
|
|
64
65
|
snapshot_created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the last snapshot", alias="snapshotCreatedAt")
|
|
65
66
|
info: Optional[SandboxInfo] = Field(default=None, description="Additional information about the sandbox")
|
|
66
67
|
additional_properties: Dict[str, Any] = {}
|
|
67
|
-
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion", "name", "image", "snapshotState", "snapshotCreatedAt", "info"]
|
|
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"]
|
|
68
69
|
|
|
69
70
|
@field_validator('backup_state')
|
|
70
71
|
def backup_state_validate_enum(cls, value):
|
|
@@ -186,6 +187,7 @@ class Workspace(BaseModel):
|
|
|
186
187
|
"backupCreatedAt": obj.get("backupCreatedAt"),
|
|
187
188
|
"autoStopInterval": obj.get("autoStopInterval"),
|
|
188
189
|
"autoArchiveInterval": obj.get("autoArchiveInterval"),
|
|
190
|
+
"autoDeleteInterval": obj.get("autoDeleteInterval"),
|
|
189
191
|
"runnerDomain": obj.get("runnerDomain"),
|
|
190
192
|
"volumes": [SandboxVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None,
|
|
191
193
|
"buildInfo": BuildInfo.from_dict(obj["buildInfo"]) if obj.get("buildInfo") is not None else None,
|
|
@@ -12,7 +12,7 @@ daytona_api_client/api/object_storage_api.py,sha256=wvOdTUjvlChxzwwzA-49iwjl46F0
|
|
|
12
12
|
daytona_api_client/api/organizations_api.py,sha256=v54UhVnCbP_UJWayO5b5yC_y-LIjvlB3g2xVllTOQIg,266572
|
|
13
13
|
daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
|
|
14
14
|
daytona_api_client/api/runners_api.py,sha256=0K7i2QQPKrNL5pPlq2J0HoDJM5BUSQGa7oIzvYz1Mto,49405
|
|
15
|
-
daytona_api_client/api/sandbox_api.py,sha256=
|
|
15
|
+
daytona_api_client/api/sandbox_api.py,sha256=HIcVHneL_fcHF867FMb5kou9zXDKhZvTWKlowr59Zb4,175269
|
|
16
16
|
daytona_api_client/api/snapshots_api.py,sha256=UhLekaiOn8Y1qE9Qb9HbE3sjcxMWDwBK7iV4wZY8474,93385
|
|
17
17
|
daytona_api_client/api/toolbox_api.py,sha256=izj9K1CqTATLepFrFqrgJ0rAZ3TlBXYlcuXkZij1EPQ,720094
|
|
18
18
|
daytona_api_client/api/users_api.py,sha256=9CGl0p-jXLkwbJv05ddVjnvaHEesQL3NArEKSkdGmNc,77265
|
|
@@ -42,7 +42,7 @@ daytona_api_client/models/create_organization_invitation.py,sha256=U5uLVrI3b5kfV
|
|
|
42
42
|
daytona_api_client/models/create_organization_quota.py,sha256=HERVvV6pRerMtV05dPTwEec82HcSJ_tKFpEcYfLlLrQ,4716
|
|
43
43
|
daytona_api_client/models/create_organization_role.py,sha256=yuSpdd9YQco18BMLL1Ni3ZWNryiKpR1qeBjOcQ4hNLU,4031
|
|
44
44
|
daytona_api_client/models/create_runner.py,sha256=x-o7jaz4tXwfMH7FctKQjW9kmvCZajRuZwJZYwSmoz4,4524
|
|
45
|
-
daytona_api_client/models/create_sandbox.py,sha256=
|
|
45
|
+
daytona_api_client/models/create_sandbox.py,sha256=tF0aDHyyaxiaPTwH8NWSO4CCkmAa-apJG0Tq1g5kV2w,7387
|
|
46
46
|
daytona_api_client/models/create_session_request.py,sha256=8Zv23ZXzrW6v2GmygwTUz5bTugAikCT-T8eHwwYRLxc,3136
|
|
47
47
|
daytona_api_client/models/create_snapshot.py,sha256=WGea9750qOcwwAjSjFRYFhlA3H0m5SUotrGgJm3z6Is,4768
|
|
48
48
|
daytona_api_client/models/create_user.py,sha256=__5zKvbJCtB44mALgvZBPlYghxlcdPUjLCDiIITKJiM,4390
|
|
@@ -111,7 +111,7 @@ daytona_api_client/models/runner.py,sha256=fM0tSy-4jX1CjuSZSWE0Ny45Umkwnx7CrSlm4
|
|
|
111
111
|
daytona_api_client/models/runner_region.py,sha256=Lkxx3kYTx8m4w3ntEiaOafMrUknhtNMfk00oD92kXZE,716
|
|
112
112
|
daytona_api_client/models/runner_snapshot_dto.py,sha256=ZBv1j3_4huI-z4GWbCqxOOT85OSyNYX3FHVAHQU6rbo,3447
|
|
113
113
|
daytona_api_client/models/runner_state.py,sha256=_cGjUiDdFZtUQjPc76YKgawOdxV1BDq0ehyKqWFMjD4,819
|
|
114
|
-
daytona_api_client/models/sandbox.py,sha256=
|
|
114
|
+
daytona_api_client/models/sandbox.py,sha256=D3RxrYjaj4k8fccqvqF6eWd37HvQ6Z_jsokLe9kspNQ,9444
|
|
115
115
|
daytona_api_client/models/sandbox_class.py,sha256=Suwn9F4jLgtEdLtCWV86PpCtcfZ653h4bMYrmzrwBBc,731
|
|
116
116
|
daytona_api_client/models/sandbox_desired_state.py,sha256=BHvsm7h8ydWf5e48D7eFGRL9tD8vt7eMBMguZ1GChbc,818
|
|
117
117
|
daytona_api_client/models/sandbox_info.py,sha256=u8wFXAS36AyRIwEfcPphUEBxjOLmtZTvYAq4aoeCJsU,3493
|
|
@@ -144,10 +144,10 @@ daytona_api_client/models/user_public_key.py,sha256=Y0_O7Sq8NP3XzCdKJJj7iTavEY8y
|
|
|
144
144
|
daytona_api_client/models/volume.py,sha256=asBdm16e6uaBZKs00f-TMYVRVHyJaNuZquxdYSMcqEo,4465
|
|
145
145
|
daytona_api_client/models/volume_dto.py,sha256=NL6A6xpc9liR_zlVZKGCoHLlz6r4LAHrMW2uL0TClnI,4594
|
|
146
146
|
daytona_api_client/models/volume_state.py,sha256=AaOsyPygY58fquvIkrwFndsXMrG0dCYcGKd8HRZhulg,848
|
|
147
|
-
daytona_api_client/models/windows_response.py,sha256=
|
|
148
|
-
daytona_api_client/models/workspace.py,sha256=
|
|
149
|
-
daytona_api_client-0.22.
|
|
150
|
-
daytona_api_client-0.22.
|
|
151
|
-
daytona_api_client-0.22.
|
|
152
|
-
daytona_api_client-0.22.
|
|
153
|
-
daytona_api_client-0.22.
|
|
147
|
+
daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcEyawzwtnWnwGngsFs,3295
|
|
148
|
+
daytona_api_client/models/workspace.py,sha256=9ORG3s149qLI_7RSAAPf7j6WR1AZAgpkS37BFWQJ1Qk,11017
|
|
149
|
+
daytona_api_client-0.22.1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
150
|
+
daytona_api_client-0.22.1.dist-info/METADATA,sha256=NfdrsKizvYYJyChRFxxm9nahcukdHkU5mUrs7i87yH8,618
|
|
151
|
+
daytona_api_client-0.22.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
152
|
+
daytona_api_client-0.22.1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
153
|
+
daytona_api_client-0.22.1.dist-info/RECORD,,
|
|
File without changes
|
{daytona_api_client-0.22.0a5.dist-info → daytona_api_client-0.22.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|