daytona_api_client 0.106.0a1__py3-none-any.whl → 0.106.0a3__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.

@@ -128,7 +128,6 @@ from daytona_api_client.models.organization_user import OrganizationUser
128
128
  from daytona_api_client.models.paginated_audit_logs import PaginatedAuditLogs
129
129
  from daytona_api_client.models.paginated_sandboxes import PaginatedSandboxes
130
130
  from daytona_api_client.models.paginated_snapshots import PaginatedSnapshots
131
- from daytona_api_client.models.paginated_workspaces import PaginatedWorkspaces
132
131
  from daytona_api_client.models.port_preview_url import PortPreviewUrl
133
132
  from daytona_api_client.models.position import Position
134
133
  from daytona_api_client.models.posthog_config import PosthogConfig
@@ -1173,6 +1173,7 @@ class SandboxApi:
1173
1173
  self,
1174
1174
  sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
1175
1175
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1176
+ force: Annotated[Optional[StrictBool], Field(description="Force delete sandbox")] = None,
1176
1177
  _request_timeout: Union[
1177
1178
  None,
1178
1179
  Annotated[StrictFloat, Field(gt=0)],
@@ -1193,6 +1194,8 @@ class SandboxApi:
1193
1194
  :type sandbox_id: str
1194
1195
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1195
1196
  :type x_daytona_organization_id: str
1197
+ :param force: Force delete sandbox
1198
+ :type force: bool
1196
1199
  :param _request_timeout: timeout setting for this request. If one
1197
1200
  number provided, it will be total request
1198
1201
  timeout. It can also be a pair (tuple) of
@@ -1218,6 +1221,7 @@ class SandboxApi:
1218
1221
  _param = self._delete_sandbox_serialize(
1219
1222
  sandbox_id=sandbox_id,
1220
1223
  x_daytona_organization_id=x_daytona_organization_id,
1224
+ force=force,
1221
1225
  _request_auth=_request_auth,
1222
1226
  _content_type=_content_type,
1223
1227
  _headers=_headers,
@@ -1243,6 +1247,7 @@ class SandboxApi:
1243
1247
  self,
1244
1248
  sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
1245
1249
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1250
+ force: Annotated[Optional[StrictBool], Field(description="Force delete sandbox")] = None,
1246
1251
  _request_timeout: Union[
1247
1252
  None,
1248
1253
  Annotated[StrictFloat, Field(gt=0)],
@@ -1263,6 +1268,8 @@ class SandboxApi:
1263
1268
  :type sandbox_id: str
1264
1269
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1265
1270
  :type x_daytona_organization_id: str
1271
+ :param force: Force delete sandbox
1272
+ :type force: bool
1266
1273
  :param _request_timeout: timeout setting for this request. If one
1267
1274
  number provided, it will be total request
1268
1275
  timeout. It can also be a pair (tuple) of
@@ -1288,6 +1295,7 @@ class SandboxApi:
1288
1295
  _param = self._delete_sandbox_serialize(
1289
1296
  sandbox_id=sandbox_id,
1290
1297
  x_daytona_organization_id=x_daytona_organization_id,
1298
+ force=force,
1291
1299
  _request_auth=_request_auth,
1292
1300
  _content_type=_content_type,
1293
1301
  _headers=_headers,
@@ -1313,6 +1321,7 @@ class SandboxApi:
1313
1321
  self,
1314
1322
  sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
1315
1323
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1324
+ force: Annotated[Optional[StrictBool], Field(description="Force delete sandbox")] = None,
1316
1325
  _request_timeout: Union[
1317
1326
  None,
1318
1327
  Annotated[StrictFloat, Field(gt=0)],
@@ -1333,6 +1342,8 @@ class SandboxApi:
1333
1342
  :type sandbox_id: str
1334
1343
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1335
1344
  :type x_daytona_organization_id: str
1345
+ :param force: Force delete sandbox
1346
+ :type force: bool
1336
1347
  :param _request_timeout: timeout setting for this request. If one
1337
1348
  number provided, it will be total request
1338
1349
  timeout. It can also be a pair (tuple) of
@@ -1358,6 +1369,7 @@ class SandboxApi:
1358
1369
  _param = self._delete_sandbox_serialize(
1359
1370
  sandbox_id=sandbox_id,
1360
1371
  x_daytona_organization_id=x_daytona_organization_id,
1372
+ force=force,
1361
1373
  _request_auth=_request_auth,
1362
1374
  _content_type=_content_type,
1363
1375
  _headers=_headers,
@@ -1378,6 +1390,7 @@ class SandboxApi:
1378
1390
  self,
1379
1391
  sandbox_id,
1380
1392
  x_daytona_organization_id,
1393
+ force,
1381
1394
  _request_auth,
1382
1395
  _content_type,
1383
1396
  _headers,
@@ -1402,6 +1415,10 @@ class SandboxApi:
1402
1415
  if sandbox_id is not None:
1403
1416
  _path_params['sandboxId'] = sandbox_id
1404
1417
  # process the query parameters
1418
+ if force is not None:
1419
+
1420
+ _query_params.append(('force', force))
1421
+
1405
1422
  # process the header parameters
1406
1423
  if x_daytona_organization_id is not None:
1407
1424
  _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
@@ -2853,6 +2870,316 @@ class SandboxApi:
2853
2870
 
2854
2871
  @validate_call
2855
2872
  def list_sandboxes(
2873
+ self,
2874
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2875
+ verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
2876
+ labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
2877
+ include_errored_deleted: Annotated[Optional[StrictBool], Field(description="Include errored and deleted sandboxes")] = None,
2878
+ _request_timeout: Union[
2879
+ None,
2880
+ Annotated[StrictFloat, Field(gt=0)],
2881
+ Tuple[
2882
+ Annotated[StrictFloat, Field(gt=0)],
2883
+ Annotated[StrictFloat, Field(gt=0)]
2884
+ ]
2885
+ ] = None,
2886
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2887
+ _content_type: Optional[StrictStr] = None,
2888
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2889
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2890
+ ) -> List[Sandbox]:
2891
+ """List all sandboxes
2892
+
2893
+
2894
+ :param x_daytona_organization_id: Use with JWT to specify the organization ID
2895
+ :type x_daytona_organization_id: str
2896
+ :param verbose: Include verbose output
2897
+ :type verbose: bool
2898
+ :param labels: JSON encoded labels to filter by
2899
+ :type labels: str
2900
+ :param include_errored_deleted: Include errored and deleted sandboxes
2901
+ :type include_errored_deleted: bool
2902
+ :param _request_timeout: timeout setting for this request. If one
2903
+ number provided, it will be total request
2904
+ timeout. It can also be a pair (tuple) of
2905
+ (connection, read) timeouts.
2906
+ :type _request_timeout: int, tuple(int, int), optional
2907
+ :param _request_auth: set to override the auth_settings for an a single
2908
+ request; this effectively ignores the
2909
+ authentication in the spec for a single request.
2910
+ :type _request_auth: dict, optional
2911
+ :param _content_type: force content-type for the request.
2912
+ :type _content_type: str, Optional
2913
+ :param _headers: set to override the headers for a single
2914
+ request; this effectively ignores the headers
2915
+ in the spec for a single request.
2916
+ :type _headers: dict, optional
2917
+ :param _host_index: set to override the host_index for a single
2918
+ request; this effectively ignores the host_index
2919
+ in the spec for a single request.
2920
+ :type _host_index: int, optional
2921
+ :return: Returns the result object.
2922
+ """ # noqa: E501
2923
+
2924
+ _param = self._list_sandboxes_serialize(
2925
+ x_daytona_organization_id=x_daytona_organization_id,
2926
+ verbose=verbose,
2927
+ labels=labels,
2928
+ include_errored_deleted=include_errored_deleted,
2929
+ _request_auth=_request_auth,
2930
+ _content_type=_content_type,
2931
+ _headers=_headers,
2932
+ _host_index=_host_index
2933
+ )
2934
+
2935
+ _response_types_map: Dict[str, Optional[str]] = {
2936
+ '200': "List[Sandbox]",
2937
+ }
2938
+ response_data = self.api_client.call_api(
2939
+ *_param,
2940
+ _request_timeout=_request_timeout
2941
+ )
2942
+ response_data.read()
2943
+ return self.api_client.response_deserialize(
2944
+ response_data=response_data,
2945
+ response_types_map=_response_types_map,
2946
+ ).data
2947
+
2948
+
2949
+ @validate_call
2950
+ def list_sandboxes_with_http_info(
2951
+ self,
2952
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2953
+ verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
2954
+ labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
2955
+ include_errored_deleted: Annotated[Optional[StrictBool], Field(description="Include errored and deleted sandboxes")] = None,
2956
+ _request_timeout: Union[
2957
+ None,
2958
+ Annotated[StrictFloat, Field(gt=0)],
2959
+ Tuple[
2960
+ Annotated[StrictFloat, Field(gt=0)],
2961
+ Annotated[StrictFloat, Field(gt=0)]
2962
+ ]
2963
+ ] = None,
2964
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2965
+ _content_type: Optional[StrictStr] = None,
2966
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2967
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2968
+ ) -> ApiResponse[List[Sandbox]]:
2969
+ """List all sandboxes
2970
+
2971
+
2972
+ :param x_daytona_organization_id: Use with JWT to specify the organization ID
2973
+ :type x_daytona_organization_id: str
2974
+ :param verbose: Include verbose output
2975
+ :type verbose: bool
2976
+ :param labels: JSON encoded labels to filter by
2977
+ :type labels: str
2978
+ :param include_errored_deleted: Include errored and deleted sandboxes
2979
+ :type include_errored_deleted: bool
2980
+ :param _request_timeout: timeout setting for this request. If one
2981
+ number provided, it will be total request
2982
+ timeout. It can also be a pair (tuple) of
2983
+ (connection, read) timeouts.
2984
+ :type _request_timeout: int, tuple(int, int), optional
2985
+ :param _request_auth: set to override the auth_settings for an a single
2986
+ request; this effectively ignores the
2987
+ authentication in the spec for a single request.
2988
+ :type _request_auth: dict, optional
2989
+ :param _content_type: force content-type for the request.
2990
+ :type _content_type: str, Optional
2991
+ :param _headers: set to override the headers for a single
2992
+ request; this effectively ignores the headers
2993
+ in the spec for a single request.
2994
+ :type _headers: dict, optional
2995
+ :param _host_index: set to override the host_index for a single
2996
+ request; this effectively ignores the host_index
2997
+ in the spec for a single request.
2998
+ :type _host_index: int, optional
2999
+ :return: Returns the result object.
3000
+ """ # noqa: E501
3001
+
3002
+ _param = self._list_sandboxes_serialize(
3003
+ x_daytona_organization_id=x_daytona_organization_id,
3004
+ verbose=verbose,
3005
+ labels=labels,
3006
+ include_errored_deleted=include_errored_deleted,
3007
+ _request_auth=_request_auth,
3008
+ _content_type=_content_type,
3009
+ _headers=_headers,
3010
+ _host_index=_host_index
3011
+ )
3012
+
3013
+ _response_types_map: Dict[str, Optional[str]] = {
3014
+ '200': "List[Sandbox]",
3015
+ }
3016
+ response_data = self.api_client.call_api(
3017
+ *_param,
3018
+ _request_timeout=_request_timeout
3019
+ )
3020
+ response_data.read()
3021
+ return self.api_client.response_deserialize(
3022
+ response_data=response_data,
3023
+ response_types_map=_response_types_map,
3024
+ )
3025
+
3026
+
3027
+ @validate_call
3028
+ def list_sandboxes_without_preload_content(
3029
+ self,
3030
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
3031
+ verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
3032
+ labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
3033
+ include_errored_deleted: Annotated[Optional[StrictBool], Field(description="Include errored and deleted sandboxes")] = None,
3034
+ _request_timeout: Union[
3035
+ None,
3036
+ Annotated[StrictFloat, Field(gt=0)],
3037
+ Tuple[
3038
+ Annotated[StrictFloat, Field(gt=0)],
3039
+ Annotated[StrictFloat, Field(gt=0)]
3040
+ ]
3041
+ ] = None,
3042
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3043
+ _content_type: Optional[StrictStr] = None,
3044
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3045
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3046
+ ) -> RESTResponseType:
3047
+ """List all sandboxes
3048
+
3049
+
3050
+ :param x_daytona_organization_id: Use with JWT to specify the organization ID
3051
+ :type x_daytona_organization_id: str
3052
+ :param verbose: Include verbose output
3053
+ :type verbose: bool
3054
+ :param labels: JSON encoded labels to filter by
3055
+ :type labels: str
3056
+ :param include_errored_deleted: Include errored and deleted sandboxes
3057
+ :type include_errored_deleted: bool
3058
+ :param _request_timeout: timeout setting for this request. If one
3059
+ number provided, it will be total request
3060
+ timeout. It can also be a pair (tuple) of
3061
+ (connection, read) timeouts.
3062
+ :type _request_timeout: int, tuple(int, int), optional
3063
+ :param _request_auth: set to override the auth_settings for an a single
3064
+ request; this effectively ignores the
3065
+ authentication in the spec for a single request.
3066
+ :type _request_auth: dict, optional
3067
+ :param _content_type: force content-type for the request.
3068
+ :type _content_type: str, Optional
3069
+ :param _headers: set to override the headers for a single
3070
+ request; this effectively ignores the headers
3071
+ in the spec for a single request.
3072
+ :type _headers: dict, optional
3073
+ :param _host_index: set to override the host_index for a single
3074
+ request; this effectively ignores the host_index
3075
+ in the spec for a single request.
3076
+ :type _host_index: int, optional
3077
+ :return: Returns the result object.
3078
+ """ # noqa: E501
3079
+
3080
+ _param = self._list_sandboxes_serialize(
3081
+ x_daytona_organization_id=x_daytona_organization_id,
3082
+ verbose=verbose,
3083
+ labels=labels,
3084
+ include_errored_deleted=include_errored_deleted,
3085
+ _request_auth=_request_auth,
3086
+ _content_type=_content_type,
3087
+ _headers=_headers,
3088
+ _host_index=_host_index
3089
+ )
3090
+
3091
+ _response_types_map: Dict[str, Optional[str]] = {
3092
+ '200': "List[Sandbox]",
3093
+ }
3094
+ response_data = self.api_client.call_api(
3095
+ *_param,
3096
+ _request_timeout=_request_timeout
3097
+ )
3098
+ return response_data.response
3099
+
3100
+
3101
+ def _list_sandboxes_serialize(
3102
+ self,
3103
+ x_daytona_organization_id,
3104
+ verbose,
3105
+ labels,
3106
+ include_errored_deleted,
3107
+ _request_auth,
3108
+ _content_type,
3109
+ _headers,
3110
+ _host_index,
3111
+ ) -> RequestSerialized:
3112
+
3113
+ _host = None
3114
+
3115
+ _collection_formats: Dict[str, str] = {
3116
+ }
3117
+
3118
+ _path_params: Dict[str, str] = {}
3119
+ _query_params: List[Tuple[str, str]] = []
3120
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3121
+ _form_params: List[Tuple[str, str]] = []
3122
+ _files: Dict[
3123
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3124
+ ] = {}
3125
+ _body_params: Optional[bytes] = None
3126
+
3127
+ # process the path parameters
3128
+ # process the query parameters
3129
+ if verbose is not None:
3130
+
3131
+ _query_params.append(('verbose', verbose))
3132
+
3133
+ if labels is not None:
3134
+
3135
+ _query_params.append(('labels', labels))
3136
+
3137
+ if include_errored_deleted is not None:
3138
+
3139
+ _query_params.append(('includeErroredDeleted', include_errored_deleted))
3140
+
3141
+ # process the header parameters
3142
+ if x_daytona_organization_id is not None:
3143
+ _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
3144
+ # process the form parameters
3145
+ # process the body parameter
3146
+
3147
+
3148
+ # set the HTTP header `Accept`
3149
+ if 'Accept' not in _header_params:
3150
+ _header_params['Accept'] = self.api_client.select_header_accept(
3151
+ [
3152
+ 'application/json'
3153
+ ]
3154
+ )
3155
+
3156
+
3157
+ # authentication setting
3158
+ _auth_settings: List[str] = [
3159
+ 'bearer',
3160
+ 'oauth2'
3161
+ ]
3162
+
3163
+ return self.api_client.param_serialize(
3164
+ method='GET',
3165
+ resource_path='/sandbox',
3166
+ path_params=_path_params,
3167
+ query_params=_query_params,
3168
+ header_params=_header_params,
3169
+ body=_body_params,
3170
+ post_params=_form_params,
3171
+ files=_files,
3172
+ auth_settings=_auth_settings,
3173
+ collection_formats=_collection_formats,
3174
+ _host=_host,
3175
+ _request_auth=_request_auth
3176
+ )
3177
+
3178
+
3179
+
3180
+
3181
+ @validate_call
3182
+ def list_sandboxes_paginated(
2856
3183
  self,
2857
3184
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2858
3185
  page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
@@ -2886,7 +3213,7 @@ class SandboxApi:
2886
3213
  _headers: Optional[Dict[StrictStr, Any]] = None,
2887
3214
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2888
3215
  ) -> PaginatedSandboxes:
2889
- """List all sandboxes
3216
+ """List all sandboxes paginated
2890
3217
 
2891
3218
 
2892
3219
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
@@ -2949,7 +3276,7 @@ class SandboxApi:
2949
3276
  :return: Returns the result object.
2950
3277
  """ # noqa: E501
2951
3278
 
2952
- _param = self._list_sandboxes_serialize(
3279
+ _param = self._list_sandboxes_paginated_serialize(
2953
3280
  x_daytona_organization_id=x_daytona_organization_id,
2954
3281
  page=page,
2955
3282
  limit=limit,
@@ -2990,7 +3317,7 @@ class SandboxApi:
2990
3317
 
2991
3318
 
2992
3319
  @validate_call
2993
- def list_sandboxes_with_http_info(
3320
+ def list_sandboxes_paginated_with_http_info(
2994
3321
  self,
2995
3322
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2996
3323
  page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
@@ -3024,7 +3351,7 @@ class SandboxApi:
3024
3351
  _headers: Optional[Dict[StrictStr, Any]] = None,
3025
3352
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3026
3353
  ) -> ApiResponse[PaginatedSandboxes]:
3027
- """List all sandboxes
3354
+ """List all sandboxes paginated
3028
3355
 
3029
3356
 
3030
3357
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
@@ -3087,7 +3414,7 @@ class SandboxApi:
3087
3414
  :return: Returns the result object.
3088
3415
  """ # noqa: E501
3089
3416
 
3090
- _param = self._list_sandboxes_serialize(
3417
+ _param = self._list_sandboxes_paginated_serialize(
3091
3418
  x_daytona_organization_id=x_daytona_organization_id,
3092
3419
  page=page,
3093
3420
  limit=limit,
@@ -3128,7 +3455,7 @@ class SandboxApi:
3128
3455
 
3129
3456
 
3130
3457
  @validate_call
3131
- def list_sandboxes_without_preload_content(
3458
+ def list_sandboxes_paginated_without_preload_content(
3132
3459
  self,
3133
3460
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
3134
3461
  page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
@@ -3162,7 +3489,7 @@ class SandboxApi:
3162
3489
  _headers: Optional[Dict[StrictStr, Any]] = None,
3163
3490
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3164
3491
  ) -> RESTResponseType:
3165
- """List all sandboxes
3492
+ """List all sandboxes paginated
3166
3493
 
3167
3494
 
3168
3495
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
@@ -3225,7 +3552,7 @@ class SandboxApi:
3225
3552
  :return: Returns the result object.
3226
3553
  """ # noqa: E501
3227
3554
 
3228
- _param = self._list_sandboxes_serialize(
3555
+ _param = self._list_sandboxes_paginated_serialize(
3229
3556
  x_daytona_organization_id=x_daytona_organization_id,
3230
3557
  page=page,
3231
3558
  limit=limit,
@@ -3261,7 +3588,7 @@ class SandboxApi:
3261
3588
  return response_data.response
3262
3589
 
3263
3590
 
3264
- def _list_sandboxes_serialize(
3591
+ def _list_sandboxes_paginated_serialize(
3265
3592
  self,
3266
3593
  x_daytona_organization_id,
3267
3594
  page,
@@ -3421,7 +3748,7 @@ class SandboxApi:
3421
3748
 
3422
3749
  return self.api_client.param_serialize(
3423
3750
  method='GET',
3424
- resource_path='/sandbox',
3751
+ resource_path='/sandbox/paginated',
3425
3752
  path_params=_path_params,
3426
3753
  query_params=_query_params,
3427
3754
  header_params=_header_params,
@@ -17,12 +17,10 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
- from datetime import datetime
21
- from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator
20
+ from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
22
21
  from typing import List, Optional, Union
23
22
  from typing_extensions import Annotated
24
23
  from daytona_api_client.models.create_workspace import CreateWorkspace
25
- from daytona_api_client.models.paginated_workspaces import PaginatedWorkspaces
26
24
  from daytona_api_client.models.port_preview_url import PortPreviewUrl
27
25
  from daytona_api_client.models.sandbox_labels import SandboxLabels
28
26
  from daytona_api_client.models.workspace import Workspace
@@ -2046,24 +2044,8 @@ class WorkspaceApi:
2046
2044
  def list_workspaces_deprecated(
2047
2045
  self,
2048
2046
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2049
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
2050
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
2051
- id: Annotated[Optional[StrictStr], Field(description="Filter by partial ID match")] = None,
2047
+ verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
2052
2048
  labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
2053
- include_errored_deleted: Annotated[Optional[StrictBool], Field(description="Include results with errored state and deleted desired state")] = None,
2054
- states: Annotated[Optional[List[StrictStr]], Field(description="List of states to filter by")] = None,
2055
- snapshots: Annotated[Optional[List[StrictStr]], Field(description="List of snapshot names to filter by")] = None,
2056
- regions: Annotated[Optional[List[StrictStr]], Field(description="List of regions to filter by")] = None,
2057
- min_cpu: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Minimum CPU")] = None,
2058
- max_cpu: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Maximum CPU")] = None,
2059
- min_memory_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Minimum memory in GiB")] = None,
2060
- max_memory_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Maximum memory in GiB")] = None,
2061
- min_disk_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Minimum disk space in GiB")] = None,
2062
- max_disk_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Maximum disk space in GiB")] = None,
2063
- last_event_after: Annotated[Optional[datetime], Field(description="Include items with last event after this timestamp")] = None,
2064
- last_event_before: Annotated[Optional[datetime], Field(description="Include items with last event before this timestamp")] = None,
2065
- sort: Annotated[Optional[StrictStr], Field(description="Field to sort by")] = None,
2066
- order: Annotated[Optional[StrictStr], Field(description="Direction to sort by")] = None,
2067
2049
  _request_timeout: Union[
2068
2050
  None,
2069
2051
  Annotated[StrictFloat, Field(gt=0)],
@@ -2076,48 +2058,16 @@ class WorkspaceApi:
2076
2058
  _content_type: Optional[StrictStr] = None,
2077
2059
  _headers: Optional[Dict[StrictStr, Any]] = None,
2078
2060
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2079
- ) -> PaginatedWorkspaces:
2061
+ ) -> List[Workspace]:
2080
2062
  """(Deprecated) [DEPRECATED] List all workspaces
2081
2063
 
2082
2064
 
2083
2065
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
2084
2066
  :type x_daytona_organization_id: str
2085
- :param page: Page number of the results
2086
- :type page: float
2087
- :param limit: Number of results per page
2088
- :type limit: float
2089
- :param id: Filter by partial ID match
2090
- :type id: str
2067
+ :param verbose: Include verbose output
2068
+ :type verbose: bool
2091
2069
  :param labels: JSON encoded labels to filter by
2092
2070
  :type labels: str
2093
- :param include_errored_deleted: Include results with errored state and deleted desired state
2094
- :type include_errored_deleted: bool
2095
- :param states: List of states to filter by
2096
- :type states: List[str]
2097
- :param snapshots: List of snapshot names to filter by
2098
- :type snapshots: List[str]
2099
- :param regions: List of regions to filter by
2100
- :type regions: List[str]
2101
- :param min_cpu: Minimum CPU
2102
- :type min_cpu: float
2103
- :param max_cpu: Maximum CPU
2104
- :type max_cpu: float
2105
- :param min_memory_gi_b: Minimum memory in GiB
2106
- :type min_memory_gi_b: float
2107
- :param max_memory_gi_b: Maximum memory in GiB
2108
- :type max_memory_gi_b: float
2109
- :param min_disk_gi_b: Minimum disk space in GiB
2110
- :type min_disk_gi_b: float
2111
- :param max_disk_gi_b: Maximum disk space in GiB
2112
- :type max_disk_gi_b: float
2113
- :param last_event_after: Include items with last event after this timestamp
2114
- :type last_event_after: datetime
2115
- :param last_event_before: Include items with last event before this timestamp
2116
- :type last_event_before: datetime
2117
- :param sort: Field to sort by
2118
- :type sort: str
2119
- :param order: Direction to sort by
2120
- :type order: str
2121
2071
  :param _request_timeout: timeout setting for this request. If one
2122
2072
  number provided, it will be total request
2123
2073
  timeout. It can also be a pair (tuple) of
@@ -2143,24 +2093,8 @@ class WorkspaceApi:
2143
2093
 
2144
2094
  _param = self._list_workspaces_deprecated_serialize(
2145
2095
  x_daytona_organization_id=x_daytona_organization_id,
2146
- page=page,
2147
- limit=limit,
2148
- id=id,
2096
+ verbose=verbose,
2149
2097
  labels=labels,
2150
- include_errored_deleted=include_errored_deleted,
2151
- states=states,
2152
- snapshots=snapshots,
2153
- regions=regions,
2154
- min_cpu=min_cpu,
2155
- max_cpu=max_cpu,
2156
- min_memory_gi_b=min_memory_gi_b,
2157
- max_memory_gi_b=max_memory_gi_b,
2158
- min_disk_gi_b=min_disk_gi_b,
2159
- max_disk_gi_b=max_disk_gi_b,
2160
- last_event_after=last_event_after,
2161
- last_event_before=last_event_before,
2162
- sort=sort,
2163
- order=order,
2164
2098
  _request_auth=_request_auth,
2165
2099
  _content_type=_content_type,
2166
2100
  _headers=_headers,
@@ -2168,7 +2102,7 @@ class WorkspaceApi:
2168
2102
  )
2169
2103
 
2170
2104
  _response_types_map: Dict[str, Optional[str]] = {
2171
- '200': "PaginatedWorkspaces",
2105
+ '200': "List[Workspace]",
2172
2106
  }
2173
2107
  response_data = self.api_client.call_api(
2174
2108
  *_param,
@@ -2185,24 +2119,8 @@ class WorkspaceApi:
2185
2119
  def list_workspaces_deprecated_with_http_info(
2186
2120
  self,
2187
2121
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2188
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
2189
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
2190
- id: Annotated[Optional[StrictStr], Field(description="Filter by partial ID match")] = None,
2122
+ verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
2191
2123
  labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
2192
- include_errored_deleted: Annotated[Optional[StrictBool], Field(description="Include results with errored state and deleted desired state")] = None,
2193
- states: Annotated[Optional[List[StrictStr]], Field(description="List of states to filter by")] = None,
2194
- snapshots: Annotated[Optional[List[StrictStr]], Field(description="List of snapshot names to filter by")] = None,
2195
- regions: Annotated[Optional[List[StrictStr]], Field(description="List of regions to filter by")] = None,
2196
- min_cpu: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Minimum CPU")] = None,
2197
- max_cpu: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Maximum CPU")] = None,
2198
- min_memory_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Minimum memory in GiB")] = None,
2199
- max_memory_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Maximum memory in GiB")] = None,
2200
- min_disk_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Minimum disk space in GiB")] = None,
2201
- max_disk_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Maximum disk space in GiB")] = None,
2202
- last_event_after: Annotated[Optional[datetime], Field(description="Include items with last event after this timestamp")] = None,
2203
- last_event_before: Annotated[Optional[datetime], Field(description="Include items with last event before this timestamp")] = None,
2204
- sort: Annotated[Optional[StrictStr], Field(description="Field to sort by")] = None,
2205
- order: Annotated[Optional[StrictStr], Field(description="Direction to sort by")] = None,
2206
2124
  _request_timeout: Union[
2207
2125
  None,
2208
2126
  Annotated[StrictFloat, Field(gt=0)],
@@ -2215,48 +2133,16 @@ class WorkspaceApi:
2215
2133
  _content_type: Optional[StrictStr] = None,
2216
2134
  _headers: Optional[Dict[StrictStr, Any]] = None,
2217
2135
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2218
- ) -> ApiResponse[PaginatedWorkspaces]:
2136
+ ) -> ApiResponse[List[Workspace]]:
2219
2137
  """(Deprecated) [DEPRECATED] List all workspaces
2220
2138
 
2221
2139
 
2222
2140
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
2223
2141
  :type x_daytona_organization_id: str
2224
- :param page: Page number of the results
2225
- :type page: float
2226
- :param limit: Number of results per page
2227
- :type limit: float
2228
- :param id: Filter by partial ID match
2229
- :type id: str
2142
+ :param verbose: Include verbose output
2143
+ :type verbose: bool
2230
2144
  :param labels: JSON encoded labels to filter by
2231
2145
  :type labels: str
2232
- :param include_errored_deleted: Include results with errored state and deleted desired state
2233
- :type include_errored_deleted: bool
2234
- :param states: List of states to filter by
2235
- :type states: List[str]
2236
- :param snapshots: List of snapshot names to filter by
2237
- :type snapshots: List[str]
2238
- :param regions: List of regions to filter by
2239
- :type regions: List[str]
2240
- :param min_cpu: Minimum CPU
2241
- :type min_cpu: float
2242
- :param max_cpu: Maximum CPU
2243
- :type max_cpu: float
2244
- :param min_memory_gi_b: Minimum memory in GiB
2245
- :type min_memory_gi_b: float
2246
- :param max_memory_gi_b: Maximum memory in GiB
2247
- :type max_memory_gi_b: float
2248
- :param min_disk_gi_b: Minimum disk space in GiB
2249
- :type min_disk_gi_b: float
2250
- :param max_disk_gi_b: Maximum disk space in GiB
2251
- :type max_disk_gi_b: float
2252
- :param last_event_after: Include items with last event after this timestamp
2253
- :type last_event_after: datetime
2254
- :param last_event_before: Include items with last event before this timestamp
2255
- :type last_event_before: datetime
2256
- :param sort: Field to sort by
2257
- :type sort: str
2258
- :param order: Direction to sort by
2259
- :type order: str
2260
2146
  :param _request_timeout: timeout setting for this request. If one
2261
2147
  number provided, it will be total request
2262
2148
  timeout. It can also be a pair (tuple) of
@@ -2282,24 +2168,8 @@ class WorkspaceApi:
2282
2168
 
2283
2169
  _param = self._list_workspaces_deprecated_serialize(
2284
2170
  x_daytona_organization_id=x_daytona_organization_id,
2285
- page=page,
2286
- limit=limit,
2287
- id=id,
2171
+ verbose=verbose,
2288
2172
  labels=labels,
2289
- include_errored_deleted=include_errored_deleted,
2290
- states=states,
2291
- snapshots=snapshots,
2292
- regions=regions,
2293
- min_cpu=min_cpu,
2294
- max_cpu=max_cpu,
2295
- min_memory_gi_b=min_memory_gi_b,
2296
- max_memory_gi_b=max_memory_gi_b,
2297
- min_disk_gi_b=min_disk_gi_b,
2298
- max_disk_gi_b=max_disk_gi_b,
2299
- last_event_after=last_event_after,
2300
- last_event_before=last_event_before,
2301
- sort=sort,
2302
- order=order,
2303
2173
  _request_auth=_request_auth,
2304
2174
  _content_type=_content_type,
2305
2175
  _headers=_headers,
@@ -2307,7 +2177,7 @@ class WorkspaceApi:
2307
2177
  )
2308
2178
 
2309
2179
  _response_types_map: Dict[str, Optional[str]] = {
2310
- '200': "PaginatedWorkspaces",
2180
+ '200': "List[Workspace]",
2311
2181
  }
2312
2182
  response_data = self.api_client.call_api(
2313
2183
  *_param,
@@ -2324,24 +2194,8 @@ class WorkspaceApi:
2324
2194
  def list_workspaces_deprecated_without_preload_content(
2325
2195
  self,
2326
2196
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2327
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
2328
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
2329
- id: Annotated[Optional[StrictStr], Field(description="Filter by partial ID match")] = None,
2197
+ verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
2330
2198
  labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
2331
- include_errored_deleted: Annotated[Optional[StrictBool], Field(description="Include results with errored state and deleted desired state")] = None,
2332
- states: Annotated[Optional[List[StrictStr]], Field(description="List of states to filter by")] = None,
2333
- snapshots: Annotated[Optional[List[StrictStr]], Field(description="List of snapshot names to filter by")] = None,
2334
- regions: Annotated[Optional[List[StrictStr]], Field(description="List of regions to filter by")] = None,
2335
- min_cpu: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Minimum CPU")] = None,
2336
- max_cpu: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Maximum CPU")] = None,
2337
- min_memory_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Minimum memory in GiB")] = None,
2338
- max_memory_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Maximum memory in GiB")] = None,
2339
- min_disk_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Minimum disk space in GiB")] = None,
2340
- max_disk_gi_b: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Maximum disk space in GiB")] = None,
2341
- last_event_after: Annotated[Optional[datetime], Field(description="Include items with last event after this timestamp")] = None,
2342
- last_event_before: Annotated[Optional[datetime], Field(description="Include items with last event before this timestamp")] = None,
2343
- sort: Annotated[Optional[StrictStr], Field(description="Field to sort by")] = None,
2344
- order: Annotated[Optional[StrictStr], Field(description="Direction to sort by")] = None,
2345
2199
  _request_timeout: Union[
2346
2200
  None,
2347
2201
  Annotated[StrictFloat, Field(gt=0)],
@@ -2360,42 +2214,10 @@ class WorkspaceApi:
2360
2214
 
2361
2215
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
2362
2216
  :type x_daytona_organization_id: str
2363
- :param page: Page number of the results
2364
- :type page: float
2365
- :param limit: Number of results per page
2366
- :type limit: float
2367
- :param id: Filter by partial ID match
2368
- :type id: str
2217
+ :param verbose: Include verbose output
2218
+ :type verbose: bool
2369
2219
  :param labels: JSON encoded labels to filter by
2370
2220
  :type labels: str
2371
- :param include_errored_deleted: Include results with errored state and deleted desired state
2372
- :type include_errored_deleted: bool
2373
- :param states: List of states to filter by
2374
- :type states: List[str]
2375
- :param snapshots: List of snapshot names to filter by
2376
- :type snapshots: List[str]
2377
- :param regions: List of regions to filter by
2378
- :type regions: List[str]
2379
- :param min_cpu: Minimum CPU
2380
- :type min_cpu: float
2381
- :param max_cpu: Maximum CPU
2382
- :type max_cpu: float
2383
- :param min_memory_gi_b: Minimum memory in GiB
2384
- :type min_memory_gi_b: float
2385
- :param max_memory_gi_b: Maximum memory in GiB
2386
- :type max_memory_gi_b: float
2387
- :param min_disk_gi_b: Minimum disk space in GiB
2388
- :type min_disk_gi_b: float
2389
- :param max_disk_gi_b: Maximum disk space in GiB
2390
- :type max_disk_gi_b: float
2391
- :param last_event_after: Include items with last event after this timestamp
2392
- :type last_event_after: datetime
2393
- :param last_event_before: Include items with last event before this timestamp
2394
- :type last_event_before: datetime
2395
- :param sort: Field to sort by
2396
- :type sort: str
2397
- :param order: Direction to sort by
2398
- :type order: str
2399
2221
  :param _request_timeout: timeout setting for this request. If one
2400
2222
  number provided, it will be total request
2401
2223
  timeout. It can also be a pair (tuple) of
@@ -2421,24 +2243,8 @@ class WorkspaceApi:
2421
2243
 
2422
2244
  _param = self._list_workspaces_deprecated_serialize(
2423
2245
  x_daytona_organization_id=x_daytona_organization_id,
2424
- page=page,
2425
- limit=limit,
2426
- id=id,
2246
+ verbose=verbose,
2427
2247
  labels=labels,
2428
- include_errored_deleted=include_errored_deleted,
2429
- states=states,
2430
- snapshots=snapshots,
2431
- regions=regions,
2432
- min_cpu=min_cpu,
2433
- max_cpu=max_cpu,
2434
- min_memory_gi_b=min_memory_gi_b,
2435
- max_memory_gi_b=max_memory_gi_b,
2436
- min_disk_gi_b=min_disk_gi_b,
2437
- max_disk_gi_b=max_disk_gi_b,
2438
- last_event_after=last_event_after,
2439
- last_event_before=last_event_before,
2440
- sort=sort,
2441
- order=order,
2442
2248
  _request_auth=_request_auth,
2443
2249
  _content_type=_content_type,
2444
2250
  _headers=_headers,
@@ -2446,7 +2252,7 @@ class WorkspaceApi:
2446
2252
  )
2447
2253
 
2448
2254
  _response_types_map: Dict[str, Optional[str]] = {
2449
- '200': "PaginatedWorkspaces",
2255
+ '200': "List[Workspace]",
2450
2256
  }
2451
2257
  response_data = self.api_client.call_api(
2452
2258
  *_param,
@@ -2458,24 +2264,8 @@ class WorkspaceApi:
2458
2264
  def _list_workspaces_deprecated_serialize(
2459
2265
  self,
2460
2266
  x_daytona_organization_id,
2461
- page,
2462
- limit,
2463
- id,
2267
+ verbose,
2464
2268
  labels,
2465
- include_errored_deleted,
2466
- states,
2467
- snapshots,
2468
- regions,
2469
- min_cpu,
2470
- max_cpu,
2471
- min_memory_gi_b,
2472
- max_memory_gi_b,
2473
- min_disk_gi_b,
2474
- max_disk_gi_b,
2475
- last_event_after,
2476
- last_event_before,
2477
- sort,
2478
- order,
2479
2269
  _request_auth,
2480
2270
  _content_type,
2481
2271
  _headers,
@@ -2485,9 +2275,6 @@ class WorkspaceApi:
2485
2275
  _host = None
2486
2276
 
2487
2277
  _collection_formats: Dict[str, str] = {
2488
- 'states': 'multi',
2489
- 'snapshots': 'multi',
2490
- 'regions': 'multi',
2491
2278
  }
2492
2279
 
2493
2280
  _path_params: Dict[str, str] = {}
@@ -2501,96 +2288,14 @@ class WorkspaceApi:
2501
2288
 
2502
2289
  # process the path parameters
2503
2290
  # process the query parameters
2504
- if page is not None:
2505
-
2506
- _query_params.append(('page', page))
2507
-
2508
- if limit is not None:
2509
-
2510
- _query_params.append(('limit', limit))
2511
-
2512
- if id is not None:
2291
+ if verbose is not None:
2513
2292
 
2514
- _query_params.append(('id', id))
2293
+ _query_params.append(('verbose', verbose))
2515
2294
 
2516
2295
  if labels is not None:
2517
2296
 
2518
2297
  _query_params.append(('labels', labels))
2519
2298
 
2520
- if include_errored_deleted is not None:
2521
-
2522
- _query_params.append(('includeErroredDeleted', include_errored_deleted))
2523
-
2524
- if states is not None:
2525
-
2526
- _query_params.append(('states', states))
2527
-
2528
- if snapshots is not None:
2529
-
2530
- _query_params.append(('snapshots', snapshots))
2531
-
2532
- if regions is not None:
2533
-
2534
- _query_params.append(('regions', regions))
2535
-
2536
- if min_cpu is not None:
2537
-
2538
- _query_params.append(('minCpu', min_cpu))
2539
-
2540
- if max_cpu is not None:
2541
-
2542
- _query_params.append(('maxCpu', max_cpu))
2543
-
2544
- if min_memory_gi_b is not None:
2545
-
2546
- _query_params.append(('minMemoryGiB', min_memory_gi_b))
2547
-
2548
- if max_memory_gi_b is not None:
2549
-
2550
- _query_params.append(('maxMemoryGiB', max_memory_gi_b))
2551
-
2552
- if min_disk_gi_b is not None:
2553
-
2554
- _query_params.append(('minDiskGiB', min_disk_gi_b))
2555
-
2556
- if max_disk_gi_b is not None:
2557
-
2558
- _query_params.append(('maxDiskGiB', max_disk_gi_b))
2559
-
2560
- if last_event_after is not None:
2561
- if isinstance(last_event_after, datetime):
2562
- _query_params.append(
2563
- (
2564
- 'lastEventAfter',
2565
- last_event_after.strftime(
2566
- self.api_client.configuration.datetime_format
2567
- )
2568
- )
2569
- )
2570
- else:
2571
- _query_params.append(('lastEventAfter', last_event_after))
2572
-
2573
- if last_event_before is not None:
2574
- if isinstance(last_event_before, datetime):
2575
- _query_params.append(
2576
- (
2577
- 'lastEventBefore',
2578
- last_event_before.strftime(
2579
- self.api_client.configuration.datetime_format
2580
- )
2581
- )
2582
- )
2583
- else:
2584
- _query_params.append(('lastEventBefore', last_event_before))
2585
-
2586
- if sort is not None:
2587
-
2588
- _query_params.append(('sort', sort))
2589
-
2590
- if order is not None:
2591
-
2592
- _query_params.append(('order', order))
2593
-
2594
2299
  # process the header parameters
2595
2300
  if x_daytona_organization_id is not None:
2596
2301
  _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
@@ -96,7 +96,6 @@ from daytona_api_client.models.organization_user import OrganizationUser
96
96
  from daytona_api_client.models.paginated_audit_logs import PaginatedAuditLogs
97
97
  from daytona_api_client.models.paginated_sandboxes import PaginatedSandboxes
98
98
  from daytona_api_client.models.paginated_snapshots import PaginatedSnapshots
99
- from daytona_api_client.models.paginated_workspaces import PaginatedWorkspaces
100
99
  from daytona_api_client.models.port_preview_url import PortPreviewUrl
101
100
  from daytona_api_client.models.position import Position
102
101
  from daytona_api_client.models.posthog_config import PosthogConfig
@@ -44,8 +44,9 @@ class DaytonaConfiguration(BaseModel):
44
44
  environment: StrictStr = Field(description="Current environment")
45
45
  billing_api_url: Optional[StrictStr] = Field(default=None, description="Billing API URL", alias="billingApiUrl")
46
46
  ssh_gateway_command: Optional[StrictStr] = Field(default=None, description="SSH Gateway command", alias="sshGatewayCommand")
47
+ ssh_gateway_public_key: Optional[StrictStr] = Field(default=None, description="Base64 encoded SSH Gateway public key", alias="sshGatewayPublicKey")
47
48
  additional_properties: Dict[str, Any] = {}
48
- __properties: ClassVar[List[str]] = ["version", "posthog", "oidc", "linkedAccountsEnabled", "announcements", "pylonAppId", "proxyTemplateUrl", "defaultSnapshot", "dashboardUrl", "maxAutoArchiveInterval", "maintananceMode", "environment", "billingApiUrl", "sshGatewayCommand"]
49
+ __properties: ClassVar[List[str]] = ["version", "posthog", "oidc", "linkedAccountsEnabled", "announcements", "pylonAppId", "proxyTemplateUrl", "defaultSnapshot", "dashboardUrl", "maxAutoArchiveInterval", "maintananceMode", "environment", "billingApiUrl", "sshGatewayCommand", "sshGatewayPublicKey"]
49
50
 
50
51
  model_config = ConfigDict(
51
52
  populate_by_name=True,
@@ -136,7 +137,8 @@ class DaytonaConfiguration(BaseModel):
136
137
  "maintananceMode": obj.get("maintananceMode"),
137
138
  "environment": obj.get("environment"),
138
139
  "billingApiUrl": obj.get("billingApiUrl"),
139
- "sshGatewayCommand": obj.get("sshGatewayCommand")
140
+ "sshGatewayCommand": obj.get("sshGatewayCommand"),
141
+ "sshGatewayPublicKey": obj.get("sshGatewayPublicKey")
140
142
  })
141
143
  # store additional fields in additional_properties
142
144
  for _key in obj.keys():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daytona_api_client
3
- Version: 0.106.0a1
3
+ Version: 0.106.0a3
4
4
  Summary: Daytona
5
5
  Home-page:
6
6
  Author: Daytona Platforms Inc.
@@ -1,4 +1,4 @@
1
- daytona_api_client/__init__.py,sha256=A2yaD3cY1P6dO9Vzxzw3PG0MdUHGMsWMr1LSYHRE7JY,12041
1
+ daytona_api_client/__init__.py,sha256=LEtvoxOKaK4N5c0GLR2mM47cKsVjeEz-WX4P_9HNwYo,11962
2
2
  daytona_api_client/api_client.py,sha256=9EKcRsveS2okE5kTbp212LVTY6LJATDZEqA8Rj77vXY,27455
3
3
  daytona_api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
4
  daytona_api_client/configuration.py,sha256=Dz7AXjEZ4BCCCUoGQZLfXUTtuH1PUuo3KrlwLO5Dlsk,18241
@@ -16,14 +16,14 @@ daytona_api_client/api/object_storage_api.py,sha256=wvOdTUjvlChxzwwzA-49iwjl46F0
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
19
- daytona_api_client/api/sandbox_api.py,sha256=VzDDUff3PvnQYULZQgvYCBY6u8BFFONH8rRiYRXGBXE,261198
19
+ daytona_api_client/api/sandbox_api.py,sha256=1QZeJijGlZUN6z7Ja1RfCSVm1UqMS-1TJHR3aQzlg3M,275009
20
20
  daytona_api_client/api/snapshots_api.py,sha256=wWVMSacgwwSSwbrmpxuENk4QvwO0O0nbJMb6nSu0xYg,105729
21
21
  daytona_api_client/api/toolbox_api.py,sha256=Lre2yB0xbWjtkyt2LS2N-TB84lwBJhd1iXewQggOL1I,755844
22
22
  daytona_api_client/api/users_api.py,sha256=KR4cw2mfRp06QV2b0UXXQ1Jcx59TyuS0c7yGRr2Sodk,86402
23
23
  daytona_api_client/api/volumes_api.py,sha256=N9kxZzhfaZxC_YQ-Vi1QksoTIzqp_dFADywgQup1oSk,56613
24
24
  daytona_api_client/api/webhooks_api.py,sha256=epxKIYqZfebDapzSvqUVlJct1KfVr_T3ZnAc9YyiZX8,69516
25
- daytona_api_client/api/workspace_api.py,sha256=DIu1OiPbkQsf_vS4PGPcD446FngqngeLsDrrLu7QnaQ,185897
26
- daytona_api_client/models/__init__.py,sha256=pr-b6s4nwnl7v_CgBzxRwMUD_mwdOUaFY8Q5lwvVzKI,10490
25
+ daytona_api_client/api/workspace_api.py,sha256=mjn4jlTtMbKfuqxcr9goo-01RJX-hFjVLT1rF8K5uKI,169328
26
+ daytona_api_client/models/__init__.py,sha256=lQ-9umyW7IM5vug1CexdvnkzTy6EEPua33glL4qwvpI,10411
27
27
  daytona_api_client/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
28
28
  daytona_api_client/models/announcement.py,sha256=zO3Wa5yUYP2BDJ_3Weemiob_eMNXUZ1B_np-lQSLSgM,3283
29
29
  daytona_api_client/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
@@ -54,7 +54,7 @@ daytona_api_client/models/create_snapshot.py,sha256=WGea9750qOcwwAjSjFRYFhlA3H0m
54
54
  daytona_api_client/models/create_user.py,sha256=__5zKvbJCtB44mALgvZBPlYghxlcdPUjLCDiIITKJiM,4390
55
55
  daytona_api_client/models/create_volume.py,sha256=ClRnZzdkEWMIGlGbOix4pbhki7IcKPqF94OiL0Dygj4,3012
56
56
  daytona_api_client/models/create_workspace.py,sha256=Gu60Pe7tkpiObaZbABenpRPpPduI47RwbcgFJrvCCr0,7082
57
- daytona_api_client/models/daytona_configuration.py,sha256=rwnA1AXMK_TUlsLZCEtN4Y_huIcx97hrOF8EYQRqBIQ,6744
57
+ daytona_api_client/models/daytona_configuration.py,sha256=hI5SpnQMKefpl6m40J9VqE9_t8aMcXaI-Jobk5zvCtk,6986
58
58
  daytona_api_client/models/display_info_response.py,sha256=ScbtgcWdnqxoVf1UtqolCsDR908Be4VFTyEBaXT_bvc,3142
59
59
  daytona_api_client/models/docker_registry.py,sha256=vsV50KVZMVRHrm5O6ZkKvmbLlX0Lo_XVIzL3lyrRNOY,4326
60
60
  daytona_api_client/models/download_files.py,sha256=kOoubSJieTxqPoRECwDGtMpYZyDdXoMNybJWZ6Rek7Q,3094
@@ -188,8 +188,8 @@ daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcE
188
188
  daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
189
189
  daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
190
190
  daytona_api_client/models/workspace.py,sha256=uwAStXOLrVJzbxdTfPZokrcMr4Dp4ghgH8V5fy5r0gY,11488
191
- daytona_api_client-0.106.0a1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
192
- daytona_api_client-0.106.0a1.dist-info/METADATA,sha256=RX0ilCNroxdXVZyOgqfbxHKxKxS_vQ_JFQCyYlekfKQ,621
193
- daytona_api_client-0.106.0a1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
194
- daytona_api_client-0.106.0a1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
195
- daytona_api_client-0.106.0a1.dist-info/RECORD,,
191
+ daytona_api_client-0.106.0a3.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
192
+ daytona_api_client-0.106.0a3.dist-info/METADATA,sha256=a7skILea_z8nRxXc-xKw4yySiA4gyURAKxHJxyANuno,621
193
+ daytona_api_client-0.106.0a3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
194
+ daytona_api_client-0.106.0a3.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
195
+ daytona_api_client-0.106.0a3.dist-info/RECORD,,