Skip to content

Commit 6e04248

Browse files
feat(api): update via SDK Studio (#996)
1 parent f1bbc0b commit 6e04248

File tree

8 files changed

+86
-86
lines changed

8 files changed

+86
-86
lines changed

api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7897,7 +7897,7 @@ Methods:
78977897

78987898
- <code title="get /accounts/{account_id}/ai-gateway/gateways/{id}/logs">client.ai_gateway.logs.<a href="./src/cloudflare/resources/ai_gateway/logs.py">get</a>(id, \*, account_id, \*\*<a href="src/cloudflare/types/ai_gateway/log_get_params.py">params</a>) -> <a href="./src/cloudflare/types/ai_gateway/log_get_response.py">LogGetResponse</a></code>
78997899

7900-
# Iam
7900+
# IAM
79017901

79027902
## PermissionGroups
79037903

src/cloudflare/_client.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class Cloudflare(SyncAPIClient):
130130
cloudforce_one: resources.CloudforceOneResource
131131
event_notifications: resources.EventNotificationsResource
132132
ai_gateway: resources.AIGatewayResource
133-
iam: resources.IamResource
133+
iam: resources.IAMResource
134134
with_raw_response: CloudflareWithRawResponse
135135
with_streaming_response: CloudflareWithStreamedResponse
136136

@@ -289,7 +289,7 @@ def __init__(
289289
self.cloudforce_one = resources.CloudforceOneResource(self)
290290
self.event_notifications = resources.EventNotificationsResource(self)
291291
self.ai_gateway = resources.AIGatewayResource(self)
292-
self.iam = resources.IamResource(self)
292+
self.iam = resources.IAMResource(self)
293293
self.with_raw_response = CloudflareWithRawResponse(self)
294294
self.with_streaming_response = CloudflareWithStreamedResponse(self)
295295

@@ -551,7 +551,7 @@ class AsyncCloudflare(AsyncAPIClient):
551551
cloudforce_one: resources.AsyncCloudforceOneResource
552552
event_notifications: resources.AsyncEventNotificationsResource
553553
ai_gateway: resources.AsyncAIGatewayResource
554-
iam: resources.AsyncIamResource
554+
iam: resources.AsyncIAMResource
555555
with_raw_response: AsyncCloudflareWithRawResponse
556556
with_streaming_response: AsyncCloudflareWithStreamedResponse
557557

@@ -710,7 +710,7 @@ def __init__(
710710
self.cloudforce_one = resources.AsyncCloudforceOneResource(self)
711711
self.event_notifications = resources.AsyncEventNotificationsResource(self)
712712
self.ai_gateway = resources.AsyncAIGatewayResource(self)
713-
self.iam = resources.AsyncIamResource(self)
713+
self.iam = resources.AsyncIAMResource(self)
714714
self.with_raw_response = AsyncCloudflareWithRawResponse(self)
715715
self.with_streaming_response = AsyncCloudflareWithStreamedResponse(self)
716716

@@ -983,7 +983,7 @@ def __init__(self, client: Cloudflare) -> None:
983983
self.cloudforce_one = resources.CloudforceOneResourceWithRawResponse(client.cloudforce_one)
984984
self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications)
985985
self.ai_gateway = resources.AIGatewayResourceWithRawResponse(client.ai_gateway)
986-
self.iam = resources.IamResourceWithRawResponse(client.iam)
986+
self.iam = resources.IAMResourceWithRawResponse(client.iam)
987987

988988

989989
class AsyncCloudflareWithRawResponse:
@@ -1085,7 +1085,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
10851085
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithRawResponse(client.cloudforce_one)
10861086
self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications)
10871087
self.ai_gateway = resources.AsyncAIGatewayResourceWithRawResponse(client.ai_gateway)
1088-
self.iam = resources.AsyncIamResourceWithRawResponse(client.iam)
1088+
self.iam = resources.AsyncIAMResourceWithRawResponse(client.iam)
10891089

10901090

10911091
class CloudflareWithStreamedResponse:
@@ -1187,7 +1187,7 @@ def __init__(self, client: Cloudflare) -> None:
11871187
self.cloudforce_one = resources.CloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
11881188
self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications)
11891189
self.ai_gateway = resources.AIGatewayResourceWithStreamingResponse(client.ai_gateway)
1190-
self.iam = resources.IamResourceWithStreamingResponse(client.iam)
1190+
self.iam = resources.IAMResourceWithStreamingResponse(client.iam)
11911191

