Skip to content

Commit ad9f662

Browse files
feat(api): manual updates (#19)
1 parent 06b6d24 commit ad9f662

18 files changed

+1344
-1
lines changed

Diff for: .stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 106
1+
configured_endpoints: 111
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-36f9d46890bf3667f5a6529bdb156fe1560834ad8187c4271aa0b0024de1adb5.yml

Diff for: api.md

+23
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,29 @@ Methods:
259259
- <code title="post /gitpod.v1.OrganizationService/ListMembers">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">list_members</a>(\*\*<a href="src/gitpod/types/organization_list_members_params.py">params</a>) -> <a href="./src/gitpod/types/organization_member.py">SyncMembersPage[OrganizationMember]</a></code>
260260
- <code title="post /gitpod.v1.OrganizationService/SetRole">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">set_role</a>(\*\*<a href="src/gitpod/types/organization_set_role_params.py">params</a>) -> <a href="./src/gitpod/types/organization_set_role_response.py">object</a></code>
261261

262+
## DomainVerifications
263+
264+
Types:
265+
266+
```python
267+
from gitpod.types.organizations import (
268+
DomainVerification,
269+
DomainVerificationState,
270+
DomainVerificationCreateResponse,
271+
DomainVerificationRetrieveResponse,
272+
DomainVerificationDeleteResponse,
273+
DomainVerificationVerifyResponse,
274+
)
275+
```
276+
277+
Methods:
278+
279+
- <code title="post /gitpod.v1.OrganizationService/CreateDomainVerification">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">create</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_create_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification_create_response.py">DomainVerificationCreateResponse</a></code>
280+
- <code title="post /gitpod.v1.OrganizationService/GetDomainVerification">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">retrieve</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_retrieve_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification_retrieve_response.py">DomainVerificationRetrieveResponse</a></code>
281+
- <code title="post /gitpod.v1.OrganizationService/ListDomainVerifications">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">list</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_list_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification.py">SyncDomainVerificationsPage[DomainVerification]</a></code>
282+
- <code title="post /gitpod.v1.OrganizationService/DeleteDomainVerification">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">delete</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_delete_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification_delete_response.py">object</a></code>
283+
- <code title="post /gitpod.v1.OrganizationService/VerifyDomain">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">verify</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_verify_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification_verify_response.py">DomainVerificationVerifyResponse</a></code>
284+
262285
## Invites
263286

264287
Types:

Diff for: src/gitpod/pagination.py

+53
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
from ._base_client import BasePage, PageInfo, BaseSyncPage, BaseAsyncPage
1010

1111
__all__ = [
12+
"DomainVerificationsPagePagination",
13+
"SyncDomainVerificationsPage",
14+
"AsyncDomainVerificationsPage",
1215
"EditorsPagePagination",
1316
"SyncEditorsPage",
1417
"AsyncEditorsPage",
@@ -71,6 +74,56 @@
7174
_T = TypeVar("_T")
7275

7376

77+
class DomainVerificationsPagePagination(BaseModel):
78+
next_token: Optional[str] = FieldInfo(alias="nextToken", default=None)
79+
80+
81+
class SyncDomainVerificationsPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
82+
domain_verifications: List[_T] = FieldInfo(alias="domainVerifications")
83+
pagination: Optional[DomainVerificationsPagePagination] = None
84+
85+
@override
86+
def _get_page_items(self) -> List[_T]:
87+
domain_verifications = self.domain_verifications
88+
if not domain_verifications:
89+
return []
90+
return domain_verifications
91+
92+
@override
93+
def next_page_info(self) -> Optional[PageInfo]:
94+
next_token = None
95+
if self.pagination is not None:
96+
if self.pagination.next_token is not None:
97+
next_token = self.pagination.next_token
98+
if not next_token:
99+
return None
100+
101+
return PageInfo(params={"token": next_token})
102+
103+
104+
class AsyncDomainVerificationsPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
105+
domain_verifications: List[_T] = FieldInfo(alias="domainVerifications")
106+
pagination: Optional[DomainVerificationsPagePagination] = None
107+
108+
@override
109+
def _get_page_items(self) -> List[_T]:
110+
domain_verifications = self.domain_verifications
111+
if not domain_verifications:
112+
return []
113+
return domain_verifications
114+
115+
@override
116+
def next_page_info(self) -> Optional[PageInfo]:
117+
next_token = None
118+
if self.pagination is not None:
119+
if self.pagination.next_token is not None:
120+
next_token = self.pagination.next_token
121+
if not next_token:
122+
return None
123+
124+
return PageInfo(params={"token": next_token})
125+
126+
74127
class EditorsPagePagination(BaseModel):
75128
next_token: Optional[str] = FieldInfo(alias="nextToken", default=None)
76129

Diff for: src/gitpod/resources/organizations/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,22 @@
2424
SSOConfigurationsResourceWithStreamingResponse,
2525
AsyncSSOConfigurationsResourceWithStreamingResponse,
2626
)
27+
from .domain_verifications import (
28+
DomainVerificationsResource,
29+
AsyncDomainVerificationsResource,
30+
DomainVerificationsResourceWithRawResponse,
31+
AsyncDomainVerificationsResourceWithRawResponse,
32+
DomainVerificationsResourceWithStreamingResponse,
33+
AsyncDomainVerificationsResourceWithStreamingResponse,
34+
)
2735

2836
__all__ = [
37+
"DomainVerificationsResource",
38+
"AsyncDomainVerificationsResource",
39+
"DomainVerificationsResourceWithRawResponse",
40+
"AsyncDomainVerificationsResourceWithRawResponse",
41+
"DomainVerificationsResourceWithStreamingResponse",
42+
"AsyncDomainVerificationsResourceWithStreamingResponse",
2943
"InvitesResource",
3044
"AsyncInvitesResource",
3145
"InvitesResourceWithRawResponse",

0 commit comments

Comments
 (0)