|
36 | 36 |
|
37 | 37 | if TYPE_CHECKING: |
38 | 38 | from .resources import ( |
| 39 | + pty, |
39 | 40 | axons, |
40 | 41 | agents, |
41 | 42 | apikeys, |
|
52 | 53 | restricted_keys, |
53 | 54 | network_policies, |
54 | 55 | ) |
| 56 | + from .resources.pty import PtyResource, AsyncPtyResource |
55 | 57 | from .resources.agents import AgentsResource, AsyncAgentsResource |
56 | 58 | from .resources.apikeys import ApikeysResource, AsyncApikeysResource |
57 | 59 | from .resources.objects import ObjectsResource, AsyncObjectsResource |
@@ -184,6 +186,12 @@ def devboxes(self) -> DevboxesResource: |
184 | 186 |
|
185 | 187 | return DevboxesResource(self) |
186 | 188 |
|
| 189 | + @cached_property |
| 190 | + def pty(self) -> PtyResource: |
| 191 | + from .resources.pty import PtyResource |
| 192 | + |
| 193 | + return PtyResource(self) |
| 194 | + |
187 | 195 | @cached_property |
188 | 196 | def scenarios(self) -> ScenariosResource: |
189 | 197 | from .resources.scenarios import ScenariosResource |
@@ -466,6 +474,12 @@ def devboxes(self) -> AsyncDevboxesResource: |
466 | 474 |
|
467 | 475 | return AsyncDevboxesResource(self) |
468 | 476 |
|
| 477 | + @cached_property |
| 478 | + def pty(self) -> AsyncPtyResource: |
| 479 | + from .resources.pty import AsyncPtyResource |
| 480 | + |
| 481 | + return AsyncPtyResource(self) |
| 482 | + |
469 | 483 | @cached_property |
470 | 484 | def scenarios(self) -> AsyncScenariosResource: |
471 | 485 | from .resources.scenarios import AsyncScenariosResource |
@@ -683,6 +697,12 @@ def devboxes(self) -> devboxes.DevboxesResourceWithRawResponse: |
683 | 697 |
|
684 | 698 | return DevboxesResourceWithRawResponse(self._client.devboxes) |
685 | 699 |
|
| 700 | + @cached_property |
| 701 | + def pty(self) -> pty.PtyResourceWithRawResponse: |
| 702 | + from .resources.pty import PtyResourceWithRawResponse |
| 703 | + |
| 704 | + return PtyResourceWithRawResponse(self._client.pty) |
| 705 | + |
686 | 706 | @cached_property |
687 | 707 | def scenarios(self) -> scenarios.ScenariosResourceWithRawResponse: |
688 | 708 | from .resources.scenarios import ScenariosResourceWithRawResponse |
@@ -780,6 +800,12 @@ def devboxes(self) -> devboxes.AsyncDevboxesResourceWithRawResponse: |
780 | 800 |
|
781 | 801 | return AsyncDevboxesResourceWithRawResponse(self._client.devboxes) |
782 | 802 |
|
| 803 | + @cached_property |
| 804 | + def pty(self) -> pty.AsyncPtyResourceWithRawResponse: |
| 805 | + from .resources.pty import AsyncPtyResourceWithRawResponse |
| 806 | + |
| 807 | + return AsyncPtyResourceWithRawResponse(self._client.pty) |
| 808 | + |
783 | 809 | @cached_property |
784 | 810 | def scenarios(self) -> scenarios.AsyncScenariosResourceWithRawResponse: |
785 | 811 | from .resources.scenarios import AsyncScenariosResourceWithRawResponse |
@@ -877,6 +903,12 @@ def devboxes(self) -> devboxes.DevboxesResourceWithStreamingResponse: |
877 | 903 |
|
878 | 904 | return DevboxesResourceWithStreamingResponse(self._client.devboxes) |
879 | 905 |
|
| 906 | + @cached_property |
| 907 | + def pty(self) -> pty.PtyResourceWithStreamingResponse: |
| 908 | + from .resources.pty import PtyResourceWithStreamingResponse |
| 909 | + |
| 910 | + return PtyResourceWithStreamingResponse(self._client.pty) |
| 911 | + |
880 | 912 | @cached_property |
881 | 913 | def scenarios(self) -> scenarios.ScenariosResourceWithStreamingResponse: |
882 | 914 | from .resources.scenarios import ScenariosResourceWithStreamingResponse |
@@ -974,6 +1006,12 @@ def devboxes(self) -> devboxes.AsyncDevboxesResourceWithStreamingResponse: |
974 | 1006 |
|
975 | 1007 | return AsyncDevboxesResourceWithStreamingResponse(self._client.devboxes) |
976 | 1008 |
|
| 1009 | + @cached_property |
| 1010 | + def pty(self) -> pty.AsyncPtyResourceWithStreamingResponse: |
| 1011 | + from .resources.pty import AsyncPtyResourceWithStreamingResponse |
| 1012 | + |
| 1013 | + return AsyncPtyResourceWithStreamingResponse(self._client.pty) |
| 1014 | + |
977 | 1015 | @cached_property |
978 | 1016 | def scenarios(self) -> scenarios.AsyncScenariosResourceWithStreamingResponse: |
979 | 1017 | from .resources.scenarios import AsyncScenariosResourceWithStreamingResponse |
|
0 commit comments