Adding delete remote bucket functionality (#1762)

This commit is contained in:
adfost
2022-03-28 15:36:23 -07:00
committed by GitHub
parent fcd50257ee
commit d1a5e5ba57
13 changed files with 962 additions and 54 deletions

View File

@@ -781,7 +781,7 @@ func init() {
"tags": [
"UserAPI"
],
"summary": "Deletes all replication rules on a bucket",
"summary": "Deletes all replication rules from a bucket",
"operationId": "DeleteAllReplicationRules",
"parameters": [
{
@@ -848,6 +848,42 @@ func init() {
}
}
},
"/buckets/{bucket_name}/delete-selected-replication-rules": {
"delete": {
"tags": [
"UserAPI"
],
"summary": "Deletes selected replication rules from a bucket",
"operationId": "DeleteSelectedReplicationRules",
"parameters": [
{
"type": "string",
"name": "bucket_name",
"in": "path",
"required": true
},
{
"name": "rules",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/bucketReplicationRuleList"
}
}
],
"responses": {
"204": {
"description": "A successful response."
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets/{bucket_name}/encryption/disable": {
"post": {
"tags": [
@@ -4535,6 +4571,17 @@ func init() {
}
}
},
"bucketReplicationRuleList": {
"type": "object",
"properties": {
"rules": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"bucketVersioningResponse": {
"type": "object",
"properties": {
@@ -7270,7 +7317,7 @@ func init() {
"tags": [
"UserAPI"
],
"summary": "Deletes all replication rules on a bucket",
"summary": "Deletes all replication rules from a bucket",
"operationId": "DeleteAllReplicationRules",
"parameters": [
{
@@ -7337,6 +7384,42 @@ func init() {
}
}
},
"/buckets/{bucket_name}/delete-selected-replication-rules": {
"delete": {
"tags": [
"UserAPI"
],
"summary": "Deletes selected replication rules from a bucket",
"operationId": "DeleteSelectedReplicationRules",
"parameters": [
{
"type": "string",
"name": "bucket_name",
"in": "path",
"required": true
},
{
"name": "rules",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/bucketReplicationRuleList"
}
}
],
"responses": {
"204": {
"description": "A successful response."
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets/{bucket_name}/encryption/disable": {
"post": {
"tags": [
@@ -11150,6 +11233,17 @@ func init() {
}
}
},
"bucketReplicationRuleList": {
"type": "object",
"properties": {
"rules": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"bucketVersioningResponse": {
"type": "object",
"properties": {