Skip to content

Commit 9e0a178

Browse files
feat(api): add exclude_team_ids parameter to organization list members
1 parent 8871d0b commit 9e0a178

3 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: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-78e7f700a9e175f54dceb305eeaa99080ba0fe2ff97085a69da414cce0fed656.yml
3-
openapi_spec_hash: 115ea7b9ce81b3d4c8d18ac237088480
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-7a4f235379c078f7947364104260063f605613df775ccb0fe8d3710810589bc5.yml
3+
openapi_spec_hash: 2afba992f3e6ed516002fb391d54d7b4
44
config_hash: 832c76d9cd88fc815f872ad64998911a

src/gitpod/types/organization_list_members_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ class Filter(TypedDict, total=False):
4444
groups
4545
"""
4646

47+
exclude_members_in_any_team: Annotated[bool, PropertyInfo(alias="excludeMembersInAnyTeam")]
48+
"""
49+
exclude_members_in_any_team excludes members who belong to any team in the
50+
organization
51+
"""
52+
4753
roles: List[OrganizationRole]
4854
"""roles filters members by their organization role"""
4955

tests/api_resources/test_organizations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ def test_method_list_members_with_all_params(self, client: Gitpod) -> None:
268268
page_size=0,
269269
filter={
270270
"exclude_group_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
271+
"exclude_members_in_any_team": True,
271272
"roles": ["ORGANIZATION_ROLE_UNSPECIFIED"],
272273
"search": "search",
273274
"statuses": ["USER_STATUS_UNSPECIFIED"],
@@ -607,6 +608,7 @@ async def test_method_list_members_with_all_params(self, async_client: AsyncGitp
607608
page_size=0,
608609
filter={
609610
"exclude_group_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
611+
"exclude_members_in_any_team": True,
610612
"roles": ["ORGANIZATION_ROLE_UNSPECIFIED"],
611613
"search": "search",
612614
"statuses": ["USER_STATUS_UNSPECIFIED"],

0 commit comments

Comments
 (0)