11921192

11931193
class AsyncCloudflareWithStreamedResponse:
@@ -1297,7 +1297,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
12971297
client.event_notifications
12981298
)
12991299
self.ai_gateway = resources.AsyncAIGatewayResourceWithStreamingResponse(client.ai_gateway)
1300-
self.iam = resources.AsyncIamResourceWithStreamingResponse(client.iam)
1300+
self.iam = resources.AsyncIAMResourceWithStreamingResponse(client.iam)
13011301

13021302

13031303
Client = Cloudflare

src/cloudflare/resources/__init__.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
AsyncDNSResourceWithStreamingResponse,
4242
)
4343
from .iam import (
44-
IamResource,
45-
AsyncIamResource,
46-
IamResourceWithRawResponse,
47-
AsyncIamResourceWithRawResponse,
48-
IamResourceWithStreamingResponse,
49-
AsyncIamResourceWithStreamingResponse,
44+
IAMResource,
45+
AsyncIAMResource,
46+
IAMResourceWithRawResponse,
47+
AsyncIAMResourceWithRawResponse,
48+
IAMResourceWithStreamingResponse,
49+
AsyncIAMResourceWithStreamingResponse,
5050
)
5151
from .ips import (
5252
IPsResource,
@@ -1172,10 +1172,10 @@
11721172
"AsyncAIGatewayResourceWithRawResponse",
11731173
"AIGatewayResourceWithStreamingResponse",
11741174
"AsyncAIGatewayResourceWithStreamingResponse",
1175-
"IamResource",
1176-
"AsyncIamResource",
1177-
"IamResourceWithRawResponse",
1178-
"AsyncIamResourceWithRawResponse",
1179-
"IamResourceWithStreamingResponse",
1180-
"AsyncIamResourceWithStreamingResponse",
1175+
"IAMResource",
1176+
"AsyncIAMResource",
1177+
"IAMResourceWithRawResponse",
1178+
"AsyncIAMResourceWithRawResponse",
1179+
"IAMResourceWithStreamingResponse",
1180+
"AsyncIAMResourceWithStreamingResponse",
11811181
]

