Skip to content

Commit

Permalink
feat: auto-updated SDK (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
  • Loading branch information
github-actions[bot] authored Nov 29, 2023
1 parent dcfc5d5 commit ebe5e3a
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 6 deletions.
96 changes: 93 additions & 3 deletions openAPIDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
18 changes: 15 additions & 3 deletions sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit ebe5e3a

Please sign in to comment.