Add Bucket Locking option and fix versioning configuration. (#661)

* Add Bucket Locking option and fix versioning configuration.

* Addres comments

* Rework the View Bucket options

* Remove extra padding
This commit is contained in:
Daniel Valdivia
2021-03-22 16:28:07 -07:00
committed by GitHub
parent 19195e0cd0
commit 744ccea842
34 changed files with 987 additions and 414 deletions

View File

@@ -530,6 +530,37 @@ func init() {
}
}
},
"/buckets/{bucket_name}/object-locking": {
"get": {
"tags": [
"UserAPI"
],
"summary": "Returns the status of object locking support on the bucket",
"operationId": "GetBucketObjectLockingStatus",
"parameters": [
{
"type": "string",
"name": "bucket_name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/bucketObLockingResponse"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets/{bucket_name}/objects": {
"get": {
"tags": [
@@ -3470,6 +3501,14 @@ func init() {
}
}
},
"bucketObLockingResponse": {
"type": "object",
"properties": {
"object_locking_enabled": {
"type": "boolean"
}
}
},
"bucketObject": {
"type": "object",
"properties": {
@@ -4400,6 +4439,9 @@ func init() {
"name"
],
"properties": {
"locking": {
"type": "boolean"
},
"name": {
"type": "string"
},
@@ -6247,6 +6289,37 @@ func init() {
}
}
},
"/buckets/{bucket_name}/object-locking": {
"get": {
"tags": [
"UserAPI"
],
"summary": "Returns the status of object locking support on the bucket",
"operationId": "GetBucketObjectLockingStatus",
"parameters": [
{
"type": "string",
"name": "bucket_name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/bucketObLockingResponse"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/buckets/{bucket_name}/objects": {
"get": {
"tags": [
@@ -9796,6 +9869,14 @@ func init() {
}
}
},
"bucketObLockingResponse": {
"type": "object",
"properties": {
"object_locking_enabled": {
"type": "boolean"
}
}
},
"bucketObject": {
"type": "object",
"properties": {
@@ -10726,6 +10807,9 @@ func init() {
"name"
],
"properties": {
"locking": {
"type": "boolean"
},
"name": {
"type": "string"
},