Skip to content

Commit be8428a

Browse files
feat(api): RBAC APIs
1 parent 232034f commit be8428a

File tree

241 files changed

+15326
-467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+15326
-467
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-ca9a49ac7fbb63f55611fd7cd48a22a3ff8b38a797125c8513e891d9b7345550.yml
3-
openapi_spec_hash: fd6ffbdfaefcc555e61ca1c565e05214
4-
config_hash: 7fb76543ceafd4a116473f647f8d63b1
1+
configured_endpoints: 159
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-d62ef4b9187c1f3d36f428abc4b31d8a09ffd36e93d39b8136c60c8f463c838e.yml
3+
openapi_spec_hash: d7f01b6f24e88eb46d744ecd28061f26
4+
config_hash: 26e4a10dfc6ec809322e60d889d15414

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It is generated with [Stainless](https://www.stainless.com/).
1111

1212
## Documentation
1313

14-
The REST API documentation can be found on [docs.ona.com](https://docs.ona.com). The full API of this library can be found in [api.md](api.md).
14+
The REST API documentation can be found on [docs.gitpod.io](https://docs.gitpod.io). The full API of this library can be found in [api.md](api.md).
1515

1616
## Installation
1717

@@ -178,10 +178,10 @@ from gitpod import Gitpod
178178

179179
client = Gitpod()
180180

181-
page = client.accounts.list_login_providers(
182-
filter={},
181+
page = client.accounts.list_joinable_organizations(
182+
pagination={},
183183
)
184-
print(page.login_providers)
184+
print(page.joinable_organizations)
185185
```
186186

187187
## Handling errors

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ or products provided by Gitpod, please follow the respective company's security
2020

2121
### Gitpod Terms and Policies
2222

23-
Please contact dev-feedback@ona.com for any questions or concerns regarding the security of our services.
23+
Please contact dev-feedback@gitpod.com for any questions or concerns regarding the security of our services.
2424

2525
---
2626

api.md

Lines changed: 177 additions & 9 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "The official Python library for the gitpod API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
77
authors = [
8-
{ name = "Gitpod", email = "dev-feedback@ona.com" },
8+
{ name = "Gitpod", email = "dev-feedback@gitpod.com" },
99
]
1010

1111
dependencies = [

src/gitpod/_client.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
)
2222
from ._utils import is_given, get_async_library
2323
from ._version import __version__
24-
from .resources import usage, events, groups, editors, secrets, accounts, gateways, identity
24+
from .resources import usage, agents, errors, events, editors, secrets, accounts, gateways, identity, prebuilds
2525
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
2626
from ._exceptions import GitpodError, APIStatusError
2727
from ._base_client import (
@@ -30,6 +30,7 @@
3030
AsyncAPIClient,
3131
)
3232
from .resources.users import users
33+
from .resources.groups import groups
3334
from .resources.runners import runners
3435
from .resources.projects import projects
3536
from .resources.environments import environments
@@ -40,13 +41,16 @@
4041

4142
class Gitpod(SyncAPIClient):
4243
accounts: accounts.AccountsResource
44+
agents: agents.AgentsResource
4345
editors: editors.EditorsResource
4446
environments: environments.EnvironmentsResource
47+
errors: errors.ErrorsResource
4548
events: events.EventsResource
4649
gateways: gateways.GatewaysResource
4750
groups: groups.GroupsResource
4851
identity: identity.IdentityResource
4952
organizations: organizations.OrganizationsResource
53+
prebuilds: prebuilds.PrebuildsResource
5054
projects: projects.ProjectsResource
5155
runners: runners.RunnersResource
5256
secrets: secrets.SecretsResource
@@ -110,13 +114,16 @@ def __init__(
110114
)
111115

112116
self.accounts = accounts.AccountsResource(self)
117+
self.agents = agents.AgentsResource(self)
113118
self.editors = editors.EditorsResource(self)
114119
self.environments = environments.EnvironmentsResource(self)
120+
self.errors = errors.ErrorsResource(self)
115121
self.events = events.EventsResource(self)
116122
self.gateways = gateways.GatewaysResource(self)
117123
self.groups = groups.GroupsResource(self)
118124
self.identity = identity.IdentityResource(self)
119125
self.organizations = organizations.OrganizationsResource(self)
126+
self.prebuilds = prebuilds.PrebuildsResource(self)
120127
self.projects = projects.ProjectsResource(self)
121128
self.runners = runners.RunnersResource(self)
122129
self.secrets = secrets.SecretsResource(self)
@@ -232,13 +239,16 @@ def _make_status_error(
232239

233240
class AsyncGitpod(AsyncAPIClient):
234241
accounts: accounts.AsyncAccountsResource
242+
agents: agents.AsyncAgentsResource
235243
editors: editors.AsyncEditorsResource
236244
environments: environments.AsyncEnvironmentsResource
245+
errors: errors.AsyncErrorsResource
237246
events: events.AsyncEventsResource
238247
gateways: gateways.AsyncGatewaysResource
239248
groups: groups.AsyncGroupsResource
240249
identity: identity.AsyncIdentityResource
241250
organizations: organizations.AsyncOrganizationsResource
251+
prebuilds: prebuilds.AsyncPrebuildsResource
242252
projects: projects.AsyncProjectsResource
243253
runners: runners.AsyncRunnersResource
244254
secrets: secrets.AsyncSecretsResource
@@ -302,13 +312,16 @@ def __init__(
302312
)
303313

304314
self.accounts = accounts.AsyncAccountsResource(self)
315+
self.agents = agents.AsyncAgentsResource(self)
305316
self.editors = editors.AsyncEditorsResource(self)
306317
self.environments = environments.AsyncEnvironmentsResource(self)
318+
self.errors = errors.AsyncErrorsResource(self)
307319
self.events = events.AsyncEventsResource(self)
308320
self.gateways = gateways.AsyncGatewaysResource(self)
309321
self.groups = groups.AsyncGroupsResource(self)
310322
self.identity = identity.AsyncIdentityResource(self)
311323
self.organizations = organizations.AsyncOrganizationsResource(self)
324+
self.prebuilds = prebuilds.AsyncPrebuildsResource(self)
312325
self.projects = projects.AsyncProjectsResource(self)
313326
self.runners = runners.AsyncRunnersResource(self)
314327
self.secrets = secrets.AsyncSecretsResource(self)
@@ -425,13 +438,16 @@ def _make_status_error(
425438
class GitpodWithRawResponse:
426439
def __init__(self, client: Gitpod) -> None:
427440
self.accounts = accounts.AccountsResourceWithRawResponse(client.accounts)
441+
self.agents = agents.AgentsResourceWithRawResponse(client.agents)
428442
self.editors = editors.EditorsResourceWithRawResponse(client.editors)
429443
self.environments = environments.EnvironmentsResourceWithRawResponse(client.environments)
444+
self.errors = errors.ErrorsResourceWithRawResponse(client.errors)
430445
self.events = events.EventsResourceWithRawResponse(client.events)
431446
self.gateways = gateways.GatewaysResourceWithRawResponse(client.gateways)
432447
self.groups = groups.GroupsResourceWithRawResponse(client.groups)
433448
self.identity = identity.IdentityResourceWithRawResponse(client.identity)
434449
self.organizations = organizations.OrganizationsResourceWithRawResponse(client.organizations)
450+
self.prebuilds = prebuilds.PrebuildsResourceWithRawResponse(client.prebuilds)
435451
self.projects = projects.ProjectsResourceWithRawResponse(client.projects)
436452
self.runners = runners.RunnersResourceWithRawResponse(client.runners)
437453
self.secrets = secrets.SecretsResourceWithRawResponse(client.secrets)
@@ -442,13 +458,16 @@ def __init__(self, client: Gitpod) -> None:
442458
class AsyncGitpodWithRawResponse:
443459
def __init__(self, client: AsyncGitpod) -> None:
444460
self.accounts = accounts.AsyncAccountsResourceWithRawResponse(client.accounts)
461+
self.agents = agents.AsyncAgentsResourceWithRawResponse(client.agents)
445462
self.editors = editors.AsyncEditorsResourceWithRawResponse(client.editors)
446463
self.environments = environments.AsyncEnvironmentsResourceWithRawResponse(client.environments)
464+
self.errors = errors.AsyncErrorsResourceWithRawResponse(client.errors)
447465
self.events = events.AsyncEventsResourceWithRawResponse(client.events)
448466
self.gateways = gateways.AsyncGatewaysResourceWithRawResponse(client.gateways)
449467
self.groups = groups.AsyncGroupsResourceWithRawResponse(client.groups)
450468
self.identity = identity.AsyncIdentityResourceWithRawResponse(client.identity)
451469
self.organizations = organizations.AsyncOrganizationsResourceWithRawResponse(client.organizations)
470+
self.prebuilds = prebuilds.AsyncPrebuildsResourceWithRawResponse(client.prebuilds)
452471
self.projects = projects.AsyncProjectsResourceWithRawResponse(client.projects)
453472
self.runners = runners.AsyncRunnersResourceWithRawResponse(client.runners)
454473
self.secrets = secrets.AsyncSecretsResourceWithRawResponse(client.secrets)
@@ -459,13 +478,16 @@ def __init__(self, client: AsyncGitpod) -> None:
459478
class GitpodWithStreamedResponse:
460479
def __init__(self, client: Gitpod) -> None:
461480
self.accounts = accounts.AccountsResourceWithStreamingResponse(client.accounts)
481+
self.agents = agents.AgentsResourceWithStreamingResponse(client.agents)
462482
self.editors = editors.EditorsResourceWithStreamingResponse(client.editors)
463483
self.environments = environments.EnvironmentsResourceWithStreamingResponse(client.environments)
484+
self.errors = errors.ErrorsResourceWithStreamingResponse(client.errors)
464485
self.events = events.EventsResourceWithStreamingResponse(client.events)
465486
self.gateways = gateways.GatewaysResourceWithStreamingResponse(client.gateways)
466487
self.groups = groups.GroupsResourceWithStreamingResponse(client.groups)
467488
self.identity = identity.IdentityResourceWithStreamingResponse(client.identity)
468489
self.organizations = organizations.OrganizationsResourceWithStreamingResponse(client.organizations)
490+
self.prebuilds = prebuilds.PrebuildsResourceWithStreamingResponse(client.prebuilds)
469491
self.projects = projects.ProjectsResourceWithStreamingResponse(client.projects)
470492
self.runners = runners.RunnersResourceWithStreamingResponse(client.runners)
471493
self.secrets = secrets.SecretsResourceWithStreamingResponse(client.secrets)
@@ -476,13 +498,16 @@ def __init__(self, client: Gitpod) -> None:
476498
class AsyncGitpodWithStreamedResponse:
477499
def __init__(self, client: AsyncGitpod) -> None:
478500
self.accounts = accounts.AsyncAccountsResourceWithStreamingResponse(client.accounts)
501+
self.agents = agents.AsyncAgentsResourceWithStreamingResponse(client.agents)
479502
self.editors = editors.AsyncEditorsResourceWithStreamingResponse(client.editors)
480503
self.environments = environments.AsyncEnvironmentsResourceWithStreamingResponse(client.environments)
504+
self.errors = errors.AsyncErrorsResourceWithStreamingResponse(client.errors)
481505
self.events = events.AsyncEventsResourceWithStreamingResponse(client.events)
482506
self.gateways = gateways.AsyncGatewaysResourceWithStreamingResponse(client.gateways)
483507
self.groups = groups.AsyncGroupsResourceWithStreamingResponse(client.groups)
484508
self.identity = identity.AsyncIdentityResourceWithStreamingResponse(client.identity)
485509
self.organizations = organizations.AsyncOrganizationsResourceWithStreamingResponse(client.organizations)
510+
self.prebuilds = prebuilds.AsyncPrebuildsResourceWithStreamingResponse(client.prebuilds)
486511
self.projects = projects.AsyncProjectsResourceWithStreamingResponse(client.projects)
487512
self.runners = runners.AsyncRunnersResourceWithStreamingResponse(client.runners)
488513
self.secrets = secrets.AsyncSecretsResourceWithStreamingResponse(client.secrets)

0 commit comments

Comments
 (0)