daytona_toolbox_api_client 0.103.0rc2__py3-none-any.whl → 0.108.0rc1__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_toolbox_api_client might be problematic. Click here for more details.

@@ -18,7 +18,8 @@ from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import StrictStr
20
20
  from typing import Dict
21
- from daytona_toolbox_api_client.models.project_dir_response import ProjectDirResponse
21
+ from daytona_toolbox_api_client.models.user_home_dir_response import UserHomeDirResponse
22
+ from daytona_toolbox_api_client.models.work_dir_response import WorkDirResponse
22
23
 
23
24
  from daytona_toolbox_api_client.api_client import ApiClient, RequestSerialized
24
25
  from daytona_toolbox_api_client.api_response import ApiResponse
@@ -39,7 +40,7 @@ class InfoApi:
39
40
 
40
41
 
41
42
  @validate_call
42
- def get_project_dir(
43
+ def get_user_home_dir(
43
44
  self,
44
45
  _request_timeout: Union[
45
46
  None,
@@ -53,10 +54,10 @@ class InfoApi:
53
54
  _content_type: Optional[StrictStr] = None,
54
55
  _headers: Optional[Dict[StrictStr, Any]] = None,
55
56
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
56
- ) -> ProjectDirResponse:
57
- """Get project directory
57
+ ) -> UserHomeDirResponse:
58
+ """Get user home directory
58
59
 
59
- Get the current project directory path
60
+ Get the current user home directory path.
60
61
 
61
62
  :param _request_timeout: timeout setting for this request. If one
62
63
  number provided, it will be total request
@@ -80,7 +81,7 @@ class InfoApi:
80
81
  :return: Returns the result object.
81
82
  """ # noqa: E501
82
83
 
83
- _param = self._get_project_dir_serialize(
84
+ _param = self._get_user_home_dir_serialize(
84
85
  _request_auth=_request_auth,
85
86
  _content_type=_content_type,
86
87
  _headers=_headers,
@@ -88,7 +89,7 @@ class InfoApi:
88
89
  )
89
90
 
90
91
  _response_types_map: Dict[str, Optional[str]] = {
91
- '200': "ProjectDirResponse",
92
+ '200': "UserHomeDirResponse",
92
93
  }
93
94
  response_data = self.api_client.call_api(
94
95
  *_param,
@@ -102,7 +103,7 @@ class InfoApi:
102
103
 
103
104
 
104
105
  @validate_call
105
- def get_project_dir_with_http_info(
106
+ def get_user_home_dir_with_http_info(
106
107
  self,
107
108
  _request_timeout: Union[
108
109
  None,
@@ -116,10 +117,10 @@ class InfoApi:
116
117
  _content_type: Optional[StrictStr] = None,
117
118
  _headers: Optional[Dict[StrictStr, Any]] = None,
118
119
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
119
- ) -> ApiResponse[ProjectDirResponse]:
120
- """Get project directory
120
+ ) -> ApiResponse[UserHomeDirResponse]:
121
+ """Get user home directory
121
122
 
122
- Get the current project directory path
123
+ Get the current user home directory path.
123
124
 
124
125
  :param _request_timeout: timeout setting for this request. If one
125
126
  number provided, it will be total request
@@ -143,7 +144,7 @@ class InfoApi:
143
144
  :return: Returns the result object.
144
145
  """ # noqa: E501
145
146
 
146
- _param = self._get_project_dir_serialize(
147
+ _param = self._get_user_home_dir_serialize(
147
148
  _request_auth=_request_auth,
148
149
  _content_type=_content_type,
149
150
  _headers=_headers,
@@ -151,7 +152,7 @@ class InfoApi:
151
152
  )
152
153
 
153
154
  _response_types_map: Dict[str, Optional[str]] = {
154
- '200': "ProjectDirResponse",
155
+ '200': "UserHomeDirResponse",
155
156
  }
156
157
  response_data = self.api_client.call_api(
157
158
  *_param,
@@ -165,7 +166,7 @@ class InfoApi:
165
166
 
166
167
 
167
168
  @validate_call
168
- def get_project_dir_without_preload_content(
169
+ def get_user_home_dir_without_preload_content(
169
170
  self,
170
171
  _request_timeout: Union[
171
172
  None,
@@ -180,9 +181,9 @@ class InfoApi:
180
181
  _headers: Optional[Dict[StrictStr, Any]] = None,
181
182
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
182
183
  ) -> RESTResponseType:
183
- """Get project directory
184
+ """Get user home directory
184
185
 
185
- Get the current project directory path
186
+ Get the current user home directory path.
186
187
 
187
188
  :param _request_timeout: timeout setting for this request. If one
188
189
  number provided, it will be total request
@@ -206,7 +207,7 @@ class InfoApi:
206
207
  :return: Returns the result object.
207
208
  """ # noqa: E501
208
209
 
209
- _param = self._get_project_dir_serialize(
210
+ _param = self._get_user_home_dir_serialize(
210
211
  _request_auth=_request_auth,
211
212
  _content_type=_content_type,
212
213
  _headers=_headers,
@@ -214,7 +215,7 @@ class InfoApi:
214
215
  )
215
216
 
216
217
  _response_types_map: Dict[str, Optional[str]] = {
217
- '200': "ProjectDirResponse",
218
+ '200': "UserHomeDirResponse",
218
219
  }
219
220
  response_data = self.api_client.call_api(
220
221
  *_param,
@@ -223,7 +224,7 @@ class InfoApi:
223
224
  return response_data.response
224
225
 
225
226
 
226
- def _get_project_dir_serialize(
227
+ def _get_user_home_dir_serialize(
227
228
  self,
228
229
  _request_auth,
229
230
  _content_type,
@@ -267,7 +268,7 @@ class InfoApi:
267
268
 
268
269
  return self.api_client.param_serialize(
269
270
  method='GET',
270
- resource_path='/project-dir',
271
+ resource_path='/user-home-dir',
271
272
  path_params=_path_params,
272
273
  query_params=_query_params,
273
274
  header_params=_header_params,
@@ -526,3 +527,248 @@ class InfoApi:
526
527
  )
527
528
 
528
529
 
530
+
531
+
532
+ @validate_call
533
+ def get_work_dir(
534
+ self,
535
+ _request_timeout: Union[
536
+ None,
537
+ Annotated[StrictFloat, Field(gt=0)],
538
+ Tuple[
539
+ Annotated[StrictFloat, Field(gt=0)],
540
+ Annotated[StrictFloat, Field(gt=0)]
541
+ ]
542
+ ] = None,
543
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
544
+ _content_type: Optional[StrictStr] = None,
545
+ _headers: Optional[Dict[StrictStr, Any]] = None,
546
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
547
+ ) -> WorkDirResponse:
548
+ """Get working directory
549
+
550
+ Get the current working directory path. This is default directory used for running commands.
551
+
552
+ :param _request_timeout: timeout setting for this request. If one
553
+ number provided, it will be total request
554
+ timeout. It can also be a pair (tuple) of
555
+ (connection, read) timeouts.
556
+ :type _request_timeout: int, tuple(int, int), optional
557
+ :param _request_auth: set to override the auth_settings for an a single
558
+ request; this effectively ignores the
559
+ authentication in the spec for a single request.
560
+ :type _request_auth: dict, optional
561
+ :param _content_type: force content-type for the request.
562
+ :type _content_type: str, Optional
563
+ :param _headers: set to override the headers for a single
564
+ request; this effectively ignores the headers
565
+ in the spec for a single request.
566
+ :type _headers: dict, optional
567
+ :param _host_index: set to override the host_index for a single
568
+ request; this effectively ignores the host_index
569
+ in the spec for a single request.
570
+ :type _host_index: int, optional
571
+ :return: Returns the result object.
572
+ """ # noqa: E501
573
+
574
+ _param = self._get_work_dir_serialize(
575
+ _request_auth=_request_auth,
576
+ _content_type=_content_type,
577
+ _headers=_headers,
578
+ _host_index=_host_index
579
+ )
580
+
581
+ _response_types_map: Dict[str, Optional[str]] = {
582
+ '200': "WorkDirResponse",
583
+ }
584
+ response_data = self.api_client.call_api(
585
+ *_param,
586
+ _request_timeout=_request_timeout
587
+ )
588
+ response_data.read()
589
+ return self.api_client.response_deserialize(
590
+ response_data=response_data,
591
+ response_types_map=_response_types_map,
592
+ ).data
593
+
594
+
595
+ @validate_call
596
+ def get_work_dir_with_http_info(
597
+ self,
598
+ _request_timeout: Union[
599
+ None,
600
+ Annotated[StrictFloat, Field(gt=0)],
601
+ Tuple[
602
+ Annotated[StrictFloat, Field(gt=0)],
603
+ Annotated[StrictFloat, Field(gt=0)]
604
+ ]
605
+ ] = None,
606
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
607
+ _content_type: Optional[StrictStr] = None,
608
+ _headers: Optional[Dict[StrictStr, Any]] = None,
609
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
610
+ ) -> ApiResponse[WorkDirResponse]:
611
+ """Get working directory
612
+
613
+ Get the current working directory path. This is default directory used for running commands.
614
+
615
+ :param _request_timeout: timeout setting for this request. If one
616
+ number provided, it will be total request
617
+ timeout. It can also be a pair (tuple) of
618
+ (connection, read) timeouts.
619
+ :type _request_timeout: int, tuple(int, int), optional
620
+ :param _request_auth: set to override the auth_settings for an a single
621
+ request; this effectively ignores the
622
+ authentication in the spec for a single request.
623
+ :type _request_auth: dict, optional
624
+ :param _content_type: force content-type for the request.
625
+ :type _content_type: str, Optional
626
+ :param _headers: set to override the headers for a single
627
+ request; this effectively ignores the headers
628
+ in the spec for a single request.
629
+ :type _headers: dict, optional
630
+ :param _host_index: set to override the host_index for a single
631
+ request; this effectively ignores the host_index
632
+ in the spec for a single request.
633
+ :type _host_index: int, optional
634
+ :return: Returns the result object.
635
+ """ # noqa: E501
636
+
637
+ _param = self._get_work_dir_serialize(
638
+ _request_auth=_request_auth,
639
+ _content_type=_content_type,
640
+ _headers=_headers,
641
+ _host_index=_host_index
642
+ )
643
+
644
+ _response_types_map: Dict[str, Optional[str]] = {
645
+ '200': "WorkDirResponse",
646
+ }
647
+ response_data = self.api_client.call_api(
648
+ *_param,
649
+ _request_timeout=_request_timeout
650
+ )
651
+ response_data.read()
652
+ return self.api_client.response_deserialize(
653
+ response_data=response_data,
654
+ response_types_map=_response_types_map,
655
+ )
656
+
657
+
658
+ @validate_call
659
+ def get_work_dir_without_preload_content(
660
+ self,
661
+ _request_timeout: Union[
662
+ None,
663
+ Annotated[StrictFloat, Field(gt=0)],
664
+ Tuple[
665
+ Annotated[StrictFloat, Field(gt=0)],
666
+ Annotated[StrictFloat, Field(gt=0)]
667
+ ]
668
+ ] = None,
669
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
670
+ _content_type: Optional[StrictStr] = None,
671
+ _headers: Optional[Dict[StrictStr, Any]] = None,
672
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
673
+ ) -> RESTResponseType:
674
+ """Get working directory
675
+
676
+ Get the current working directory path. This is default directory used for running commands.
677
+
678
+ :param _request_timeout: timeout setting for this request. If one
679
+ number provided, it will be total request
680
+ timeout. It can also be a pair (tuple) of
681
+ (connection, read) timeouts.
682
+ :type _request_timeout: int, tuple(int, int), optional
683
+ :param _request_auth: set to override the auth_settings for an a single
684
+ request; this effectively ignores the
685
+ authentication in the spec for a single request.
686
+ :type _request_auth: dict, optional
687
+ :param _content_type: force content-type for the request.
688
+ :type _content_type: str, Optional
689
+ :param _headers: set to override the headers for a single
690
+ request; this effectively ignores the headers
691
+ in the spec for a single request.
692
+ :type _headers: dict, optional
693
+ :param _host_index: set to override the host_index for a single
694
+ request; this effectively ignores the host_index
695
+ in the spec for a single request.
696
+ :type _host_index: int, optional
697
+ :return: Returns the result object.
698
+ """ # noqa: E501
699
+
700
+ _param = self._get_work_dir_serialize(
701
+ _request_auth=_request_auth,
702
+ _content_type=_content_type,
703
+ _headers=_headers,
704
+ _host_index=_host_index
705
+ )
706
+
707
+ _response_types_map: Dict[str, Optional[str]] = {
708
+ '200': "WorkDirResponse",
709
+ }
710
+ response_data = self.api_client.call_api(
711
+ *_param,
712
+ _request_timeout=_request_timeout
713
+ )
714
+ return response_data.response
715
+
716
+
717
+ def _get_work_dir_serialize(
718
+ self,
719
+ _request_auth,
720
+ _content_type,
721
+ _headers,
722
+ _host_index,
723
+ ) -> RequestSerialized:
724
+
725
+ _host = None
726
+
727
+ _collection_formats: Dict[str, str] = {
728
+ }
729
+
730
+ _path_params: Dict[str, str] = {}
731
+ _query_params: List[Tuple[str, str]] = []
732
+ _header_params: Dict[str, Optional[str]] = _headers or {}
733
+ _form_params: List[Tuple[str, str]] = []
734
+ _files: Dict[
735
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
736
+ ] = {}
737
+ _body_params: Optional[bytes] = None
738
+
739
+ # process the path parameters
740
+ # process the query parameters
741
+ # process the header parameters
742
+ # process the form parameters
743
+ # process the body parameter
744
+
745
+
746
+ # set the HTTP header `Accept`
747
+ if 'Accept' not in _header_params:
748
+ _header_params['Accept'] = self.api_client.select_header_accept(
749
+ [
750
+ 'application/json'
751
+ ]
752
+ )
753
+
754
+
755
+ # authentication setting
756
+ _auth_settings: List[str] = [
757
+ ]
758
+
759
+ return self.api_client.param_serialize(
760
+ method='GET',
761
+ resource_path='/work-dir',
762
+ path_params=_path_params,
763
+ query_params=_query_params,
764
+ header_params=_header_params,
765
+ body=_body_params,
766
+ post_params=_form_params,
767
+ files=_files,
768
+ auth_settings=_auth_settings,
769
+ collection_formats=_collection_formats,
770
+ _host=_host,
771
+ _request_auth=_request_auth
772
+ )
773
+
774
+