Skip to content

Commit 29406ce

Browse files
chore(internal): regenerate SDK with no functional changes
1 parent 63ac31a commit 29406ce

File tree

5 files changed

+85
-17
lines changed

5 files changed

+85
-17
lines changed

.stats.yml

Lines changed: 3 additions & 3 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-a43265810afa7f7c50a08fec12012d5109ecad109105f5c6cf4205f9114ad5fc.yml
3-
openapi_spec_hash: 44434ed0762787b31c9ecec5f670fae5
4-
config_hash: 63777babba88b7fa1dbf28164294eaed
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-2414772123f92b697fd3e4c661c0719539aa93dd7fcd50dad734b279fec80ced.yml
3+
openapi_spec_hash: 44556e215acc58a53f8f18abd00ad4a7
4+
config_hash: 8934bf27653a3fd17f4e3d6a0f8cc7b8

src/gitpod/resources/groups/groups.py

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ def create(
153153
def retrieve(
154154
self,
155155
*,
156+
id: str | Omit = omit,
156157
group_id: str | Omit = omit,
158+
name: str | Omit = omit,
157159
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
158160
# The extra values given here take precedence over values defined on the client or passed to this method.
159161
extra_headers: Headers | None = None,
@@ -162,7 +164,7 @@ def retrieve(
162164
timeout: float | httpx.Timeout | None | NotGiven = not_given,
163165
) -> GroupRetrieveResponse:
164166
"""
165-
Gets information about a specific group.
167+
Gets information about a specific group by ID or name.
166168
167169
Use this method to:
168170
@@ -172,19 +174,25 @@ def retrieve(
172174
173175
### Examples
174176
175-
- Get group details:
177+
- Get group by ID:
176178
177-
Retrieves information about a specific group.
179+
Retrieves information about a specific group by its unique ID.
178180
179181
```yaml
180-
groupId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
182+
id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
181183
```
182184
183185
### Authorization
184186
185187
All organization members can view group information (transparency model).
186188
187189
Args:
190+
id: id looks up the group by its unique ID.
191+
192+
group_id: Deprecated: use the group oneof instead.
193+
194+
name: name looks up the group by its name within the caller's organization.
195+
188196
extra_headers: Send extra headers
189197
190198
extra_query: Add additional query parameters to the request
@@ -195,7 +203,14 @@ def retrieve(
195203
"""
196204
return self._post(
197205
"/gitpod.v1.GroupService/GetGroup",
198-
body=maybe_transform({"group_id": group_id}, group_retrieve_params.GroupRetrieveParams),
206+
body=maybe_transform(
207+
{
208+
"id": id,
209+
"group_id": group_id,
210+
"name": name,
211+
},
212+
group_retrieve_params.GroupRetrieveParams,
213+
),
199214
options=make_request_options(
200215
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
201216
),
@@ -506,7 +521,9 @@ async def create(
506521
async def retrieve(
507522
self,
508523
*,
524+
id: str | Omit = omit,
509525
group_id: str | Omit = omit,
526+
name: str | Omit = omit,
510527
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
511528
# The extra values given here take precedence over values defined on the client or passed to this method.
512529
extra_headers: Headers | None = None,
@@ -515,7 +532,7 @@ async def retrieve(
515532
timeout: float | httpx.Timeout | None | NotGiven = not_given,
516533
) -> GroupRetrieveResponse:
517534
"""
518-
Gets information about a specific group.
535+
Gets information about a specific group by ID or name.
519536
520537
Use this method to:
521538
@@ -525,19 +542,25 @@ async def retrieve(
525542
526543
### Examples
527544
528-
- Get group details:
545+
- Get group by ID:
529546
530-
Retrieves information about a specific group.
547+
Retrieves information about a specific group by its unique ID.
531548
532549
```yaml
533-
groupId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
550+
id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
534551
```
535552
536553
### Authorization
537554
538555
All organization members can view group information (transparency model).
539556
540557
Args:
558+
id: id looks up the group by its unique ID.
559+
560+
group_id: Deprecated: use the group oneof instead.
561+
562+
name: name looks up the group by its name within the caller's organization.
563+
541564
extra_headers: Send extra headers
542565
543566
extra_query: Add additional query parameters to the request
@@ -548,7 +571,14 @@ async def retrieve(
548571
"""
549572
return await self._post(
550573
"/gitpod.v1.GroupService/GetGroup",
551-
body=await async_maybe_transform({"group_id": group_id}, group_retrieve_params.GroupRetrieveParams),
574+
body=await async_maybe_transform(
575+
{
576+
"id": id,
577+
"group_id": group_id,
578+
"name": name,
579+
},
580+
group_retrieve_params.GroupRetrieveParams,
581+
),
552582
options=make_request_options(
553583
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
554584
),

src/gitpod/types/group_list_params.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
from __future__ import annotations
44

5+
from typing import Optional
56
from typing_extensions import Annotated, TypedDict
67

8+
from .._types import SequenceNotStr
79
from .._utils import PropertyInfo
810

911
__all__ = ["GroupListParams", "Filter", "Pagination"]
@@ -24,9 +26,24 @@ class GroupListParams(TypedDict, total=False):
2426
class Filter(TypedDict, total=False):
2527
"""filter contains options for filtering the list of groups."""
2628

29+
direct_share: Annotated[Optional[bool], PropertyInfo(alias="directShare")]
30+
"""
31+
direct_share filters groups by their direct_share flag. When set, only groups
32+
matching this value are returned.
33+
"""
34+
35+
group_ids: Annotated[SequenceNotStr[str], PropertyInfo(alias="groupIds")]
36+
"""group_ids filters the response to only groups with the specified IDs"""
37+
2738
search: str
2839
"""search performs case-insensitive search across group name, description, and ID"""
2940

41+
system_managed: Annotated[Optional[bool], PropertyInfo(alias="systemManaged")]
42+
"""
43+
system_managed filters groups by their system_managed flag. When set, only
44+
groups matching this value are returned.
45+
"""
46+
3047

3148
class Pagination(TypedDict, total=False):
3249
"""pagination contains the pagination options for listing groups"""

src/gitpod/types/group_retrieve_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@
1010

1111

1212
class GroupRetrieveParams(TypedDict, total=False):
13+
id: str
14+
"""id looks up the group by its unique ID."""
15+
1316
group_id: Annotated[str, PropertyInfo(alias="groupId")]
17+
"""Deprecated: use the group oneof instead."""
18+
19+
name: str
20+
"""name looks up the group by its name within the caller's organization."""

tests/api_resources/test_groups.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ def test_method_retrieve(self, client: Gitpod) -> None:
7171
@parametrize
7272
def test_method_retrieve_with_all_params(self, client: Gitpod) -> None:
7373
group = client.groups.retrieve(
74-
group_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
74+
id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
75+
group_id="groupId",
76+
name="xxx",
7577
)
7678
assert_matches_type(GroupRetrieveResponse, group, path=["response"])
7779

@@ -147,7 +149,12 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
147149
group = client.groups.list(
148150
token="token",
149151
page_size=0,
150-
filter={"search": "search"},
152+
filter={
153+
"direct_share": True,
154+
"group_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
155+
"search": "search",
156+
"system_managed": True,
157+
},
151158
pagination={
152159
"token": "token",
153160
"page_size": 20,
@@ -267,7 +274,9 @@ async def test_method_retrieve(self, async_client: AsyncGitpod) -> None:
267274
@parametrize
268275
async def test_method_retrieve_with_all_params(self, async_client: AsyncGitpod) -> None:
269276
group = await async_client.groups.retrieve(
270-
group_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
277+
id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
278+
group_id="groupId",
279+
name="xxx",
271280
)
272281
assert_matches_type(GroupRetrieveResponse, group, path=["response"])
273282

@@ -343,7 +352,12 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
343352
group = await async_client.groups.list(
344353
token="token",
345354
page_size=0,
346-
filter={"search": "search"},
355+
filter={
356+
"direct_share": True,
357+
"group_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
358+
"search": "search",
359+
"system_managed": True,
360+
},
347361
pagination={
348362
"token": "token",
349363
"page_size": 20,

0 commit comments

Comments
 (0)