-
Notifications
You must be signed in to change notification settings - Fork 2
auto-docs: Update Cloud API spec #23
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
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,7 +107,8 @@ components: | |
| type: string | ||
| type: array | ||
| connect_console: | ||
| description: Whether Console is connected in Redpanda AWS Private Link Service. | ||
| description: Whether Console is connected in Redpanda AWS Private Link Service. The default is true if not set. | ||
| nullable: true | ||
| type: boolean | ||
| enabled: | ||
| description: Whether Redpanda AWS Private Link Endpoint Service is enabled. | ||
|
|
@@ -221,7 +222,8 @@ components: | |
| type: string | ||
| type: array | ||
| connect_console: | ||
| description: Whether Console is connected in Redpanda Azure Private Link Service. | ||
| description: Whether Console is connected in Redpanda Azure Private Link Service. The default is true if not set. | ||
| nullable: true | ||
| type: boolean | ||
| enabled: | ||
| description: Enabled controls if Azure Private Link Endpoint Service is enabled. | ||
|
|
@@ -265,6 +267,8 @@ components: | |
| Cluster: | ||
| description: Resource describing a Cluster. | ||
| properties: | ||
| api_gateway_access: | ||
| $ref: '#/components/schemas/NetworkAccessMode' | ||
| aws_private_link: | ||
| $ref: '#/components/schemas/AWSPrivateLink' | ||
| azure_private_link: | ||
|
|
@@ -504,6 +508,8 @@ components: | |
| ClusterCreate: | ||
| description: Resource describing a Create Cluster. | ||
| properties: | ||
| api_gateway_access: | ||
| $ref: '#/components/schemas/NetworkAccessMode' | ||
| aws_private_link: | ||
| $ref: '#/components/schemas/AWSPrivateLinkSpec' | ||
| azure_private_link: | ||
|
|
@@ -646,6 +652,8 @@ components: | |
| ClusterUpdate: | ||
| description: Resource describing an Update Cluster. | ||
| properties: | ||
| api_gateway_access: | ||
| $ref: '#/components/schemas/NetworkAccessMode' | ||
| aws_private_link: | ||
| $ref: '#/components/schemas/AWSPrivateLinkSpec' | ||
| azure_private_link: | ||
|
|
@@ -1944,6 +1952,12 @@ components: | |
| - STATE_DELETING | ||
| - STATE_FAILED | ||
| type: string | ||
| NetworkAccessMode: | ||
| description: Network access mode for an endpoint. | ||
| enum: | ||
| - NETWORK_ACCESS_MODE_PRIVATE | ||
| - NETWORK_ACCESS_MODE_PUBLIC | ||
| type: string | ||
| NetworkCreate: | ||
| description: Redpanda Cloud network properties. | ||
| properties: | ||
|
|
@@ -3258,7 +3272,7 @@ components: | |
| x-client-id: dQjapNIAHhF7EQqQToRla3yEII9sUSap | ||
| type: oauth2 | ||
| info: | ||
| description: Use the Control Plane API to manage resources in your Redpanda Cloud organization such as clusters and networks. | ||
| description: The Redpanda Cloud Control Plane API allows programmatic management of Redpanda Cloud resources including clusters, networks, and resource groups. | ||
| title: Redpanda Cloud Control Plane API | ||
| version: v1 | ||
| openapi: 3.0.3 | ||
|
|
@@ -3316,7 +3330,8 @@ paths: | |
| application/json: | ||
| example: | ||
| clusters: | ||
| - cloud_provider: CLOUD_PROVIDER_GCP | ||
| - api_gateway_access: NETWORK_ACCESS_MODE_UNSPECIFIED | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will try adding overlays to target and use a public value |
||
| cloud_provider: CLOUD_PROVIDER_GCP | ||
| cloud_provider_tags: {} | ||
| cloud_storage: null | ||
| cluster_configuration: null | ||
|
|
@@ -3500,6 +3515,8 @@ paths: | |
| schema: | ||
| description: Resource describing an Update Cluster. | ||
| properties: | ||
| api_gateway_access: | ||
| $ref: '#/components/schemas/NetworkAccessMode' | ||
| aws_private_link: | ||
| $ref: '#/components/schemas/AWSPrivateLinkSpec' | ||
| azure_private_link: | ||
|
|
@@ -3651,6 +3668,7 @@ paths: | |
| application/json: | ||
| example: | ||
| cluster: | ||
| api_gateway_access: NETWORK_ACCESS_MODE_UNSPECIFIED | ||
| cloud_provider: CLOUD_PROVIDER_GCP | ||
| cloud_provider_tags: {} | ||
| cloud_storage: null | ||
|
|
@@ -4049,6 +4067,7 @@ paths: | |
| response: | ||
| '@type': type.googleapis.com/redpanda.api.controlplane.v1.CreateClusterResponse | ||
| cluster: | ||
| api_gateway_access: NETWORK_ACCESS_MODE_UNSPECIFIED | ||
| cloud_provider: CLOUD_PROVIDER_GCP | ||
| cloud_provider_tags: {} | ||
| cloud_storage: null | ||
|
|
@@ -4174,6 +4193,7 @@ paths: | |
| response: | ||
| '@type': type.googleapis.com/redpanda.api.controlplane.v1.CreateClusterResponse | ||
| cluster: | ||
| api_gateway_access: NETWORK_ACCESS_MODE_UNSPECIFIED | ||
| cloud_provider: CLOUD_PROVIDER_GCP | ||
| cloud_provider_tags: {} | ||
| cloud_storage: null | ||
|
|
@@ -5690,7 +5710,7 @@ tags: | |
| name: Resource Groups | ||
| - description: Manage [Redpanda Serverless](https://docs.redpanda.com/redpanda-cloud/get-started/cloud-overview/#redpanda-cloud-cluster-types) clusters. For detailed steps, see [Use the Control Plane API with Serverless](https://docs.redpanda.com/redpanda-cloud/manage/api/cloud-serverless-controlplane-api/). | ||
| name: Serverless Clusters | ||
| - description: Manage Redpanda Serverless private links. | ||
| - description: Manage Redpanda Serverless Private Links. For detailed steps and information, see [Use the Control Plane API](https://docs.redpanda.com/redpanda-cloud/manage/api/controlplane/). | ||
| name: Serverless Private Links | ||
| - description: See available Redpanda Serverless regions. | ||
| name: Serverless Regions | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enum/examples mismatch: add UNSPECIFIED or fix examples
Examples use NETWORK_ACCESS_MODE_UNSPECIFIED but the enum omits it. Add UNSPECIFIED to avoid invalid examples or update examples to a valid value.
Apply one of:
Option A (preferred: add enum value)
NetworkAccessMode: description: Network access mode for an endpoint. enum: + - NETWORK_ACCESS_MODE_UNSPECIFIED - NETWORK_ACCESS_MODE_PRIVATE - NETWORK_ACCESS_MODE_PUBLIC type: string📝 Committable suggestion
🤖 Prompt for AI Agents