daytona_api_client 0.102.0rc2__py3-none-any.whl → 0.103.0__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.

@@ -116,6 +116,7 @@ from daytona_api_client.models.mouse_scroll_response import MouseScrollResponse
116
116
  from daytona_api_client.models.organization import Organization
117
117
  from daytona_api_client.models.organization_invitation import OrganizationInvitation
118
118
  from daytona_api_client.models.organization_role import OrganizationRole
119
+ from daytona_api_client.models.organization_sandbox_default_limited_network_egress import OrganizationSandboxDefaultLimitedNetworkEgress
119
120
  from daytona_api_client.models.organization_suspension import OrganizationSuspension
120
121
  from daytona_api_client.models.organization_usage_overview import OrganizationUsageOverview
121
122
  from daytona_api_client.models.organization_user import OrganizationUser
@@ -161,6 +162,7 @@ from daytona_api_client.models.update_organization_member_access import UpdateOr
161
162
  from daytona_api_client.models.update_organization_quota import UpdateOrganizationQuota
162
163
  from daytona_api_client.models.update_organization_role import UpdateOrganizationRole
163
164
  from daytona_api_client.models.user import User
165
+ from daytona_api_client.models.user_home_dir_response import UserHomeDirResponse
164
166
  from daytona_api_client.models.user_public_key import UserPublicKey
165
167
  from daytona_api_client.models.volume_dto import VolumeDto
166
168
  from daytona_api_client.models.volume_state import VolumeState
@@ -168,4 +170,5 @@ from daytona_api_client.models.webhook_app_portal_access import WebhookAppPortal
168
170
  from daytona_api_client.models.webhook_controller_get_status200_response import WebhookControllerGetStatus200Response
169
171
  from daytona_api_client.models.webhook_initialization_status import WebhookInitializationStatus
170
172
  from daytona_api_client.models.windows_response import WindowsResponse
173
+ from daytona_api_client.models.work_dir_response import WorkDirResponse
171
174
  from daytona_api_client.models.workspace import Workspace
@@ -26,6 +26,7 @@ from daytona_api_client.models.create_organization_role import CreateOrganizatio
26
26
  from daytona_api_client.models.organization import Organization
27
27
  from daytona_api_client.models.organization_invitation import OrganizationInvitation
28
28
  from daytona_api_client.models.organization_role import OrganizationRole
29
+ from daytona_api_client.models.organization_sandbox_default_limited_network_egress import OrganizationSandboxDefaultLimitedNetworkEgress
29
30
  from daytona_api_client.models.organization_suspension import OrganizationSuspension
30
31
  from daytona_api_client.models.organization_usage_overview import OrganizationUsageOverview
31
32
  from daytona_api_client.models.organization_user import OrganizationUser
@@ -6716,3 +6717,283 @@ class OrganizationsApi:
6716
6717
  )
6717
6718
 
6718
6719
 
