daytona_api_client 0.106.0a1__py3-none-any.whl → 0.106.0a2__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/__init__.py +0 -1
- daytona_api_client/api/sandbox_api.py +320 -10
- daytona_api_client/api/workspace_api.py +21 -316
- daytona_api_client/models/__init__.py +0 -1
- {daytona_api_client-0.106.0a1.dist-info → daytona_api_client-0.106.0a2.dist-info}/METADATA +1 -1
- {daytona_api_client-0.106.0a1.dist-info → daytona_api_client-0.106.0a2.dist-info}/RECORD +9 -9
- {daytona_api_client-0.106.0a1.dist-info → daytona_api_client-0.106.0a2.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.106.0a1.dist-info → daytona_api_client-0.106.0a2.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.106.0a1.dist-info → daytona_api_client-0.106.0a2.dist-info}/top_level.txt +0 -0
daytona_api_client/__init__.py
CHANGED
|
@@ -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
|
|
@@ -2853,6 +2853,316 @@ class SandboxApi:
|
|
|
2853
2853
|
|
|
2854
2854
|
@validate_call
|
|
2855
2855
|
def list_sandboxes(
|
|
2856
|
+
self,
|
|
2857
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2858
|
+
verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
|
|
2859
|
+
labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
|
|
2860
|
+
include_errored_deleted: Annotated[Optional[StrictBool], Field(description="Include errored and deleted sandboxes")] = None,
|
|
2861
|
+
_request_timeout: Union[
|
|
2862
|
+
None,
|
|
2863
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2864
|
+
Tuple[
|
|
2865
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2866
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2867
|
+
]
|
|
2868
|
+
] = None,
|
|
2869
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2870
|
+
_content_type: Optional[StrictStr] = None,
|
|
2871
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2872
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2873
|
+
) -> List[Sandbox]:
|
|
2874
|
+
"""List all sandboxes
|
|
2875
|
+
|
|
2876
|
+
|
|
2877
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
2878
|
+
:type x_daytona_organization_id: str
|
|
2879
|
+
:param verbose: Include verbose output
|
|
2880
|
+
:type verbose: bool
|
|
2881
|
+
:param labels: JSON encoded labels to filter by
|
|
2882
|
+
:type labels: str
|
|
2883
|
+
:param include_errored_deleted: Include errored and deleted sandboxes
|
|
2884
|
+
:type include_errored_deleted: bool
|
|
2885
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2886
|
+
number provided, it will be total request
|
|
2887
|
+
timeout. It can also be a pair (tuple) of
|
|
2888
|
+
(connection, read) timeouts.
|
|
2889
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2890
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2891
|
+
request; this effectively ignores the
|
|
2892
|
+
authentication in the spec for a single request.
|
|
2893
|
+
:type _request_auth: dict, optional
|
|
2894
|
+
:param _content_type: force content-type for the request.
|
|
2895
|
+
:type _content_type: str, Optional
|
|
2896
|
+
:param _headers: set to override the headers for a single
|
|
2897
|
+
request; this effectively ignores the headers
|
|
2898
|
+
in the spec for a single request.
|
|
2899
|
+
:type _headers: dict, optional
|
|
2900
|
+
:param _host_index: set to override the host_index for a single
|
|
2901
|
+
request; this effectively ignores the host_index
|
|
2902
|
+
in the spec for a single request.
|
|
2903
|
+
:type _host_index: int, optional
|
|
2904
|
+
:return: Returns the result object.
|
|
2905
|
+
""" # noqa: E501
|
|
2906
|
+
|
|
2907
|
+
_param = self._list_sandboxes_serialize(
|
|
2908
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
2909
|
+
verbose=verbose,
|
|
2910
|
+
labels=labels,
|
|
2911
|
+
include_errored_deleted=include_errored_deleted,
|
|
2912
|
+
_request_auth=_request_auth,
|
|
2913
|
+
_content_type=_content_type,
|
|
2914
|
+
_headers=_headers,
|
|
2915
|
+
_host_index=_host_index
|
|
2916
|
+
)
|
|
2917
|
+
|
|
2918
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2919
|
+
'200': "List[Sandbox]",
|
|
2920
|
+
}
|
|
2921
|
+
response_data = self.api_client.call_api(
|
|
2922
|
+
*_param,
|
|
2923
|
+
_request_timeout=_request_timeout
|
|
2924
|
+
)
|
|
2925
|
+
response_data.read()
|
|
2926
|
+
return self.api_client.response_deserialize(
|
|
2927
|
+
response_data=response_data,
|
|
2928
|
+
response_types_map=_response_types_map,
|
|
2929
|
+
).data
|
|
2930
|
+
|
|
2931
|
+
|
|
2932
|
+
@validate_call
|
|
2933
|
+
def list_sandboxes_with_http_info(
|
|
2934
|
+
self,
|
|
2935
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2936
|
+
verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
|
|
2937
|
+
labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
|
|
2938
|
+
include_errored_deleted: Annotated[Optional[StrictBool], Field(description="Include errored and deleted sandboxes")] = None,
|
|
2939
|
+
_request_timeout: Union[
|
|
2940
|
+
None,
|
|
2941
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2942
|
+
Tuple[
|
|
2943
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2944
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2945
|
+
]
|
|
2946
|
+
] = None,
|
|
2947
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2948
|
+
_content_type: Optional[StrictStr] = None,
|
|
2949
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2950
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2951
|
+
) -> ApiResponse[List[Sandbox]]:
|
|
2952
|
+
"""List all sandboxes
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
2956
|
+
:type x_daytona_organization_id: str
|
|
2957
|
+
:param verbose: Include verbose output
|
|
2958
|
+
:type verbose: bool
|
|
2959
|
+
:param labels: JSON encoded labels to filter by
|
|
2960
|
+
:type labels: str
|
|
2961
|
+
:param include_errored_deleted: Include errored and deleted sandboxes
|
|
2962
|
+
:type include_errored_deleted: bool
|
|
2963
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2964
|
+
number provided, it will be total request
|
|
2965
|
+
timeout. It can also be a pair (tuple) of
|
|
2966
|
+
(connection, read) timeouts.
|
|
2967
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2968
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2969
|
+
request; this effectively ignores the
|
|
2970
|
+
authentication in the spec for a single request.
|
|
2971
|
+
:type _request_auth: dict, optional
|
|
2972
|
+
:param _content_type: force content-type for the request.
|
|
2973
|
+
:type _content_type: str, Optional
|
|
2974
|
+
:param _headers: set to override the headers for a single
|
|
2975
|
+
request; this effectively ignores the headers
|
|
2976
|
+
in the spec for a single request.
|
|
2977
|
+
:type _headers: dict, optional
|
|
2978
|
+
:param _host_index: set to override the host_index for a single
|
|
2979
|
+
request; this effectively ignores the host_index
|
|
2980
|
+
in the spec for a single request.
|
|
2981
|
+
:type _host_index: int, optional
|
|
2982
|
+
:return: Returns the result object.
|
|
2983
|
+
""" # noqa: E501
|
|
2984
|
+
|
|
2985
|
+
_param = self._list_sandboxes_serialize(
|
|
2986
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
2987
|
+
verbose=verbose,
|
|
2988
|
+
labels=labels,
|
|
2989
|
+
include_errored_deleted=include_errored_deleted,
|
|
2990
|
+
_request_auth=_request_auth,
|
|
2991
|
+
_content_type=_content_type,
|
|
2992
|
+
_headers=_headers,
|
|
2993
|
+
_host_index=_host_index
|
|
2994
|
+
)
|
|
2995
|
+
|
|
2996
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2997
|
+
'200': "List[Sandbox]",
|
|
2998
|
+
}
|
|
2999
|
+
response_data = self.api_client.call_api(
|
|
3000
|
+
*_param,
|
|
3001
|
+
_request_timeout=_request_timeout
|
|
3002
|
+
)
|
|
3003
|
+
response_data.read()
|
|
3004
|
+
return self.api_client.response_deserialize(
|
|
3005
|
+
response_data=response_data,
|
|
3006
|
+
response_types_map=_response_types_map,
|
|
3007
|
+
)
|
|
3008
|
+
|
|
3009
|
+
|
|
3010
|
+
@validate_call
|
|
3011
|
+
def list_sandboxes_without_preload_content(
|
|
3012
|
+
self,
|
|
3013
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
3014
|
+
verbose: Annotated[Optional[StrictBool], Field(description="Include verbose output")] = None,
|
|
3015
|
+
labels: Annotated[Optional[StrictStr], Field(description="JSON encoded labels to filter by")] = None,
|
|
3016
|
+
include_errored_deleted: Annotated[Optional[StrictBool], Field(description="Include errored and deleted sandboxes")] = None,
|
|
3017
|
+
_request_timeout: Union[
|
|
3018
|
+
None,
|
|
3019
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3020
|
+
Tuple[
|
|
3021
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3022
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3023
|
+
]
|
|
3024
|
+
] = None,
|
|
3025
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3026
|
+
_content_type: Optional[StrictStr] = None,
|
|
3027
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3028
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3029
|
+
) -> RESTResponseType:
|
|
3030
|
+
"""List all sandboxes
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
3034
|
+
:type x_daytona_organization_id: str
|
|
3035
|
+
:param verbose: Include verbose output
|
|
3036
|
+
:type verbose: bool
|
|
3037
|
+
:param labels: JSON encoded labels to filter by
|
|
3038
|
+
:type labels: str
|
|
3039
|
+
:param include_errored_deleted: Include errored and deleted sandboxes
|
|
3040
|
+
:type include_errored_deleted: bool
|
|
3041
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3042
|
+
number provided, it will be total request
|
|
3043
|
+
timeout. It can also be a pair (tuple) of
|
|
3044
|
+
(connection, read) timeouts.
|
|
3045
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3046
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3047
|
+
request; this effectively ignores the
|
|
3048
|
+
authentication in the spec for a single request.
|
|
3049
|
+
:type _request_auth: dict, optional
|
|
3050
|
+
:param _content_type: force content-type for the request.
|
|
3051
|
+
:type _content_type: str, Optional
|
|
3052
|
+
:param _headers: set to override the headers for a single
|
|
3053
|
+
request; this effectively ignores the headers
|
|
3054
|
+
in the spec for a single request.
|
|
3055
|
+
:type _headers: dict, optional
|
|
3056
|
+
:param _host_index: set to override the host_index for a single
|
|
3057
|
+
request; this effectively ignores the host_index
|
|
3058
|
+
in the spec for a single request.
|
|
3059
|
+
:type _host_index: int, optional
|
|
3060
|
+
:return: Returns the result object.
|
|
3061
|
+
""" # noqa: E501
|
|
3062
|
+
|
|
3063
|
+
_param = self._list_sandboxes_serialize(
|
|
3064
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
3065
|
+
verbose=verbose,
|
|
3066
|
+
labels=labels,
|
|
3067
|
+
include_errored_deleted=include_errored_deleted,
|
|
3068
|
+
_request_auth=_request_auth,
|
|
3069
|
+
_content_type=_content_type,
|
|
3070
|
+
_headers=_headers,
|
|
3071
|
+
_host_index=_host_index
|
|
3072
|
+
)
|
|
3073
|
+
|
|
3074
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3075
|
+
'200': "List[Sandbox]",
|
|
3076
|
+
}
|
|
3077
|
+
response_data = self.api_client.call_api(
|
|
3078
|
+
*_param,
|
|
3079
|
+
_request_timeout=_request_timeout
|
|
3080
|
+
)
|
|
3081
|
+
return response_data.response
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
def _list_sandboxes_serialize(
|
|
3085
|
+
self,
|
|
3086
|
+
x_daytona_organization_id,
|
|
3087
|
+
verbose,
|
|
3088
|
+
labels,
|
|
3089
|
+
include_errored_deleted,
|
|
3090
|
+
_request_auth,
|
|
3091
|
+
_content_type,
|
|
3092
|
+
_headers,
|
|
3093
|
+
_host_index,
|
|
3094
|
+
) -> RequestSerialized:
|
|
3095
|
+
|
|
3096
|
+
_host = None
|
|
3097
|
+
|
|
3098
|
+
_collection_formats: Dict[str, str] = {
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
_path_params: Dict[str, str] = {}
|
|
3102
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3103
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3104
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3105
|
+
_files: Dict[
|
|
3106
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3107
|
+
] = {}
|
|
3108
|
+
_body_params: Optional[bytes] = None
|
|
3109
|
+
|
|
3110
|
+
# process the path parameters
|
|
3111
|
+
# process the query parameters
|
|
3112
|
+
if verbose is not None:
|
|
3113
|
+
|
|
3114
|
+
_query_params.append(('verbose', verbose))
|
|
3115
|
+
|
|
3116
|
+
if labels is not None:
|
|
3117
|
+
|
|
3118
|
+
_query_params.append(('labels', labels))
|
|
3119
|
+
|
|
3120
|
+
if include_errored_deleted is not None:
|
|
3121
|
+
|
|
3122
|
+
_query_params.append(('includeErroredDeleted', include_errored_deleted))
|
|
3123
|
+
|
|
3124
|
+
# process the header parameters
|
|
3125
|
+
if x_daytona_organization_id is not None:
|
|
3126
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
3127
|
+
# process the form parameters
|
|
3128
|
+
# process the body parameter
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
# set the HTTP header `Accept`
|
|
3132
|
+
if 'Accept' not in _header_params:
|
|
3133
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3134
|
+
[
|
|
3135
|
+
'application/json'
|
|
3136
|
+
]
|
|
3137
|
+
)
|
|
3138
|
+
|
|
3139
|
+
|
|
3140
|
+
# authentication setting
|
|
3141
|
+
_auth_settings: List[str] = [
|
|
3142
|
+
'bearer',
|
|
3143
|
+
'oauth2'
|
|
3144
|
+
]
|
|
3145
|
+
|
|
3146
|
+
return self.api_client.param_serialize(
|
|
3147
|
+
method='GET',
|
|
3148
|
+
resource_path='/sandbox',
|
|
3149
|
+
path_params=_path_params,
|
|
3150
|
+
query_params=_query_params,
|
|
3151
|
+
header_params=_header_params,
|
|
3152
|
+
body=_body_params,
|
|
3153
|
+
post_params=_form_params,
|
|
3154
|
+
files=_files,
|
|
3155
|
+
auth_settings=_auth_settings,
|
|
3156
|
+
collection_formats=_collection_formats,
|
|
3157
|
+
_host=_host,
|
|
3158
|
+
_request_auth=_request_auth
|
|
3159
|
+
)
|
|
3160
|
+
|
|
3161
|
+
|
|
3162
|
+
|
|
3163
|
+
|
|
3164
|
+
@validate_call
|
|
3165
|
+
def list_sandboxes_paginated(
|
|
2856
3166
|
self,
|
|
2857
3167
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2858
3168
|
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 +3196,7 @@ class SandboxApi:
|
|
|
2886
3196
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2887
3197
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2888
3198
|
) -> PaginatedSandboxes:
|
|
2889
|
-
"""List all sandboxes
|
|
3199
|
+
"""List all sandboxes paginated
|
|
2890
3200
|
|
|
2891
3201
|
|
|
2892
3202
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
@@ -2949,7 +3259,7 @@ class SandboxApi:
|
|
|
2949
3259
|
:return: Returns the result object.
|
|
2950
3260
|
""" # noqa: E501
|
|
2951
3261
|
|
|
2952
|
-
_param = self.
|
|
3262
|
+
_param = self._list_sandboxes_paginated_serialize(
|
|
2953
3263
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
2954
3264
|
page=page,
|
|
2955
3265
|
limit=limit,
|
|
@@ -2990,7 +3300,7 @@ class SandboxApi:
|
|
|
2990
3300
|
|
|
2991
3301
|
|
|
2992
3302
|
@validate_call
|
|
2993
|
-
def
|
|
3303
|
+
def list_sandboxes_paginated_with_http_info(
|
|
2994
3304
|
self,
|
|
2995
3305
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2996
3306
|
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 +3334,7 @@ class SandboxApi:
|
|
|
3024
3334
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3025
3335
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3026
3336
|
) -> ApiResponse[PaginatedSandboxes]:
|
|
3027
|
-
"""List all sandboxes
|
|
3337
|
+
"""List all sandboxes paginated
|
|
3028
3338
|
|
|
3029
3339
|
|
|
3030
3340
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
@@ -3087,7 +3397,7 @@ class SandboxApi:
|
|
|
3087
3397
|
:return: Returns the result object.
|
|
3088
3398
|
""" # noqa: E501
|
|
3089
3399
|
|
|
3090
|
-
_param = self.
|
|
3400
|
+
_param = self._list_sandboxes_paginated_serialize(
|
|
3091
3401
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
3092
3402
|
page=page,
|
|
3093
3403
|
limit=limit,
|
|
@@ -3128,7 +3438,7 @@ class SandboxApi:
|
|
|
3128
3438
|
|
|
3129
3439
|
|
|
3130
3440
|
@validate_call
|
|
3131
|
-
def
|
|
3441
|
+
def list_sandboxes_paginated_without_preload_content(
|
|
3132
3442
|
self,
|
|
3133
3443
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
3134
3444
|
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 +3472,7 @@ class SandboxApi:
|
|
|
3162
3472
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3163
3473
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3164
3474
|
) -> RESTResponseType:
|
|
3165
|
-
"""List all sandboxes
|
|
3475
|
+
"""List all sandboxes paginated
|
|
3166
3476
|
|
|
3167
3477
|
|
|
3168
3478
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
@@ -3225,7 +3535,7 @@ class SandboxApi:
|
|
|
3225
3535
|
:return: Returns the result object.
|
|
3226
3536
|
""" # noqa: E501
|
|
3227
3537
|
|
|
3228
|
-
_param = self.
|
|
3538
|
+
_param = self._list_sandboxes_paginated_serialize(
|
|
3229
3539
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
3230
3540
|
page=page,
|
|
3231
3541
|
limit=limit,
|
|
@@ -3261,7 +3571,7 @@ class SandboxApi:
|
|
|
3261
3571
|
return response_data.response
|
|
3262
3572
|
|
|
3263
3573
|
|
|
3264
|
-
def
|
|
3574
|
+
def _list_sandboxes_paginated_serialize(
|
|
3265
3575
|
self,
|
|
3266
3576
|
x_daytona_organization_id,
|
|
3267
3577
|
page,
|
|
@@ -3421,7 +3731,7 @@ class SandboxApi:
|
|
|
3421
3731
|
|
|
3422
3732
|
return self.api_client.param_serialize(
|
|
3423
3733
|
method='GET',
|
|
3424
|
-
resource_path='/sandbox',
|
|
3734
|
+
resource_path='/sandbox/paginated',
|
|
3425
3735
|
path_params=_path_params,
|
|
3426
3736
|
query_params=_query_params,
|
|
3427
3737
|
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
|
|
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
|
-
|
|
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
|
-
) ->
|
|
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
|
|
2086
|
-
:type
|
|
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
|
-
|
|
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': "
|
|
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
|
-
|
|
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[
|
|
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
|
|
2225
|
-
:type
|
|
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
|
-
|
|
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': "
|
|
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
|
-
|
|
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
|
|
2364
|
-
:type
|
|
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
|
-
|
|
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': "
|
|
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
|
-
|
|
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
|
|
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(('
|
|
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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
daytona_api_client/__init__.py,sha256=
|
|
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=
|
|
19
|
+
daytona_api_client/api/sandbox_api.py,sha256=mDntX4mHs3t7FN11d85HT5Qqvv5pqaMLAv3Oha8dkj0,274311
|
|
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=
|
|
26
|
-
daytona_api_client/models/__init__.py,sha256=
|
|
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
|
|
@@ -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.
|
|
192
|
-
daytona_api_client-0.106.
|
|
193
|
-
daytona_api_client-0.106.
|
|
194
|
-
daytona_api_client-0.106.
|
|
195
|
-
daytona_api_client-0.106.
|
|
191
|
+
daytona_api_client-0.106.0a2.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
192
|
+
daytona_api_client-0.106.0a2.dist-info/METADATA,sha256=UTkw74tXFy4RLo2_RsUFSNRKlYY7-9C5pq9XTUylElk,621
|
|
193
|
+
daytona_api_client-0.106.0a2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
194
|
+
daytona_api_client-0.106.0a2.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
195
|
+
daytona_api_client-0.106.0a2.dist-info/RECORD,,
|
|
File without changes
|
{daytona_api_client-0.106.0a1.dist-info → daytona_api_client-0.106.0a2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{daytona_api_client-0.106.0a1.dist-info → daytona_api_client-0.106.0a2.dist-info}/top_level.txt
RENAMED
|
File without changes
|