Skip to content

Commit 008ae2b

Browse files
feat(api): add exclude_group_id filter to organization list members
1 parent 03d8e1f commit 008ae2b

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.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-66128ab1937fbbb10b33b62b505e301ca89640489a59f6c6ac03c58c3f67917e.yml
3-
openapi_spec_hash: a3794565b067fe9f393a0f1be04d52a3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-7a38c308f8e8c0c90f0804160e0b88d502f068508e2a198523432f8a7da988a6.yml
3+
openapi_spec_hash: 1421eed0586bb7086b33e3506fd57c10
44
config_hash: 2daf822ad8d9d03f0a72a8bf8adc92a1

src/gitpod/types/organization_list_members_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ class OrganizationListMembersParams(TypedDict, total=False):
3737

3838

3939
class Filter(TypedDict, total=False):
40+
exclude_group_ids: Annotated[SequenceNotStr[str], PropertyInfo(alias="excludeGroupIds")]
41+
"""
42+
exclude_group_ids excludes members who are already in any of the specified
43+
groups
44+
"""
45+
4046
roles: List[OrganizationRole]
4147
"""roles filters members by their organization role"""
4248

tests/api_resources/test_organizations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def test_method_list_members_with_all_params(self, client: Gitpod) -> None:
267267
token="token",
268268
page_size=0,
269269
filter={
270+
"exclude_group_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
270271
"roles": ["ORGANIZATION_ROLE_UNSPECIFIED"],
271272
"search": "search",
272273
"statuses": ["USER_STATUS_UNSPECIFIED"],
@@ -605,6 +606,7 @@ async def test_method_list_members_with_all_params(self, async_client: AsyncGitp
605606
token="token",
606607
page_size=0,
607608
filter={
609+
"exclude_group_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
608610
"roles": ["ORGANIZATION_ROLE_UNSPECIFIED"],
609611
"search": "search",
610612
"statuses": ["USER_STATUS_UNSPECIFIED"],

0 commit comments

Comments
 (0)