src/cloudflare/resources/accounts/members.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def create(
8787
*,
8888
account_id: str,
8989
email: str,
90-
policies: Iterable[member_create_params.IamCreateMemberWithPoliciesPolicy],
90+
policies: Iterable[member_create_params.IAMCreateMemberWithPoliciesPolicy],
9191
status: Literal["accepted", "pending"] | NotGiven = NOT_GIVEN,
9292
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9393
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -124,7 +124,7 @@ def create(
124124
email: str,
125125
roles: List[str] | NotGiven = NOT_GIVEN,
126126
status: Literal["accepted", "pending"] | NotGiven = NOT_GIVEN,
127-
policies: Iterable[member_create_params.IamCreateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN,
127+
policies: Iterable[member_create_params.IAMCreateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN,
128128
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
129129
# The extra values given here take precedence over values defined on the client or passed to this method.
130130
extra_headers: Headers | None = None,
@@ -195,7 +195,7 @@ def update(
195195
member_id: str,
196196
*,
197197
account_id: str,
198-
policies: Iterable[member_update_params.IamUpdateMemberWithPoliciesPolicy],
198+
policies: Iterable[member_update_params.IAMUpdateMemberWithPoliciesPolicy],
199199
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
200200
# The extra values given here take precedence over values defined on the client or passed to this method.
201201
extra_headers: Headers | None = None,
@@ -230,7 +230,7 @@ def update(
230230
*,
231231
account_id: str,
232232
roles: Iterable[member_update_params.MemberRole] | NotGiven = NOT_GIVEN,
233-
policies: Iterable[member_update_params.IamUpdateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN,
233+
policies: Iterable[member_update_params.IAMUpdateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN,
234234
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
235235
# The extra values given here take precedence over values defined on the client or passed to this method.
236236
extra_headers: Headers | None = None,
@@ -464,7 +464,7 @@ async def create(
464464
*,
465465
account_id: str,
466466
email: str,
467-
policies: Iterable[member_create_params.IamCreateMemberWithPoliciesPolicy],
467+
policies: Iterable[member_create_params.IAMCreateMemberWithPoliciesPolicy],
468468
status: Literal["accepted", "pending"] | NotGiven = NOT_GIVEN,
469469
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
470470
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -501,7 +501,7 @@ async def create(
501501
email: str,
502502
roles: List[str] | NotGiven = NOT_GIVEN,
503503
status: Literal["accepted", "pending"] | NotGiven = NOT_GIVEN,
504-
policies: Iterable[member_create_params.IamCreateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN,
504+
policies: Iterable[member_create_params.IAMCreateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN,
505505
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
506506
# The extra values given here take precedence over values defined on the client or passed to this method.
507507
extra_headers: Headers | None = None,
@@ -572,7 +572,7 @@ async def update(
572572
member_id: str,
573573
*,
574574
account_id: str,
575-
policies: Iterable[member_update_params.IamUpdateMemberWithPoliciesPolicy],
575+
policies: Iterable[member_update_params.IAMUpdateMemberWithPoliciesPolicy],
576576
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
577577
# The extra values given here take precedence over values defined on the client or passed to this method.
578578
extra_headers: Headers | None = None,
@@ -607,7 +607,7 @@ async def update(
607607
*,
608608
account_id: str,
609609
roles: Iterable[member_update_params.MemberRole] | NotGiven = NOT_GIVEN,
610-
policies: Iterable[member_update_params.IamUpdateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN,
610+
policies: Iterable[member_update_params.IAMUpdateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN,
611611
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
612612
# The extra values given here take precedence over values defined on the client or passed to this method.
613613
extra_headers: Headers | None = None,

src/cloudflare/resources/iam/__init__.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from .iam import (
4-
IamResource,
5-
AsyncIamResource,
6-
IamResourceWithRawResponse,
7-
AsyncIamResourceWithRawResponse,
8-
IamResourceWithStreamingResponse,
9-
AsyncIamResourceWithStreamingResponse,
4+
IAMResource,
5+
AsyncIAMResource,
6+
IAMResourceWithRawResponse,
7+
AsyncIAMResourceWithRawResponse,
8+
IAMResourceWithStreamingResponse,
9+
AsyncIAMResourceWithStreamingResponse,
1010
)
1111
from .resource_groups import (
1212
ResourceGroupsResource,
@@ -38,10 +38,10 @@
3838
"AsyncResourceGroupsResourceWithRawResponse",
3939
"ResourceGroupsResourceWithStreamingResponse",
4040
"AsyncResourceGroupsResourceWithStreamingResponse",
41-
"IamResource",
42-
"AsyncIamResource",
43-
"IamResourceWithRawResponse",
44-
"AsyncIamResourceWithRawResponse",
45-
"IamResourceWithStreamingResponse",
46-
"AsyncIamResourceWithStreamingResponse",
41+
"IAMResource",
42+
"AsyncIAMResource",
43+
"IAMResourceWithRawResponse",
44+
"AsyncIAMResourceWithRawResponse",
45+
"IAMResourceWithStreamingResponse",
46+
"AsyncIAMResourceWithStreamingResponse",
4747
]

src/cloudflare/resources/iam/iam.py

+19-19
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
AsyncPermissionGroupsResourceWithStreamingResponse,
2222
)
2323

24-
__all__ = ["IamResource", "AsyncIamResource"]
24+
__all__ = ["IAMResource", "AsyncIAMResource"]
2525

2626

27-
class IamResource(SyncAPIResource):
27+
class IAMResource(SyncAPIResource):
2828
@cached_property
2929
def permission_groups(self) -> PermissionGroupsResource:
3030
return PermissionGroupsResource(self._client)
@@ -34,15 +34,15 @@ def resource_groups(self) -> ResourceGroupsResource:
3434
return ResourceGroupsResource(self._client)
3535

3636
@cached_property
37-
def with_raw_response(self) -> IamResourceWithRawResponse:
38-
return IamResourceWithRawResponse(self)
37+
def with_raw_response(self) -> IAMResourceWithRawResponse:
38+
return IAMResourceWithRawResponse(self)
3939

4040
@cached_property
41-
def with_streaming_response(self) -> IamResourceWithStreamingResponse:
42-
return IamResourceWithStreamingResponse(self)
41+
def with_streaming_response(self) -> IAMResourceWithStreamingResponse:
42+
return IAMResourceWithStreamingResponse(self)
4343

4444

45-
class AsyncIamResource(AsyncAPIResource):
45+
class AsyncIAMResource(AsyncAPIResource):
4646
@cached_property
4747
def permission_groups(self) -> AsyncPermissionGroupsResource:
4848
return AsyncPermissionGroupsResource(self._client)
@@ -52,16 +52,16 @@ def resource_groups(self) -> AsyncResourceGroupsResource:
5252
return AsyncResourceGroupsResource(self._client)
5353

5454
@cached_property
55-
def with_raw_response(self) -> AsyncIamResourceWithRawResponse:
56-
return AsyncIamResourceWithRawResponse(self)
55+
def with_raw_response(self) -> AsyncIAMResourceWithRawResponse:
56+
return AsyncIAMResourceWithRawResponse(self)
5757

5858
@cached_property
59-
def with_streaming_response(self) -> AsyncIamResourceWithStreamingResponse:
60-
return AsyncIamResourceWithStreamingResponse(self)
59+
def with_streaming_response(self) -> AsyncIAMResourceWithStreamingResponse:
60+
return AsyncIAMResourceWithStreamingResponse(self)
6161

6262

63-
class IamResourceWithRawResponse:
64-
def __init__(self, iam: IamResource) -> None:
63+
class IAMResourceWithRawResponse:
64+
def __init__(self, iam: IAMResource) -> None:
6565
self._iam = iam
6666

6767
@cached_property
@@ -73,8 +73,8 @@ def resource_groups(self) -> ResourceGroupsResourceWithRawResponse:
7373
return ResourceGroupsResourceWithRawResponse(self._iam.resource_groups)
7474

7575

76-
class AsyncIamResourceWithRawResponse:
77-
def __init__(self, iam: AsyncIamResource) -> None:
76+
class AsyncIAMResourceWithRawResponse:
77+
def __init__(self, iam: AsyncIAMResource) -> None:
7878
self._iam = iam
7979

8080
@cached_property
@@ -86,8 +86,8 @@ def resource_groups(self) -> AsyncResourceGroupsResourceWithRawResponse:
8686
return AsyncResourceGroupsResourceWithRawResponse(self._iam.resource_groups)
8787

8888

89-
class IamResourceWithStreamingResponse:
90-
def __init__(self, iam: IamResource) -> None:
89+
class IAMResourceWithStreamingResponse:
90+
def __init__(self, iam: IAMResource) -> None:
9191
self._iam = iam
9292

9393
@cached_property
@@ -99,8 +99,8 @@ def resource_groups(self) -> ResourceGroupsResourceWithStreamingResponse:
9999
return ResourceGroupsResourceWithStreamingResponse(self._iam.resource_groups)
100100

101101

102-
class AsyncIamResourceWithStreamingResponse:
103-
def __init__(self, iam: AsyncIamResource) -> None:
102+
class AsyncIAMResourceWithStreamingResponse:
103+
def __init__(self, iam: AsyncIAMResource) -> None:
104104
self._iam = iam
105105

106106
@cached_property

src/cloudflare/types/accounts/member_create_params.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
__all__ = [
99
"MemberCreateParams",
10-
"IamCreateMemberWithRoles",
11-
"IamCreateMemberWithPolicies",
12-
"IamCreateMemberWithPoliciesPolicy",
13-
"IamCreateMemberWithPoliciesPolicyPermissionGroup",
14-
"IamCreateMemberWithPoliciesPolicyResourceGroup",
10+
"IAMCreateMemberWithRoles",
11+
"IAMCreateMemberWithPolicies",
12+
"IAMCreateMemberWithPoliciesPolicy",
13+
"IAMCreateMemberWithPoliciesPolicyPermissionGroup",
14+
"IAMCreateMemberWithPoliciesPolicyResourceGroup",
1515
]
1616

1717

18-
class IamCreateMemberWithRoles(TypedDict, total=False):
18+
class IAMCreateMemberWithRoles(TypedDict, total=False):
1919
account_id: Required[str]
2020
"""Account identifier tag."""
2121

@@ -28,38 +28,38 @@ class IamCreateMemberWithRoles(TypedDict, total=False):
2828
status: Literal["accepted", "pending"]
2929

3030

31-
class IamCreateMemberWithPolicies(TypedDict, total=False):
31+
class IAMCreateMemberWithPolicies(TypedDict, total=False):
3232
account_id: Required[str]
3333
"""Account identifier tag."""
3434

3535
email: Required[str]
3636
"""The contact email address of the user."""
3737

38-
policies: Required[Iterable[IamCreateMemberWithPoliciesPolicy]]
38+
policies: Required[Iterable[IAMCreateMemberWithPoliciesPolicy]]
3939
"""Array of policies associated with this member."""
4040

4141
status: Literal["accepted", "pending"]
4242

4343

44-
class IamCreateMemberWithPoliciesPolicyPermissionGroup(TypedDict, total=False):
44+
class IAMCreateMemberWithPoliciesPolicyPermissionGroup(TypedDict, total=False):
4545
id: Required[str]
4646
"""Identifier of the group."""
4747

4848

49-
class IamCreateMemberWithPoliciesPolicyResourceGroup(TypedDict, total=False):
49+
class IAMCreateMemberWithPoliciesPolicyResourceGroup(TypedDict, total=False):
5050
id: Required[str]
5151
"""Identifier of the group."""
5252

5353

54-
class IamCreateMemberWithPoliciesPolicy(TypedDict, total=False):
54+
class IAMCreateMemberWithPoliciesPolicy(TypedDict, total=False):
5555
access: Required[Literal["allow", "deny"]]
5656
"""Allow or deny operations against the resources."""
5757

58-
permission_groups: Required[Iterable[IamCreateMemberWithPoliciesPolicyPermissionGroup]]
58+
permission_groups: Required[Iterable[IAMCreateMemberWithPoliciesPolicyPermissionGroup]]
5959
"""A set of permission groups that are specified to the policy."""
6060

61-
resource_groups: Required[Iterable[IamCreateMemberWithPoliciesPolicyResourceGroup]]
61+
resource_groups: Required[Iterable[IAMCreateMemberWithPoliciesPolicyResourceGroup]]
6262
"""A list of resource groups that the policy applies to."""
6363

6464

65-
MemberCreateParams = Union[IamCreateMemberWithRoles, IamCreateMemberWithPolicies]
65+
MemberCreateParams = Union[IAMCreateMemberWithRoles, IAMCreateMemberWithPolicies]

0 commit comments

Comments
 (0)