From ebe5e3ae64b8a85c0e5cae4236ea959dfb20e5ce Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 01:26:38 +0100 Subject: [PATCH] feat: auto-updated SDK (#36) Signed-off-by: Dmitry Kisler --- openAPIDefinition.json | 96 ++++++++++++++++++++++++++++++++++++++++-- sdk.go | 18 ++++++-- 2 files changed, 108 insertions(+), 6 deletions(-) diff --git a/openAPIDefinition.json b/openAPIDefinition.json index 5d1e8f8..2f8da61 100644 --- a/openAPIDefinition.json +++ b/openAPIDefinition.json @@ -68,6 +68,96 @@ } ] }, + "/projects/{project_id}/applications/polyscale/auth": { + "parameters": [ + { + "name": "project_id", + "description": "Neon project ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/projects/applications/polyscale/auth/callback": { + "parameters": [ + { + "in": "query", + "name": "code", + "schema": { + "type": "string" + }, + "description": "code for token request in oauth" + }, + { + "in": "query", + "name": "state", + "schema": { + "type": "string" + }, + "description": "state parameter from oauth" + } + ] + }, + "/projects/{project_id}/applications/polyscale/caches": { + "parameters": [ + { + "name": "project_id", + "description": "Neon project ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/projects/{project_id}/applications/polyscale/caches/{cache_id}": { + "parameters": [ + { + "name": "project_id", + "description": "Neon project ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "cache_id", + "description": "Polyscale cache ID, from getProjectPolyscaleCaches", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/projects/{project_id}/applications/polyscale/caches/{cache_id}/purge": { + "parameters": [ + { + "name": "project_id", + "description": "Neon project ID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "cache_id", + "description": "Polyscale cache ID, from getProjectPolyscaleCaches", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, "/applications/oauth/{client_id}": { "parameters": [ { @@ -4092,7 +4182,7 @@ "$ref": "#/components/schemas/EndpointPoolerMode" }, "disabled": { - "description": "Whether to restrict connections to the compute endpoint\n", + "description": "Whether to restrict connections to the compute endpoint.\nEnabling this option schedules a suspend compute operation.\nA disabled compute endpoint cannot be enabled by a connection or\nconsole action. However, the compute endpoint is periodically \nenabled by check_availability operations.\n", "type": "boolean" }, "passwordless_access": { @@ -4233,7 +4323,7 @@ }, "disabled": { "type": "boolean", - "description": "Whether to restrict connections to the compute endpoint\n" + "description": "Whether to restrict connections to the compute endpoint.\nEnabling this option schedules a suspend compute operation.\nA disabled compute endpoint cannot be enabled by a connection or\nconsole action. However, the compute endpoint is periodically \nenabled by check_availability operations.\n" }, "passwordless_access": { "type": "boolean", @@ -4282,7 +4372,7 @@ "$ref": "#/components/schemas/EndpointPoolerMode" }, "disabled": { - "description": "Whether to restrict connections to the compute endpoint\n", + "description": "Whether to restrict connections to the compute endpoint.\nEnabling this option schedules a suspend compute operation.\nA disabled compute endpoint cannot be enabled by a connection or\nconsole action. However, the compute endpoint is periodically \nenabled by check_availability operations.\n", "type": "boolean" }, "passwordless_access": { diff --git a/sdk.go b/sdk.go index 1de0bcb..5b6e0c6 100644 --- a/sdk.go +++ b/sdk.go @@ -930,7 +930,11 @@ type Endpoint struct { // CreationSource The compute endpoint creation source CreationSource string `json:"creation_source"` CurrentState EndpointState `json:"current_state"` - // Disabled Whether to restrict connections to the compute endpoint + // Disabled Whether to restrict connections to the compute endpoint. + // Enabling this option schedules a suspend compute operation. + // A disabled compute endpoint cannot be enabled by a connection or + // console action. However, the compute endpoint is periodically + // enabled by check_availability operations. Disabled bool `json:"disabled"` // Host The hostname of the compute endpoint. This is the hostname specified when connecting to a Neon database. Host string `json:"host"` @@ -967,7 +971,11 @@ type EndpointCreateRequestEndpoint struct { AutoscalingLimitMinCu *ComputeUnit `json:"autoscaling_limit_min_cu,omitempty"` // BranchID The ID of the branch the compute endpoint will be associated with BranchID string `json:"branch_id"` - // Disabled Whether to restrict connections to the compute endpoint + // Disabled Whether to restrict connections to the compute endpoint. + // Enabling this option schedules a suspend compute operation. + // A disabled compute endpoint cannot be enabled by a connection or + // console action. However, the compute endpoint is periodically + // enabled by check_availability operations. Disabled *bool `json:"disabled,omitempty"` // PasswordlessAccess NOT YET IMPLEMENTED. Whether to permit passwordless access to the compute endpoint. PasswordlessAccess *bool `json:"passwordless_access,omitempty"` @@ -1015,7 +1023,11 @@ type EndpointUpdateRequestEndpoint struct { AutoscalingLimitMinCu *ComputeUnit `json:"autoscaling_limit_min_cu,omitempty"` // BranchID The destination branch ID. The destination branch must not have an exsiting read-write endpoint. BranchID *string `json:"branch_id,omitempty"` - // Disabled Whether to restrict connections to the compute endpoint + // Disabled Whether to restrict connections to the compute endpoint. + // Enabling this option schedules a suspend compute operation. + // A disabled compute endpoint cannot be enabled by a connection or + // console action. However, the compute endpoint is periodically + // enabled by check_availability operations. Disabled *bool `json:"disabled,omitempty"` // PasswordlessAccess NOT YET IMPLEMENTED. Whether to permit passwordless access to the compute endpoint. PasswordlessAccess *bool `json:"passwordless_access,omitempty"`