|
31 | 31 | ) |
32 | 32 |
|
33 | 33 | if TYPE_CHECKING: |
34 | | - from .resources import logs, usage, emails, domains, tracking, webhooks, suppressions |
| 34 | + from .resources import logs, usage, emails, domains, tenants, tracking, webhooks, suppressions |
35 | 35 | from .resources.logs import LogsResource, AsyncLogsResource |
36 | 36 | from .resources.usage import UsageResource, AsyncUsageResource |
37 | 37 | from .resources.emails import EmailsResource, AsyncEmailsResource |
38 | 38 | from .resources.domains import DomainsResource, AsyncDomainsResource |
| 39 | + from .resources.tenants import TenantsResource, AsyncTenantsResource |
39 | 40 | from .resources.tracking import TrackingResource, AsyncTrackingResource |
40 | 41 | from .resources.webhooks import WebhooksResource, AsyncWebhooksResource |
41 | 42 | from .resources.suppressions import SuppressionsResource, AsyncSuppressionsResource |
@@ -140,6 +141,12 @@ def usage(self) -> UsageResource: |
140 | 141 |
|
141 | 142 | return UsageResource(self) |
142 | 143 |
|
| 144 | + @cached_property |
| 145 | + def tenants(self) -> TenantsResource: |
| 146 | + from .resources.tenants import TenantsResource |
| 147 | + |
| 148 | + return TenantsResource(self) |
| 149 | + |
143 | 150 | @cached_property |
144 | 151 | def with_raw_response(self) -> ArkWithRawResponse: |
145 | 152 | return ArkWithRawResponse(self) |
@@ -350,6 +357,12 @@ def usage(self) -> AsyncUsageResource: |
350 | 357 |
|
351 | 358 | return AsyncUsageResource(self) |
352 | 359 |
|
| 360 | + @cached_property |
| 361 | + def tenants(self) -> AsyncTenantsResource: |
| 362 | + from .resources.tenants import AsyncTenantsResource |
| 363 | + |
| 364 | + return AsyncTenantsResource(self) |
| 365 | + |
353 | 366 | @cached_property |
354 | 367 | def with_raw_response(self) -> AsyncArkWithRawResponse: |
355 | 368 | return AsyncArkWithRawResponse(self) |
@@ -511,6 +524,12 @@ def usage(self) -> usage.UsageResourceWithRawResponse: |
511 | 524 |
|
512 | 525 | return UsageResourceWithRawResponse(self._client.usage) |
513 | 526 |
|
| 527 | + @cached_property |
| 528 | + def tenants(self) -> tenants.TenantsResourceWithRawResponse: |
| 529 | + from .resources.tenants import TenantsResourceWithRawResponse |
| 530 | + |
| 531 | + return TenantsResourceWithRawResponse(self._client.tenants) |
| 532 | + |
514 | 533 |
|
515 | 534 | class AsyncArkWithRawResponse: |
516 | 535 | _client: AsyncArk |
@@ -560,6 +579,12 @@ def usage(self) -> usage.AsyncUsageResourceWithRawResponse: |
560 | 579 |
|
561 | 580 | return AsyncUsageResourceWithRawResponse(self._client.usage) |
562 | 581 |
|
| 582 | + @cached_property |
| 583 | + def tenants(self) -> tenants.AsyncTenantsResourceWithRawResponse: |
| 584 | + from .resources.tenants import AsyncTenantsResourceWithRawResponse |
| 585 | + |
| 586 | + return AsyncTenantsResourceWithRawResponse(self._client.tenants) |
| 587 | + |
563 | 588 |
|
564 | 589 | class ArkWithStreamedResponse: |
565 | 590 | _client: Ark |
@@ -609,6 +634,12 @@ def usage(self) -> usage.UsageResourceWithStreamingResponse: |
609 | 634 |
|
610 | 635 | return UsageResourceWithStreamingResponse(self._client.usage) |
611 | 636 |
|
| 637 | + @cached_property |
| 638 | + def tenants(self) -> tenants.TenantsResourceWithStreamingResponse: |
| 639 | + from .resources.tenants import TenantsResourceWithStreamingResponse |
| 640 | + |
| 641 | + return TenantsResourceWithStreamingResponse(self._client.tenants) |
| 642 | + |
612 | 643 |
|
613 | 644 | class AsyncArkWithStreamedResponse: |
614 | 645 | _client: AsyncArk |
@@ -658,6 +689,12 @@ def usage(self) -> usage.AsyncUsageResourceWithStreamingResponse: |
658 | 689 |
|
659 | 690 | return AsyncUsageResourceWithStreamingResponse(self._client.usage) |
660 | 691 |
|
| 692 | + @cached_property |
| 693 | + def tenants(self) -> tenants.AsyncTenantsResourceWithStreamingResponse: |
| 694 | + from .resources.tenants import AsyncTenantsResourceWithStreamingResponse |
| 695 | + |
| 696 | + return AsyncTenantsResourceWithStreamingResponse(self._client.tenants) |
| 697 | + |
661 | 698 |
|
662 | 699 | Client = Ark |
663 | 700 |
|
|
0 commit comments