Skip to content

Commit 586a864

Browse files
chore(api): update composite API spec
1 parent 82cc646 commit 586a864

23 files changed

Lines changed: 2815 additions & 7 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2309
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-bb15ee923e1fe76b41280e8f3aeab8c4033c0651792b7af572b8b669e75fbe99.yml
3-
openapi_spec_hash: 0a8f757d1f412c1d81fb1ecf4bfba78b
1+
configured_endpoints: 2317
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-6c72aaee26a255cefb59365441066a292ee06cff650529eb8b95d9ffb73ec13a.yml
3+
openapi_spec_hash: 393731844a065cd2de4b422825007b70
44
config_hash: fb00b1d45d83236f53f8ef08adb2db5c

src/cloudflare/resources/iam/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
UserGroupsResourceWithStreamingResponse,
2525
AsyncUserGroupsResourceWithStreamingResponse,
2626
)
27+
from .oauth_clients import (
28+
OAuthClientsResource,
29+
AsyncOAuthClientsResource,
30+
OAuthClientsResourceWithRawResponse,
31+
AsyncOAuthClientsResourceWithRawResponse,
32+
OAuthClientsResourceWithStreamingResponse,
33+
AsyncOAuthClientsResourceWithStreamingResponse,
34+
)
2735
from .resource_groups import (
2836
ResourceGroupsResource,
2937
AsyncResourceGroupsResource,
@@ -66,6 +74,12 @@
6674
"AsyncSSOResourceWithRawResponse",
6775
"SSOResourceWithStreamingResponse",
6876
"AsyncSSOResourceWithStreamingResponse",
77+
"OAuthClientsResource",
78+
"AsyncOAuthClientsResource",
79+
"OAuthClientsResourceWithRawResponse",
80+
"AsyncOAuthClientsResourceWithRawResponse",
81+
"OAuthClientsResourceWithStreamingResponse",
82+
"AsyncOAuthClientsResourceWithStreamingResponse",
6983
"IAMResource",
7084
"AsyncIAMResource",
7185
"IAMResourceWithRawResponse",

src/cloudflare/resources/iam/api.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,30 @@ Methods:
103103
- <code title="post /accounts/{account_id}/sso_connectors/{sso_connector_id}/begin_verification">client.iam.sso.<a href="./src/cloudflare/resources/iam/sso.py">begin_verification</a>(sso_connector_id, \*, account_id) -> <a href="./src/cloudflare/types/iam/sso_begin_verification_response.py">SSOBeginVerificationResponse</a></code>
104104
- <code title="get /accounts/{account_id}/sso_connectors/{sso_connector_id}">client.iam.sso.<a href="./src/cloudflare/resources/iam/sso.py">get</a>(sso_connector_id, \*, account_id) -> <a href="./src/cloudflare/types/iam/sso_get_response.py">Optional[SSOGetResponse]</a></code>
105105

106+
## OAuthClients
107+
108+
Types:
109+
110+
```python
111+
from cloudflare.types.iam import (
112+
OAuthClientCreateResponse,
113+
OAuthClientUpdateResponse,
114+
OAuthClientListResponse,
115+
OAuthClientDeleteResponse,
116+
OAuthClientDeleteRotatedSecretResponse,
117+
OAuthClientGetResponse,
118+
OAuthClientRotateSecretResponse,
119+
)
120+
```
121+
122+
Methods:
123+
124+
- <code title="post /accounts/{account_id}/oauth_clients">client.iam.oauth_clients.<a href="./src/cloudflare/resources/iam/oauth_clients.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/iam/oauth_client_create_params.py">params</a>) -> <a href="./src/cloudflare/types/iam/oauth_client_create_response.py">Optional[OAuthClientCreateResponse]</a></code>
125+
- <code title="patch /accounts/{account_id}/oauth_clients/{oauth_client_id}">client.iam.oauth_clients.<a href="./src/cloudflare/resources/iam/oauth_clients.py">update</a>(oauth_client_id, \*, account_id, \*\*<a href="src/cloudflare/types/iam/oauth_client_update_params.py">params</a>) -> <a href="./src/cloudflare/types/iam/oauth_client_update_response.py">Optional[OAuthClientUpdateResponse]</a></code>
126+
- <code title="get /accounts/{account_id}/oauth_clients">client.iam.oauth_clients.<a href="./src/cloudflare/resources/iam/oauth_clients.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/iam/oauth_client_list_response.py">SyncSinglePage[OAuthClientListResponse]</a></code>
127+
- <code title="delete /accounts/{account_id}/oauth_clients/{oauth_client_id}">client.iam.oauth_clients.<a href="./src/cloudflare/resources/iam/oauth_clients.py">delete</a>(oauth_client_id, \*, account_id) -> <a href="./src/cloudflare/types/iam/oauth_client_delete_response.py">Optional[OAuthClientDeleteResponse]</a></code>
128+
- <code title="delete /accounts/{account_id}/oauth_clients/{oauth_client_id}/rotate_secret">client.iam.oauth_clients.<a href="./src/cloudflare/resources/iam/oauth_clients.py">delete_rotated_secret</a>(oauth_client_id, \*, account_id) -> <a href="./src/cloudflare/types/iam/oauth_client_delete_rotated_secret_response.py">Optional[OAuthClientDeleteRotatedSecretResponse]</a></code>
129+
- <code title="get /accounts/{account_id}/oauth_clients/{oauth_client_id}">client.iam.oauth_clients.<a href="./src/cloudflare/resources/iam/oauth_clients.py">get</a>(oauth_client_id, \*, account_id) -> <a href="./src/cloudflare/types/iam/oauth_client_get_response.py">Optional[OAuthClientGetResponse]</a></code>
130+
- <code title="post /accounts/{account_id}/oauth_clients/{oauth_client_id}/rotate_secret">client.iam.oauth_clients.<a href="./src/cloudflare/resources/iam/oauth_clients.py">rotate_secret</a>(oauth_client_id, \*, account_id) -> <a href="./src/cloudflare/types/iam/oauth_client_rotate_secret_response.py">Optional[OAuthClientRotateSecretResponse]</a></code>
131+
106132
## [OAuthScopes](src/cloudflare/resources/iam/api.md)

src/cloudflare/resources/iam/iam.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
)
1313
from ..._compat import cached_property
1414
from ..._resource import SyncAPIResource, AsyncAPIResource
15+
from .oauth_clients import (
16+
OAuthClientsResource,
17+
AsyncOAuthClientsResource,
18+
OAuthClientsResourceWithRawResponse,
19+
AsyncOAuthClientsResourceWithRawResponse,
20+
OAuthClientsResourceWithStreamingResponse,
21+
AsyncOAuthClientsResourceWithStreamingResponse,
22+
)
1523
from .resource_groups import (
1624
ResourceGroupsResource,
1725
AsyncResourceGroupsResource,
@@ -36,6 +44,14 @@
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

138178
class 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

159207
class 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

180236
class 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

Comments
 (0)