From bbde883d8d7dd8b64e56fc0bff50004aae84be31 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 07:54:03 +0200 Subject: [PATCH] feat: auto-updated SDK (#59) --- mockhttp.go | 4 ++-- openAPIDefinition.json | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mockhttp.go b/mockhttp.go index 2f48ae8..d520db5 100644 --- a/mockhttp.go +++ b/mockhttp.go @@ -508,8 +508,8 @@ var endpointResponseExamples = map[string]map[string]mockResponse{ // Mock client return the response as per API spec, except for the errors: 404 and 401 status codes are covered only. // - 401 is returned when the string `invalidApiKey` is used as the API key; // - 404 is returned if either of the following: -// - the string value `notFound` is used as the string argument, e.g. projectID -// - a negative int/float value is used as the int/float argument, e.g. database ID +// - the string value `notFound` is used as the string argument, e.g. projectID +// - a negative int/float value is used as the int/float argument, e.g. database ID func NewMockHTTPClient() HTTPClient { u, _ := url.Parse(baseURL) return mockHTTPClient{ diff --git a/openAPIDefinition.json b/openAPIDefinition.json index ea179d6..cab8c56 100644 --- a/openAPIDefinition.json +++ b/openAPIDefinition.json @@ -3547,10 +3547,14 @@ "description": "The status of the operation", "type": "string", "enum": [ + "scheduling", "running", "finished", "failed", - "scheduling" + "error", + "cancelling", + "cancelled", + "skipped" ] }, "ProjectListItem": { @@ -4229,7 +4233,8 @@ "max_active_endpoints", "max_read_only_endpoints", "max_allowed_ips", - "max_monitoring_retention_hours" + "max_monitoring_retention_hours", + "min_autosuspend_seconds" ], "properties": { "active_time": { @@ -4264,6 +4269,9 @@ }, "max_monitoring_retention_hours": { "type": "integer" + }, + "min_autosuspend_seconds": { + "type": "integer" } } }