1212)
1313from ..._compat import cached_property
1414from ..._resource import SyncAPIResource , AsyncAPIResource
15+ from .oauth_clients import (
16+ OAuthClientsResource ,
17+ AsyncOAuthClientsResource ,
18+ OAuthClientsResourceWithRawResponse ,
19+ AsyncOAuthClientsResourceWithRawResponse ,
20+ OAuthClientsResourceWithStreamingResponse ,
21+ AsyncOAuthClientsResourceWithStreamingResponse ,
22+ )
1523from .resource_groups import (
1624 ResourceGroupsResource ,
1725 AsyncResourceGroupsResource ,
3644 UserGroupsResourceWithStreamingResponse ,
3745 AsyncUserGroupsResourceWithStreamingResponse ,
3846)
47+ from .oauth_scopes .oauth_scopes import (
48+ OAuthScopesResource ,
49+ AsyncOAuthScopesResource ,
50+ OAuthScopesResourceWithRawResponse ,
51+ AsyncOAuthScopesResourceWithRawResponse ,
52+ OAuthScopesResourceWithStreamingResponse ,
53+ AsyncOAuthScopesResourceWithStreamingResponse ,
54+ )
3955
4056__all__ = ["IAMResource" , "AsyncIAMResource" ]
4157
@@ -57,6 +73,14 @@ def user_groups(self) -> UserGroupsResource:
5773 def sso (self ) -> SSOResource :
5874 return SSOResource (self ._client )
5975
76+ @cached_property
77+ def oauth_clients (self ) -> OAuthClientsResource :
78+ return OAuthClientsResource (self ._client )
79+
80+ @cached_property
81+ def oauth_scopes (self ) -> OAuthScopesResource :
82+ return OAuthScopesResource (self ._client )
83+
6084 @cached_property
6185 def with_raw_response (self ) -> IAMResourceWithRawResponse :
6286 """
@@ -94,6 +118,14 @@ def user_groups(self) -> AsyncUserGroupsResource:
94118 def sso (self ) -> AsyncSSOResource :
95119 return AsyncSSOResource (self ._client )
96120
121+ @cached_property
122+ def oauth_clients (self ) -> AsyncOAuthClientsResource :
123+ return AsyncOAuthClientsResource (self ._client )
124+
125+ @cached_property
126+ def oauth_scopes (self ) -> AsyncOAuthScopesResource :
127+ return AsyncOAuthScopesResource (self ._client )
128+
97129 @cached_property
98130 def with_raw_response (self ) -> AsyncIAMResourceWithRawResponse :
99131 """
@@ -134,6 +166,14 @@ def user_groups(self) -> UserGroupsResourceWithRawResponse:
134166 def sso (self ) -> SSOResourceWithRawResponse :
135167 return SSOResourceWithRawResponse (self ._iam .sso )
136168
169+ @cached_property
170+ def oauth_clients (self ) -> OAuthClientsResourceWithRawResponse :
171+ return OAuthClientsResourceWithRawResponse (self ._iam .oauth_clients )
172+
173+ @cached_property
174+ def oauth_scopes (self ) -> OAuthScopesResourceWithRawResponse :
175+ return OAuthScopesResourceWithRawResponse (self ._iam .oauth_scopes )
176+
137177
138178class AsyncIAMResourceWithRawResponse :
139179 def __init__ (self , iam : AsyncIAMResource ) -> None :
@@ -155,6 +195,14 @@ def user_groups(self) -> AsyncUserGroupsResourceWithRawResponse:
155195 def sso (self ) -> AsyncSSOResourceWithRawResponse :
156196 return AsyncSSOResourceWithRawResponse (self ._iam .sso )
157197
198+ @cached_property
199+ def oauth_clients (self ) -> AsyncOAuthClientsResourceWithRawResponse :
200+ return AsyncOAuthClientsResourceWithRawResponse (self ._iam .oauth_clients )
201+
202+ @cached_property
203+ def oauth_scopes (self ) -> AsyncOAuthScopesResourceWithRawResponse :
204+ return AsyncOAuthScopesResourceWithRawResponse (self ._iam .oauth_scopes )
205+
158206
159207class IAMResourceWithStreamingResponse :
160208 def __init__ (self , iam : IAMResource ) -> None :
@@ -176,6 +224,14 @@ def user_groups(self) -> UserGroupsResourceWithStreamingResponse:
176224 def sso (self ) -> SSOResourceWithStreamingResponse :
177225 return SSOResourceWithStreamingResponse (self ._iam .sso )
178226
227+ @cached_property
228+ def oauth_clients (self ) -> OAuthClientsResourceWithStreamingResponse :
229+ return OAuthClientsResourceWithStreamingResponse (self ._iam .oauth_clients )
230+
231+ @cached_property
232+ def oauth_scopes (self ) -> OAuthScopesResourceWithStreamingResponse :
233+ return OAuthScopesResourceWithStreamingResponse (self ._iam .oauth_scopes )
234+
179235
180236class AsyncIAMResourceWithStreamingResponse :
181237 def __init__ (self , iam : AsyncIAMResource ) -> None :
@@ -196,3 +252,11 @@ def user_groups(self) -> AsyncUserGroupsResourceWithStreamingResponse:
196252 @cached_property
197253 def sso (self ) -> AsyncSSOResourceWithStreamingResponse :
198254 return AsyncSSOResourceWithStreamingResponse (self ._iam .sso )
255+
256+ @cached_property
257+ def oauth_clients (self ) -> AsyncOAuthClientsResourceWithStreamingResponse :
258+ return AsyncOAuthClientsResourceWithStreamingResponse (self ._iam .oauth_clients )
259+
260+ @cached_property
261+ def oauth_scopes (self ) -> AsyncOAuthScopesResourceWithStreamingResponse :
262+ return AsyncOAuthScopesResourceWithStreamingResponse (self ._iam .oauth_scopes )
0 commit comments