diff --git a/api.md b/api.md index d3993e81805..8f78a3181fd 100644 --- a/api.md +++ b/api.md @@ -7897,7 +7897,7 @@ Methods: - client.ai_gateway.logs.get(id, \*, account_id, \*\*params) -> LogGetResponse -# Iam +# IAM ## PermissionGroups diff --git a/src/cloudflare/_client.py b/src/cloudflare/_client.py index 1c536763963..cf1a1aadb2b 100644 --- a/src/cloudflare/_client.py +++ b/src/cloudflare/_client.py @@ -130,7 +130,7 @@ class Cloudflare(SyncAPIClient): cloudforce_one: resources.CloudforceOneResource event_notifications: resources.EventNotificationsResource ai_gateway: resources.AIGatewayResource - iam: resources.IamResource + iam: resources.IAMResource with_raw_response: CloudflareWithRawResponse with_streaming_response: CloudflareWithStreamedResponse @@ -289,7 +289,7 @@ def __init__( self.cloudforce_one = resources.CloudforceOneResource(self) self.event_notifications = resources.EventNotificationsResource(self) self.ai_gateway = resources.AIGatewayResource(self) - self.iam = resources.IamResource(self) + self.iam = resources.IAMResource(self) self.with_raw_response = CloudflareWithRawResponse(self) self.with_streaming_response = CloudflareWithStreamedResponse(self) @@ -551,7 +551,7 @@ class AsyncCloudflare(AsyncAPIClient): cloudforce_one: resources.AsyncCloudforceOneResource event_notifications: resources.AsyncEventNotificationsResource ai_gateway: resources.AsyncAIGatewayResource - iam: resources.AsyncIamResource + iam: resources.AsyncIAMResource with_raw_response: AsyncCloudflareWithRawResponse with_streaming_response: AsyncCloudflareWithStreamedResponse @@ -710,7 +710,7 @@ def __init__( self.cloudforce_one = resources.AsyncCloudforceOneResource(self) self.event_notifications = resources.AsyncEventNotificationsResource(self) self.ai_gateway = resources.AsyncAIGatewayResource(self) - self.iam = resources.AsyncIamResource(self) + self.iam = resources.AsyncIAMResource(self) self.with_raw_response = AsyncCloudflareWithRawResponse(self) self.with_streaming_response = AsyncCloudflareWithStreamedResponse(self) @@ -983,7 +983,7 @@ def __init__(self, client: Cloudflare) -> None: self.cloudforce_one = resources.CloudforceOneResourceWithRawResponse(client.cloudforce_one) self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications) self.ai_gateway = resources.AIGatewayResourceWithRawResponse(client.ai_gateway) - self.iam = resources.IamResourceWithRawResponse(client.iam) + self.iam = resources.IAMResourceWithRawResponse(client.iam) class AsyncCloudflareWithRawResponse: @@ -1085,7 +1085,7 @@ def __init__(self, client: AsyncCloudflare) -> None: self.cloudforce_one = resources.AsyncCloudforceOneResourceWithRawResponse(client.cloudforce_one) self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications) self.ai_gateway = resources.AsyncAIGatewayResourceWithRawResponse(client.ai_gateway) - self.iam = resources.AsyncIamResourceWithRawResponse(client.iam) + self.iam = resources.AsyncIAMResourceWithRawResponse(client.iam) class CloudflareWithStreamedResponse: @@ -1187,7 +1187,7 @@ def __init__(self, client: Cloudflare) -> None: self.cloudforce_one = resources.CloudforceOneResourceWithStreamingResponse(client.cloudforce_one) self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications) self.ai_gateway = resources.AIGatewayResourceWithStreamingResponse(client.ai_gateway) - self.iam = resources.IamResourceWithStreamingResponse(client.iam) + self.iam = resources.IAMResourceWithStreamingResponse(client.iam) class AsyncCloudflareWithStreamedResponse: @@ -1297,7 +1297,7 @@ def __init__(self, client: AsyncCloudflare) -> None: client.event_notifications ) self.ai_gateway = resources.AsyncAIGatewayResourceWithStreamingResponse(client.ai_gateway) - self.iam = resources.AsyncIamResourceWithStreamingResponse(client.iam) + self.iam = resources.AsyncIAMResourceWithStreamingResponse(client.iam) Client = Cloudflare diff --git a/src/cloudflare/resources/__init__.py b/src/cloudflare/resources/__init__.py index e5fa7b69add..05545390c25 100644 --- a/src/cloudflare/resources/__init__.py +++ b/src/cloudflare/resources/__init__.py @@ -41,12 +41,12 @@ AsyncDNSResourceWithStreamingResponse, ) from .iam import ( - IamResource, - AsyncIamResource, - IamResourceWithRawResponse, - AsyncIamResourceWithRawResponse, - IamResourceWithStreamingResponse, - AsyncIamResourceWithStreamingResponse, + IAMResource, + AsyncIAMResource, + IAMResourceWithRawResponse, + AsyncIAMResourceWithRawResponse, + IAMResourceWithStreamingResponse, + AsyncIAMResourceWithStreamingResponse, ) from .ips import ( IPsResource, @@ -1172,10 +1172,10 @@ "AsyncAIGatewayResourceWithRawResponse", "AIGatewayResourceWithStreamingResponse", "AsyncAIGatewayResourceWithStreamingResponse", - "IamResource", - "AsyncIamResource", - "IamResourceWithRawResponse", - "AsyncIamResourceWithRawResponse", - "IamResourceWithStreamingResponse", - "AsyncIamResourceWithStreamingResponse", + "IAMResource", + "AsyncIAMResource", + "IAMResourceWithRawResponse", + "AsyncIAMResourceWithRawResponse", + "IAMResourceWithStreamingResponse", + "AsyncIAMResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/accounts/members.py b/src/cloudflare/resources/accounts/members.py index 36ae1a8926f..ab13b631e8f 100644 --- a/src/cloudflare/resources/accounts/members.py +++ b/src/cloudflare/resources/accounts/members.py @@ -87,7 +87,7 @@ def create( *, account_id: str, email: str, - policies: Iterable[member_create_params.IamCreateMemberWithPoliciesPolicy], + policies: Iterable[member_create_params.IAMCreateMemberWithPoliciesPolicy], status: Literal["accepted", "pending"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -124,7 +124,7 @@ def create( email: str, roles: List[str] | NotGiven = NOT_GIVEN, status: Literal["accepted", "pending"] | NotGiven = NOT_GIVEN, - policies: Iterable[member_create_params.IamCreateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN, + policies: Iterable[member_create_params.IAMCreateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -195,7 +195,7 @@ def update( member_id: str, *, account_id: str, - policies: Iterable[member_update_params.IamUpdateMemberWithPoliciesPolicy], + policies: Iterable[member_update_params.IAMUpdateMemberWithPoliciesPolicy], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -230,7 +230,7 @@ def update( *, account_id: str, roles: Iterable[member_update_params.MemberRole] | NotGiven = NOT_GIVEN, - policies: Iterable[member_update_params.IamUpdateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN, + policies: Iterable[member_update_params.IAMUpdateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -464,7 +464,7 @@ async def create( *, account_id: str, email: str, - policies: Iterable[member_create_params.IamCreateMemberWithPoliciesPolicy], + policies: Iterable[member_create_params.IAMCreateMemberWithPoliciesPolicy], status: Literal["accepted", "pending"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # 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( email: str, roles: List[str] | NotGiven = NOT_GIVEN, status: Literal["accepted", "pending"] | NotGiven = NOT_GIVEN, - policies: Iterable[member_create_params.IamCreateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN, + policies: Iterable[member_create_params.IAMCreateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -572,7 +572,7 @@ async def update( member_id: str, *, account_id: str, - policies: Iterable[member_update_params.IamUpdateMemberWithPoliciesPolicy], + policies: Iterable[member_update_params.IAMUpdateMemberWithPoliciesPolicy], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -607,7 +607,7 @@ async def update( *, account_id: str, roles: Iterable[member_update_params.MemberRole] | NotGiven = NOT_GIVEN, - policies: Iterable[member_update_params.IamUpdateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN, + policies: Iterable[member_update_params.IAMUpdateMemberWithPoliciesPolicy] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/cloudflare/resources/iam/__init__.py b/src/cloudflare/resources/iam/__init__.py index 0384bf2c0e0..a233360f769 100644 --- a/src/cloudflare/resources/iam/__init__.py +++ b/src/cloudflare/resources/iam/__init__.py @@ -1,12 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .iam import ( - IamResource, - AsyncIamResource, - IamResourceWithRawResponse, - AsyncIamResourceWithRawResponse, - IamResourceWithStreamingResponse, - AsyncIamResourceWithStreamingResponse, + IAMResource, + AsyncIAMResource, + IAMResourceWithRawResponse, + AsyncIAMResourceWithRawResponse, + IAMResourceWithStreamingResponse, + AsyncIAMResourceWithStreamingResponse, ) from .resource_groups import ( ResourceGroupsResource, @@ -38,10 +38,10 @@ "AsyncResourceGroupsResourceWithRawResponse", "ResourceGroupsResourceWithStreamingResponse", "AsyncResourceGroupsResourceWithStreamingResponse", - "IamResource", - "AsyncIamResource", - "IamResourceWithRawResponse", - "AsyncIamResourceWithRawResponse", - "IamResourceWithStreamingResponse", - "AsyncIamResourceWithStreamingResponse", + "IAMResource", + "AsyncIAMResource", + "IAMResourceWithRawResponse", + "AsyncIAMResourceWithRawResponse", + "IAMResourceWithStreamingResponse", + "AsyncIAMResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/iam/iam.py b/src/cloudflare/resources/iam/iam.py index ec7756d7f63..c8dd72b1cdb 100644 --- a/src/cloudflare/resources/iam/iam.py +++ b/src/cloudflare/resources/iam/iam.py @@ -21,10 +21,10 @@ AsyncPermissionGroupsResourceWithStreamingResponse, ) -__all__ = ["IamResource", "AsyncIamResource"] +__all__ = ["IAMResource", "AsyncIAMResource"] -class IamResource(SyncAPIResource): +class IAMResource(SyncAPIResource): @cached_property def permission_groups(self) -> PermissionGroupsResource: return PermissionGroupsResource(self._client) @@ -34,15 +34,15 @@ def resource_groups(self) -> ResourceGroupsResource: return ResourceGroupsResource(self._client) @cached_property - def with_raw_response(self) -> IamResourceWithRawResponse: - return IamResourceWithRawResponse(self) + def with_raw_response(self) -> IAMResourceWithRawResponse: + return IAMResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IamResourceWithStreamingResponse: - return IamResourceWithStreamingResponse(self) + def with_streaming_response(self) -> IAMResourceWithStreamingResponse: + return IAMResourceWithStreamingResponse(self) -class AsyncIamResource(AsyncAPIResource): +class AsyncIAMResource(AsyncAPIResource): @cached_property def permission_groups(self) -> AsyncPermissionGroupsResource: return AsyncPermissionGroupsResource(self._client) @@ -52,16 +52,16 @@ def resource_groups(self) -> AsyncResourceGroupsResource: return AsyncResourceGroupsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncIamResourceWithRawResponse: - return AsyncIamResourceWithRawResponse(self) + def with_raw_response(self) -> AsyncIAMResourceWithRawResponse: + return AsyncIAMResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIamResourceWithStreamingResponse: - return AsyncIamResourceWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIAMResourceWithStreamingResponse: + return AsyncIAMResourceWithStreamingResponse(self) -class IamResourceWithRawResponse: - def __init__(self, iam: IamResource) -> None: +class IAMResourceWithRawResponse: + def __init__(self, iam: IAMResource) -> None: self._iam = iam @cached_property @@ -73,8 +73,8 @@ def resource_groups(self) -> ResourceGroupsResourceWithRawResponse: return ResourceGroupsResourceWithRawResponse(self._iam.resource_groups) -class AsyncIamResourceWithRawResponse: - def __init__(self, iam: AsyncIamResource) -> None: +class AsyncIAMResourceWithRawResponse: + def __init__(self, iam: AsyncIAMResource) -> None: self._iam = iam @cached_property @@ -86,8 +86,8 @@ def resource_groups(self) -> AsyncResourceGroupsResourceWithRawResponse: return AsyncResourceGroupsResourceWithRawResponse(self._iam.resource_groups) -class IamResourceWithStreamingResponse: - def __init__(self, iam: IamResource) -> None: +class IAMResourceWithStreamingResponse: + def __init__(self, iam: IAMResource) -> None: self._iam = iam @cached_property @@ -99,8 +99,8 @@ def resource_groups(self) -> ResourceGroupsResourceWithStreamingResponse: return ResourceGroupsResourceWithStreamingResponse(self._iam.resource_groups) -class AsyncIamResourceWithStreamingResponse: - def __init__(self, iam: AsyncIamResource) -> None: +class AsyncIAMResourceWithStreamingResponse: + def __init__(self, iam: AsyncIAMResource) -> None: self._iam = iam @cached_property diff --git a/src/cloudflare/types/accounts/member_create_params.py b/src/cloudflare/types/accounts/member_create_params.py index 1531d624747..793e4eb5199 100644 --- a/src/cloudflare/types/accounts/member_create_params.py +++ b/src/cloudflare/types/accounts/member_create_params.py @@ -7,15 +7,15 @@ __all__ = [ "MemberCreateParams", - "IamCreateMemberWithRoles", - "IamCreateMemberWithPolicies", - "IamCreateMemberWithPoliciesPolicy", - "IamCreateMemberWithPoliciesPolicyPermissionGroup", - "IamCreateMemberWithPoliciesPolicyResourceGroup", + "IAMCreateMemberWithRoles", + "IAMCreateMemberWithPolicies", + "IAMCreateMemberWithPoliciesPolicy", + "IAMCreateMemberWithPoliciesPolicyPermissionGroup", + "IAMCreateMemberWithPoliciesPolicyResourceGroup", ] -class IamCreateMemberWithRoles(TypedDict, total=False): +class IAMCreateMemberWithRoles(TypedDict, total=False): account_id: Required[str] """Account identifier tag.""" @@ -28,38 +28,38 @@ class IamCreateMemberWithRoles(TypedDict, total=False): status: Literal["accepted", "pending"] -class IamCreateMemberWithPolicies(TypedDict, total=False): +class IAMCreateMemberWithPolicies(TypedDict, total=False): account_id: Required[str] """Account identifier tag.""" email: Required[str] """The contact email address of the user.""" - policies: Required[Iterable[IamCreateMemberWithPoliciesPolicy]] + policies: Required[Iterable[IAMCreateMemberWithPoliciesPolicy]] """Array of policies associated with this member.""" status: Literal["accepted", "pending"] -class IamCreateMemberWithPoliciesPolicyPermissionGroup(TypedDict, total=False): +class IAMCreateMemberWithPoliciesPolicyPermissionGroup(TypedDict, total=False): id: Required[str] """Identifier of the group.""" -class IamCreateMemberWithPoliciesPolicyResourceGroup(TypedDict, total=False): +class IAMCreateMemberWithPoliciesPolicyResourceGroup(TypedDict, total=False): id: Required[str] """Identifier of the group.""" -class IamCreateMemberWithPoliciesPolicy(TypedDict, total=False): +class IAMCreateMemberWithPoliciesPolicy(TypedDict, total=False): access: Required[Literal["allow", "deny"]] """Allow or deny operations against the resources.""" - permission_groups: Required[Iterable[IamCreateMemberWithPoliciesPolicyPermissionGroup]] + permission_groups: Required[Iterable[IAMCreateMemberWithPoliciesPolicyPermissionGroup]] """A set of permission groups that are specified to the policy.""" - resource_groups: Required[Iterable[IamCreateMemberWithPoliciesPolicyResourceGroup]] + resource_groups: Required[Iterable[IAMCreateMemberWithPoliciesPolicyResourceGroup]] """A list of resource groups that the policy applies to.""" -MemberCreateParams = Union[IamCreateMemberWithRoles, IamCreateMemberWithPolicies] +MemberCreateParams = Union[IAMCreateMemberWithRoles, IAMCreateMemberWithPolicies] diff --git a/src/cloudflare/types/accounts/member_update_params.py b/src/cloudflare/types/accounts/member_update_params.py index 559895f2ca0..e95d51f43fa 100644 --- a/src/cloudflare/types/accounts/member_update_params.py +++ b/src/cloudflare/types/accounts/member_update_params.py @@ -9,10 +9,10 @@ "MemberUpdateParams", "Member", "MemberRole", - "IamUpdateMemberWithPolicies", - "IamUpdateMemberWithPoliciesPolicy", - "IamUpdateMemberWithPoliciesPolicyPermissionGroup", - "IamUpdateMemberWithPoliciesPolicyResourceGroup", + "IAMUpdateMemberWithPolicies", + "IAMUpdateMemberWithPoliciesPolicy", + "IAMUpdateMemberWithPoliciesPolicyPermissionGroup", + "IAMUpdateMemberWithPoliciesPolicyResourceGroup", ] @@ -29,33 +29,33 @@ class MemberRole(TypedDict, total=False): """Role identifier tag.""" -class IamUpdateMemberWithPolicies(TypedDict, total=False): +class IAMUpdateMemberWithPolicies(TypedDict, total=False): account_id: Required[str] """Account identifier tag.""" - policies: Required[Iterable[IamUpdateMemberWithPoliciesPolicy]] + policies: Required[Iterable[IAMUpdateMemberWithPoliciesPolicy]] """Array of policies associated with this member.""" -class IamUpdateMemberWithPoliciesPolicyPermissionGroup(TypedDict, total=False): +class IAMUpdateMemberWithPoliciesPolicyPermissionGroup(TypedDict, total=False): id: Required[str] """Identifier of the group.""" -class IamUpdateMemberWithPoliciesPolicyResourceGroup(TypedDict, total=False): +class IAMUpdateMemberWithPoliciesPolicyResourceGroup(TypedDict, total=False): id: Required[str] """Identifier of the group.""" -class IamUpdateMemberWithPoliciesPolicy(TypedDict, total=False): +class IAMUpdateMemberWithPoliciesPolicy(TypedDict, total=False): access: Required[Literal["allow", "deny"]] """Allow or deny operations against the resources.""" - permission_groups: Required[Iterable[IamUpdateMemberWithPoliciesPolicyPermissionGroup]] + permission_groups: Required[Iterable[IAMUpdateMemberWithPoliciesPolicyPermissionGroup]] """A set of permission groups that are specified to the policy.""" - resource_groups: Required[Iterable[IamUpdateMemberWithPoliciesPolicyResourceGroup]] + resource_groups: Required[Iterable[IAMUpdateMemberWithPoliciesPolicyResourceGroup]] """A list of resource groups that the policy applies to.""" -MemberUpdateParams = Union[Member, IamUpdateMemberWithPolicies] +MemberUpdateParams = Union[Member, IAMUpdateMemberWithPolicies]