@@ -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 ),
0 commit comments