6720
+
6721
+
6722
+ @validate_call
6723
+ def update_sandbox_default_limited_network_egress(
6724
+ self,
6725
+ organization_id: Annotated[StrictStr, Field(description="Organization ID")],
6726
+ organization_sandbox_default_limited_network_egress: OrganizationSandboxDefaultLimitedNetworkEgress,
6727
+ _request_timeout: Union[
6728
+ None,
6729
+ Annotated[StrictFloat, Field(gt=0)],
6730
+ Tuple[
6731
+ Annotated[StrictFloat, Field(gt=0)],
6732
+ Annotated[StrictFloat, Field(gt=0)]
6733
+ ]
6734
+ ] = None,
6735
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
6736
+ _content_type: Optional[StrictStr] = None,
6737
+ _headers: Optional[Dict[StrictStr, Any]] = None,
6738
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6739
+ ) -> None:
6740
+ """Update sandbox default limited network egress
6741
+
6742
+
6743
+ :param organization_id: Organization ID (required)
6744
+ :type organization_id: str
6745
+ :param organization_sandbox_default_limited_network_egress: (required)
6746
+ :type organization_sandbox_default_limited_network_egress: OrganizationSandboxDefaultLimitedNetworkEgress
6747
+ :param _request_timeout: timeout setting for this request. If one
6748
+ number provided, it will be total request
6749
+ timeout. It can also be a pair (tuple) of
6750
+ (connection, read) timeouts.
6751
+ :type _request_timeout: int, tuple(int, int), optional
6752
+ :param _request_auth: set to override the auth_settings for an a single
6753
+ request; this effectively ignores the
6754
+ authentication in the spec for a single request.
6755
+ :type _request_auth: dict, optional
6756
+ :param _content_type: force content-type for the request.
6757
+ :type _content_type: str, Optional
6758
+ :param _headers: set to override the headers for a single
6759
+ request; this effectively ignores the headers
6760
+ in the spec for a single request.
6761
+ :type _headers: dict, optional
6762
+ :param _host_index: set to override the host_index for a single
6763
+ request; this effectively ignores the host_index
6764
+ in the spec for a single request.
6765
+ :type _host_index: int, optional
6766
+ :return: Returns the result object.
6767
+ """ # noqa: E501
6768
+
6769
+ _param = self._update_sandbox_default_limited_network_egress_serialize(
6770
+ organization_id=organization_id,
6771
+ organization_sandbox_default_limited_network_egress=organization_sandbox_default_limited_network_egress,
6772
+ _request_auth=_request_auth,
6773
+ _content_type=_content_type,
6774
+ _headers=_headers,
6775
+ _host_index=_host_index
6776
+ )
6777
+
6778
+ _response_types_map: Dict[str, Optional[str]] = {
6779
+ '204': None,
6780
+ }
6781
+ response_data = self.api_client.call_api(
6782
+ *_param,
6783
+ _request_timeout=_request_timeout
6784
+ )
6785
+ response_data.read()
6786
+ return self.api_client.response_deserialize(
6787
+ response_data=response_data,
6788
+ response_types_map=_response_types_map,
6789
+ ).data
6790
+
6791
+
6792
+ @validate_call
6793
+ def update_sandbox_default_limited_network_egress_with_http_info(
6794
+ self,
6795
+ organization_id: Annotated[StrictStr, Field(description="Organization ID")],
6796
+ organization_sandbox_default_limited_network_egress: OrganizationSandboxDefaultLimitedNetworkEgress,
6797
+ _request_timeout: Union[
6798
+ None,
6799
+ Annotated[StrictFloat, Field(gt=0)],
6800
+ Tuple[
6801
+ Annotated[StrictFloat, Field(gt=0)],
6802
+ Annotated[StrictFloat, Field(gt=0)]
6803
+ ]
6804
+ ] = None,
6805
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
6806
+ _content_type: Optional[StrictStr] = None,
6807
+ _headers: Optional[Dict[StrictStr, Any]] = None,
6808
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6809
+ ) -> ApiResponse[None]:
6810
+ """Update sandbox default limited network egress
6811
+
6812
+
6813
+ :param organization_id: Organization ID (required)
6814
+ :type organization_id: str
6815
+ :param organization_sandbox_default_limited_network_egress: (required)
6816
+ :type organization_sandbox_default_limited_network_egress: OrganizationSandboxDefaultLimitedNetworkEgress
6817
+ :param _request_timeout: timeout setting for this request. If one
6818
+ number provided, it will be total request
6819
+ timeout. It can also be a pair (tuple) of
6820
+ (connection, read) timeouts.
6821
+ :type _request_timeout: int, tuple(int, int), optional
6822
+ :param _request_auth: set to override the auth_settings for an a single
6823
+ request; this effectively ignores the
6824
+ authentication in the spec for a single request.
6825
+ :type _request_auth: dict, optional
6826
+ :param _content_type: force content-type for the request.
6827
+ :type _content_type: str, Optional
6828
+ :param _headers: set to override the headers for a single
6829
+ request; this effectively ignores the headers
6830
+ in the spec for a single request.
6831
+ :type _headers: dict, optional
6832
+ :param _host_index: set to override the host_index for a single
6833
+ request; this effectively ignores the host_index
6834
+ in the spec for a single request.
6835
+ :type _host_index: int, optional
6836
+ :return: Returns the result object.
6837
+ """ # noqa: E501
6838
+
6839
+ _param = self._update_sandbox_default_limited_network_egress_serialize(
6840
+ organization_id=organization_id,
6841
+ organization_sandbox_default_limited_network_egress=organization_sandbox_default_limited_network_egress,
6842
+ _request_auth=_request_auth,
6843
+ _content_type=_content_type,
6844
+ _headers=_headers,
6845
+ _host_index=_host_index
6846
+ )
6847
+
6848
+ _response_types_map: Dict[str, Optional[str]] = {
6849
+ '204': None,
6850
+ }
6851
+ response_data = self.api_client.call_api(
6852
+ *_param,
6853
+ _request_timeout=_request_timeout
6854
+ )
6855
+ response_data.read()
6856
+ return self.api_client.response_deserialize(
6857
+ response_data=response_data,
6858
+ response_types_map=_response_types_map,
6859
+ )
6860
+
6861
+
6862
+ @validate_call
6863
+ def update_sandbox_default_limited_network_egress_without_preload_content(
6864
+ self,
6865
+ organization_id: Annotated[StrictStr, Field(description="Organization ID")],
6866
+ organization_sandbox_default_limited_network_egress: OrganizationSandboxDefaultLimitedNetworkEgress,
6867
+ _request_timeout: Union[
6868
+ None,
6869
+ Annotated[StrictFloat, Field(gt=0)],
6870
+ Tuple[
6871
+ Annotated[StrictFloat, Field(gt=0)],
6872
+ Annotated[StrictFloat, Field(gt=0)]
6873
+ ]
6874
+ ] = None,
6875
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
6876
+ _content_type: Optional[StrictStr] = None,
6877
+ _headers: Optional[Dict[StrictStr, Any]] = None,
6878
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6879
+ ) -> RESTResponseType:
6880
+ """Update sandbox default limited network egress
6881
+
6882
+
6883
+ :param organization_id: Organization ID (required)
6884
+ :type organization_id: str
6885
+ :param organization_sandbox_default_limited_network_egress: (required)
6886
+ :type organization_sandbox_default_limited_network_egress: OrganizationSandboxDefaultLimitedNetworkEgress
6887
+ :param _request_timeout: timeout setting for this request. If one
6888
+ number provided, it will be total request
6889
+ timeout. It can also be a pair (tuple) of
6890
+ (connection, read) timeouts.
6891
+ :type _request_timeout: int, tuple(int, int), optional
6892
+ :param _request_auth: set to override the auth_settings for an a single
6893
+ request; this effectively ignores the
6894
+ authentication in the spec for a single request.
6895
+ :type _request_auth: dict, optional
6896
+ :param _content_type: force content-type for the request.
6897
+ :type _content_type: str, Optional
6898
+ :param _headers: set to override the headers for a single
6899
+ request; this effectively ignores the headers
6900
+ in the spec for a single request.
6901
+ :type _headers: dict, optional
6902
+ :param _host_index: set to override the host_index for a single
6903
+ request; this effectively ignores the host_index
6904
+ in the spec for a single request.
6905
+ :type _host_index: int, optional
6906
+ :return: Returns the result object.
6907
+ """ # noqa: E501
6908
+
6909
+ _param = self._update_sandbox_default_limited_network_egress_serialize(
6910
+ organization_id=organization_id,
6911
+ organization_sandbox_default_limited_network_egress=organization_sandbox_default_limited_network_egress,
6912
+ _request_auth=_request_auth,
6913
+ _content_type=_content_type,
6914
+ _headers=_headers,
6915
+ _host_index=_host_index
6916
+ )
6917
+
6918
+ _response_types_map: Dict[str, Optional[str]] = {
6919
+ '204': None,
6920
+ }
6921
+ response_data = self.api_client.call_api(
6922
+ *_param,
6923
+ _request_timeout=_request_timeout
6924
+ )
6925
+ return response_data.response
6926
+
6927
+
6928
+ def _update_sandbox_default_limited_network_egress_serialize(
6929
+ self,
6930
+ organization_id,
6931
+ organization_sandbox_default_limited_network_egress,
6932
+ _request_auth,
6933
+ _content_type,
6934
+ _headers,
6935
+ _host_index,
6936
+ ) -> RequestSerialized:
6937
+
6938
+ _host = None
6939
+
6940
+ _collection_formats: Dict[str, str] = {
6941
+ }
6942
+
6943
+ _path_params: Dict[str, str] = {}
6944
+ _query_params: List[Tuple[str, str]] = []
6945
+ _header_params: Dict[str, Optional[str]] = _headers or {}
6946
+ _form_params: List[Tuple[str, str]] = []
6947
+ _files: Dict[
6948
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
6949
+ ] = {}
6950
+ _body_params: Optional[bytes] = None
6951
+
6952
+ # process the path parameters
6953
+ if organization_id is not None:
6954
+ _path_params['organizationId'] = organization_id
6955
+ # process the query parameters
6956
+ # process the header parameters
6957
+ # process the form parameters
6958
+ # process the body parameter
6959
+ if organization_sandbox_default_limited_network_egress is not None:
6960
+ _body_params = organization_sandbox_default_limited_network_egress
6961
+
6962
+
6963
+
6964
+ # set the HTTP header `Content-Type`
6965
+ if _content_type:
6966
+ _header_params['Content-Type'] = _content_type
6967
+ else:
6968
+ _default_content_type = (
6969
+ self.api_client.select_header_content_type(
6970
+ [
6971
+ 'application/json'
6972
+ ]
6973
+ )
6974
+ )
6975
+ if _default_content_type is not None:
6976
+ _header_params['Content-Type'] = _default_content_type
6977
+
6978
+ # authentication setting
6979
+ _auth_settings: List[str] = [
6980
+ 'bearer',
6981
+ 'oauth2'
6982
+ ]
6983
+
6984
+ return self.api_client.param_serialize(
6985
+ method='POST',
6986
+ resource_path='/organizations/{organizationId}/sandbox-default-limited-network-egress',
6987
+ path_params=_path_params,
6988
+ query_params=_query_params,
6989
+ header_params=_header_params,
6990
+ body=_body_params,
6991
+ post_params=_form_params,
6992
+ files=_files,
6993
+ auth_settings=_auth_settings,
6994
+ collection_formats=_collection_formats,
6995
+ _host=_host,
6996
+ _request_auth=_request_auth
6997
+ )
6998
+
6999
+
@@ -54,7 +54,7 @@ class PreviewApi:
54
54
  _content_type: Optional[StrictStr] = None,
