Skip to content

Commit 629429f

Browse files
authored
Added [more] validations to BackupService (#150)
* Added [more] validations to BackupService * Added a bit more validations (& fixed a URL issue)
1 parent 6db7e28 commit 629429f

5 files changed

Lines changed: 170 additions & 138 deletions

File tree

gen/go/qdrant/cloud/cluster/backup/v1/backup.pb.go

Lines changed: 30 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/qdrant/cloud/cluster/backup/v1/backup.swagger.json

Lines changed: 44 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,50 @@
138138
"tags": [
139139
"BackupService"
140140
]
141+
},
142+
"delete": {
143+
"summary": "Deletes a backup schedule in the account identified by the given ID.\nRequired permissions:\n- delete:backup_schedules",
144+
"operationId": "BackupService_DeleteBackupSchedule",
145+
"responses": {
146+
"200": {
147+
"description": "A successful response.",
148+
"schema": {
149+
"$ref": "#/definitions/v1DeleteBackupScheduleResponse"
150+
}
151+
},
152+
"default": {
153+
"description": "An unexpected error response.",
154+
"schema": {
155+
"$ref": "#/definitions/googlerpcStatus"
156+
}
157+
}
158+
},
159+
"parameters": [
160+
{
161+
"name": "accountId",
162+
"description": "The identifier of the account (in GUID format).\nThis is a required field.",
163+
"in": "path",
164+
"required": true,
165+
"type": "string"
166+
},
167+
{
168+
"name": "backupScheduleId",
169+
"description": "The identifier for the backup schedule (in GUID format).\nThis backup schedule should be part of the provided account.\nThis is a required field.",
170+
"in": "path",
171+
"required": true,
172+
"type": "string"
173+
},
174+
{
175+
"name": "deleteBackups",
176+
"description": "If set, the backups generated by this backup schedule will be deleted as well.",
177+
"in": "query",
178+
"required": false,
179+
"type": "boolean"
180+
}
181+
],
182+
"tags": [
183+
"BackupService"
184+
]
141185
}
142186
},
143187
"/api/cluster/backup/v1/accounts/{accountId}/backups": {
@@ -390,52 +434,6 @@
390434
"BackupService"
391435
]
392436
}
393-
},
394-
"/api/cluster/backup/v2/accounts/{accountId}/backup_schedules/{backupScheduleId}": {
395-
"delete": {
396-
"summary": "Deletes a backup schedule in the account identified by the given ID.\nRequired permissions:\n- delete:backup_schedules",
397-
"operationId": "BackupService_DeleteBackupSchedule",
398-
"responses": {
399-
"200": {
400-
"description": "A successful response.",
401-
"schema": {
402-
"$ref": "#/definitions/v1DeleteBackupScheduleResponse"
403-
}
404-
},
405-
"default": {
406-
"description": "An unexpected error response.",
407-
"schema": {
408-
"$ref": "#/definitions/googlerpcStatus"
409-
}
410-
}
411-
},
412-
"parameters": [
413-
{
414-
"name": "accountId",
415-
"description": "The identifier of the account (in GUID format).\nThis is a required field.",
416-
"in": "path",
417-
"required": true,
418-
"type": "string"
419-
},
420-
{
421-
"name": "backupScheduleId",
422-
"description": "The identifier for the backup schedule (in GUID format).\nThis backup schedule should be part of the provided account.\nThis is a required field.",
423-
"in": "path",
424-
"required": true,
425-
"type": "string"
426-
},
427-
{
428-
"name": "deleteBackups",
429-
"description": "If set, the backups generated by this backup schedule will be deleted as well.",
430-
"in": "query",
431-
"required": false,
432-
"type": "boolean"
433-
}
434-
],
435-
"tags": [
436-
"BackupService"
437-
]
438-
}
439437
}
440438
},
441439
"definitions": {

0 commit comments

Comments
 (0)