Skip to content

Commit 0641e82

Browse files
feat(api): manual updates (#34)
1 parent e65acac commit 0641e82

11 files changed

+45
-49
lines changed

Diff for: .stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-6860d955bb7b497681b9d1ae03c10c51a458c68f5011efc648ae9d049250d6c7.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-27f7bd641de1e4657ad8ce84a456fe0c5e8f1e14779bf1f567a4bc8667eba4da.yml

Diff for: src/gitpod/resources/secrets.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,7 @@ def create(
7474
7575
Args:
7676
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-
```
77+
the docker registry host
8278
8379
environment_variable: secret will be created as an Environment Variable with the same name as the
8480
secret
@@ -324,11 +320,7 @@ async def create(
324320
325321
Args:
326322
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-
```
323+
the docker registry host
332324
333325
environment_variable: secret will be created as an Environment Variable with the same name as the
334326
secret

Diff for: src/gitpod/types/account.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ class Account(BaseModel):
111111

112112
name: str
113113

114-
public_email_provider: bool = FieldInfo(alias="publicEmailProvider")
115-
"""
116-
public_email_provider is true if the email for the Account matches a known
117-
public email provider
118-
"""
119-
120114
updated_at: datetime = FieldInfo(alias="updatedAt")
121115
"""
122116
A Timestamp represents a point in time independent of any time zone or local
@@ -220,3 +214,9 @@ class Account(BaseModel):
220214
organization_id is the ID of the organization the account is owned by if it's
221215
created through custom SSO
222216
"""
217+
218+
public_email_provider: Optional[bool] = FieldInfo(alias="publicEmailProvider", default=None)
219+
"""
220+
public_email_provider is true if the email for the Account matches a known
221+
public email provider
222+
"""

Diff for: src/gitpod/types/account_membership.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34

45
from pydantic import Field as FieldInfo
56

@@ -13,12 +14,6 @@ class AccountMembership(BaseModel):
1314
organization_id: str = FieldInfo(alias="organizationId")
1415
"""organization_id is the id of the organization the user is a member of"""
1516

16-
organization_member_count: int = FieldInfo(alias="organizationMemberCount")
17-
"""
18-
organization_name is the member count of the organization the user is a member
19-
of
20-
"""
21-
2217
organization_name: str = FieldInfo(alias="organizationName")
2318
"""organization_name is the name of the organization the user is a member of"""
2419

@@ -27,3 +22,9 @@ class AccountMembership(BaseModel):
2722

2823
user_role: OrganizationRole = FieldInfo(alias="userRole")
2924
"""user_role is the role the user has in the organization"""
25+
26+
organization_member_count: Optional[int] = FieldInfo(alias="organizationMemberCount", default=None)
27+
"""
28+
organization_name is the member count of the organization the user is a member
29+
of
30+
"""

Diff for: src/gitpod/types/editor.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34

45
from pydantic import Field as FieldInfo
56

@@ -11,14 +12,14 @@
1112
class Editor(BaseModel):
1213
id: str
1314

14-
alias: str
15-
16-
icon_url: str = FieldInfo(alias="iconUrl")
17-
1815
installation_instructions: str = FieldInfo(alias="installationInstructions")
1916

2017
name: str
2118

22-
short_description: str = FieldInfo(alias="shortDescription")
23-
2419
url_template: str = FieldInfo(alias="urlTemplate")
20+
21+
alias: Optional[str] = None
22+
23+
icon_url: Optional[str] = FieldInfo(alias="iconUrl", default=None)
24+
25+
short_description: Optional[str] = FieldInfo(alias="shortDescription", default=None)

Diff for: src/gitpod/types/joinable_organization.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34

45
from pydantic import Field as FieldInfo
56

@@ -12,11 +13,11 @@ class JoinableOrganization(BaseModel):
1213
organization_id: str = FieldInfo(alias="organizationId")
1314
"""organization_id is the id of the organization the user can join"""
1415

15-
organization_member_count: int = FieldInfo(alias="organizationMemberCount")
16+
organization_name: str = FieldInfo(alias="organizationName")
17+
"""organization_name is the name of the organization the user can join"""
18+
19+
organization_member_count: Optional[int] = FieldInfo(alias="organizationMemberCount", default=None)
1620
"""
1721
organization_member_count is the member count of the organization the user can
1822
join
1923
"""
20-
21-
organization_name: str = FieldInfo(alias="organizationName")
22-
"""organization_name is the name of the organization the user can join"""

Diff for: src/gitpod/types/login_provider.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34

45
from pydantic import Field as FieldInfo
56

@@ -9,11 +10,14 @@
910

1011

1112
class LoginProvider(BaseModel):
12-
login_url: str = FieldInfo(alias="loginUrl")
13-
"""login_url is the URL to redirect the browser agent to for login"""
14-
1513
provider: str
1614
"""provider is the provider used by this login method, e.g.
1715
1816
"github", "google", "custom"
1917
"""
18+
19+
login_url: Optional[str] = FieldInfo(alias="loginUrl", default=None)
20+
"""
21+
login_url is the URL to redirect the browser agent to for login, when provider
22+
is "custom"
23+
"""

Diff for: src/gitpod/types/organizations/domain_verification.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34
from datetime import datetime
45

56
from pydantic import Field as FieldInfo
@@ -19,7 +20,7 @@ class DomainVerification(BaseModel):
1920

2021
state: DomainVerificationState
2122

22-
verified_at: datetime = FieldInfo(alias="verifiedAt")
23+
verified_at: Optional[datetime] = FieldInfo(alias="verifiedAt", default=None)
2324
"""
2425
A Timestamp represents a point in time independent of any time zone or local
2526
calendar, encoded as a count of seconds and fractions of seconds at nanosecond

Diff for: src/gitpod/types/organizations/sso_configuration.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ class SSOConfiguration(BaseModel):
1515
id: str
1616
"""id is the unique identifier of the SSO configuration"""
1717

18-
client_id: str = FieldInfo(alias="clientId")
19-
"""client_id is the client ID of the OIDC application set on the IdP"""
20-
21-
email_domain: str = FieldInfo(alias="emailDomain")
22-
2318
issuer_url: str = FieldInfo(alias="issuerUrl")
2419
"""issuer_url is the URL of the IdP issuer"""
2520

@@ -33,3 +28,8 @@ class SSOConfiguration(BaseModel):
3328

3429
claims: Optional[Dict[str, str]] = None
3530
"""claims are key/value pairs that defines a mapping of claims issued by the IdP."""
31+
32+
client_id: Optional[str] = FieldInfo(alias="clientId", default=None)
33+
"""client_id is the client ID of the OIDC application set on the IdP"""
34+
35+
email_domain: Optional[str] = FieldInfo(alias="emailDomain", default=None)

Diff for: src/gitpod/types/secret_create_params.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ class SecretCreateParams(TypedDict, total=False):
1313
container_registry_basic_auth_host: Annotated[str, PropertyInfo(alias="containerRegistryBasicAuthHost")]
1414
"""
1515
secret will be mounted as a docker config in the environment VM, mount will have
16-
the docker host value must be a valid registry hostname with optional port:
17-
18-
```
19-
this.matches('^[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9](:[0-9]+)?$')
20-
```
16+
the docker registry host
2117
"""
2218

2319
environment_variable: Annotated[bool, PropertyInfo(alias="environmentVariable")]

Diff for: tests/api_resources/test_secrets.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_method_create(self, client: Gitpod) -> None:
3232
@parametrize
3333
def test_method_create_with_all_params(self, client: Gitpod) -> None:
3434
secret = client.secrets.create(
35-
container_registry_basic_auth_host="containerRegistryBasicAuthHost",
35+
container_registry_basic_auth_host="https://example.com",
3636
environment_variable=True,
3737
file_path="filePath",
3838
name="name",
@@ -228,7 +228,7 @@ async def test_method_create(self, async_client: AsyncGitpod) -> None:
228228
@parametrize
229229
async def test_method_create_with_all_params(self, async_client: AsyncGitpod) -> None:
230230
secret = await async_client.secrets.create(
231-
container_registry_basic_auth_host="containerRegistryBasicAuthHost",
231+
container_registry_basic_auth_host="https://example.com",
232232
environment_variable=True,
233233
file_path="filePath",
234234
name="name",

0 commit comments

Comments
 (0)