Skip to content

Commit ca22fd9

Browse files
chore: retrigger Stainless codegen for projects resource
1 parent 48ce3f0 commit ca22fd9

File tree

18 files changed

+1817
-2
lines changed

18 files changed

+1817
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 104
1+
configured_endpoints: 111
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-49a1a92e00d1eb87e91e8527275cb0705fce2edea30e70fea745f134dd451fbd.yml
33
openapi_spec_hash: 3aa6ab6939790f538332054162fbdedc
4-
config_hash: 16e4457a0bb26e98a335a1c2a572290a
4+
config_hash: 9818dd634f87b677410eefd013d7a179

api.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,35 @@ Methods:
341341
- <code title="delete /credentials/{id_or_name}">client.credentials.<a href="./src/kernel/resources/credentials.py">delete</a>(id_or_name) -> None</code>
342342
- <code title="get /credentials/{id_or_name}/totp-code">client.credentials.<a href="./src/kernel/resources/credentials.py">totp_code</a>(id_or_name) -> <a href="./src/kernel/types/credential_totp_code_response.py">CredentialTotpCodeResponse</a></code>
343343

344+
# Projects
345+
346+
Types:
347+
348+
```python
349+
from kernel.types import CreateProjectRequest, Project, UpdateProjectRequest
350+
```
351+
352+
Methods:
353+
354+
- <code title="post /projects">client.projects.<a href="./src/kernel/resources/projects/projects.py">create</a>(\*\*<a href="src/kernel/types/project_create_params.py">params</a>) -> <a href="./src/kernel/types/project.py">Project</a></code>
355+
- <code title="get /projects/{id}">client.projects.<a href="./src/kernel/resources/projects/projects.py">retrieve</a>(id) -> <a href="./src/kernel/types/project.py">Project</a></code>
356+
- <code title="patch /projects/{id}">client.projects.<a href="./src/kernel/resources/projects/projects.py">update</a>(id, \*\*<a href="src/kernel/types/project_update_params.py">params</a>) -> <a href="./src/kernel/types/project.py">Project</a></code>
357+
- <code title="get /projects">client.projects.<a href="./src/kernel/resources/projects/projects.py">list</a>(\*\*<a href="src/kernel/types/project_list_params.py">params</a>) -> <a href="./src/kernel/types/project.py">SyncOffsetPagination[Project]</a></code>
358+
- <code title="delete /projects/{id}">client.projects.<a href="./src/kernel/resources/projects/projects.py">delete</a>(id) -> None</code>
359+
360+
## Limits
361+
362+
Types:
363+
364+
```python
365+
from kernel.types.projects import ProjectLimits, UpdateProjectLimitsRequest
366+
```
367+
368+
Methods:
369+
370+
- <code title="get /projects/{id}/limits">client.projects.limits.<a href="./src/kernel/resources/projects/limits.py">retrieve</a>(id) -> <a href="./src/kernel/types/projects/project_limits.py">ProjectLimits</a></code>
371+
- <code title="patch /projects/{id}/limits">client.projects.limits.<a href="./src/kernel/resources/projects/limits.py">update</a>(id, \*\*<a href="src/kernel/types/projects/limit_update_params.py">params</a>) -> <a href="./src/kernel/types/projects/project_limits.py">ProjectLimits</a></code>
372+
344373
# CredentialProviders
345374

346375
Types:

src/kernel/_client.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
proxies,
3838
browsers,
3939
profiles,
40+
projects,
4041
extensions,
4142
credentials,
4243
deployments,
@@ -54,6 +55,7 @@
5455
from .resources.invocations import InvocationsResource, AsyncInvocationsResource
5556
from .resources.browser_pools import BrowserPoolsResource, AsyncBrowserPoolsResource
5657
from .resources.browsers.browsers import BrowsersResource, AsyncBrowsersResource
58+
from .resources.projects.projects import ProjectsResource, AsyncProjectsResource
5759
from .resources.credential_providers import CredentialProvidersResource, AsyncCredentialProvidersResource
5860

