Skip to content

Commit

Permalink
Mark backup & restore operations as long running (Azure#9898)
Browse files Browse the repository at this point in the history
* Adding 7.2-preview version (Azure#8397)

* Adding 7.2-preview version

Signed-off-by: vasanthrajams <[email protected]>

* Resolve PR feedback

* Fix output-folder for go code generation

Co-authored-by: Heath Stewart <[email protected]>

* Marking backup/restore/selective key restore operation as LRO

In this PR, marking the all long running operations appropriately
using x-ms-long-running-operation.

Signed-off-by: vasanthrajams <[email protected]>

* pretty check

Co-authored-by: Heath Stewart <[email protected]>
Co-authored-by: vasanthrajams <[email protected]>
  • Loading branch information
3 people authored and 00Kai0 committed Oct 12, 2020
1 parent d3be1fb commit 0d3efc0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
"FullBackup"
],
"operationId": "FullBackup",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"description": "Creates a full backup using a user-provided SAS token to an Azure blob storage container.",
"parameters": [
{
Expand Down Expand Up @@ -124,6 +128,10 @@
"FullRestore"
],
"operationId": "FullRestoreOperation",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"description": "Restores all key materials using the SAS token pointing to a previously stored Azure Blob storage backup folder",
"parameters": [
{
Expand Down Expand Up @@ -152,7 +160,7 @@
}
},
"schema": {
"$ref": "#/definitions/FullRestoreOperation"
"$ref": "#/definitions/RestoreOperation"
}
},
"default": {
Expand All @@ -174,15 +182,15 @@
"tags": [
"FullRestore"
],
"operationId": "FullRestoreStatus",
"description": "Returns the status of full restore operation",
"operationId": "RestoreStatus",
"description": "Returns the status of restore operation",
"parameters": [
{
"name": "jobId",
"in": "path",
"required": true,
"type": "string",
"description": "The Job Id returned part of the full restore operation"
"description": "The Job Id returned part of the restore operation"
},
{
"$ref": "#/parameters/ApiVersionParameter"
Expand All @@ -192,7 +200,7 @@
"200": {
"description": "OK - Returns the full restore status",
"schema": {
"$ref": "#/definitions/FullRestoreOperation"
"$ref": "#/definitions/RestoreOperation"
}
},
"default": {
Expand All @@ -203,8 +211,8 @@
}
},
"x-ms-examples": {
"Full restore status": {
"$ref": "./examples/FullRestore-pending-example.json"
"Restore status": {
"$ref": "./examples/Restore-pending-example.json"
}
}
}
Expand All @@ -215,6 +223,10 @@
"Keys"
],
"operationId": "SelectiveKeyRestoreOperation",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"description": "Restores all key versions of a given key using user supplied SAS token pointing to a previously stored Azure Blob storage backup folder",
"parameters": [
{
Expand Down Expand Up @@ -381,7 +393,7 @@
},
"description": "Full backup operation"
},
"FullRestoreOperation": {
"RestoreOperation": {
"properties": {
"status": {
"type": "string",
Expand All @@ -393,11 +405,11 @@
},
"error": {
"$ref": "common.json#/definitions/Error",
"description": "Error encountered, if any, during the full restore operation."
"description": "Error encountered, if any, during the restore operation."
},
"jobId": {
"type": "string",
"description": "Identifier for the full restore operation."
"description": "Identifier for the restore operation."
},
"startTime": {
"type": "integer",
Expand All @@ -410,7 +422,7 @@
"description": "The end time of the restore operation"
}
},
"description": "Full restore operation"
"description": "Restore operation"
}
},
"parameters": {
Expand Down

0 comments on commit 0d3efc0

Please sign in to comment.