Skip to content

Commit e1ed935

Browse files
feat(api): add derivedFromOrgRole field to RoleAssignment
1 parent 09c2210 commit e1ed935

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 172
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-e77dd932e4cfde041f712e0e130d6075754e2f5893bca0a03ee5cd0734b35089.yml
3-
openapi_spec_hash: faa844cfe771c3762e3a4d79b476cebf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-92cecb570bf9966e9dc5cff1eedd2981a57121b013aa3b79d6b955d011e72e7e.yml
3+
openapi_spec_hash: 2adc05896eb8bdc68ca146d1a84666d1
44
config_hash: ad1db65b32248aecda41b64586aac9ce

src/gitpod/types/groups/role_assignment.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ class RoleAssignment(BaseModel):
1717
id: Optional[str] = None
1818
"""Unique identifier for the role assignment"""
1919

20+
derived_from_org_role: Optional[ResourceRole] = FieldInfo(alias="derivedFromOrgRole", default=None)
21+
"""
22+
The org-level role that created this assignment, if any.
23+
RESOURCE_ROLE_UNSPECIFIED means this is a direct share (manually created).
24+
Non-zero (e.g., ORG_PROJECTS_ADMIN, ORG_RUNNERS_ADMIN) means this assignment was
25+
derived from an org-level role.
26+
"""
27+
2028
group_id: Optional[str] = FieldInfo(alias="groupId", default=None)
2129
"""Group identifier"""
2230

0 commit comments

Comments
 (0)