|
6 | 6 | import typing |
7 | 7 |
|
8 | 8 | import httpx |
9 | | -from .types.project_environment import ProjectEnvironment |
| 9 | +from ._.types.project_environment import ProjectEnvironment |
10 | 10 | from .core.api_error import ApiError |
11 | 11 | from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper |
12 | 12 | from .core.oauth_token_provider import AsyncOAuthTokenProvider, OAuthTokenProvider |
|
25 | 25 | from .proxy.client import AsyncProxyClient, ProxyClient |
26 | 26 | from .tokens.client import AsyncTokensClient, TokensClient |
27 | 27 | from .triggers.client import AsyncTriggersClient, TriggersClient |
| 28 | + from .usage.client import AsyncUsageClient, UsageClient |
28 | 29 | from .users.client import AsyncUsersClient, UsersClient |
29 | 30 |
|
30 | 31 |
|
@@ -191,6 +192,7 @@ def __init__( |
191 | 192 | self._file_stash: typing.Optional[FileStashClient] = None |
192 | 193 | self._proxy: typing.Optional[ProxyClient] = None |
193 | 194 | self._tokens: typing.Optional[TokensClient] = None |
| 195 | + self._usage: typing.Optional[UsageClient] = None |
194 | 196 | self._oauth_tokens: typing.Optional[OauthTokensClient] = None |
195 | 197 |
|
196 | 198 | @property |
@@ -289,6 +291,14 @@ def tokens(self): |
289 | 291 | self._tokens = TokensClient(client_wrapper=self._client_wrapper) |
290 | 292 | return self._tokens |
291 | 293 |
|
| 294 | + @property |
| 295 | + def usage(self): |
| 296 | + if self._usage is None: |
| 297 | + from .usage.client import UsageClient # noqa: E402 |
| 298 | + |
| 299 | + self._usage = UsageClient(client_wrapper=self._client_wrapper) |
| 300 | + return self._usage |
| 301 | + |
292 | 302 | @property |
293 | 303 | def oauth_tokens(self): |
294 | 304 | if self._oauth_tokens is None: |
@@ -462,6 +472,7 @@ def __init__( |
462 | 472 | self._file_stash: typing.Optional[AsyncFileStashClient] = None |
463 | 473 | self._proxy: typing.Optional[AsyncProxyClient] = None |
464 | 474 | self._tokens: typing.Optional[AsyncTokensClient] = None |
| 475 | + self._usage: typing.Optional[AsyncUsageClient] = None |
465 | 476 | self._oauth_tokens: typing.Optional[AsyncOauthTokensClient] = None |
466 | 477 |
|
467 | 478 | @property |
@@ -560,6 +571,14 @@ def tokens(self): |
560 | 571 | self._tokens = AsyncTokensClient(client_wrapper=self._client_wrapper) |
561 | 572 | return self._tokens |
562 | 573 |
|
| 574 | + @property |
| 575 | + def usage(self): |
| 576 | + if self._usage is None: |
| 577 | + from .usage.client import AsyncUsageClient # noqa: E402 |
| 578 | + |
| 579 | + self._usage = AsyncUsageClient(client_wrapper=self._client_wrapper) |
| 580 | + return self._usage |
| 581 | + |
563 | 582 | @property |
564 | 583 | def oauth_tokens(self): |
565 | 584 | if self._oauth_tokens is None: |
|
0 commit comments