Skip to content

Commit 0bc40fb

Browse files
lol
1 parent 5f6892d commit 0bc40fb

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/workos/types/authorization/resource.py renamed to src/workos/types/authorization/authorization_resource.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
from workos.types.workos_model import WorkOSModel
44

55

6-
class Resource(WorkOSModel):
7-
"""Representation of a WorkOS Authorization Resource."""
6+
class AuthorizationResource(WorkOSModel):
87

98
object: Literal["authorization_resource"]
109
id: str
@@ -14,7 +13,5 @@ class Resource(WorkOSModel):
1413
resource_type_slug: str
1514
organization_id: str
1615
parent_resource_id: Optional[str] = None
17-
meta: Optional[Mapping[str, Any]] = None
18-
environment_id: Optional[str] = None
1916
created_at: str
2017
updated_at: str

src/workos/types/authorization/role_assignment.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,18 @@
44

55

66
class RoleAssignmentRole(WorkOSModel):
7-
"""The role associated with a role assignment."""
87

98
slug: str
109

1110

1211
class RoleAssignmentResource(WorkOSModel):
13-
"""The resource associated with a role assignment."""
1412

1513
id: str
1614
external_id: str
1715
resource_type_slug: str
1816

1917

2018
class RoleAssignment(WorkOSModel):
21-
"""Representation of a WorkOS Authorization Role Assignment."""
2219

2320
object: Literal["role_assignment"]
2421
id: str

src/workos/utils/_base_http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _prepare_request(
135135
params Optional[dict]: Query params or body payload to be added to the request
136136
headers Optional[dict]: Custom headers to be added to the request
137137
token Optional[str]: Bearer token
138-
force_include_body (bool): If True, allows sending a body with DELETE requests
138+
force_include_body (bool): If True, allows sending a body in a bodyless request (used for DELETE requests)
139139
140140
Returns:
141141
dict: Response from WorkOS

0 commit comments

Comments
 (0)