Skip to content

Commit ed6623d

Browse files
feat(api): Organizations Open API docs (#37)
1 parent daa4f73 commit ed6623d

File tree

9 files changed

+1197
-233
lines changed

9 files changed

+1197
-233
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-27f7bd641de1e4657ad8ce84a456fe0c5e8f1e14779bf1f567a4bc8667eba4da.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-0c37e687e2a070abfe49501156af6d906ff166b6eaad779ee6c2b568515f2b7e.yml

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

+220-10
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,34 @@ def create(
6767
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
6868
) -> DomainVerificationCreateResponse:
6969
"""
70-
CreateDomainVerification creates a new domain verification request
70+
Initiates domain verification process to enable organization features.
71+
72+
Use this method to:
73+
74+
- Start domain ownership verification
75+
- Enable automatic team joining
76+
- Set up SSO restrictions
77+
- Configure email-based policies
78+
79+
### Examples
80+
81+
- Verify primary domain:
82+
83+
Starts verification for main company domain.
84+
85+
```yaml
86+
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
87+
domain: "acme-corp.com"
88+
```
89+
90+
- Verify subsidiary domain:
91+
92+
Adds verification for additional company domain.
93+
94+
```yaml
95+
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
96+
domain: "acme-subsidiary.com"
97+
```
7198
7299
Args:
73100
extra_headers: Send extra headers
@@ -105,7 +132,23 @@ def retrieve(
105132
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
106133
) -> DomainVerificationRetrieveResponse:
107134
"""
108-
GetDomainVerification retrieves a domain verification request
135+
Retrieves the status of a domain verification request.
136+
137+
Use this method to:
138+
139+
- Check verification progress
140+
- View verification requirements
141+
- Monitor domain status
142+
143+
### Examples
144+
145+
- Get verification status:
146+
147+
Checks the current state of a domain verification.
148+
149+
```yaml
150+
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
151+
```
109152
110153
Args:
111154
extra_headers: Send extra headers
@@ -143,7 +186,37 @@ def list(
143186
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
144187
) -> SyncDomainVerificationsPage[DomainVerification]:
145188
"""
146-
ListDomainVerifications lists all domain verifications for an organization
189+
Lists and monitors domain verification status across an organization.
190+
191+
Use this method to:
192+
193+
- Track verification progress
194+
- View all verified domains
195+
- Monitor pending verifications
196+
- Audit domain settings
197+
198+
### Examples
199+
200+
- List all verifications:
201+
202+
Shows all domain verifications regardless of status.
203+
204+
```yaml
205+
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
206+
pagination:
207+
pageSize: 20
208+
```
209+
210+
- List with pagination:
211+
212+
Retrieves next page of verifications.
213+
214+
```yaml
215+
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
216+
pagination:
217+
pageSize: 20
218+
token: "next-page-token-from-previous-response"
219+
```
147220
148221
Args:
149222
extra_headers: Send extra headers
@@ -193,7 +266,23 @@ def delete(
193266
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
194267
) -> object:
195268
"""
196-
DeleteDomainVerification deletes a domain verification request
269+
Removes a domain verification request.
270+
271+
Use this method to:
272+
273+
- Cancel pending verifications
274+
- Remove verified domains
275+
- Clean up unused domain records
276+
277+
### Examples
278+
279+
- Delete verification:
280+
281+
Removes a domain verification request.
282+
283+
```yaml
284+
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
285+
```
197286
198287
Args:
199288
extra_headers: Send extra headers
@@ -228,7 +317,23 @@ def verify(
228317
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
229318
) -> DomainVerificationVerifyResponse:
230319
"""
231-
VerifyDomain verifies a domain ownership
320+
Verifies domain ownership for an organization.
321+
322+
Use this method to:
323+
324+
- Complete domain verification process
325+
- Enable domain-based features
326+
- Validate DNS configuration
327+
328+
### Examples
329+
330+
- Verify domain ownership:
331+
332+
Verifies ownership after DNS records are configured.
333+
334+
```yaml
335+
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
336+
```
232337
233338
Args:
234339
extra_headers: Send extra headers
@@ -285,7 +390,34 @@ async def create(
285390
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
286391
) -> DomainVerificationCreateResponse:
287392
"""
288-
CreateDomainVerification creates a new domain verification request
393+
Initiates domain verification process to enable organization features.
394+
395+
Use this method to:
396+
397+
- Start domain ownership verification
398+
- Enable automatic team joining
399+
- Set up SSO restrictions
400+
- Configure email-based policies
401+
402+
### Examples
403+
404+
- Verify primary domain:
405+
406+
Starts verification for main company domain.
407+
408+
```yaml
409+
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
410+
domain: "acme-corp.com"
411+
```
412+
413+
- Verify subsidiary domain:
414+
415+
Adds verification for additional company domain.
416+
417+
```yaml
418+
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
419+
domain: "acme-subsidiary.com"
420+
```
289421
290422
Args:
291423
extra_headers: Send extra headers
@@ -323,7 +455,23 @@ async def retrieve(
323455
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
324456
) -> DomainVerificationRetrieveResponse:
325457
"""
326-
GetDomainVerification retrieves a domain verification request
458+
Retrieves the status of a domain verification request.
459+
460+
Use this method to:
461+
462+
- Check verification progress
463+
- View verification requirements
464+
- Monitor domain status
465+
466+
### Examples
467+
468+
- Get verification status:
469+
470+
Checks the current state of a domain verification.
471+
472+
```yaml
473+
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
474+
```
327475
328476
Args:
329477
extra_headers: Send extra headers
@@ -361,7 +509,37 @@ def list(
361509
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
362510
) -> AsyncPaginator[DomainVerification, AsyncDomainVerificationsPage[DomainVerification]]:
363511
"""
364-
ListDomainVerifications lists all domain verifications for an organization
512+
Lists and monitors domain verification status across an organization.
513+
514+
Use this method to:
515+
516+
- Track verification progress
517+
- View all verified domains
518+
- Monitor pending verifications
519+
- Audit domain settings
520+
521+
### Examples
522+
523+
- List all verifications:
524+
525+
Shows all domain verifications regardless of status.
526+
527+
```yaml
528+
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
529+
pagination:
530+
pageSize: 20
531+
```
532+
533+
- List with pagination:
534+
535+
Retrieves next page of verifications.
536+
537+
```yaml
538+
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
539+
pagination:
540+
pageSize: 20
541+
token: "next-page-token-from-previous-response"
542+
```
365543
366544
Args:
367545
extra_headers: Send extra headers
@@ -411,7 +589,23 @@ async def delete(
411589
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
412590
) -> object:
413591
"""
414-
DeleteDomainVerification deletes a domain verification request
592+
Removes a domain verification request.
593+
594+
Use this method to:
595+
596+
- Cancel pending verifications
597+
- Remove verified domains
598+
- Clean up unused domain records
599+
600+
### Examples
601+
602+
- Delete verification:
603+
604+
Removes a domain verification request.
605+
606+
```yaml
607+
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
608+
```
415609
416610
Args:
417611
extra_headers: Send extra headers
@@ -446,7 +640,23 @@ async def verify(
446640
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
447641
) -> DomainVerificationVerifyResponse:
448642
"""
449-
VerifyDomain verifies a domain ownership
643+
Verifies domain ownership for an organization.
644+
645+
Use this method to:
646+
647+
- Complete domain verification process
648+
- Enable domain-based features
649+
- Validate DNS configuration
650+
651+
### Examples
652+
653+
- Verify domain ownership:
654+
655+
Verifies ownership after DNS records are configured.
656+
657+
```yaml
658+
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
659+
```
450660
451661
Args:
452662
extra_headers: Send extra headers

0 commit comments

Comments
 (0)