Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added container soft delete #9013

Merged
merged 1 commit into from
Apr 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,91 @@
}
]
},
"/{containerName}?restype=container&comp=undelete": {
"put": {
"tags": [
"container"
],
"operationId": "Container_Restore",
"description": "Restores a previously-deleted container.",
"parameters": [
{
"$ref": "#/parameters/Timeout"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ClientRequestId"
},
{
"$ref": "#/parameters/DeletedContainerName"
},
{
"$ref": "#/parameters/DeletedContainerVersion"
}
],
"responses": {
"201": {
"description": "Created.",
"headers": {
"x-ms-client-request-id": {
"x-ms-client-name": "ClientRequestId",
"type": "string",
"description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
},
"x-ms-request-id": {
"x-ms-client-name": "RequestId",
"type": "string",
"description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
},
"x-ms-version": {
"x-ms-client-name": "Version",
"type": "string",
"description": "Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
},
"Date": {
"type": "string",
"format": "date-time-rfc1123",
"description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
}
}
},
"default": {
"description": "Failure",
"headers": {
"x-ms-error-code": {
"x-ms-client-name": "ErrorCode",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/StorageError"
}
}
}
},
"parameters": [
{
"name": "restype",
"in": "query",
"required": true,
"type": "string",
"enum": [
"container"
]
},
{
"name": "comp",
"in": "query",
"required": true,
"type": "string",
"enum": [
"undelete"
]
}
]
},
"/{containerName}?comp=lease&restype=container&acquire": {
"put": {
"tags": [
Expand Down Expand Up @@ -9503,6 +9588,12 @@
"Name": {
"type": "string"
},
"Deleted": {
"type": "boolean"
},
"Version": {
"type": "string"
},
"Properties": {
"$ref": "#/definitions/ContainerProperties"
},
Expand Down Expand Up @@ -9551,6 +9642,13 @@
"DenyEncryptionScopeOverride": {
"type": "boolean",
"x-ms-client-name": "PreventEncryptionScopeOverride"
},
"DeletedTime": {
"type": "string",
"format": "date-time-rfc1123"
},
"RemainingRetentionDays": {
"type": "integer"
}
}
},
Expand Down Expand Up @@ -10797,6 +10895,24 @@
},
"description": "Optional. Version 2019-07-07 and later. Specifies the default encryption scope to set on the container and use for all future writes."
},
"DeletedContainerName": {
"name": "x-ms-deleted-container-name",
"x-ms-client-name": "DeletedContainerName",
"type": "string",
"in": "header",
"required": false,
"x-ms-parameter-location": "method",
"description": "Optional. Version 2019-12-12 and laster. Specifies the name of the deleted container to restore."
},
"DeletedContainerVersion": {
"name": "x-ms-deleted-container-version",
"x-ms-client-name": "DeletedContainerVersion",
"type": "string",
"in": "header",
"required": false,
"x-ms-parameter-location": "method",
"description": "Optional. Version 2019-12-12 and laster. Specifies the version of the deleted container to restore."
},
"DenyEncryptionScopeOverride": {
"name": "x-ms-deny-encryption-scope-override",
"x-ms-client-name": "PreventEncryptionScopeOverride",
Expand Down Expand Up @@ -10973,13 +11089,18 @@
"name": "include",
"in": "query",
"required": false,
"type": "string",
"enum": [
"metadata"
],
"x-ms-enum": {
"name": "ListContainersIncludeType",
"modelAsString": false
"type": "array",
"collectionFormat": "csv",
"items": {
"type" : "string",
"enum": [
"metadata",
"deleted"
],
"x-ms-enum": {
"name": "ListContainersIncludeType",
"modelAsString": false
}
},
"x-ms-parameter-location": "method",
"description": "Include this parameter to specify that the container's metadata be returned as part of the response body."
Expand Down