Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Apr 2, 2024
1 parent 217d91f commit ddd493a
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 304 deletions.
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Types:
from cloudflare.types.accounts import (
AccountMember,
AccountMemberWithID,
RolePermissionGrants,
MemberListResponse,
MemberDeleteResponse,
)
Expand Down
2 changes: 2 additions & 0 deletions src/cloudflare/types/accounts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
from .member_update_params import MemberUpdateParams as MemberUpdateParams
from .account_member_with_id import AccountMemberWithID as AccountMemberWithID
from .member_delete_response import MemberDeleteResponse as MemberDeleteResponse
from .role_permission_grants import RolePermissionGrants as RolePermissionGrants
from .role_permission_grants_param import RolePermissionGrantsParam as RolePermissionGrantsParam
116 changes: 14 additions & 102 deletions src/cloudflare/types/accounts/account_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,123 +3,35 @@
from typing import List, Optional

from ..._models import BaseModel
from .role_permission_grants import RolePermissionGrants

__all__ = [
"AccountMember",
"Role",
"RolePermissions",
"RolePermissionsAnalytics",
"RolePermissionsBilling",
"RolePermissionsCachePurge",
"RolePermissionsDNS",
"RolePermissionsDNSRecords",
"RolePermissionsLb",
"RolePermissionsLogs",
"RolePermissionsOrganization",
"RolePermissionsSSL",
"RolePermissionsWAF",
"RolePermissionsZoneSettings",
"RolePermissionsZones",
"User",
]


class RolePermissionsAnalytics(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsBilling(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsCachePurge(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsDNS(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsDNSRecords(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsLb(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsLogs(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsOrganization(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsSSL(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsWAF(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsZoneSettings(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsZones(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None
__all__ = ["AccountMember", "Role", "RolePermissions", "User"]


class RolePermissions(BaseModel):
analytics: Optional[RolePermissionsAnalytics] = None
analytics: Optional[RolePermissionGrants] = None

billing: Optional[RolePermissionsBilling] = None
billing: Optional[RolePermissionGrants] = None

cache_purge: Optional[RolePermissionsCachePurge] = None
cache_purge: Optional[RolePermissionGrants] = None

dns: Optional[RolePermissionsDNS] = None
dns: Optional[RolePermissionGrants] = None

dns_records: Optional[RolePermissionsDNSRecords] = None
dns_records: Optional[RolePermissionGrants] = None

lb: Optional[RolePermissionsLb] = None
lb: Optional[RolePermissionGrants] = None

logs: Optional[RolePermissionsLogs] = None
logs: Optional[RolePermissionGrants] = None

organization: Optional[RolePermissionsOrganization] = None
organization: Optional[RolePermissionGrants] = None

ssl: Optional[RolePermissionsSSL] = None
ssl: Optional[RolePermissionGrants] = None

waf: Optional[RolePermissionsWAF] = None
waf: Optional[RolePermissionGrants] = None

zone_settings: Optional[RolePermissionsZoneSettings] = None
zone_settings: Optional[RolePermissionGrants] = None

zones: Optional[RolePermissionsZones] = None
zones: Optional[RolePermissionGrants] = None


class Role(BaseModel):
Expand Down
116 changes: 14 additions & 102 deletions src/cloudflare/types/accounts/account_member_with_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,123 +3,35 @@
from typing import List, Optional

from ..._models import BaseModel
from .role_permission_grants import RolePermissionGrants

__all__ = [
"AccountMemberWithID",
"Role",
"RolePermissions",
"RolePermissionsAnalytics",
"RolePermissionsBilling",
"RolePermissionsCachePurge",
"RolePermissionsDNS",
"RolePermissionsDNSRecords",
"RolePermissionsLb",
"RolePermissionsLogs",
"RolePermissionsOrganization",
"RolePermissionsSSL",
"RolePermissionsWAF",
"RolePermissionsZoneSettings",
"RolePermissionsZones",
"User",
]


class RolePermissionsAnalytics(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsBilling(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsCachePurge(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsDNS(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsDNSRecords(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsLb(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsLogs(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsOrganization(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsSSL(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsWAF(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsZoneSettings(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None


class RolePermissionsZones(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None
__all__ = ["AccountMemberWithID", "Role", "RolePermissions", "User"]


class RolePermissions(BaseModel):
analytics: Optional[RolePermissionsAnalytics] = None
analytics: Optional[RolePermissionGrants] = None

billing: Optional[RolePermissionsBilling] = None
billing: Optional[RolePermissionGrants] = None

cache_purge: Optional[RolePermissionsCachePurge] = None
cache_purge: Optional[RolePermissionGrants] = None

dns: Optional[RolePermissionsDNS] = None
dns: Optional[RolePermissionGrants] = None

dns_records: Optional[RolePermissionsDNSRecords] = None
dns_records: Optional[RolePermissionGrants] = None

lb: Optional[RolePermissionsLb] = None
lb: Optional[RolePermissionGrants] = None

logs: Optional[RolePermissionsLogs] = None
logs: Optional[RolePermissionGrants] = None

organization: Optional[RolePermissionsOrganization] = None
organization: Optional[RolePermissionGrants] = None

ssl: Optional[RolePermissionsSSL] = None
ssl: Optional[RolePermissionGrants] = None

waf: Optional[RolePermissionsWAF] = None
waf: Optional[RolePermissionGrants] = None

zone_settings: Optional[RolePermissionsZoneSettings] = None
zone_settings: Optional[RolePermissionGrants] = None

zones: Optional[RolePermissionsZones] = None
zones: Optional[RolePermissionGrants] = None


class Role(BaseModel):
Expand Down
13 changes: 13 additions & 0 deletions src/cloudflare/types/accounts/role_permission_grants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from ..._models import BaseModel

__all__ = ["RolePermissionGrants"]


class RolePermissionGrants(BaseModel):
read: Optional[bool] = None

write: Optional[bool] = None
13 changes: 13 additions & 0 deletions src/cloudflare/types/accounts/role_permission_grants_param.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing_extensions import TypedDict

__all__ = ["RolePermissionGrantsParam"]


class RolePermissionGrantsParam(TypedDict, total=False):
read: bool

write: bool
Loading

0 comments on commit ddd493a

Please sign in to comment.