5961
__all__ = [
@@ -222,6 +224,13 @@ def credentials(self) -> CredentialsResource:
222224

223225
return CredentialsResource(self)
224226

227+
@cached_property
228+
def projects(self) -> ProjectsResource:
229+
"""Create and manage projects for resource isolation within an organization."""
230+
from .resources.projects import ProjectsResource
231+
232+
return ProjectsResource(self)
233+
225234
@cached_property
226235
def credential_providers(self) -> CredentialProvidersResource:
227236
"""Configure external credential providers like 1Password."""
@@ -492,6 +501,13 @@ def credentials(self) -> AsyncCredentialsResource:
492501

493502
return AsyncCredentialsResource(self)
494503

504+
@cached_property
505+
def projects(self) -> AsyncProjectsResource:
506+
"""Create and manage projects for resource isolation within an organization."""
507+
from .resources.projects import AsyncProjectsResource
508+
509+
return AsyncProjectsResource(self)
510+
495511
@cached_property
496512
def credential_providers(self) -> AsyncCredentialProvidersResource:
497513
"""Configure external credential providers like 1Password."""
@@ -689,6 +705,13 @@ def credentials(self) -> credentials.CredentialsResourceWithRawResponse:
689705

690706
return CredentialsResourceWithRawResponse(self._client.credentials)
691707

708+
@cached_property
709+
def projects(self) -> projects.ProjectsResourceWithRawResponse:
710+
"""Create and manage projects for resource isolation within an organization."""
711+
from .resources.projects import ProjectsResourceWithRawResponse
712+
713+
return ProjectsResourceWithRawResponse(self._client.projects)
714+
692715
@cached_property
693716
def credential_providers(self) -> credential_providers.CredentialProvidersResourceWithRawResponse:
694717
"""Configure external credential providers like 1Password."""
@@ -772,6 +795,13 @@ def credentials(self) -> credentials.AsyncCredentialsResourceWithRawResponse:
772795

773796
return AsyncCredentialsResourceWithRawResponse(self._client.credentials)
774797

798+
@cached_property
799+
def projects(self) -> projects.AsyncProjectsResourceWithRawResponse:
800+
"""Create and manage projects for resource isolation within an organization."""
801+
from .resources.projects import AsyncProjectsResourceWithRawResponse
802+
803+
return AsyncProjectsResourceWithRawResponse(self._client.projects)
804+
775805
@cached_property
776806
def credential_providers(self) -> credential_providers.AsyncCredentialProvidersResourceWithRawResponse:
777807
"""Configure external credential providers like 1Password."""
@@ -855,6 +885,13 @@ def credentials(self) -> credentials.CredentialsResourceWithStreamingResponse:
855885

856886
return CredentialsResourceWithStreamingResponse(self._client.credentials)
857887

888+
@cached_property
889+
def projects(self) -> projects.ProjectsResourceWithStreamingResponse:
890+
"""Create and manage projects for resource isolation within an organization."""
891+
from .resources.projects import ProjectsResourceWithStreamingResponse
892+
893+
return ProjectsResourceWithStreamingResponse(self._client.projects)
894+
858895
@cached_property
859896
def credential_providers(self) -> credential_providers.CredentialProvidersResourceWithStreamingResponse:
860897
"""Configure external credential providers like 1Password."""
@@ -938,6 +975,13 @@ def credentials(self) -> credentials.AsyncCredentialsResourceWithStreamingRespon
938975

939976
return AsyncCredentialsResourceWithStreamingResponse(self._client.credentials)
940977

978+
@cached_property
979+
def projects(self) -> projects.AsyncProjectsResourceWithStreamingResponse:
980+
"""Create and manage projects for resource isolation within an organization."""
981+
from .resources.projects import AsyncProjectsResourceWithStreamingResponse
982+
983+
return AsyncProjectsResourceWithStreamingResponse(self._client.projects)
984+
941985
@cached_property
942986
def credential_providers(self) -> credential_providers.AsyncCredentialProvidersResourceWithStreamingResponse:
943987
"""Configure external credential providers like 1Password."""

src/kernel/resources/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
ProfilesResourceWithStreamingResponse,
4141
AsyncProfilesResourceWithStreamingResponse,
4242
)
43+
from .projects import (
44+
ProjectsResource,
45+
AsyncProjectsResource,
46+
ProjectsResourceWithRawResponse,
47+
AsyncProjectsResourceWithRawResponse,
48+
ProjectsResourceWithStreamingResponse,
49+
AsyncProjectsResourceWithStreamingResponse,
50+
)
4351
from .extensions import (
4452
ExtensionsResource,
4553
AsyncExtensionsResource,
@@ -150,6 +158,12 @@
150158
"AsyncCredentialsResourceWithRawResponse",
151159
"CredentialsResourceWithStreamingResponse",
152160
"AsyncCredentialsResourceWithStreamingResponse",
161+
"ProjectsResource",
162+
"AsyncProjectsResource",
163+
"ProjectsResourceWithRawResponse",
164+
"AsyncProjectsResourceWithRawResponse",
165+
"ProjectsResourceWithStreamingResponse",
166+
"AsyncProjectsResourceWithStreamingResponse",
153167
"CredentialProvidersResource",
154168
"AsyncCredentialProvidersResource",
155169
"CredentialProvidersResourceWithRawResponse",
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .limits import (
4+
LimitsResource,
5+
AsyncLimitsResource,
6+
LimitsResourceWithRawResponse,
7+
AsyncLimitsResourceWithRawResponse,
8+
LimitsResourceWithStreamingResponse,
9+
AsyncLimitsResourceWithStreamingResponse,
10+
)
11+
from .projects import (
12+
ProjectsResource,
13+
AsyncProjectsResource,
14+
ProjectsResourceWithRawResponse,
15+
AsyncProjectsResourceWithRawResponse,
16+
ProjectsResourceWithStreamingResponse,
17+
AsyncProjectsResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"LimitsResource",
22+
"AsyncLimitsResource",
23+
"LimitsResourceWithRawResponse",
24+
"AsyncLimitsResourceWithRawResponse",
25+
"LimitsResourceWithStreamingResponse",
26+
"AsyncLimitsResourceWithStreamingResponse",
27+
"ProjectsResource",
28+
"AsyncProjectsResource",
29+
"ProjectsResourceWithRawResponse",
30+
"AsyncProjectsResourceWithRawResponse",
31+
"ProjectsResourceWithStreamingResponse",
32+
"AsyncProjectsResourceWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)