Skip to content

Commit 06b6d24

Browse files
feat(api): manual updates (#18)
1 parent daa1308 commit 06b6d24

File tree

16 files changed

+110
-15
lines changed

16 files changed

+110
-15
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 106
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-da4c36c6b1d973f481abb8eefdeb085d88eaf37eeaba30d276cb3daa405b6f0c.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-36f9d46890bf3667f5a6529bdb156fe1560834ad8187c4271aa0b0024de1adb5.yml

src/gitpod/resources/environments/environments.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ def list(
248248
token: str | NotGiven = NOT_GIVEN,
249249
page_size: int | NotGiven = NOT_GIVEN,
250250
filter: environment_list_params.Filter | NotGiven = NOT_GIVEN,
251-
organization_id: str | NotGiven = NOT_GIVEN,
252251
pagination: environment_list_params.Pagination | NotGiven = NOT_GIVEN,
253252
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
254253
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -261,8 +260,6 @@ def list(
261260
ListEnvironments returns a list of environments that match the query.
262261
263262
Args:
264-
organization_id: organization_id is the ID of the organization that contains the environments
265-
266263
pagination: pagination contains the pagination options for listing environments
267264
268265
extra_headers: Send extra headers
@@ -279,7 +276,6 @@ def list(
279276
body=maybe_transform(
280277
{
281278
"filter": filter,
282-
"organization_id": organization_id,
283279
"pagination": pagination,
284280
},
285281
environment_list_params.EnvironmentListParams,
@@ -739,7 +735,6 @@ def list(
739735
token: str | NotGiven = NOT_GIVEN,
740736
page_size: int | NotGiven = NOT_GIVEN,
741737
filter: environment_list_params.Filter | NotGiven = NOT_GIVEN,
742-
organization_id: str | NotGiven = NOT_GIVEN,
743738
pagination: environment_list_params.Pagination | NotGiven = NOT_GIVEN,
744739
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
745740
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -752,8 +747,6 @@ def list(
752747
ListEnvironments returns a list of environments that match the query.
753748
754749
Args:
755-
organization_id: organization_id is the ID of the organization that contains the environments
756-
757750
pagination: pagination contains the pagination options for listing environments
758751
759752
extra_headers: Send extra headers
@@ -770,7 +763,6 @@ def list(
770763
body=maybe_transform(
771764
{
772765
"filter": filter,
773-
"organization_id": organization_id,
774766
"pagination": pagination,
775767
},
776768
environment_list_params.EnvironmentListParams,

src/gitpod/resources/secrets.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def with_streaming_response(self) -> SecretsResourceWithStreamingResponse:
5656
def create(
5757
self,
5858
*,
59+
container_registry_basic_auth_host: str | NotGiven = NOT_GIVEN,
5960
environment_variable: bool | NotGiven = NOT_GIVEN,
6061
file_path: str | NotGiven = NOT_GIVEN,
6162
name: str | NotGiven = NOT_GIVEN,
@@ -72,6 +73,13 @@ def create(
7273
CreateSecret creates a new secret.
7374
7475
Args:
76+
container_registry_basic_auth_host: secret will be mounted as a docker config in the environment VM, mount will have
77+
the docker host value must be a valid registry hostname with optional port:
78+
79+
```
80+
this.matches("^[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9](:[0-9]+)?$")
81+
```
82+
7583
environment_variable: secret will be created as an Environment Variable with the same name as the
7684
secret
7785
@@ -98,6 +106,7 @@ def create(
98106
"/gitpod.v1.SecretService/CreateSecret",
99107
body=maybe_transform(
100108
{
109+
"container_registry_basic_auth_host": container_registry_basic_auth_host,
101110
"environment_variable": environment_variable,
102111
"file_path": file_path,
103112
"name": name,
@@ -297,6 +306,7 @@ def with_streaming_response(self) -> AsyncSecretsResourceWithStreamingResponse:
297306
async def create(
298307
self,
299308
*,
309+
container_registry_basic_auth_host: str | NotGiven = NOT_GIVEN,
300310
environment_variable: bool | NotGiven = NOT_GIVEN,
301311
file_path: str | NotGiven = NOT_GIVEN,
302312
name: str | NotGiven = NOT_GIVEN,
@@ -313,6 +323,13 @@ async def create(
313323
CreateSecret creates a new secret.
314324
315325
Args:
326+
container_registry_basic_auth_host: secret will be mounted as a docker config in the environment VM, mount will have
327+
the docker host value must be a valid registry hostname with optional port:
328+
329+
```
330+
this.matches("^[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9](:[0-9]+)?$")
331+
```
332+
316333
environment_variable: secret will be created as an Environment Variable with the same name as the
317334
secret
318335
@@ -339,6 +356,7 @@ async def create(
339356
"/gitpod.v1.SecretService/CreateSecret",
340357
body=await async_maybe_transform(
341358
{
359+
"container_registry_basic_auth_host": container_registry_basic_auth_host,
342360
"environment_variable": environment_variable,
343361
"file_path": file_path,
344362
"name": name,

src/gitpod/types/environment_list_params.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ class EnvironmentListParams(TypedDict, total=False):
1919

2020
filter: Filter
2121

22-
organization_id: Annotated[str, PropertyInfo(alias="organizationId")]
23-
"""organization_id is the ID of the organization that contains the environments"""
24-
2522
pagination: Pagination
2623
"""pagination contains the pagination options for listing environments"""
2724

src/gitpod/types/environment_spec.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ class Port(BaseModel):
8383

8484

8585
class Secret(BaseModel):
86+
container_registry_basic_auth_host: Optional[str] = FieldInfo(alias="containerRegistryBasicAuthHost", default=None)
87+
"""
88+
container_registry_basic_auth_host is the hostname of the container registry
89+
that supports basic auth
90+
"""
91+
8692
environment_variable: Optional[str] = FieldInfo(alias="environmentVariable", default=None)
8793

8894
file_path: Optional[str] = FieldInfo(alias="filePath", default=None)

src/gitpod/types/environment_spec_param.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ class Port(TypedDict, total=False):
9090

9191

9292
class Secret(TypedDict, total=False):
93+
container_registry_basic_auth_host: Annotated[str, PropertyInfo(alias="containerRegistryBasicAuthHost")]
94+
"""
95+
container_registry_basic_auth_host is the hostname of the container registry
96+
that supports basic auth
97+
"""
98+
9399
environment_variable: Annotated[str, PropertyInfo(alias="environmentVariable")]
94100

95101
file_path: Annotated[str, PropertyInfo(alias="filePath")]

src/gitpod/types/environments/class_list_params.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from typing_extensions import Annotated, TypedDict
77

88
from ..._utils import PropertyInfo
9+
from ..runner_kind import RunnerKind
10+
from ..runner_provider import RunnerProvider
911

1012
__all__ = ["ClassListParams", "Filter", "Pagination"]
1113

@@ -22,6 +24,14 @@ class ClassListParams(TypedDict, total=False):
2224

2325

2426
class Filter(TypedDict, total=False):
27+
can_create_environments: Annotated[Optional[bool], PropertyInfo(alias="canCreateEnvironments")]
28+
"""
29+
can_create_environments filters the response to only environment classes that
30+
can be used to create new environments by the caller. Unlike enabled, which
31+
indicates general availability, this ensures the caller only sees environment
32+
classes they are allowed to use.
33+
"""
34+
2535
enabled: Optional[bool]
2636
"""
2737
enabled filters the response to only enabled or disabled environment classes. If
@@ -31,6 +41,18 @@ class Filter(TypedDict, total=False):
3141
runner_ids: Annotated[List[str], PropertyInfo(alias="runnerIds")]
3242
"""runner_ids filters the response to only EnvironmentClasses of these Runner IDs"""
3343

44+
runner_kinds: Annotated[List[RunnerKind], PropertyInfo(alias="runnerKinds")]
45+
"""
46+
runner_kind filters the response to only environment classes from runners of
47+
these kinds.
48+
"""
49+
50+
runner_providers: Annotated[List[RunnerProvider], PropertyInfo(alias="runnerProviders")]
51+
"""
52+
runner_providers filters the response to only environment classes from runners
53+
of these providers.
54+
"""
55+
3456

3557
class Pagination(TypedDict, total=False):
3658
token: str

src/gitpod/types/projects/project_role.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
__all__ = ["ProjectRole"]
66

7-
ProjectRole: TypeAlias = Literal["PROJECT_ROLE_UNSPECIFIED", "PROJECT_ROLE_ADMIN", "PROJECT_ROLE_USER"]
7+
ProjectRole: TypeAlias = Literal[
8+
"PROJECT_ROLE_UNSPECIFIED", "PROJECT_ROLE_ADMIN", "PROJECT_ROLE_USER", "PROJECT_ROLE_EDITOR"
9+
]

src/gitpod/types/resource_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@
2323
"RESOURCE_TYPE_SERVICE_ACCOUNT",
2424
"RESOURCE_TYPE_SECRET",
2525
"RESOURCE_TYPE_SSO_CONFIG",
26+
"RESOURCE_TYPE_DOMAIN_VERIFICATION",
2627
]

src/gitpod/types/runners/configurations/environment_class_list_params.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from typing_extensions import Annotated, TypedDict
77

88
from ...._utils import PropertyInfo
9+
from ...runner_kind import RunnerKind
10+
from ...runner_provider import RunnerProvider
911

1012
__all__ = ["EnvironmentClassListParams", "Filter", "Pagination"]
1113

@@ -22,6 +24,14 @@ class EnvironmentClassListParams(TypedDict, total=False):
2224

2325

2426
class Filter(TypedDict, total=False):
27+
can_create_environments: Annotated[Optional[bool], PropertyInfo(alias="canCreateEnvironments")]
28+
"""
29+
can_create_environments filters the response to only environment classes that
30+
can be used to create new environments by the caller. Unlike enabled, which
31+
indicates general availability, this ensures the caller only sees environment
32+
classes they are allowed to use.
33+
"""
34+
2535
enabled: Optional[bool]
2636
"""
2737
enabled filters the response to only enabled or disabled environment classes. If
@@ -31,6 +41,18 @@ class Filter(TypedDict, total=False):
3141
runner_ids: Annotated[List[str], PropertyInfo(alias="runnerIds")]
3242
"""runner_ids filters the response to only EnvironmentClasses of these Runner IDs"""
3343

44+
runner_kinds: Annotated[List[RunnerKind], PropertyInfo(alias="runnerKinds")]
45+
"""
46+
runner_kind filters the response to only environment classes from runners of
47+
these kinds.
48+
"""
49+
50+
runner_providers: Annotated[List[RunnerProvider], PropertyInfo(alias="runnerProviders")]
51+
"""
52+
runner_providers filters the response to only environment classes from runners
53+
of these providers.
54+
"""
55+
3456

3557
class Pagination(TypedDict, total=False):
3658
token: str

0 commit comments

Comments
 (0)