From b13bad726afdee1d3b94e6443d62b63490f03ca7 Mon Sep 17 00:00:00 2001 From: cb-github-robot Date: Mon, 22 Apr 2024 04:11:45 +0000 Subject: [PATCH] Update Swagger REST API doc --- src/api/rest/docs/docs.go | 9 +++++++++ src/api/rest/docs/swagger.json | 9 +++++++++ src/api/rest/docs/swagger.yaml | 6 ++++++ 3 files changed, 24 insertions(+) diff --git a/src/api/rest/docs/docs.go b/src/api/rest/docs/docs.go index 80ced4554..ba94b5889 100644 --- a/src/api/rest/docs/docs.go +++ b/src/api/rest/docs/docs.go @@ -8182,6 +8182,9 @@ const docTemplate = `{ "driverName": { "type": "string" }, + "enabled": { + "type": "boolean" + }, "location": { "$ref": "#/definitions/common.GeoLocation" }, @@ -8309,6 +8312,12 @@ const docTemplate = `{ "common.Region": { "type": "object", "properties": { + "availableZoneList": { + "type": "array", + "items": { + "type": "string" + } + }, "keyValueInfoList": { "description": "ex) { {region, us-east1}, {zone, us-east1-c} }", "type": "array", diff --git a/src/api/rest/docs/swagger.json b/src/api/rest/docs/swagger.json index 709570a25..0b835af8a 100644 --- a/src/api/rest/docs/swagger.json +++ b/src/api/rest/docs/swagger.json @@ -8175,6 +8175,9 @@ "driverName": { "type": "string" }, + "enabled": { + "type": "boolean" + }, "location": { "$ref": "#/definitions/common.GeoLocation" }, @@ -8302,6 +8305,12 @@ "common.Region": { "type": "object", "properties": { + "availableZoneList": { + "type": "array", + "items": { + "type": "string" + } + }, "keyValueInfoList": { "description": "ex) { {region, us-east1}, {zone, us-east1-c} }", "type": "array", diff --git a/src/api/rest/docs/swagger.yaml b/src/api/rest/docs/swagger.yaml index cdaf7fb6d..b5247a87b 100644 --- a/src/api/rest/docs/swagger.yaml +++ b/src/api/rest/docs/swagger.yaml @@ -51,6 +51,8 @@ definitions: type: string driverName: type: string + enabled: + type: boolean location: $ref: '#/definitions/common.GeoLocation' providerName: @@ -135,6 +137,10 @@ definitions: type: object common.Region: properties: + availableZoneList: + items: + type: string + type: array keyValueInfoList: description: ex) { {region, us-east1}, {zone, us-east1-c} } items: