|
31 | 31 | ) |
32 | 32 |
|
33 | 33 | if TYPE_CHECKING: |
34 | | - from .resources import agents, objects, secrets, devboxes, scenarios, benchmarks, blueprints, repositories |
| 34 | + from .resources import ( |
| 35 | + agents, |
| 36 | + objects, |
| 37 | + secrets, |
| 38 | + devboxes, |
| 39 | + scenarios, |
| 40 | + benchmarks, |
| 41 | + blueprints, |
| 42 | + repositories, |
| 43 | + network_policies, |
| 44 | + ) |
35 | 45 | from .resources.agents import AgentsResource, AsyncAgentsResource |
36 | 46 | from .resources.objects import ObjectsResource, AsyncObjectsResource |
37 | 47 | from .resources.secrets import SecretsResource, AsyncSecretsResource |
38 | 48 | from .resources.blueprints import BlueprintsResource, AsyncBlueprintsResource |
39 | 49 | from .resources.repositories import RepositoriesResource, AsyncRepositoriesResource |
| 50 | + from .resources.network_policies import NetworkPoliciesResource, AsyncNetworkPoliciesResource |
40 | 51 | from .resources.devboxes.devboxes import DevboxesResource, AsyncDevboxesResource |
41 | 52 | from .resources.scenarios.scenarios import ScenariosResource, AsyncScenariosResource |
42 | 53 | from .resources.benchmarks.benchmarks import BenchmarksResource, AsyncBenchmarksResource |
@@ -149,6 +160,12 @@ def secrets(self) -> SecretsResource: |
149 | 160 |
|
150 | 161 | return SecretsResource(self) |
151 | 162 |
|
| 163 | + @cached_property |
| 164 | + def network_policies(self) -> NetworkPoliciesResource: |
| 165 | + from .resources.network_policies import NetworkPoliciesResource |
| 166 | + |
| 167 | + return NetworkPoliciesResource(self) |
| 168 | + |
152 | 169 | @cached_property |
153 | 170 | def with_raw_response(self) -> RunloopWithRawResponse: |
154 | 171 | return RunloopWithRawResponse(self) |
@@ -367,6 +384,12 @@ def secrets(self) -> AsyncSecretsResource: |
367 | 384 |
|
368 | 385 | return AsyncSecretsResource(self) |
369 | 386 |
|
| 387 | + @cached_property |
| 388 | + def network_policies(self) -> AsyncNetworkPoliciesResource: |
| 389 | + from .resources.network_policies import AsyncNetworkPoliciesResource |
| 390 | + |
| 391 | + return AsyncNetworkPoliciesResource(self) |
| 392 | + |
370 | 393 | @cached_property |
371 | 394 | def with_raw_response(self) -> AsyncRunloopWithRawResponse: |
372 | 395 | return AsyncRunloopWithRawResponse(self) |
@@ -534,6 +557,12 @@ def secrets(self) -> secrets.SecretsResourceWithRawResponse: |
534 | 557 |
|
535 | 558 | return SecretsResourceWithRawResponse(self._client.secrets) |
536 | 559 |
|
| 560 | + @cached_property |
| 561 | + def network_policies(self) -> network_policies.NetworkPoliciesResourceWithRawResponse: |
| 562 | + from .resources.network_policies import NetworkPoliciesResourceWithRawResponse |
| 563 | + |
| 564 | + return NetworkPoliciesResourceWithRawResponse(self._client.network_policies) |
| 565 | + |
537 | 566 |
|
538 | 567 | class AsyncRunloopWithRawResponse: |
539 | 568 | _client: AsyncRunloop |
@@ -589,6 +618,12 @@ def secrets(self) -> secrets.AsyncSecretsResourceWithRawResponse: |
589 | 618 |
|
590 | 619 | return AsyncSecretsResourceWithRawResponse(self._client.secrets) |
591 | 620 |
|
| 621 | + @cached_property |
| 622 | + def network_policies(self) -> network_policies.AsyncNetworkPoliciesResourceWithRawResponse: |
| 623 | + from .resources.network_policies import AsyncNetworkPoliciesResourceWithRawResponse |
| 624 | + |
| 625 | + return AsyncNetworkPoliciesResourceWithRawResponse(self._client.network_policies) |
| 626 | + |
592 | 627 |
|
593 | 628 | class RunloopWithStreamedResponse: |
594 | 629 | _client: Runloop |
@@ -644,6 +679,12 @@ def secrets(self) -> secrets.SecretsResourceWithStreamingResponse: |
644 | 679 |
|
645 | 680 | return SecretsResourceWithStreamingResponse(self._client.secrets) |
646 | 681 |
|
| 682 | + @cached_property |
| 683 | + def network_policies(self) -> network_policies.NetworkPoliciesResourceWithStreamingResponse: |
| 684 | + from .resources.network_policies import NetworkPoliciesResourceWithStreamingResponse |
| 685 | + |
| 686 | + return NetworkPoliciesResourceWithStreamingResponse(self._client.network_policies) |
| 687 | + |
647 | 688 |
|
648 | 689 | class AsyncRunloopWithStreamedResponse: |
649 | 690 | _client: AsyncRunloop |
@@ -699,6 +740,12 @@ def secrets(self) -> secrets.AsyncSecretsResourceWithStreamingResponse: |
699 | 740 |
|
700 | 741 | return AsyncSecretsResourceWithStreamingResponse(self._client.secrets) |
701 | 742 |
|
| 743 | + @cached_property |
| 744 | + def network_policies(self) -> network_policies.AsyncNetworkPoliciesResourceWithStreamingResponse: |
| 745 | + from .resources.network_policies import AsyncNetworkPoliciesResourceWithStreamingResponse |
| 746 | + |
| 747 | + return AsyncNetworkPoliciesResourceWithStreamingResponse(self._client.network_policies) |
| 748 | + |
702 | 749 |
|
703 | 750 | Client = Runloop |
704 | 751 |
|
|
0 commit comments