Skip to content

Commit b5ff4c6

Browse files
feat(api): resolve GET /org/projects/{id} by ID or name
1 parent a88cbff commit b5ff4c6

2 files changed

Lines changed: 8 additions & 6 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: 121
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-bccc42bb10d1afe703f0374d11f33e775522069d69a13bb2345cc566a49ba4f3.yml
3-
openapi_spec_hash: 9f00975c0e741ed84011413674313be0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-7d6d64b3998b55057f21aa5e33096cd5468f2bb2c4fda65190e9f299b50e5908.yml
3+
openapi_spec_hash: aa7d3971d38b16eff41b08cc3cbb549d
44
config_hash: 3a50aee540dce69a53bb8942f5086f5e

src/kernel/resources/projects/projects.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ def retrieve(
104104
extra_body: Body | None = None,
105105
timeout: float | httpx.Timeout | None | NotGiven = not_given,
106106
) -> Project:
107-
"""
108-
Get a project by ID.
107+
"""Get a project by its ID or by its name.
108+
109+
Names are unique within an organization.
109110
110111
Args:
111112
extra_headers: Send extra headers
@@ -331,8 +332,9 @@ async def retrieve(
331332
extra_body: Body | None = None,
332333
timeout: float | httpx.Timeout | None | NotGiven = not_given,
333334
) -> Project:
334-
"""
335-
Get a project by ID.
335+
"""Get a project by its ID or by its name.
336+
337+
Names are unique within an organization.
336338
337339
Args:
338340
extra_headers: Send extra headers

0 commit comments

Comments
 (0)