Skip to content

feat(api): Organizations Open API docs #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 111
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-27f7bd641de1e4657ad8ce84a456fe0c5e8f1e14779bf1f567a4bc8667eba4da.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-0c37e687e2a070abfe49501156af6d906ff166b6eaad779ee6c2b568515f2b7e.yml
230 changes: 220 additions & 10 deletions src/gitpod/resources/organizations/domain_verifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,34 @@ def create(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> DomainVerificationCreateResponse:
"""
CreateDomainVerification creates a new domain verification request
Initiates domain verification process to enable organization features.

Use this method to:

- Start domain ownership verification
- Enable automatic team joining
- Set up SSO restrictions
- Configure email-based policies

### Examples

- Verify primary domain:

Starts verification for main company domain.

```yaml
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
domain: "acme-corp.com"
```

- Verify subsidiary domain:

Adds verification for additional company domain.

```yaml
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
domain: "acme-subsidiary.com"
```

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -105,7 +132,23 @@ def retrieve(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> DomainVerificationRetrieveResponse:
"""
GetDomainVerification retrieves a domain verification request
Retrieves the status of a domain verification request.

Use this method to:

- Check verification progress
- View verification requirements
- Monitor domain status

### Examples

- Get verification status:

Checks the current state of a domain verification.

```yaml
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
```

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -143,7 +186,37 @@ def list(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> SyncDomainVerificationsPage[DomainVerification]:
"""
ListDomainVerifications lists all domain verifications for an organization
Lists and monitors domain verification status across an organization.

Use this method to:

- Track verification progress
- View all verified domains
- Monitor pending verifications
- Audit domain settings

### Examples

- List all verifications:

Shows all domain verifications regardless of status.

```yaml
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
pagination:
pageSize: 20
```

- List with pagination:

Retrieves next page of verifications.

```yaml
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
pagination:
pageSize: 20
token: "next-page-token-from-previous-response"
```

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -193,7 +266,23 @@ def delete(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> object:
"""
DeleteDomainVerification deletes a domain verification request
Removes a domain verification request.

Use this method to:

- Cancel pending verifications
- Remove verified domains
- Clean up unused domain records

### Examples

- Delete verification:

Removes a domain verification request.

```yaml
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
```

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -228,7 +317,23 @@ def verify(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> DomainVerificationVerifyResponse:
"""
VerifyDomain verifies a domain ownership
Verifies domain ownership for an organization.

Use this method to:

- Complete domain verification process
- Enable domain-based features
- Validate DNS configuration

### Examples

- Verify domain ownership:

Verifies ownership after DNS records are configured.

```yaml
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
```

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -285,7 +390,34 @@ async def create(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> DomainVerificationCreateResponse:
"""
CreateDomainVerification creates a new domain verification request
Initiates domain verification process to enable organization features.

Use this method to:

- Start domain ownership verification
- Enable automatic team joining
- Set up SSO restrictions
- Configure email-based policies

### Examples

- Verify primary domain:

Starts verification for main company domain.

```yaml
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
domain: "acme-corp.com"
```

- Verify subsidiary domain:

Adds verification for additional company domain.

```yaml
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
domain: "acme-subsidiary.com"
```

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -323,7 +455,23 @@ async def retrieve(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> DomainVerificationRetrieveResponse:
"""
GetDomainVerification retrieves a domain verification request
Retrieves the status of a domain verification request.

Use this method to:

- Check verification progress
- View verification requirements
- Monitor domain status

### Examples

- Get verification status:

Checks the current state of a domain verification.

```yaml
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
```

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -361,7 +509,37 @@ def list(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> AsyncPaginator[DomainVerification, AsyncDomainVerificationsPage[DomainVerification]]:
"""
ListDomainVerifications lists all domain verifications for an organization
Lists and monitors domain verification status across an organization.

Use this method to:

- Track verification progress
- View all verified domains
- Monitor pending verifications
- Audit domain settings

### Examples

- List all verifications:

Shows all domain verifications regardless of status.

```yaml
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
pagination:
pageSize: 20
```

- List with pagination:

Retrieves next page of verifications.

```yaml
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
pagination:
pageSize: 20
token: "next-page-token-from-previous-response"
```

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -411,7 +589,23 @@ async def delete(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> object:
"""
DeleteDomainVerification deletes a domain verification request
Removes a domain verification request.

Use this method to:

- Cancel pending verifications
- Remove verified domains
- Clean up unused domain records

### Examples

- Delete verification:

Removes a domain verification request.

```yaml
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
```

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -446,7 +640,23 @@ async def verify(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> DomainVerificationVerifyResponse:
"""
VerifyDomain verifies a domain ownership
Verifies domain ownership for an organization.

Use this method to:

- Complete domain verification process
- Enable domain-based features
- Validate DNS configuration

### Examples

- Verify domain ownership:

Verifies ownership after DNS records are configured.

```yaml
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
```

Args:
extra_headers: Send extra headers
Expand Down
Loading