|
16 | 16 | from .drafts.client import AsyncDraftsClient, DraftsClient |
17 | 17 | from .inboxes.client import AsyncInboxesClient, InboxesClient |
18 | 18 | from .metrics.client import AsyncMetricsClient, MetricsClient |
| 19 | + from .organizations.client import AsyncOrganizationsClient, OrganizationsClient |
19 | 20 | from .pods.client import AsyncPodsClient, PodsClient |
20 | 21 | from .threads.client import AsyncThreadsClient, ThreadsClient |
21 | 22 | from .webhooks.client import AsyncWebhooksClient, WebhooksClient |
@@ -94,6 +95,7 @@ def __init__( |
94 | 95 | self._domains: typing.Optional[DomainsClient] = None |
95 | 96 | self._drafts: typing.Optional[DraftsClient] = None |
96 | 97 | self._metrics: typing.Optional[MetricsClient] = None |
| 98 | + self._organizations: typing.Optional[OrganizationsClient] = None |
97 | 99 | self._threads: typing.Optional[ThreadsClient] = None |
98 | 100 | self._websockets: typing.Optional[WebsocketsClient] = None |
99 | 101 |
|
@@ -153,6 +155,14 @@ def metrics(self): |
153 | 155 | self._metrics = MetricsClient(client_wrapper=self._client_wrapper) |
154 | 156 | return self._metrics |
155 | 157 |
|
| 158 | + @property |
| 159 | + def organizations(self): |
| 160 | + if self._organizations is None: |
| 161 | + from .organizations.client import OrganizationsClient # noqa: E402 |
| 162 | + |
| 163 | + self._organizations = OrganizationsClient(client_wrapper=self._client_wrapper) |
| 164 | + return self._organizations |
| 165 | + |
156 | 166 | @property |
157 | 167 | def threads(self): |
158 | 168 | if self._threads is None: |
@@ -242,6 +252,7 @@ def __init__( |
242 | 252 | self._domains: typing.Optional[AsyncDomainsClient] = None |
243 | 253 | self._drafts: typing.Optional[AsyncDraftsClient] = None |
244 | 254 | self._metrics: typing.Optional[AsyncMetricsClient] = None |
| 255 | + self._organizations: typing.Optional[AsyncOrganizationsClient] = None |
245 | 256 | self._threads: typing.Optional[AsyncThreadsClient] = None |
246 | 257 | self._websockets: typing.Optional[AsyncWebsocketsClient] = None |
247 | 258 |
|
@@ -301,6 +312,14 @@ def metrics(self): |
301 | 312 | self._metrics = AsyncMetricsClient(client_wrapper=self._client_wrapper) |
302 | 313 | return self._metrics |
303 | 314 |
|
| 315 | + @property |
| 316 | + def organizations(self): |
| 317 | + if self._organizations is None: |
| 318 | + from .organizations.client import AsyncOrganizationsClient # noqa: E402 |
| 319 | + |
| 320 | + self._organizations = AsyncOrganizationsClient(client_wrapper=self._client_wrapper) |
| 321 | + return self._organizations |
| 322 | + |
304 | 323 | @property |
305 | 324 | def threads(self): |
306 | 325 | if self._threads is None: |
|
0 commit comments