55
55
  _headers: Optional[Dict[StrictStr, Any]] = None,
56
56
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
- ) -> bool:
57
+ ) -> None:
58
58
  """Check if user has access to the sandbox
59
59
 
60
60
 
@@ -91,7 +91,7 @@ class PreviewApi:
91
91
  )
92
92
 
93
93
  _response_types_map: Dict[str, Optional[str]] = {
94
- '200': "bool",
94
+ '200': None,
95
95
  }
96
96
  response_data = self.api_client.call_api(
97
97
  *_param,
@@ -120,7 +120,7 @@ class PreviewApi:
120
120
  _content_type: Optional[StrictStr] = None,
121
121
  _headers: Optional[Dict[StrictStr, Any]] = None,
122
122
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
123
- ) -> ApiResponse[bool]:
123
+ ) -> ApiResponse[None]:
124
124
  """Check if user has access to the sandbox
125
125
 
126
126
 
@@ -157,7 +157,7 @@ class PreviewApi:
157
157
  )
158
158
 
159
159
  _response_types_map: Dict[str, Optional[str]] = {
160
- '200': "bool",
160
+ '200': None,
161
161
  }
162
162
  response_data = self.api_client.call_api(
163
163
  *_param,
@@ -223,7 +223,7 @@ class PreviewApi:
223
223
  )
224
224
 
225
225
  _response_types_map: Dict[str, Optional[str]] = {
226
- '200': "bool",
226
+ '200': None,
227
227
  }
228
228
  response_data = self.api_client.call_api(
229
229
  *_param,
@@ -264,13 +264,6 @@ class PreviewApi:
264
264
  # process the body parameter
265
265
 
266
266
 
267
- # set the HTTP header `Accept`
268
- if 'Accept' not in _header_params:
269
- _header_params['Accept'] = self.api_client.select_header_accept(
270
- [
271
- 'application/json'
272
- ]
273
- )
274
267
 
275
268
 
276
269
  # authentication setting