Added direct-csi API support to console (#710)

This commit is contained in:
Alex
2021-05-04 11:56:33 -05:00
committed by GitHub
parent 8cfa41eb53
commit 35da684ec9
11 changed files with 1014 additions and 0 deletions

View File

@@ -1817,6 +1817,39 @@ func init() {
}
}
},
"/direct-csi/drives/format": {
"post": {
"tags": [
"AdminAPI"
],
"summary": "Format direct-csi drives from a list",
"operationId": "DirectCSIFormatDrive",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/formatConfiguration"
}
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/formatDirectCSIDrivesResponse"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/direct-csi/volumes": {
"get": {
"tags": [
@@ -4309,6 +4342,20 @@ func init() {
}
}
},
"csiFormatErrorResponse": {
"type": "object",
"properties": {
"drive": {
"type": "string"
},
"error": {
"type": "string"
},
"node": {
"type": "string"
}
}
},
"deleteTenantRequest": {
"type": "object",
"properties": {
@@ -4433,6 +4480,36 @@ func init() {
}
}
},
"formatConfiguration": {
"type": "object",
"required": [
"drives",
"force"
],
"properties": {
"drives": {
"type": "array",
"minLength": 1,
"items": {
"type": "string"
}
},
"force": {
"type": "boolean"
}
}
},
"formatDirectCSIDrivesResponse": {
"type": "object",
"properties": {
"formatIssuesList": {
"type": "array",
"items": {
"$ref": "#/definitions/csiFormatErrorResponse"
}
}
}
},
"gcpConfiguration": {
"type": "object",
"required": [
@@ -8445,6 +8522,39 @@ func init() {
}
}
},
"/direct-csi/drives/format": {
"post": {
"tags": [
"AdminAPI"
],
"summary": "Format direct-csi drives from a list",
"operationId": "DirectCSIFormatDrive",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/formatConfiguration"
}
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/formatDirectCSIDrivesResponse"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/direct-csi/volumes": {
"get": {
"tags": [
@@ -11561,6 +11671,20 @@ func init() {
}
}
},
"csiFormatErrorResponse": {
"type": "object",
"properties": {
"drive": {
"type": "string"
},
"error": {
"type": "string"
},
"node": {
"type": "string"
}
}
},
"deleteTenantRequest": {
"type": "object",
"properties": {
@@ -11685,6 +11809,36 @@ func init() {
}
}
},
"formatConfiguration": {
"type": "object",
"required": [
"drives",
"force"
],
"properties": {
"drives": {
"type": "array",
"minLength": 1,
"items": {
"type": "string"
}
},
"force": {
"type": "boolean"
}
}
},
"formatDirectCSIDrivesResponse": {
"type": "object",
"properties": {
"formatIssuesList": {
"type": "array",
"items": {
"$ref": "#/definitions/csiFormatErrorResponse"
}
}
}
},
"gcpConfiguration": {
"type": "object",
"required": [