From 656c0987e09f490de20181416b2d64631cc436f3 Mon Sep 17 00:00:00 2001 From: sumitmal <32121310+sumitmal@users.noreply.github.com> Date: Wed, 3 Feb 2021 11:18:28 +0530 Subject: [PATCH 01/16] moving changes from Private repo --- .../2020-01-01-alpha/dataprotection.json | 4087 ++++++++++++++++- .../DeleteBackupInstance.json | 19 + .../GetBackupInstance.json | 47 + .../GetRecoveryPoint.json | 39 + .../ListBackupInstances.json | 51 + .../ListRecoveryPoints.json | 67 + .../PutBackupInstance.json | 113 + .../TriggerBackup.json | 27 + .../TriggerRehydrate.json | 24 + .../TriggerRestore.json | 47 + .../TriggerRestoreAsFiles.json | 34 + .../TriggerRestoreWithRehydration.json | 49 + .../ValidateForBackup.json | 45 + .../ValidateRestore.json | 49 + .../examples/CheckfeatureSupport.json | 29 + .../examples/GetOperationResult.json | 18 + .../examples/GetOperationStatus.json | 19 + .../JobCRUD/GetExportJobsOperationResult.json | 26 + .../examples/JobCRUD/GetJob.json | 56 + .../examples/JobCRUD/ListJobs.json | 135 + .../examples/JobCRUD/TriggerExportJobs.json | 17 + .../examples/OperationGroupGet.json | 15 - .../CreateOrUpdateBackupPolicy.json | 200 + .../PolicyCRUD/DeleteBackupPolicy.json | 13 + .../examples/PolicyCRUD/GetBackupPolicy.json | 101 + .../examples/PolicyCRUD/ListBackupPolicy.json | 102 + .../CheckBackupVaultsNameAvailability.json | 19 + .../examples/VaultCRUD/DeleteBackupVault.json | 12 + .../examples/VaultCRUD/GetBackupVault.json | 33 + .../VaultCRUD/GetBackupVaultWithMSI.json | 35 + .../GetBackupVaultsInResourceGroup.json | 59 + .../GetBackupVaultsInSubscription.json | 56 + .../VaultCRUD/GetOperationResultPatch.json | 41 + .../examples/VaultCRUD/PatchBackupVault.json | 41 + .../examples/VaultCRUD/PutBackupVault.json | 74 + .../VaultCRUD/PutBackupVaultWithMSI.json | 76 + .../resource-manager/readme.az.md | 28 - .../readme.azureresourceschema.md | 23 - .../resource-manager/readme.cli.md | 1 - .../resource-manager/readme.csharp.md | 15 - .../resource-manager/readme.go.md | 14 +- .../resource-manager/readme.java.md | 34 + .../dataprotection/resource-manager/readme.md | 113 +- .../resource-manager/readme.nodejs.md | 14 + .../resource-manager/readme.python.md | 45 +- .../resource-manager/readme.ruby.md | 26 + .../resource-manager/readme.typescript.md | 5 +- 47 files changed, 5963 insertions(+), 230 deletions(-) create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateRestore.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json delete mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/OperationGroupGet.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/DeleteBackupVault.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVault.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultWithMSI.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInSubscription.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVault.json create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVaultWithMSI.json delete mode 100644 specification/dataprotection/resource-manager/readme.az.md delete mode 100644 specification/dataprotection/resource-manager/readme.azureresourceschema.md delete mode 100644 specification/dataprotection/resource-manager/readme.cli.md delete mode 100644 specification/dataprotection/resource-manager/readme.csharp.md create mode 100644 specification/dataprotection/resource-manager/readme.java.md create mode 100644 specification/dataprotection/resource-manager/readme.nodejs.md create mode 100644 specification/dataprotection/resource-manager/readme.ruby.md diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json index 742c6f420b81..a50b609697bc 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json @@ -2,131 +2,4062 @@ "swagger": "2.0", "info": { "version": "2020-01-01-alpha", - "title": "dataprotection", - "description": "Description of the new service", + "title": "DataProtectionBackupClient", "x-ms-code-generation-settings": { - "name": "dataprotectionClient" + "internalConstructors": false } }, "host": "management.azure.com", - "schemes": ["https"], - "consumes": ["application/json"], - "produces": ["application/json"], - "security": [ - { - "azure_auth": ["user_impersonation"] - } + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/operations": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults": { + "get": { + "tags": [ + "BackupVaults" + ], + "description": "Returns resource collection belonging to a subscription.", + "operationId": "BackupVaults_GetResourcesInSubscription", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BackupVaultResourceList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get BackupVaults in Subscription": { + "$ref": "./examples/VaultCRUD/GetBackupVaultsInSubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationResults/{operationId}": { + "get": { + "tags": [ + "GetOperationResult" + ], + "description": "Gets the operation result for a resource", + "operationId": "OperationResult_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "location", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + } + }, + "summary": "Gets the operation status for a resource.", + "x-ms-examples": { + "Get OperationStatus": { + "$ref": "./examples/GetOperationResult.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}": { + "get": { + "tags": [ + "OperationStatus" + ], + "summary": "Gets the operation status for a resource.", + "operationId": "GetOperationStatus", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "location", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get OperationStatus": { + "$ref": "./examples/GetOperationStatus.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults": { + "get": { + "tags": [ + "BackupVaults" + ], + "description": "Returns resource collection belonging to a resource group.", + "operationId": "BackupVaults_GetResourcesInResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BackupVaultResourceList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get BackupVaults in ResourceGroup": { + "$ref": "./examples/VaultCRUD/GetBackupVaultsInResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}": { "get": { - "tags": ["Tag1"], - "operationId": "OperationGroup_Get", + "tags": [ + "BackupVaults" + ], + "description": "Returns a resource belonging to a resource group.", + "operationId": "BackupVaults_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BackupVaultResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get BackupVault": { + "$ref": "./examples/VaultCRUD/GetBackupVault.json" + }, + "Get BackupVault With MSI": { + "$ref": "./examples/VaultCRUD/GetBackupVaultWithMSI.json" + } + } + }, + "put": { + "tags": [ + "BackupVaults" + ], + "description": "Creates or updates a BackupVault resource belonging to a resource group.", + "operationId": "BackupVaults_Put", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "parameters", + "in": "body", + "description": "Request body for operation", + "required": true, + "schema": { + "$ref": "#/definitions/BackupVaultResource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BackupVaultResource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/BackupVaultResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create BackupVault": { + "$ref": "./examples/VaultCRUD/PutBackupVault.json" + }, + "Create BackupVault With MSI": { + "$ref": "./examples/VaultCRUD/PutBackupVaultWithMSI.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "BackupVaults" + ], + "description": "Deletes a BackupVault resource from the resource group.", + "operationId": "BackupVaults_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete BackupVault": { + "$ref": "./examples/VaultCRUD/DeleteBackupVault.json" + } + } + }, + "patch": { + "tags": [ + "BackupVaults" + ], + "description": "Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.", + "operationId": "BackupVaults_Patch", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "parameters", + "in": "body", + "description": "Request body for operation", + "required": true, + "schema": { + "$ref": "#/definitions/PatchResourceRequestInput" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BackupVaultResource" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, "x-ms-examples": { - "BatchAccountDelete": { "$ref": "./examples/OperationGroupGet.json" } + "Patch BackupVault": { + "$ref": "./examples/VaultCRUD/PatchBackupVault.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationResults/{operationId}": { + "get": { + "tags": [ + "Resources" + ], + "operationId": "GetOperationResultPatch", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BackupVaultResource" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GetOperationResult Patch": { + "$ref": "./examples/VaultCRUD/GetOperationResultPatch.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/checkNameAvailability": { + "post": { + "tags": [ + "BackupVaults" + ], + "summary": "API to check for resource name availability", + "operationId": "BackupVaults_CheckNameAvailability", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "location", + "in": "path", + "description": "The location in which uniqueness will be verified.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Check name availability request", + "required": true, + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Check BackupVaults name availability": { + "$ref": "./examples/VaultCRUD/CheckBackupVaultsNameAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport": { + "post": { + "tags": [ + "DppFeatureSupport" + ], + "summary": "Validates if a feature is supported", + "operationId": "CheckFeatureSupport", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "location", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Feature support request object", + "required": true, + "schema": { + "$ref": "#/definitions/FeatureValidationRequestBase" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FeatureValidationResponseBase" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Check Azure Vm Backup Feature Support": { + "$ref": "./examples/CheckfeatureSupport.json" + } + } + } + }, + "/providers/Microsoft.DataProtection/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Returns the list of available operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClientDiscoveryResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "value" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies": { + "get": { + "tags": [ + "BackupPolicies" + ], + "description": "Returns list of backup policies belonging to a backup vault", + "operationId": "BackupPolicies_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BaseBackupPolicyResourceList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List BackupPolicy": { + "$ref": "./examples/PolicyCRUD/ListBackupPolicy.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}": { + "get": { + "tags": [ + "BackupPolicies" + ], + "operationId": "BackupPolicies_Get", + "description": "Gets a backup policy belonging to a backup vault", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupPolicyName", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BaseBackupPolicyResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "summary": "Gets a backup policy belonging to a backup vault", + "x-ms-examples": { + "Get BackupPolicy": { + "$ref": "./examples/PolicyCRUD/GetBackupPolicy.json" + } + } + }, + "put": { + "tags": [ + "BackupPolicies" + ], + "operationId": "BackupPolicies_Put", + "summary": "Creates or Updates a backup policy belonging to a backup vault", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupPolicyName", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Request body for operation", + "required": true, + "schema": { + "$ref": "#/definitions/BaseBackupPolicyResource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BaseBackupPolicyResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "CreateOrUpdate BackupPolicy": { + "$ref": "./examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json" + } + } + }, + "delete": { + "tags": [ + "BackupPolicies" + ], + "operationId": "BackupPolicies_Delete", + "summary": "Deletes a backup policy belonging to a backup vault", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupPolicyName", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete BackupPolicy": { + "$ref": "./examples/PolicyCRUD/DeleteBackupPolicy.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances": { + "get": { + "tags": [ + "BackupInstances" + ], + "description": "Gets a backup instances belonging to a backup vault", + "operationId": "BackupInstances_GetBackupInstancesInVault", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BackupInstanceResourceList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List BackupInstances in a Vault": { + "$ref": "./examples/BackupInstanceOperations/ListBackupInstances.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}": { + "get": { + "tags": [ + "BackupInstances" + ], + "description": "Gets a backup instance with name in a backup vault", + "operationId": "BackupInstances_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupInstanceName", + "description": "The name of the backup instance", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BackupInstanceResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get BackupInstance": { + "$ref": "./examples/BackupInstanceOperations/GetBackupInstance.json" + } + } + }, + "put": { + "tags": [ + "BackupInstances" + ], + "operationId": "BackupInstances_Put", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupInstanceName", + "description": "The name of the backup instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Request body for operation", + "required": true, + "schema": { + "$ref": "#/definitions/BackupInstanceResource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BackupInstanceResource" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/BackupInstanceResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create BackupInstance": { + "$ref": "./examples/BackupInstanceOperations/PutBackupInstance.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "BackupInstances" + ], + "operationId": "BackupInstances_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupInstanceName", + "description": "The name of the backup instance", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The operation will be completed asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.", + "type": "integer", + "format": "int32" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete BackupInstance": { + "$ref": "./examples/BackupInstanceOperations/DeleteBackupInstance.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup": { + "post": { + "tags": [ + "BackupInstances" + ], + "description": "Trigger adhoc backup ", + "operationId": "BackupInstances_AdhocBackup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupInstanceName", + "description": "The name of the backup instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Request body for operation", + "required": true, + "schema": { + "$ref": "#/definitions/TriggerBackupRequest" + } + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "202": { + "description": "The operation will be completed asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.", + "type": "integer", + "format": "int32" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Trigger Adhoc Backup": { + "$ref": "./examples/BackupInstanceOperations/TriggerBackup.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/validateForBackup": { + "post": { + "tags": [ + "BackupInstances" + ], + "description": "Validate whether adhoc backup will be successful or not", + "operationId": "BackupInstances_ValidateForBackup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "parameters", + "in": "body", + "description": "Request body for operation", + "required": true, + "schema": { + "$ref": "#/definitions/ValidateForBackupRequest" + } + } + ], + "responses": { + "202": { + "description": "The operation will be completed asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.", + "type": "integer", + "format": "int32" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Validate For Backup": { + "$ref": "./examples/BackupInstanceOperations/ValidateForBackup.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints": { + "get": { + "tags": [ + "RecoveryPoint" + ], + "description": "Returns a list of Recovery Points for a DataSource in a vault.", + "operationId": "RecoveryPoints_GetList", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupInstanceName", + "description": "The name of the backup instance", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AzureBackupRecoveryPointResourceList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Recovery Points in a Vault": { + "$ref": "./examples/BackupInstanceOperations/ListRecoveryPoints.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}": { + "get": { + "tags": [ + "RecoveryPoint" + ], + "description": "Gets a Recovery Point using recoveryPointId for a Datasource.", + "operationId": "RecoveryPoint_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupInstanceName", + "description": "The name of the backup instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "recoveryPointId", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AzureBackupRecoveryPointResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Recovery Point": { + "$ref": "./examples/BackupInstanceOperations/GetRecoveryPoint.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/rehydrate": { + "post": { + "description": "rehydrate recovery point for restore for a BackupInstance", + "operationId": "BackupInstances_TriggerRehydrate", + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "description": "Request body for operation", + "in": "body", + "name": "parameters", + "required": true, + "schema": { + "$ref": "#/definitions/AzureBackupRehydrationRequest" + } + }, + { + "in": "path", + "name": "backupInstanceName", + "required": true, + "type": "string" + } + ], + "produces": [ + "application/json" + ], + "responses": { + "202": { + "description": "The operation will be completed asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.", + "type": "integer", + "format": "int32" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "tags": [ + "BackupInstances" + ], + "x-ms-examples": { + "Trigger Rehydrate": { + "$ref": "./examples/BackupInstanceOperations/TriggerRehydrate.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore": { + "post": { + "tags": [ + "BackupInstances" + ], + "description": "Triggers restore for a BackupInstance", + "operationId": "BackupInstances_TriggerRestore", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupInstanceName", + "description": "The name of the backup instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Request body for operation", + "required": true, + "schema": { + "$ref": "#/definitions/AzureBackupRestoreRequest" + } + } + ], + "responses": { + "202": { + "description": "The operation will be completed asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.", + "type": "integer", + "format": "int32" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples":{ + "Trigger Restore":{ + "$ref":"./examples/BackupInstanceOperations/TriggerRestore.json" + }, + "Trigger Restore As Files":{ + "$ref":"./examples/BackupInstanceOperations/TriggerRestoreAsFiles.json" + }, + "Trigger Restore With Rehydration":{ + "$ref":"./examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateRestore": { + "post": { + "tags": [ + "BackupInstances" + ], + "description": "Validates if Restore can be triggered for a DataSource", + "operationId": "BackupInstances_ValidateRestore", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "backupInstanceName", + "description": "The name of the backup instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Request body for operation", + "required": true, + "schema": { + "$ref": "#/definitions/ValidateRestoreRequestObject" + } + } + ], + "responses": { + "202": { + "description": "The operation will be completed asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.", + "type": "integer", + "format": "int32" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Validate Restore": { + "$ref": "./examples/BackupInstanceOperations/ValidateRestore.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs": { + "get": { + "tags": [ + "AzureBackupJobs" + ], + "description": "Returns list of jobs belonging to a backup vault", + "operationId": "Jobs_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/VaultName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AzureBackupJobResourceList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Jobs": { + "$ref": "./examples/JobCRUD/ListJobs.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}": { + "get": { + "tags": [ + "AzureBackupJob" + ], + "description": "Gets a job with id in a backup vault", + "operationId": "Job_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "name": "jobId", + "description": "The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AzureBackupJobResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Job": { + "$ref": "./examples/JobCRUD/GetJob.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobsExport": { + "post": { + "tags": [ + "AzureBackupJob" + ], + "description": "Triggers export of jobs and returns an OperationID to track.", + "operationId": "ExportJobs_Trigger", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/VaultName" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.", + "type": "integer", + "format": "int32" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Trigger Export Jobs": { + "$ref": "./examples/JobCRUD/TriggerExportJobs.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/operations/{operationId}": { + "get": { + "tags": [ + "AzureBackupJob" + ], + "description": "Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format.", + "operationId": "ExportJobsOperationResult_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/VaultName" + }, + { + "name": "operationId", + "description": "OperationID which represents the export job.", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ExportJobsResult" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Export Jobs Operation Result": { + "$ref": "./examples/JobCRUD/GetExportJobsOperationResult.json" + } + } + } + } + }, + "definitions": { + "AbsoluteDeleteOption": { + "allOf": [ + { + "$ref": "#/definitions/DeleteOption" + } + ], + "description": "Delete option with duration", + "required": [ + "duration", + "objectType" + ], + "title": "AbsoluteDeleteOption", + "type": "object", + "x-ms-discriminator-value": "AbsoluteDeleteOption" + }, + "AdHocBackupRuleOptions": { + "description": "Adhoc backup rules", + "properties": { + "ruleName": { + "type": "string" + }, + "triggerOption": { + "$ref": "#/definitions/AdhocBackupTriggerOption" + } + }, + "required": [ + "ruleName", + "triggerOption" + ], + "title": "AdHocBackupRuleOptions", + "type": "object" + }, + "AdhocBackupTriggerOption": { + "description": "Adhoc backup trigger option", + "properties": { + "retentionTagOverride": { + "type": "string" + } + }, + "title": "AdhocBackupTriggerOption", + "type": "object" + }, + "AdhocBasedTaggingCriteria": { + "description": "Adhoc backup tagging criteria", + "properties": { + "tagInfo": { + "$ref": "#/definitions/RetentionTag", + "description": "Retention tag information" + } + }, + "title": "AdhocBasedTaggingCriteria", + "type": "object" + }, + "AdhocBasedTriggerContext": { + "allOf": [ + { + "$ref": "#/definitions/TriggerContext" + } + ], + "description": "Adhoc trigger context", + "properties": { + "taggingCriteria": { + "$ref": "#/definitions/AdhocBasedTaggingCriteria", + "description": "Tagging Criteria containing retention tag for adhoc backup." + } + }, + "required": [ + "objectType", + "taggingCriteria" + ], + "title": "AdhocBasedTriggerContext", + "type": "object", + "x-ms-discriminator-value": "AdhocBasedTriggerContext" + }, + "AzureBackupDiscreteRecoveryPoint": { + "allOf": [ + { + "$ref": "#/definitions/AzureBackupRecoveryPoint" + } + ], + "description": "Azure backup discrete RecoveryPoint", + "properties": { + "friendlyName": { + "type": "string" + }, + "recoveryPointDataStoresDetails": { + "items": { + "$ref": "#/definitions/RecoveryPointDataStoreDetails" + }, + "type": "array" + }, + "recoveryPointTime": { + "format": "date-time", + "type": "string" + }, + "recoveryPointType": { + "type": "string" + }, + "retentionTagName": { + "type": "string" + }, + "retentionTagVersion": { + "type": "string" + } + }, + "required": [ + "recoveryPointTime" + ], + "title": "AzureBackupDiscreteRecoveryPoint", + "type": "object", + "x-ms-discriminator-value": "AzureBackupDiscreteRecoveryPoint" + }, + "AzureBackupJob": { + "description": "AzureBackup Job Class", + "properties": { + "activityID": { + "description": "Job Activity Id", + "type": "string" + }, + "backupInstanceFriendlyName": { + "description": "Name of the Backup Instance", + "type": "string" + }, + "backupInstanceId": { + "description": "ARM ID of the Backup Instance", + "readOnly": true, + "type": "string" + }, + "dataSourceId": { + "description": "ARM ID of the DataSource", + "type": "string" + }, + "dataSourceLocation": { + "description": "Location of the DataSource", + "type": "string" + }, + "dataSourceName": { + "description": "User Friendly Name of the DataSource", + "type": "string" + }, + "dataSourceSetName": { + "description": "Data Source Set Name of the DataSource", + "type": "string" + }, + "dataSourceType": { + "description": "Type of DataSource", + "type": "string" + }, + "duration": { + "description": "Total run time of the job.", + "format": "duration", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "EndTime of the job(in UTC)", + "format": "date-time", + "readOnly": true, + "type": "string" + }, + "errorDetails": { + "description": "A List, detatiling the errors related to the job", + "items": { + "$ref": "#/definitions/UserFacingError" + }, + "readOnly": true, + "type": "array" + }, + "extendedInfo": { + "$ref": "#/definitions/JobExtendedInfo", + "description": "Extended Information about the job", + "readOnly": true + }, + "isUserTriggered": { + "description": "Indicated that whether the job is adhoc(true) or scheduled(false)", + "type": "boolean" + }, + "operation": { + "description": "It indicates the type of Job i.e. Backup:full/log/diff ;Restore:ALR/OLR; Retention:Backup/Archive ; Management:ConfigureProtection/UnConfigure", + "type": "string" + }, + "operationCategory": { + "description": "It indicates the type of Job i.e. Backup/Restore/Retention/Management", + "type": "string" + }, + "policyId": { + "description": "ARM ID of the policy", + "readOnly": true, + "type": "string" + }, + "policyName": { + "description": "Name of the policy", + "readOnly": true, + "type": "string" + }, + "progressEnabled": { + "description": "Indicated whether progress is enabled for the job", + "type": "boolean" + }, + "progressUrl": { + "description": "Url which contains job's progress", + "readOnly": true, + "type": "string" + }, + "restoreType": { + "description": "It indicates the sub type of operation i.e. in case of Restore it can be ALR/OLR", + "readOnly": true, + "type": "string" + }, + "sourceResourceGroup": { + "description": "Name of the Datasource's Resource Group", + "type": "string" + }, + "sourceSubscriptionID": { + "description": "SubscriptionId corresponding to the DataSource", + "type": "string" + }, + "startTime": { + "description": "StartTime of the job(in UTC)", + "format": "date-time", + "type": "string" + }, + "status": { + "description": "Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning", + "type": "string" + }, + "subscriptionId": { + "description": "Subscription Id of the corresponding backup vault", + "type": "string" + }, + "supportedActions": { + "description": "List of supported actions", + "items": { + "type": "string" + }, + "type": "array" + }, + "vaultName": { + "description": "Name of the vault", + "type": "string" + } + }, + "required": [ + "activityID", + "subscriptionId", + "dataSourceId", + "vaultName", + "backupInstanceFriendlyName", + "sourceResourceGroup", + "dataSourceSetName", + "dataSourceName", + "progressEnabled", + "sourceSubscriptionID", + "dataSourceLocation", + "startTime", + "dataSourceType", + "operationCategory", + "operation", + "status", + "isUserTriggered", + "supportedActions" + ], + "type": "object" + }, + "AzureBackupJobResource": { + "allOf": [ + { + "$ref": "#/definitions/DppResource" + } + ], + "description": "AzureBackup Job Resource Class", + "properties": { + "properties": { + "$ref": "#/definitions/AzureBackupJob", + "description": "AzureBackupJobResource properties", + "type": "object" + } + }, + "type": "object" + }, + "AzureBackupJobResourceList": { + "allOf": [ + { + "$ref": "#/definitions/DppResourceList" + } + ], + "description": "List of AzureBackup Job resources", + "properties": { + "value": { + "description": "List of resources.", + "items": { + "$ref": "#/definitions/AzureBackupJobResource" + }, + "type": "array" + } + }, + "type": "object" + }, + "AzureBackupParams": { + "allOf": [ + { + "$ref": "#/definitions/BackupParameters" + } + ], + "description": "Azure backup parameters", + "properties": { + "backupType": { + "description": "BackupType ; Full/Incremental etc", + "type": "string" + } + }, + "required": [ + "backupType", + "objectType" + ], + "title": "AzureBackupParams", + "type": "object", + "x-ms-discriminator-value": "AzureBackupParams" + }, + "AzureBackupRecoveryPoint": { + "description": "Azure backup recoveryPoint", + "discriminator": "objectType", + "properties": { + "objectType": { + "type": "string" + } + }, + "required": [ + "objectType" + ], + "title": "AzureBackupRecoveryPoint", + "type": "object" + }, + "AzureBackupRecoveryPointBasedRestoreRequest": { + "allOf": [ + { + "$ref": "#/definitions/AzureBackupRestoreRequest" + } + ], + "description": "Azure backup recoveryPoint based restore request", + "properties": { + "recoveryPointId": { + "type": "string" + } + }, + "required": [ + "recoveryPointId" + ], + "title": "AzureBackupRecoveryPointBasedRestoreRequest", + "type": "object", + "x-ms-discriminator-value": "AzureBackupRecoveryPointBasedRestoreRequest" + }, + "AzureBackupRecoveryPointResource": { + "allOf": [ + { + "$ref": "#/definitions/DppResource" + } + ], + "description": "Azure backup recoveryPoint resource", + "properties": { + "properties": { + "$ref": "#/definitions/AzureBackupRecoveryPoint", + "description": "AzureBackupRecoveryPointResource properties", + "x-ms-client-flatten": true + } + }, + "title": "AzureBackupRecoveryPointResource" + }, + "AzureBackupRecoveryPointResourceList": { + "allOf": [ + { + "$ref": "#/definitions/DppResourceList" + } + ], + "description": "Azure backup recoveryPoint resource list", + "properties": { + "value": { + "description": "List of resources.", + "items": { + "$ref": "#/definitions/AzureBackupRecoveryPointResource" + }, + "type": "array" + } + }, + "title": "AzureBackupRecoveryPointResourceList", + "type": "object" + }, + "AzureBackupRehydrationRequest": { + "description": "Azure Backup Rehydrate Request", + "properties": { + "recoveryPointId": { + "description": "Id of the recovery point to be recovered", + "type": "string" + }, + "rehydrationPriority": { + "description": "Priority to be used for rehydration. Values High or Standard", + "$ref": "#/definitions/RehydrationPriority" + }, + "rehydrationRetentionDuration": { + "description": "Retention duration in ISO 8601 format i.e P10D .", + "type": "string" + } + }, + "required": [ + "recoveryPointId", + "rehydrationRetentionDuration" + ], + "title": "AzureBackupRehydrationRequest", + "type": "object" + }, + "AzureBackupRestoreRequest": { + "description": "Azure backup restore request", + "discriminator": "objectType", + "properties": { + "objectType": { + "type": "string" + }, + "restoreTargetInfo": { + "$ref": "#/definitions/RestoreTargetInfoBase", + "description": "Gets or sets the restore target information." + }, + "sourceDataStoreType": { + "description": "Gets or sets the type of the source data store.", + "enum": [ + "ArchiveStore", + "SnapshotStore", + "VaultStore" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "SourceDataStoreType" + } + } + }, + "required": [ + "objectType", + "restoreTargetInfo", + "sourceDataStoreType" + ], + "title": "AzureBackupRestoreRequest", + "type": "object" + }, + "AzureBackupRestoreWithRehydrationRequest": { + "allOf": [ + { + "$ref": "#/definitions/AzureBackupRecoveryPointBasedRestoreRequest" + } + ], + "description": "AzureBackup Restore with Rehydration Request", + "properties": { + "rehydrationPriority": { + "description": "Priority to be used for rehydration. Values High or Standard", + "$ref": "#/definitions/RehydrationPriority" + }, + "rehydrationRetentionDuration": { + "description": "Retention duration in ISO 8601 format i.e P10D .", + "type": "string" + } + }, + "required": [ + "rehydrationPriority", + "rehydrationRetentionDuration" + ], + "title": "AzureBackupRestoreWithRehydrationRequest", + "type": "object", + "x-ms-discriminator-value": "AzureBackupRestoreWithRehydrationRequest" + }, + "AzureBackupRule": { + "allOf": [ + { + "$ref": "#/definitions/BasePolicyRule" + } + ], + "description": "Azure backup rule", + "properties": { + "backupParameters": { + "$ref": "#/definitions/BackupParameters" + }, + "dataStore": { + "$ref": "#/definitions/DataStoreInfoBase" + }, + "trigger": { + "$ref": "#/definitions/TriggerContext" + } + }, + "required": [ + "dataStore", + "name", + "objectType", + "trigger" + ], + "title": "AzureBackupRule", + "type": "object", + "x-ms-discriminator-value": "AzureBackupRule" + }, + "AzureRetentionRule": { + "allOf": [ + { + "$ref": "#/definitions/BasePolicyRule" + } + ], + "description": "Azure retention rule", + "properties": { + "isDefault": { + "type": "boolean" + }, + "lifecycles": { + "items": { + "$ref": "#/definitions/SourceLifeCycle" + }, + "type": "array" + } + }, + "required": [ + "lifecycles", + "name", + "objectType" + ], + "title": "AzureRetentionRule", + "type": "object", + "x-ms-discriminator-value": "AzureRetentionRule" + }, + "BackupCriteria": { + "description": "BackupCriteria base class", + "discriminator": "objectType", + "properties": { + "objectType": { + "description": "Type of the specific object - used for deserializing", + "type": "string" + } + }, + "required": [ + "objectType" + ], + "title": "BackupCriteria", + "type": "object" + }, + "BackupInstance": { + "description": "Backup instance", + "properties": { + "dataSourceInfo": { + "$ref": "#/definitions/Datasource", + "description": "Gets or sets the data source information." + }, + "dataSourceSetInfo": { + "$ref": "#/definitions/DatasourceSet", + "description": "Gets or sets the data source set information." + }, + "objectType": { + "type": "string" + }, + "policyInfo": { + "$ref": "#/definitions/PolicyInfo", + "description": "Gets or sets the policy information." + }, + "protectionStatus": { + "$ref": "#/definitions/ProtectionStatusDetails", + "description": "Specifies the protection status of the resource", + "readOnly": true + }, + "provisioningState": { + "description": "Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed", + "readOnly": true, + "type": "string" + } + }, + "required": [ + "dataSourceInfo", + "policyInfo" + ], + "title": "BackupInstance", + "type": "object" + }, + "BackupInstanceResource": { + "allOf": [ + { + "$ref": "#/definitions/DppResource" + } + ], + "description": "BackupInstance Resource", + "properties": { + "properties": { + "$ref": "#/definitions/BackupInstance", + "description": "BackupInstanceResource properties", + "x-ms-client-flatten": true + } + }, + "title": "BackupInstanceResource" + }, + "BackupInstanceResourceList": { + "allOf": [ + { + "$ref": "#/definitions/DppResourceList" + } + ], + "description": "BackupInstance Resource list response", + "properties": { + "value": { + "description": "List of resources.", + "items": { + "$ref": "#/definitions/BackupInstanceResource" + }, + "type": "array" + } + }, + "title": "BackupInstanceResourceList", + "type": "object" + }, + "BackupParameters": { + "description": "BackupParameters base", + "discriminator": "objectType", + "properties": { + "objectType": { + "description": "Type of the specific object - used for deserializing", + "type": "string" + } + }, + "required": [ + "objectType" + ], + "title": "BackupParameters", + "type": "object" + }, + "BackupPolicy": { + "allOf": [ + { + "$ref": "#/definitions/BaseBackupPolicy" + } + ], + "description": "Rule based backup policy", + "properties": { + "policyRules": { + "description": "Policy rule dictionary that contains rules for each backptype i.e Full/Incremental/Logs etc", + "items": { + "$ref": "#/definitions/BasePolicyRule" + }, + "type": "array" + } + }, + "required": [ + "datasourceTypes", + "policyRules" + ], + "title": "BackupPolicy", + "type": "object", + "x-ms-discriminator-value": "BackupPolicy" + }, + "BackupSchedule": { + "description": "Schedule for backup", + "properties": { + "repeatingTimeIntervals": { + "description": "ISO 8601 repeating time interval format", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "repeatingTimeIntervals" + ], + "title": "BackupSchedule", + "type": "object" + }, + "BackupVault": { + "description": "Backup Vault", + "properties": { + "provisioningState": { + "description": "Provisioning state of the BackupVault resource", + "enum": [ + "Failed", + "Provisioning", + "Succeeded", + "Unknown", + "Updating" + ], + "readOnly": true, + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ProvisioningState" + } + }, + "storageSettings": { + "description": "Storage Settings", + "items": { + "$ref": "#/definitions/StorageSetting" + }, + "type": "array" + } + }, + "title": "BackupVault", + "type": "object" + }, + "BackupVaultResource": { + "allOf": [ + { + "$ref": "#/definitions/DppTrackedResource" + } + ], + "description": "Backup Vault Resource", + "properties": { + "properties": { + "$ref": "#/definitions/BackupVault", + "description": "BackupVaultResource properties", + "x-ms-client-flatten": true + } + }, + "title": "BackupVault Resource" + }, + "BackupVaultResourceList": { + "allOf": [ + { + "$ref": "#/definitions/DppResourceList" + } + ], + "description": "List of BackupVault resources", + "properties": { + "value": { + "description": "List of resources.", + "items": { + "$ref": "#/definitions/BackupVaultResource" + }, + "type": "array" + } + }, + "title": "BackupVaultResourceList", + "type": "object" + }, + "BaseBackupPolicy": { + "description": "BackupPolicy base", + "discriminator": "objectType", + "properties": { + "datasourceTypes": { + "description": "Type of datasource for the backup management", + "items": { + "type": "string" + }, + "type": "array" + }, + "objectType": { + "type": "string" + } + }, + "required": [ + "datasourceTypes", + "objectType" + ], + "title": "BaseBackupPolicy", + "type": "object" + }, + "BaseBackupPolicyResource": { + "allOf": [ + { + "$ref": "#/definitions/DppResource" + } + ], + "description": "BaseBackupPolicy resource", + "properties": { + "properties": { + "$ref": "#/definitions/BaseBackupPolicy", + "description": "BaseBackupPolicyResource properties", + "x-ms-client-flatten": true + } + }, + "title": "BaseBackupPolicyResource" + }, + "BaseBackupPolicyResourceList": { + "allOf": [ + { + "$ref": "#/definitions/DppResourceList" + } + ], + "description": "List of BaseBackupPolicy resources", + "properties": { + "value": { + "description": "List of resources.", + "items": { + "$ref": "#/definitions/BaseBackupPolicyResource" + }, + "type": "array" + } + }, + "title": "BaseBackupPolicyResourceList", + "type": "object" + }, + "BasePolicyRule": { + "description": "BasePolicy Rule", + "discriminator": "objectType", + "properties": { + "name": { + "type": "string" + }, + "objectType": { + "type": "string" + } + }, + "required": [ + "name", + "objectType" + ], + "title": "BasePolicyRule", + "type": "object" + }, + "CheckNameAvailabilityRequest": { + "description": "CheckNameAvailability Request", + "properties": { + "name": { + "description": "Resource name for which availability needs to be checked", + "type": "string" + }, + "type": { + "description": "Describes the Resource type: Microsoft.DataProtection/BackupVaults", + "type": "string" + } + }, + "title": "CheckNameAvailabilityRequest", + "type": "object" + }, + "CheckNameAvailabilityResult": { + "description": "CheckNameAvailability Result", + "properties": { + "message": { + "description": "Gets or sets the message.", + "type": "string" + }, + "nameAvailable": { + "description": "Gets or sets a value indicating whether [name available].", + "type": "boolean" + }, + "reason": { + "description": "Gets or sets the reason.", + "type": "string" + } + }, + "title": "CheckNameAvailabilityResult", + "type": "object" + }, + "ClientDiscoveryDisplay": { + "description": "Localized display information of an operation.", + "properties": { + "description": { + "description": "Description of the operation having details of what operation is about.", + "type": "string" + }, + "operation": { + "description": "Operations Name itself.", + "type": "string" + }, + "provider": { + "description": "Name of the provider for display purposes", + "type": "string" + }, + "resource": { + "description": "ResourceType for which this Operation can be performed.", + "type": "string" + } + }, + "title": "ClientDiscoveryDisplay", + "type": "object" + }, + "ClientDiscoveryForLogSpecification": { + "description": "Class to represent shoebox log specification in json client discovery.", + "properties": { + "blobDuration": { + "description": "blob duration of shoebox log specification", + "type": "string" + }, + "displayName": { + "description": "Localized display name", + "type": "string" + }, + "name": { + "description": "Name for shoebox log specification.", + "type": "string" + } + }, + "title": "ClientDiscoveryForLogSpecification", + "type": "object" + }, + "ClientDiscoveryForProperties": { + "description": "Class to represent shoebox properties in json client discovery.", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ClientDiscoveryForServiceSpecification", + "description": "Operation properties." + } + }, + "title": "ClientDiscoveryForProperties", + "type": "object" + }, + "ClientDiscoveryForServiceSpecification": { + "description": "Class to represent shoebox service specification in json client discovery.", + "properties": { + "logSpecifications": { + "description": "List of log specifications of this operation.", + "items": { + "$ref": "#/definitions/ClientDiscoveryForLogSpecification" + }, + "type": "array" + } + }, + "title": "ClientDiscoveryForServiceSpecification", + "type": "object" + }, + "ClientDiscoveryResponse": { + "description": "Operations List response which contains list of available APIs.", + "properties": { + "nextLink": { + "description": "Link to the next chunk of Response.", + "type": "string" + }, + "value": { + "description": "List of available operations.", + "items": { + "$ref": "#/definitions/ClientDiscoveryValueForSingleApi" + }, + "type": "array" + } + }, + "title": "ClientDiscoveryResponse", + "type": "object" + }, + "ClientDiscoveryValueForSingleApi": { + "description": "Available operation details.", + "properties": { + "display": { + "$ref": "#/definitions/ClientDiscoveryDisplay", + "description": "Contains the localized display information for this particular operation" + }, + "name": { + "description": "Name of the Operation.", + "type": "string" + }, + "origin": { + "description": "The intended executor of the operation;governs the display of the operation in the RBAC UX and the audit logs UX", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/ClientDiscoveryForProperties", + "description": "Properties for the given operation.", + "x-ms-client-flatten": true + } + }, + "title": "ClientDiscoveryValueForSingleApi", + "type": "object" + }, + "CloudError": { + "description": "An error response from Azure Backuup.", + "properties": { + "error": { + "$ref": "#/definitions/Error" + } + }, + "title": "CloudError", + "x-ms-external": true + }, + "CopyOnExpiryOption": { + "allOf": [ + { + "$ref": "#/definitions/CopyOption" + } + ], + "description": "Copy on Expiry Option", + "required": [ + "objectType" + ], + "title": "CopyOnExpiryOption", + "type": "object", + "x-ms-discriminator-value": "CopyOnExpiryOption" + }, + "CopyOption": { + "description": "Options to copy", + "discriminator": "objectType", + "properties": { + "objectType": { + "description": "Type of the specific object - used for deserializing", + "type": "string" + } + }, + "required": [ + "objectType" + ], + "title": "CopyOption", + "type": "object" + }, + "CustomCopyOption": { + "allOf": [ + { + "$ref": "#/definitions/CopyOption" + } + ], + "description": "Duration based custom options to copy", + "properties": { + "duration": { + "description": "Data copied after given timespan", + "type": "string" + } + }, + "required": [ + "objectType" + ], + "title": "CustomCopyOption", + "type": "object", + "x-ms-discriminator-value": "CustomCopyOption" + }, + "Datasource": { + "description": "Datasource to be backed up", + "properties": { + "datasourceType": { + "description": "DatasourceType of the resource.", + "type": "string" + }, + "objectType": { + "description": "Type of Datasource object, used to initialize the right inherited type", + "type": "string" + }, + "resourceID": { + "description": "Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.", + "type": "string" + }, + "resourceLocation": { + "description": "Location of datasource.", + "type": "string" + }, + "resourceName": { + "description": "Unique identifier of the resource in the context of parent.", + "type": "string" + }, + "resourceType": { + "description": "Resource Type of Datasource.", + "type": "string" + }, + "resourceUri": { + "description": "Uri of the resource.", + "type": "string" + } + }, + "required": [ + "resourceID" + ], + "title": "Datasource", + "type": "object" + }, + "DatasourceSet": { + "description": "DatasourceSet details of datasource to be backed up", + "properties": { + "datasourceType": { + "description": "DatasourceType of the resource.", + "type": "string" + }, + "objectType": { + "description": "Type of Datasource object, used to initialize the right inherited type", + "type": "string" + }, + "resourceID": { + "description": "Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.", + "type": "string" + }, + "resourceLocation": { + "description": "Location of datasource.", + "type": "string" + }, + "resourceName": { + "description": "Unique identifier of the resource in the context of parent.", + "type": "string" + }, + "resourceType": { + "description": "Resource Type of Datasource.", + "type": "string" + }, + "resourceUri": { + "description": "Uri of the resource.", + "type": "string" + } + }, + "required": [ + "resourceID" + ], + "title": "DatasourceSet", + "type": "object" + }, + "DataStoreInfoBase": { + "description": "DataStoreInfo base", + "properties": { + "dataStoreType": { + "description": "type of datastore; SnapShot/Hot/Archive", + "enum": [ + "ArchiveStore", + "SnapshotStore", + "VaultStore" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "DataStoreTypes" + } + }, + "objectType": { + "description": "Type of Datasource object, used to initialize the right inherited type", + "readOnly": false, + "type": "string" + } + }, + "required": [ + "dataStoreType", + "objectType" + ], + "title": "DataStoreInfoBase", + "type": "object" + }, + "Day": { + "description": "Day of the week", + "properties": { + "date": { + "description": "Date of the month", + "format": "int32", + "type": "integer" + }, + "isLast": { + "description": "Whether Date is last date of month", + "type": "boolean" + } + }, + "title": "Day", + "type": "object" + }, + "DeleteOption": { + "description": "Delete Option", + "discriminator": "objectType", + "properties": { + "duration": { + "description": "Duration of deletion after given timespan", + "type": "string" + }, + "objectType": { + "description": "Type of the specific object - used for deserializing", + "type": "string" + } + }, + "required": [ + "duration", + "objectType" + ], + "title": "DeleteOption", + "type": "object" + }, + "DppIdentityDetails": { + "description": "Identity details", + "properties": { + "identityUrl": { + "description": "Identity Url", + "readOnly": true, + "type": "string" + }, + "principalId": { + "description": "The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure resource.", + "readOnly": true, + "type": "string" + }, + "tenantId": { + "description": "A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member.", + "readOnly": true, + "type": "string" + }, + "type": { + "description": "The identityType which can be either SystemAssigned or None", + "type": "string" + } + }, + "title": "DppIdentityDetails", + "type": "object" + }, + "DppResource": { + "description": "Resource class", + "properties": { + "id": { + "description": "Resource Id represents the complete path to the resource.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Resource name associated with the resource.", + "readOnly": true, + "type": "string" + }, + "type": { + "description": "Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...", + "readOnly": true, + "type": "string" + } + }, + "title": "DppResource", + "type": "object", + "x-ms-azure-resource": true + }, + "DppResourceList": { + "description": "ListResource", + "properties": { + "nextLink": { + "description": "The uri to fetch the next page of resources. Call ListNext() fetches next page of resources.", + "type": "string" + } + }, + "title": "List Resource", + "type": "object" + }, + "DppTrackedResource": { + "properties": { + "eTag": { + "description": "Optional ETag.", + "type": "string" + }, + "id": { + "description": "Resource Id represents the complete path to the resource.", + "readOnly": true, + "type": "string" + }, + "identity": { + "$ref": "#/definitions/DppIdentityDetails", + "description": "Input Managed Identity Details" + }, + "location": { + "description": "Resource location.", + "type": "string" + }, + "name": { + "description": "Resource name associated with the resource.", + "readOnly": true, + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags.", + "type": "object" + }, + "type": { + "description": "Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...", + "readOnly": true, + "type": "string" + } + }, + "type": "object", + "x-ms-azure-resource": true + }, + "DppTrackedResourceList": { + "properties": { + "nextLink": { + "description": "The uri to fetch the next page of resources. Call ListNext() fetches next page of resources.", + "type": "string" + } + }, + "type": "object" + }, + "Error": { + "description": "The resource management error response.", + "properties": { + "additionalInfo": { + "description": "The error additional info.", + "items": { + "$ref": "#/definitions/ErrorAdditionalInfo" + }, + "readOnly": true, + "type": "array" + }, + "code": { + "description": "The error code.", + "readOnly": true, + "type": "string" + }, + "details": { + "description": "The error details.", + "items": { + "$ref": "#/definitions/Error" + }, + "readOnly": true, + "type": "array" + }, + "message": { + "description": "The error message.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "The error target.", + "readOnly": true, + "type": "string" + } + } + }, + "ErrorAdditionalInfo": { + "description": "The resource management error additional info.", + "properties": { + "info": { + "description": "The additional info.", + "readOnly": true, + "type": "object" + }, + "type": { + "description": "The additional info type.", + "readOnly": true, + "type": "string" + } + } + }, + "ExportJobsResult": { + "description": "The result for export jobs containing blob details.", + "properties": { + "blobUrl": { + "description": "URL of the blob into which the serialized string of list of jobs is exported.", + "readOnly": true, + "type": "string" + }, + "blobSasKey": { + "description": "SAS key to access the blob.", + "readOnly": true, + "type": "string" + }, + "excelFileBlobUrl": { + "description": "URL of the blob into which the ExcelFile is uploaded.", + "readOnly": true, + "type": "string" + }, + "excelFileBlobSasKey": { + "description": "SAS key to access the ExcelFile blob.", + "readOnly": true, + "type": "string" + } + }, + "title": "ExportJobsResult", + "type": "object" + }, + "FeatureValidationRequest": { + "description": "Base class for feature object", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/FeatureValidationRequestBase" + } + ], + "properties": { + "featureType": { + "description": "backup support feature type.", + "enum": [ + "Invalid", + "DataSourceType" + ], + "type": "string", + "x-ms-enum": { + "name": "FeatureType", + "modelAsString": true + } }, - "description": "This is a sample get operation, please see guidelines in azure-rest-api-specs repository for more info", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" + "featureName": { + "description": "backup support feature name.", + "type": "string" + } + }, + "x-ms-discriminator-value": "FeatureValidationRequest" + }, + "FeatureValidationRequestBase": { + "description": "Base class for Backup Feature support", + "required": [ + "objectType" + ], + "type": "object", + "properties": { + "objectType": { + "description": "Type of the specific object - used for deserializing", + "type": "string", + "readOnly": false + } + }, + "discriminator": "objectType" + }, + "FeatureValidationResponse": { + "description": "Feature Validation Response", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/FeatureValidationResponseBase" + } + ], + "properties": { + "featureType": { + "description": "backup support feature type.", + "enum": [ + "Invalid", + "DataSourceType" + ], + "type": "string", + "x-ms-enum": { + "name": "FeatureType", + "modelAsString": true + } + }, + "features": { + "description": "Response features", + "type": "array", + "items": { + "$ref": "#/definitions/SupportedFeature" + } + } + }, + "x-ms-discriminator-value": "FeatureValidationResponse" + }, + "FeatureValidationResponseBase": { + "description": "Base class for Backup Feature support", + "required": [ + "objectType" + ], + "type": "object", + "properties": { + "objectType": { + "description": "Type of the specific object - used for deserializing", + "type": "string", + "readOnly": false + } + }, + "discriminator": "objectType" + }, + "ImmediateCopyOption": { + "allOf": [ + { + "$ref": "#/definitions/CopyOption" + } + ], + "description": "Immediate copy Option", + "required": [ + "objectType" + ], + "title": "ImmediateCopyOption", + "type": "object", + "x-ms-discriminator-value": "ImmediateCopyOption" + }, + "InnerError": { + "description": "Inner Error", + "properties": { + "additionalInfo": { + "additionalProperties": { + "type": "string" }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" + "description": "Any Key value pairs that can be provided to the cleint for additional verbose information.", + "type": "object" + }, + "code": { + "description": "Unique code for this error", + "type": "string" + }, + "embeddedInnerError": { + "$ref": "#/definitions/InnerError", + "description": "Child Inner Error, to allow Nesting." + } + }, + "title": "InnerError", + "type": "object" + }, + "JobExtendedInfo": { + "description": "Extended Information about the job", + "properties": { + "additionalDetails": { + "additionalProperties": { + "readOnly": true, + "type": "string" + }, + "description": "Job's Additional Details" + }, + "backupInstanceState": { + "description": "State of the Backup Instance", + "readOnly": true, + "type": "string" + }, + "dataTransferedInBytes": { + "description": "Number of bytes transfered", + "format": "double", + "readOnly": true, + "type": "number" + }, + "recoveryDestination": { + "description": "Destination where restore is done", + "readOnly": true, + "type": "string" + }, + "sourceRecoverPoint": { + "$ref": "#/definitions/RestoreJobRecoveryPointDetails", + "description": "Details of the Source Recovery Point", + "readOnly": true + }, + "subTasks": { + "description": "List of Sub Tasks of the job", + "items": { + "$ref": "#/definitions/JobSubTask" + }, + "readOnly": true, + "type": "array" + }, + "targetRecoverPoint": { + "$ref": "#/definitions/RestoreJobRecoveryPointDetails", + "description": "Details of the Target Recovery Point", + "readOnly": true + } + }, + "type": "object" + }, + "JobSubTask": { + "description": "Details of Job's Sub Task", + "properties": { + "additionalDetails": { + "additionalProperties": { + "readOnly": true, + "type": "string" + }, + "description": "Sub Tasks's additional details" + }, + "taskId": { + "description": "Task Id of the Sub Task", + "format": "int32", + "type": "integer" + }, + "taskName": { + "description": "Name of the Sub Task", + "type": "string" + }, + "taskProgress": { + "description": "Progress of the Sub Task", + "readOnly": true, + "type": "string" + }, + "taskStatus": { + "description": "Status of the Sub Task", + "type": "string" + } + }, + "required": [ + "taskId", + "taskName", + "taskStatus" + ], + "type": "object" + }, + "OperationExtendedInfo": { + "description": "Operation Extended Info", + "properties": { + "objectType": { + "description": "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.", + "type": "string" + } + }, + "title": "OperationExtendedInfo", + "type": "object" + }, + "OperationJobExtendedInfo": { + "allOf": [ + { + "$ref": "#/definitions/OperationExtendedInfo" + } + ], + "description": "Operation Job Extended Info", + "properties": { + "jobId": { + "description": "Arm Id of the job created for this operation.", + "type": "string" + } + }, + "title": "OperationJobExtendedInfo", + "type": "object", + "x-ms-discriminator-value": "OperationJobExtendedInfo" + }, + "OperationResource": { + "description": "Operation Resource", + "properties": { + "endTime": { + "description": "End time of the operation", + "format": "date-time", + "type": "string" + }, + "error": { + "$ref": "#/definitions/Error", + "description": "Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into the v2.2 Azure REST API guidelines.\r\nThe full set of optional properties (e.g. inner errors / details) can be found in the \"Error Response\" section." + }, + "id": { + "description": "It should match what is used to GET the operation result", + "type": "string" + }, + "name": { + "description": "It must match the last segment of the \"id\" field, and will typically be a GUID / system generated value", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/OperationExtendedInfo", + "description": "End time of the operation", + "x-ms-client-flatten": true + }, + "startTime": { + "description": "Start time of the operation", + "format": "date-time", + "type": "string" + }, + "status": { + "type": "string" + } + }, + "title": "OperationResource", + "type": "object" + }, + "PatchResourceRequestInput": { + "description": "Patch Request content for Microsoft.DataProtection resources", + "properties": { + "identity": { + "$ref": "#/definitions/DppIdentityDetails", + "description": "Input Managed Identity Details" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags.", + "type": "object" + } + }, + "title": "PatchResourceRequestInput", + "type": "object" + }, + "PolicyInfo": { + "description": "Policy Info in backupInstance", + "properties": { + "policyId": { + "type": "string" + }, + "policyVersion": { + "readOnly": true, + "type": "string" + } + }, + "required": [ + "policyId" + ], + "title": "PolicyInfo", + "type": "object" + }, + "ProtectionStatusDetails": { + "description": "Protection status details", + "properties": { + "errorDetails": { + "$ref": "#/definitions/UserFacingError", + "description": "Specifies the protection status error of the resource" + }, + "status": { + "description": "Specifies the protection status of the resource", + "enum": [ + "ConfiguringProtection", + "ConfiguringProtectionFailed", + "ProtectionConfigured", + "ProtectionStopped", + "SoftDeleted", + "SoftDeleting" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "Status" } - ], - "responses": { - "200": { - "description": "Describe the result of a successful operation.", - "schema": { - "$ref": "#/definitions/Result" + } + }, + "title": "ProtectionStatusDetails", + "type": "object" + }, + "RecoveryPointDataStoreDetails": { + "description": "RecoveryPoint datastore details", + "properties": { + "creationTime": { + "format": "date-time", + "type": "string" + }, + "expiryTime": { + "format": "date-time", + "type": "string" + }, + "id": { + "type": "string" + }, + "metaData": { + "type": "string" + }, + "state": { + "type": "string" + }, + "type": { + "type": "string" + }, + "visible": { + "type": "boolean" + }, + "rehydrationExpiryTime": { + "format": "date-time", + "type": "string", + "readOnly": true + }, + "rehydrationStatus": { + "readOnly": true, + "enum": [ + "CREATE_IN_PROGRESS", + "COMPLETED", + "DELETE_IN_PROGRESS", + "DELETED", + "FAILED" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "RehydrationStatus" + } + } + }, + "title": "RecoveryPointDataStoreDetails", + "type": "object" + }, + "RehydrationPriority": { + "description": "Priority to be used for rehydration. Values High or Standard", + "enum": [ + "Invalid", + "High", + "Standard" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "RehydrationPriority" + } + }, + "RestoreFilesTargetInfo": { + "allOf": [ + { + "$ref": "#/definitions/RestoreTargetInfoBase" + } + ], + "description": "Class encapsulating restore as files target parameters", + "properties": { + "targetDetails": { + "$ref": "#/definitions/TargetDetails", + "description": "Destination of RestoreAsFiles operation, when destination is not a datasource" + } + }, + "required": [ + "recoveryOption", + "targetDetails" + ], + "type": "object", + "x-ms-discriminator-value": "RestoreFilesTargetInfo" + }, + "RestoreJobRecoveryPointDetails": { + "properties": { + "recoveryPointID": { + "type": "string" + }, + "recoveryPointTime": { + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, + "RestoreTargetInfo": { + "allOf": [ + { + "$ref": "#/definitions/RestoreTargetInfoBase" + } + ], + "description": "Class encapsulating restore target parameters", + "properties": { + "datasourceInfo": { + "$ref": "#/definitions/Datasource", + "description": "Information of target DS" + }, + "datasourceSetInfo": { + "$ref": "#/definitions/DatasourceSet", + "description": "Information of target DS Set" + } + }, + "required": [ + "datasourceInfo", + "recoveryOption" + ], + "type": "object", + "x-ms-discriminator-value": "RestoreTargetInfo" + }, + "RestoreTargetInfoBase": { + "description": "Base class common to RestoreTargetInfo and RestoreFilesTargetInfo", + "discriminator": "objectType", + "properties": { + "objectType": { + "description": "Type of Datasource object, used to initialize the right inherited type", + "type": "string" + }, + "recoveryOption": { + "description": "Recovery Option", + "enum": [ + "FailIfExists" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "RecoveryOption" + } + }, + "restoreLocation": { + "description": "Target Restore region", + "type": "string" + } + }, + "required": [ + "objectType", + "recoveryOption" + ], + "type": "object" + }, + "RetentionTag": { + "description": "Retention tag", + "properties": { + "eTag": { + "description": "Retention Tag version.", + "readOnly": true, + "type": "string" + }, + "id": { + "description": "Retention Tag version.", + "readOnly": true, + "type": "string" + }, + "tagName": { + "description": "Retention Tag Name to relate it to retention rule.", + "type": "string" + } + }, + "required": [ + "tagName" + ], + "title": "RetentionTag", + "type": "object" + }, + "ScheduleBasedBackupCriteria": { + "allOf": [ + { + "$ref": "#/definitions/BackupCriteria" + } + ], + "description": "Schedule based backup criteria", + "properties": { + "absoluteCriteria": { + "description": "it contains absolute values like \"AllBackup\" / \"FirstOfDay\" / \"FirstOfWeek\" / \"FirstOfMonth\"\r\nand should be part of AbsoluteMarker enum", + "items": { + "enum": [ + "AllBackup", + "FirstOfDay", + "FirstOfMonth", + "FirstOfWeek", + "FirstOfYear" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "AbsoluteMarker" } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "type": "array" + }, + "daysOfMonth": { + "description": "This is day of the month from 1 to 28 other wise last of month", + "items": { + "$ref": "#/definitions/Day" + }, + "type": "array" + }, + "daysOfTheWeek": { + "description": "It should be Sunday/Monday/T..../Saturday", + "items": { + "enum": [ + "Friday", + "Monday", + "Saturday", + "Sunday", + "Thursday", + "Tuesday", + "Wednesday" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "DayOfWeek" + } + }, + "type": "array" + }, + "monthsOfYear": { + "description": "It should be January/February/....../December", + "items": { + "enum": [ + "April", + "August", + "December", + "February", + "January", + "July", + "June", + "March", + "May", + "November", + "October", + "September" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "Month" + } + }, + "type": "array" + }, + "scheduleTimes": { + "description": "List of schedule times for backup", + "items": { + "format": "date-time", + "type": "string" + }, + "type": "array" + }, + "weeksOfTheMonth": { + "description": "It should be Fisrt/Second/Third/Fourth/Last", + "items": { + "enum": [ + "First", + "Fourth", + "Last", + "Second", + "Third" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "WeekNumber" } + }, + "type": "array" + } + }, + "required": [ + "objectType" + ], + "title": "ScheduleBasedBackupCriteria", + "type": "object", + "x-ms-discriminator-value": "ScheduleBasedBackupCriteria" + }, + "ScheduleBasedTriggerContext": { + "allOf": [ + { + "$ref": "#/definitions/TriggerContext" + } + ], + "description": "Schedule based trigger context", + "properties": { + "schedule": { + "$ref": "#/definitions/BackupSchedule", + "description": "Schedule for this backup" + }, + "taggingCriteria": { + "description": "List of tags that can be applicable for given schedule.", + "items": { + "$ref": "#/definitions/TaggingCriteria" + }, + "type": "array" + } + }, + "required": [ + "objectType", + "schedule", + "taggingCriteria" + ], + "title": "ScheduleBasedTriggerContext", + "type": "object", + "x-ms-discriminator-value": "ScheduleBasedTriggerContext" + }, + "SourceLifeCycle": { + "description": "Source LifeCycle", + "properties": { + "deleteAfter": { + "$ref": "#/definitions/DeleteOption" + }, + "sourceDataStore": { + "$ref": "#/definitions/DataStoreInfoBase" + }, + "targetDataStoreCopySettings": { + "items": { + "$ref": "#/definitions/TargetCopySetting" + }, + "type": "array" + } + }, + "required": [ + "deleteAfter", + "sourceDataStore" + ], + "title": "SourceLifeCycle", + "type": "object" + }, + "StorageSetting": { + "description": "Storage setting", + "properties": { + "dataStoreType": { + "description": "Gets or sets the type of the datastore.", + "enum": [ + "ArchiveStore", + "SnapshotStore", + "VaultStore" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "StorageSettingStoreTypes" + } + }, + "type": { + "description": "Gets or sets the type.", + "enum": [ + "GeoRedundant", + "LocallyRedundant" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "StorageSettingTypes" } } - } - } - }, - "definitions": { - "Result": { - "description": "Sample result definition", + }, + "title": "StorageSetting", + "type": "object" + }, + "SupportedFeature": { + "description": "Elements class for feature request", + "type": "object", "properties": { - "sampleProperty": { + "featureName": { + "description": "support feature type.", + "type": "string" + }, + "supportStatus": { + "description": "feature support status", + "enum": [ + "Invalid", + "NotSupported", + "AlphaPreview", + "PrivatePreview", + "PublicPreview", + "GenerallyAvailable" + ], "type": "string", - "description": "Sample property of type string" + "x-ms-enum": { + "name": "FeatureSupportStatus", + "modelAsString": true + } + }, + "exposureControlledFeatures": { + "description": "support feature type.", + "type": "array", + "items": { + "type": "string" + } } } }, - "ErrorResponse": { - "description": "Error response.", + "TaggingCriteria": { + "description": "Tagging criteria", "properties": { - "error": { - "$ref": "#/definitions/ErrorDefinition", - "description": "The error details." + "criteria": { + "description": "Criteria which decides whether the tag can be applied to a triggered backup.", + "items": { + "$ref": "#/definitions/BackupCriteria" + }, + "type": "array" + }, + "isDefault": { + "description": "Specifies if tag is default.", + "type": "boolean" + }, + "taggingPriority": { + "description": "Retention Tag priority.", + "format": "int64", + "type": "integer" + }, + "tagInfo": { + "$ref": "#/definitions/RetentionTag", + "description": "Retention tag information" } - } + }, + "required": [ + "isDefault", + "tagInfo", + "taggingPriority" + ], + "title": "TaggingCriteria", + "type": "object" }, - "ErrorDefinition": { - "description": "Error definition.", + "TargetCopySetting": { + "description": "Target copy settings", "properties": { - "code": { - "description": "Service specific error code which serves as the substatus for the HTTP error code.", - "type": "string", - "readOnly": true + "copyAfter": { + "$ref": "#/definitions/CopyOption", + "description": "It can be CustomCopyOption or ImmediateCopyOption." }, - "message": { - "description": "Description of the error.", + "dataStore": { + "$ref": "#/definitions/DataStoreInfoBase", + "description": "Info of target datastore" + } + }, + "required": [ + "copyAfter", + "dataStore" + ], + "title": "TargetCopySetting", + "type": "object" + }, + "TargetDetails": { + "description": "Class encapsulating target details, used where the destination is not a datasource", + "properties": { + "filePrefix": { + "description": "Restore operation may create multiple files inside location pointed by Url\r\nBelow will be the common prefix for all of them", + "type": "string" + }, + "restoreTargetLocationType": { + "description": "Denotes the target location where the data will be restored,\r\nstring value for the enum {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType}", + "enum": [ + "Invalid", + "AzureBlobs", + "AzureFiles" + ], "type": "string", - "readOnly": true + "x-ms-enum": { + "name": "RestoreTargetLocationType", + "modelAsString": true + } + }, + "url": { + "description": "Url denoting the restore destination. It can point to container / file share etc", + "type": "string" + } + }, + "required": [ + "filePrefix", + "restoreTargetLocationType", + "url" + ], + "type": "object" + }, + "TriggerBackupRequest": { + "description": "Trigger backup request", + "properties": { + "backupRuleOptions": { + "$ref": "#/definitions/AdHocBackupRuleOptions", + "description": "Name for the Rule of the Policy which needs to be applied for this backup" + } + }, + "required": [ + "backupRuleOptions" + ], + "title": "TriggerBackupRequest", + "type": "object" + }, + "TriggerContext": { + "description": "Trigger context", + "discriminator": "objectType", + "properties": { + "objectType": { + "description": "Type of the specific object - used for deserializing", + "type": "string" + } + }, + "required": [ + "objectType" + ], + "title": "TriggerContext", + "type": "object" + }, + "UserFacingError": { + "description": "Error object used by layers that have access to localized content, and propogate that to user", + "properties": { + "code": { + "description": "Unique code for this error", + "type": "string" }, "details": { - "description": "Internal error details.", - "type": "array", + "description": "Additional related Errors", "items": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "#/definitions/UserFacingError" }, - "readOnly": true + "type": "array" + }, + "innerError": { + "$ref": "#/definitions/InnerError", + "description": "Inner Error" + }, + "isRetryable": { + "description": "Whether the operation will be retryable or not", + "type": "boolean" + }, + "isUserError": { + "description": "Whether the operation is due to a user error or service error", + "type": "boolean" + }, + "message": { + "type": "string" + }, + "recommendedAction": { + "description": "RecommendedAction � Localised.", + "items": { + "type": "string" + }, + "type": "array" + }, + "target": { + "description": "Target of the error.", + "type": "string" } - } + }, + "type": "object" + }, + "ValidateForBackupRequest": { + "description": "Validate for backup request", + "properties": { + "backupInstance": { + "$ref": "#/definitions/BackupInstance" + } + }, + "required": [ + "backupInstance" + ], + "title": "ValidateForBackupRequest", + "type": "object" + }, + "ValidateRestoreRequestObject": { + "description": "Validate restore request object", + "properties": { + "restoreRequestObject": { + "$ref": "#/definitions/AzureBackupRestoreRequest", + "description": "Gets or sets the restore request object." + } + }, + "required": [ + "restoreRequestObject" + ], + "title": "ValidateRestoreRequestObject", + "type": "object" } }, "parameters": { - "SubscriptionIdParameter": { + "SubscriptionId": { "name": "subscriptionId", "in": "path", + "description": "The subscription Id.", "required": true, - "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + "type": "string" }, - "ResourceGroupNameParameter": { + "ResourceGroupName": { "name": "resourceGroupName", "in": "path", + "description": "The name of the resource group where the backup vault is present.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "VaultName": { + "name": "vaultName", + "in": "path", + "description": "The name of the backup vault.", "required": true, "type": "string", - "description": "The name of the resource group.", "x-ms-parameter-location": "method" }, - "ApiVersionParameter": { + "ApiVersion": { "name": "api-version", "in": "query", + "description": "Client Api Version.", "required": true, - "type": "string", - "description": "The API version to be used with the HTTP request." + "type": "string" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account." + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] } - } + ] } diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json new file mode 100644 index 000000000000..89abf2a74eda --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "backupInstanceName": "testInstance1", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/harshitbi1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + } + }, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json new file mode 100644 index 000000000000..e47106efb26d --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2", + "name": "harshitbi2", + "type": "Microsoft.DataProtection/backupVaults/backupInstances", + "properties": { + "dataSourceInfo": { + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceUri": "", + "datasourceType": "OssDB", + "resourceName": "testdb", + "resourceType": "OssDB", + "resourceLocation": "", + "objectType": "Datasource" + }, + "dataSourceSetInfo": { + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceUri": "", + "datasourceType": "OssDB", + "resourceName": "viveksipgtest", + "resourceType": "OssDB", + "resourceLocation": "", + "objectType": "DatasourceSet" + }, + "policyInfo": { + "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1", + "policyVersion": "3.2" + }, + "protectionStatus": { + "status": "NotProtected" + }, + "provisioningState": "Provisioning", + "objectType": "BackupInstance" + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json new file mode 100644 index 000000000000..f38c4702e8c1 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1", + "recoveryPointId": "7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/HelloTest/providers/Microsoft.DataProtection/backupVaults/HelloTestVault/backupInstances/653213d-c5b3-44f6-a0d9-db3c4f9d8e34/recoveryPoints/7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25", + "name": "7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25", + "type": "microsoft.dataprotection/backupvaults/backupInstances/recoveryPoints", + "properties": { + "objectType": "AzureBackupDiscreteRecoveryPoint", + "recoveryPointTime": "2019-03-01T13:00:00Z", + "recoveryPointType": "Full", + "friendlyName": "panbha4", + "recoveryPointDataStoresDetails": [ + { + "id": "0ff03512-b333-4509-a6c7-12164c8b1dce", + "type": "Snapshot", + "creationTime": "2019-03-01T13:00:00Z", + "metaData": "123456" + }, + { + "id": "5d8cfd30-722e-4bab-85f6-4a9d01ffc6f1", + "type": "BackupStorage", + "creationTime": "2019-03-01T13:00:00Z", + "metaData": "123456" + } + ] + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json new file mode 100644 index 000000000000..910cbe69cc07 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2", + "name": "harshitbi2", + "type": "Microsoft.DataProtection/backupVaults/backupInstances", + "properties": + { + "dataSourceInfo": { + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceUri": "", + "datasourceType": "OssDB", + "resourceName": "testdb", + "resourceType": "OssDB", + "resourceLocation": "", + "objectType": "Datasource" + }, + "dataSourceSetInfo": { + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceUri": "", + "datasourceType": "OssDB", + "resourceName": "viveksipgtest", + "resourceType": "OssDB", + "resourceLocation": "", + "objectType": "DatasourceSet" + }, + "policyInfo": { + "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1", + "policyVersion": "3.2" + }, + "protectionStatus": { + "status": "NotProtected" + }, + "provisioningState": "Provisioning", + "objectType": "BackupInstance" + } + } + ] + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json new file mode 100644 index 000000000000..006b4da89f0d --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/HelloTest/providers/Microsoft.DataProtection/backupVaults/HelloTestVault/backupInstances/653213d-c5b3-44f6-a0d9-db3c4f9d8e34/recoveryPoints/7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25", + "name": "7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5e35", + "type": "microsoft.dataprotection/backupvaults/backupInstances/recoveryPoints", + "properties": { + "objectType": "AzureBackupDiscreteRecoveryPoint", + "recoveryPointTime": "2019-03-01T13:00:00Z", + "recoveryPointType": "Full", + "friendlyName": "panbha4", + "recoveryPointDataStoresDetails": [ + { + "id": "0ff03512-b333-4509-a6c7-12164c8b1dce", + "type": "Snapshot", + "creationTime": "2019-03-01T13:00:00Z", + "metaData": "123456" + }, + { + "id": "5d8cfd30-722e-4bab-85f6-4a9d01ffc6f1", + "type": "BackupStorage", + "creationTime": "2019-03-01T13:00:00Z", + "metaData": "123456" + } + ] + } + }, + { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/HelloTest/providers/Microsoft.DataProtection/backupVaults/HelloTestVault/backupInstances/653213d-c5b3-44f6-a0d9-db3c4f9d8e34/recoveryPoints/7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25", + "name": "7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25", + "type": "microsoft.dataprotection/backupvaults/backupInstances/recoveryPoints", + "properties": { + "objectType": "AzureBackupDiscreteRecoveryPoint", + "recoveryPointTime": "2019-03-01T13:00:00Z", + "recoveryPointType": "Full", + "friendlyName": "panbha4", + "recoveryPointDataStoresDetails": [ + { + "id": "808cfd30-722e-4bab-85f6-4a9d01ffc6f2", + "type": "Snapshot", + "creationTime": "2019-03-01T13:00:00Z", + "metaData": "123456" + }, + { + "id": "798cfd30-722e-4bab-85f6-4a9d01ffc6f3", + "type": "BackupStorage", + "creationTime": "2019-03-01T13:00:00Z", + "metaData": "123456" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json new file mode 100644 index 000000000000..6729157c19bd --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json @@ -0,0 +1,113 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1", + "parameters": { + "properties": { + "objectType": "BackupInstance", + "dataSourceSetInfo": { + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceName": "viveksipgtest", + "resourceType": "Microsoft.DBforPostgreSQL/servers", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "dataSourceInfo": { + "objectType": "Datasource", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceName": "testdb", + "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "policyInfo": { + "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1" + } + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + }, + "body": { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2", + "name": "harshitbi2", + "type": "Microsoft.DataProtection/backupVaults/backupInstances", + "properties": { + "dataSourceInfo": { + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceUri": "", + "datasourceType": "OssDB", + "resourceName": "testdb", + "resourceType": "OssDB", + "resourceLocation": "", + "objectType": "Datasource" + }, + "dataSourceSetInfo": { + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceUri": "", + "datasourceType": "OssDB", + "resourceName": "viveksipgtest", + "resourceType": "OssDB", + "resourceLocation": "", + "objectType": "DatasourceSet" + }, + "policyInfo": { + "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1", + "policyVersion": "3.2" + }, + "protectionStatus": { + "status": "NotProtected" + }, + "provisioningState": "Provisioning", + "objectType": "BackupInstance" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2", + "name": "harshitbi2", + "type": "Microsoft.DataProtection/backupVaults/backupInstances", + "properties": { + "dataSourceInfo": { + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceUri": "", + "datasourceType": "OssDB", + "resourceName": "testdb", + "resourceType": "OssDB", + "resourceLocation": "", + "objectType": "Datasource" + }, + "dataSourceSetInfo": { + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceUri": "", + "datasourceType": "OssDB", + "resourceName": "viveksipgtest", + "resourceType": "OssDB", + "resourceLocation": "", + "objectType": "DatasourceSet" + }, + "policyInfo": { + "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1", + "policyVersion": "3.2" + }, + "protectionStatus": { + "status": "NotProtected" + }, + "provisioningState": "Provisioned", + "objectType": "BackupInstance" + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json new file mode 100644 index 000000000000..720abb1a329d --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1", + "parameters": { + "backupRuleOptions": { + "ruleName": "BackupWeekly", + "triggerOption": { + "retentionTagOverride": "yearly" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/harshitbi1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + } + }, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json new file mode 100644 index 000000000000..b3f8b0dcae5b --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1", + "parameters": { + "recoveryPointId": "hardcodedRP", + "rehydrationRetentionDuration": "7D", + "rehydrationPriority": "High" + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/harshitbi1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + } + }, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json new file mode 100644 index 000000000000..3741ea5ca03f --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1", + "parameters": { + "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", + "recoveryPointId": "hardcodedRP", + "sourceDataStoreType": "VaultStore", + "restoreTargetInfo": { + "objectType": "RestoreTargetInfo", + "recoveryOption": "FailIfExists", + "datasourceSetInfo": { + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceName": "viveksipgtest", + "resourceType": "Microsoft.DBforPostgreSQL/servers", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "datasourceInfo": { + "objectType": "Datasource", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceName": "testdb", + "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "restoreLocation": "southeastasia" + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/harshitbi1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + } + }, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json new file mode 100644 index 000000000000..0bc20c765453 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1", + "parameters": { + "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", + "recoveryPointId": "hardcodedRP", + "sourceDataStoreType": "VaultStore", + "restoreTargetInfo": { + "targetDetails": { + "url": "https://teststorage.blob.core.windows.net/restoretest", + "filePrefix" : "restoredblob", + "restoreTargetLocationType": "AzureBlobs" + }, + "restoreLocation": "southeastasia", + "recoveryOption": "FailIfExists", + "objectType": "RestoreFilesTargetInfo" + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/testInstance1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + } + }, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json new file mode 100644 index 000000000000..851d56c5f5f3 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1", + "parameters": { + "objectType": "AzureBackupRestoreWithRehydrationRequest", + "recoveryPointId": "hardcodedRP", + "rehydrationRetentionDuration": "7D", + "rehydrationPriority": "High", + "sourceDataStoreType": "VaultStore", + "restoreTargetInfo": { + "objectType": "RestoreTargetInfo", + "recoveryOption": "FailIfExists", + "datasourceSetInfo": { + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceName": "viveksipgtest", + "resourceType": "Microsoft.DBforPostgreSQL/servers", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "datasourceInfo": { + "objectType": "Datasource", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceName": "testdb", + "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "restoreLocation": "southeastasia" + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/harshitbi1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + } + }, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json new file mode 100644 index 000000000000..526dbab669ee --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1", + "parameters": { + "backupInstance": { + "objectType": "BackupInstance", + "dataSourceSetInfo": { + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceName": "viveksipgtest", + "resourceType": "Microsoft.DBforPostgreSQL/servers", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "dataSourceInfo": { + "objectType": "Datasource", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceName": "testdb", + "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "policyInfo": { + "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + } + }, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateRestore.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateRestore.json new file mode 100644 index 000000000000..d5e5be0f0c55 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateRestore.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PratikPrivatePreviewVault1", + "api-version": "2020-01-01-alpha", + "backupInstanceName": "testInstance1", + "parameters": { + "restoreRequestObject": { + "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", + "recoveryPointId": "hardcodedRP", + "sourceDataStoreType": "VaultStore", + "restoreTargetInfo": { + "objectType": "RestoreTargetInfo", + "recoveryOption": "FailIfExists", + "datasourceSetInfo": { + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceName": "viveksipgtest", + "resourceType": "Microsoft.DBforPostgreSQL/servers", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "datasourceInfo": { + "objectType": "Datasource", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceName": "testdb", + "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "restoreLocation": "southeastasia" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + } + }, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json new file mode 100644 index 000000000000..133331158f0b --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "location": "WestUS", + "api-version": "2020-01-01-alpha", + "parameters": { + "featureType": "DataSourceType", + "objectType": "FeatureValidationRequest" + } + }, + "responses": { + "200": { + "body": { + "featureType": "DataSourceType", + "features": [ + { + "featureName": "Microsoft.Storage/storageAccounts/blobServices", + "supportStatus": "PrivatePreview" + }, + { + "featureName": "Microsoft.DBforPostgreSQL/servers/databases", + "supportStatus": "PublicPreview" + } + ], + "objectType": "FeatureValidationResponse" + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json new file mode 100644 index 000000000000..4a887f2b1c5e --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "location": "WestUS", + "operationId": "MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA==", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "204": {}, + "202": { + "headers": { + "Location": "https://api-dogfood.resources.windows-int.net/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Azure-AsyncOperation": "https://api-dogfood.resources.windows-int.net/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", + "Retry-After": "60" + } + } + } +} \ No newline at end of file diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json new file mode 100644 index 000000000000..e5ec760ee5f9 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "location": "WestUS", + "operationId": "MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA==", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/providers/Microsoft.DataProtection/locations/WestUS/operationStatus/MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA==", + "name": "MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA==", + "status": "Succeeded", + "startTime": "2019-11-20T09:49:44.0478496Z", + "endTime": "2019-11-20T09:49:46Z" + } + } + } +} \ No newline at end of file diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json new file mode 100644 index 000000000000..ea09113b162a --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "SwaggerTestRg", + "vaultName": "NetSDKTestRsVault", + "operationId": "00000000-0000-0000-0000-000000000000", + "api-version": "2019-01-01-alpha" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "blobUrl": "https://azureblob.blob.core.windows.net/reportcontainer/exportjobsreport00000000-0000-0000-0000-000000000000", + "blobSasKey": "?sv=2018-03-28&sr=b&sig=kidBR4BGZTcCuUX63VkB25IxkTlBWpFZFo2s7pXdrSY%3D&st=2020-04-20T09%3A53%3A59Z&se=2020-04-20T10%3A03%3A59Z&sp=r", + "excelFileBlobUrl":"https://azureblob.blob.core.windows.net/reportcontainer/exportjobsreport00000000-0000-0000-0000-000000000000_ExcelFile.xlsx", + "excelFileBlobSasKey":"?sv=2018-03-28&sr=b&sig=An32GRxmS518mtB1GF3mTfmEuexjtc0XN0jehKph%2Bqk%3D&st=2020-04-20T09%3A53%3A59Z&se=2020-04-20T10%3A03%3A59Z&sp=r" + } + }, + "202": { + "headers": { + "Retry-After": 60, + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.DataProtection/backupVaults/NetSDKTestRsVault/backupJobs/operations/00000000-0000-0000-0000-000000000000?api-version=2019-01-01-alpha" + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json new file mode 100644 index 000000000000..0fc0e185aacc --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "resourceGroupName": "BugBash1", + "vaultName": "BugBashVaultForCCYv11", + "jobId":"3c60cb49-63e8-4b21-b9bd-26277b3fdfae", + "api-version": "2019-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "properties": { + "activityID": "c4344fb4-7c11-43a4-8307-7ae7c7fb09b9", + "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "backupInstanceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/28460a9d-707a-45f3-ace6-b16284c2900e", + "policyId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetdailypolicy", + "dataSourceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb2", + "vaultName": "BugBashVaultForCCYv11", + "backupInstanceFriendlyName": "mabtestingccybasicv11\\bugbashdb2", + "policyName": "jakavetdailypolicy", + "sourceResourceGroup": "DppPostgresTestingCcy", + "dataSourceSetName": "mabtestingccybasicv11", + "dataSourceName": "bugbashdb2", + "progressEnabled": false, + "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "startTime": "2020-03-17T03:00:03.7604146Z", + "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "operationCategory": "backup", + "operation": "Backup", + "status": "Started", + "isUserTriggered": false, + "supportedActions": [], + "duration": "00:00:00", + "dataSourceLocation":"centraluseuap", + "extendedInfo": { + "subTasks": [ + { + "taskId": 1, + "taskName": "Trigger Backup", + "taskStatus": "Started" + } + ], + "additionalDetails": { + "RetentionTag": "Default", + "PolicyRuleName": "BackupWeekly", + "TaskId": "c4344fb4-7c11-43a4-8307-7ae7c7fb09b9" + } + } + }, + "id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/3c60cb49-63e8-4b21-b9bd-26277b3fdfae", + "name": "3c60cb49-63e8-4b21-b9bd-26277b3fdfae", + "type": "Microsoft.DataProtection/Backupvaults/backupJobs" + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json new file mode 100644 index 000000000000..b32b0f308709 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json @@ -0,0 +1,135 @@ +{ + "parameters": { + "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "resourceGroupName": "BugBash1", + "vaultName": "BugBashVaultForCCYv11", + "api-version": "2019-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "activityID": "932925c4-3d81-4550-8105-c7f7b0a934c5", + "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "backupInstanceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/3048870f-b1b7-44c4-b078-368da3fd000e", + "policyId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetPolicy2", + "dataSourceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb4", + "vaultName": "BugBashVaultForCCYv11", + "backupInstanceFriendlyName": "mabtestingccybasicv11\\bugbashdb4", + "policyName": "jakavetPolicy2", + "sourceResourceGroup": "DppPostgresTestingCcy", + "dataSourceSetName": "mabtestingccybasicv11", + "dataSourceName": "bugbashdb4", + "progressEnabled": false, + "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "startTime": "2020-03-16T05:00:08.1746833Z", + "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "operationCategory": "backup", + "operation": "Backup", + "status": "Started", + "isUserTriggered": false, + "supportedActions": [], + "duration": "00:00:00", + "dataSourceLocation":"centraluseuap" + }, + "id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/8989416e-7573-4836-8cf1-0e90954f1002", + "name": "8989416e-7573-4836-8cf1-0e90954f1002", + "type": "Microsoft.DataProtection/Backupvaults/backupJobs" + }, + { + "properties": { + "activityID": "b4f32e03-ded0-46fc-9afc-91853878efcd", + "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "backupInstanceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/943c60db-c033-4d93-bb00-66048474e00e", + "policyId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetPolicy3", + "dataSourceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb5", + "vaultName": "BugBashVaultForCCYv11", + "backupInstanceFriendlyName": "mabtestingccybasicv11\\bugbashdb5", + "policyName": "jakavetPolicy3", + "sourceResourceGroup": "DppPostgresTestingCcy", + "dataSourceSetName": "mabtestingccybasicv11", + "dataSourceName": "bugbashdb5", + "progressEnabled": false, + "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "startTime": "2020-03-16T18:00:03.6660733Z", + "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "operationCategory": "backup", + "operation": "Backup", + "status": "Started", + "isUserTriggered": false, + "supportedActions": [], + "duration": "00:00:00", + "dataSourceLocation":"centraluseuap" + }, + "id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/ad218c05-242a-47c2-b7b7-c16bd0f8870c", + "name": "ad218c05-242a-47c2-b7b7-c16bd0f8870c", + "type": "Microsoft.DataProtection/Backupvaults/backupJobs" + }, + { + "properties": { + "activityID": "c4344fb4-7c11-43a4-8307-7ae7c7fb09b9", + "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "backupInstanceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/28460a9d-707a-45f3-ace6-b16284c2900e", + "policyId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetdailypolicy", + "dataSourceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb2", + "vaultName": "BugBashVaultForCCYv11", + "backupInstanceFriendlyName": "mabtestingccybasicv11\\bugbashdb2", + "policyName": "jakavetdailypolicy", + "sourceResourceGroup": "DppPostgresTestingCcy", + "dataSourceSetName": "mabtestingccybasicv11", + "dataSourceName": "bugbashdb2", + "progressEnabled": false, + "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "startTime": "2020-03-17T03:00:03.7604146Z", + "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "operationCategory": "backup", + "operation": "Backup", + "status": "Started", + "isUserTriggered": false, + "supportedActions": [], + "duration": "00:00:00", + "dataSourceLocation":"centraluseuap" + }, + "id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/3c60cb49-63e8-4b21-b9bd-26277b3fdfae", + "name": "3c60cb49-63e8-4b21-b9bd-26277b3fdfae", + "type": "Microsoft.DataProtection/Backupvaults/backupJobs" + }, + { + "properties": { + "activityID": "94052cf1-a47f-4c1b-93e7-79e07b2bd008-Tue Mar 17 2020 11:11:48 GMT+0530 (India Standard Time)-Ibz", + "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "backupInstanceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/0b247869-b8be-4885-b832-8ac4cdf5b00e", + "policyId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetPolicy1", + "dataSourceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb3", + "vaultName": "BugBashVaultForCCYv11", + "backupInstanceFriendlyName": "mabtestingccybasicv11\\bugbashdb3", + "policyName": "jakavetPolicy1", + "sourceResourceGroup": "DppPostgresTestingCcy", + "dataSourceSetName": "mabtestingccybasicv11", + "dataSourceName": "bugbashdb3", + "progressEnabled": false, + "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "startTime": "2020-03-17T11:11:50.5595259Z", + "endTime": "2020-03-17T11:14:02.5319646Z", + "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "operationCategory": "backup", + "operation": "Backup", + "status": "Succeeded", + "isUserTriggered": true, + "supportedActions": [ + "" + ], + "duration": "00:02:11.9724387", + "dataSourceLocation":"centraluseuap" + }, + "id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/43252662-1b43-44fd-a856-0055665cb097", + "name": "43252662-1b43-44fd-a856-0055665cb097", + "type": "Microsoft.DataProtection/Backupvaults/backupJobs" + } + ] + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json new file mode 100644 index 000000000000..4346e35badc7 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "SwaggerTestRg", + "vaultName": "NetSDKTestRsVault", + "api-version": "2019-01-01-alpha" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.DataProtection/backupVaults/NetSDKTestRsVault/backupJobs/operations/00000000-0000-0000-0000-000000000000?api-version=2019-01-01-alpha", + "Retry-After": 60 + } + }, + "204" : {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/OperationGroupGet.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/OperationGroupGet.json deleted file mode 100644 index 444b250320c5..000000000000 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/OperationGroupGet.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "accountName": "sampleacct", - "resourceGroupName": "dataprotectionClient", - "api-version": "2020-01-01-alpha", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "sampleProperty": "sampleProperty" - } - } - } -} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json new file mode 100644 index 000000000000..a4f33841ad30 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json @@ -0,0 +1,200 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PrivatePreviewVault", + "backupPolicyName": "OSSDBPolicy", + "api-version": "2020-01-01-alpha", + "parameters": { + "properties": { + "policyRules": [ + { + "backupParameters": { + "backupType": "Full", + "objectType": "AzureBackupParams" + }, + "trigger": { + "schedule": { + "repeatingTimeIntervals": [ + "R/2019-11-20T08:00:00-08:00/P1W" + ] + }, + "taggingCriteria": [ + { + "tagInfo": { + "tagName": "Default" + }, + "taggingPriority": 99, + "isDefault": true + }, + { + "tagInfo": { + "tagName": "Weekly" + }, + "taggingPriority": 20, + "isDefault": false, + "criteria": [ + { + "scheduleTimes": [ + "2019-03-01T13:00:00Z" + ], + "daysOfTheWeek": [ + "Sunday" + ], + "objectType": "ScheduleBasedBackupCriteria" + } + ] + } + ], + "objectType": "ScheduleBasedTriggerContext" + }, + "dataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "name": "BackupWeekly", + "objectType": "AzureBackupRule" + }, + { + "lifecycles": [ + { + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P1W" + } + } + ], + "isDefault": true, + "name": "Default", + "objectType": "AzureRetentionRule" + }, + { + "lifecycles": [ + { + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P12W" + } + } + ], + "isDefault": false, + "name": "Weekly", + "objectType": "AzureRetentionRule" + } + ], + "datasourceTypes": [ + "OssDB" + ], + "objectType": "BackupPolicy" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy", + "name": "OSSDBPolicy", + "type": "Microsoft.DataProtection/backupVaults/backupPolicies", + "properties": { + "policyRules": [ + { + "backupParameters": { + "backupType": "Full", + "objectType": "AzureBackupParams" + }, + "trigger": { + "schedule": { + "repeatingTimeIntervals": [ + "R/2019-11-20T08:00:00-08:00/P1W" + ] + }, + "taggingCriteria": [ + { + "tagInfo": { + "tagName": "Default", + "id": "Default_" + }, + "taggingPriority": 99, + "isDefault": true + }, + { + "tagInfo": { + "tagName": "Weekly", + "id": "Weekly_" + }, + "taggingPriority": 20, + "isDefault": false, + "criteria": [ + { + "scheduleTimes": [ + "2019-03-01T13:00:00Z" + ], + "daysOfTheWeek": [ + "Sunday" + ], + "objectType": "ScheduleBasedBackupCriteria" + } + ] + } + ], + "objectType": "ScheduleBasedTriggerContext" + }, + "dataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "name": "BackupWeekly", + "objectType": "AzureBackupRule" + }, + { + "lifecycles": [ + { + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P1W" + } + } + ], + "isDefault": true, + "name": "Default", + "objectType": "AzureRetentionRule" + }, + { + "lifecycles": [ + { + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P12W" + } + } + ], + "isDefault": false, + "name": "Weekly", + "objectType": "AzureRetentionRule" + } + ], + "datasourceTypes": [ + "OssDB" + ], + "objectType": "BackupPolicy" + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json new file mode 100644 index 000000000000..523b0a2d7a27 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PrivatePreviewVault", + "backupPolicyName": "OSSDBPolicy", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json new file mode 100644 index 000000000000..038536979eda --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PrivatePreviewVault", + "backupPolicyName": "OSSDBPolicy", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy", + "name": "OSSDBPolicy", + "type": "Microsoft.DataProtection/backupVaults/backupPolicies", + "properties": { + "policyRules": [{ + "backupParameters": { + "backupType": "Full", + "objectType": "AzureBackupParams" + }, + "trigger": { + "schedule": { + "repeatingTimeIntervals": [ + "R/2019-11-20T08:00:00-08:00/P1W" + ] + }, + "taggingCriteria": [{ + "tagInfo": { + "tagName": "Default", + "id": "Default_" + }, + "taggingPriority": 99, + "isDefault": true + }, + { + "tagInfo": { + "tagName": "Weekly", + "id": "Weekly_" + }, + "taggingPriority": 20, + "isDefault": false, + "criteria": [{ + "scheduleTimes": [ + "2019-03-01T13:00:00Z" + ], + "daysOfTheWeek": [ + "Sunday" + ], + "objectType": "ScheduleBasedBackupCriteria" + }] + } + ], + "objectType": "ScheduleBasedTriggerContext" + }, + "dataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "name": "BackupWeekly", + "objectType": "AzureBackupRule" + }, + { + "lifecycles": [{ + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P1W" + } + }], + "isDefault": true, + "name": "Default", + "objectType": "AzureRetentionRule" + }, + { + "lifecycles": [{ + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P12W" + } + }], + "isDefault": false, + "name": "Weekly", + "objectType": "AzureRetentionRule" + } + ], + "datasourceTypes": [ + "OssDB" + ], + "objectType": "BackupPolicy" + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json new file mode 100644 index 000000000000..8a77a75825f6 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PrivatePreviewVault", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy", + "name": "OSSDBPolicy", + "type": "Microsoft.DataProtection/backupVaults/backupPolicies", + "properties": { + "policyRules": [{ + "backupParameters": { + "backupType": "Full", + "objectType": "AzureBackupParams" + }, + "trigger": { + "schedule": { + "repeatingTimeIntervals": [ + "R/2019-11-20T08:00:00-08:00/P1W" + ] + }, + "taggingCriteria": [{ + "tagInfo": { + "tagName": "Default", + "id": "Default_" + }, + "taggingPriority": 99, + "isDefault": true + }, + { + "tagInfo": { + "tagName": "Weekly", + "id": "Weekly_" + }, + "taggingPriority": 20, + "isDefault": false, + "criteria": [{ + "scheduleTimes": [ + "2019-03-01T13:00:00Z" + ], + "daysOfTheWeek": [ + "Sunday" + ], + "objectType": "ScheduleBasedBackupCriteria" + }] + } + ], + "objectType": "ScheduleBasedTriggerContext" + }, + "dataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "name": "BackupWeekly", + "objectType": "AzureBackupRule" + }, + { + "lifecycles": [{ + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P1W" + } + }], + "isDefault": true, + "name": "Default", + "objectType": "AzureRetentionRule" + }, + { + "lifecycles": [{ + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P12W" + } + }], + "isDefault": false, + "name": "Weekly", + "objectType": "AzureRetentionRule" + } + ], + "datasourceTypes": [ + "OssDB" + ], + "objectType": "BackupPolicy" + } + }] + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json new file mode 100644 index 000000000000..9127d094c68e --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "location": "westus", + "api-version": "2020-01-01-alpha", + "parameters": { + "type": "Microsoft.DataProtection/BackupVaults", + "name": "swaggerExample" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/DeleteBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/DeleteBackupVault.json new file mode 100644 index 000000000000..f008df9b7bd0 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/DeleteBackupVault.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "vaultName": "swaggerExample", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVault.json new file mode 100644 index 000000000000..9613d62e538b --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVault.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "vaultName": "swaggerExample", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "None" + }, + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", + "name": "swaggerExample", + "type": "Microsoft.DataProtection/Backupvaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultWithMSI.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultWithMSI.json new file mode 100644 index 000000000000..3136981d9cb0 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultWithMSI.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "vaultName": "swaggerExample", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "identity": { + "principalId": "c009b9a0-0024-417c-83cd-025d3776045d", + "tenantId": "83abe5cd-bcc3-441a-bd86-e6a75360cecc", + "type": "SystemAssigned" + }, + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", + "name": "swaggerExample", + "type": "Microsoft.DataProtection/Backupvaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json new file mode 100644 index 000000000000..1096a8e69f66 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "None" + }, + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/BackupVaults/ExampleVault1", + "name": "ExampleVault1", + "type": "Microsoft.DataProtection/BackupVaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + }, + { + "identity": { + "principalId": "c009b9a0-0024-417c-83cd-025d3776045d", + "tenantId": "83abe5cd-bcc3-441a-bd86-e6a75360cecc", + "type": "SystemAssigned" + }, + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/BackupVaults/ExampleVault2", + "name": "ExampleVault2", + "type": "Microsoft.DataProtection/BackupVaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInSubscription.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInSubscription.json new file mode 100644 index 000000000000..de907dfcfaf4 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInSubscription.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "None" + }, + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup2/providers/Microsoft.DataProtection/BackupVaults/ExampleVault1", + "name": "ExampleVault1", + "type": "Microsoft.DataProtection/BackupVaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + }, + { + "identity": { + "type": "None" + }, + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/BackupVaults/ExampleVault2", + "name": "ExampleVault2", + "type": "Microsoft.DataProtection/BackupVaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json new file mode 100644 index 000000000000..bf530efb9ec6 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "vaultName": "swaggerExample", + "operationId": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha", + "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" + } + }, + "200": { + "body": { + "identity": { + "type": "None" + }, + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", + "name": "swaggerExample", + "type": "Microsoft.DataProtection/Backupvaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json new file mode 100644 index 000000000000..cc3aee678b65 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "vaultName": "swaggerExample", + "api-version": "2020-01-01-alpha", + "operationId": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", + "parameters": { + "tags": { + "newKey": "newVal" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha", + "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" + } + }, + "200": { + "body": { + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", + "name": "swaggerExample", + "type": "Microsoft.DataProtection/Backupvaults", + "location": "WestUS", + "tags": { + "newKey": "newVal" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [{ + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + }] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVault.json new file mode 100644 index 000000000000..cfbdac7ea860 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVault.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "vaultName": "swaggerExample", + "api-version": "2020-01-01-alpha", + "parameters": { + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "identity": { + "type": "None" + }, + "properties": { + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", + "name": "swaggerExample", + "type": "Microsoft.DataProtection/Backupvaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Provisioning", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + }, + "headers": { + "Retry-After": "10", + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" + } + }, + "200": { + "body": { + "identity": { + "type": "None" + }, + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", + "name": "swaggerExample", + "type": "Microsoft.DataProtection/Backupvaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVaultWithMSI.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVaultWithMSI.json new file mode 100644 index 000000000000..912c37dd51f4 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVaultWithMSI.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "vaultName": "swaggerExample", + "api-version": "2020-01-01-alpha", + "parameters": { + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "identity": { + "type": "systemAssigned" + }, + "properties": { + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", + "name": "swaggerExample", + "type": "Microsoft.DataProtection/Backupvaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Provisioning", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + }, + "headers": { + "Retry-After": "10", + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" + } + }, + "200": { + "body": { + "identity": { + "principalId": "c009b9a0-0024-417c-83cd-025d3776045d", + "tenantId": "83abe5cd-bcc3-441a-bd86-e6a75360cecc", + "type": "SystemAssigned" + }, + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", + "name": "swaggerExample", + "type": "Microsoft.DataProtection/Backupvaults", + "location": "WestUS", + "tags": { + "key1": "val1" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + } + } +} diff --git a/specification/dataprotection/resource-manager/readme.az.md b/specification/dataprotection/resource-manager/readme.az.md deleted file mode 100644 index ba5adb258d06..000000000000 --- a/specification/dataprotection/resource-manager/readme.az.md +++ /dev/null @@ -1,28 +0,0 @@ -## AZ - -These settings apply only when `--az` is specified on the command line. - -For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. - -``` yaml $(az) && $(target-mode) != 'core' -az: - extensions: dataprotection - namespace: azure.mgmt.dataprotection - package-name: azure-mgmt-dataprotection -az-output-folder: $(azure-cli-extension-folder)/src/dataprotection -python-sdk-output-folder: "$(az-output-folder)/azext_dataprotection/vendored_sdks/dataprotection" -# add additinal configuration here specific for Azure CLI -# refer to the faq.md for more details -``` - - - -This is for command modules that already in azure cli main repo. -``` yaml $(az) && $(target-mode) == 'core' -az: - extensions: dataprotection - namespace: azure.mgmt.dataprotection - package-name: azure-mgmt-dataprotection -az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/dataprotection -python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/dataprotection" -``` \ No newline at end of file diff --git a/specification/dataprotection/resource-manager/readme.azureresourceschema.md b/specification/dataprotection/resource-manager/readme.azureresourceschema.md deleted file mode 100644 index 3127635d1236..000000000000 --- a/specification/dataprotection/resource-manager/readme.azureresourceschema.md +++ /dev/null @@ -1,23 +0,0 @@ -## AzureResourceSchema - -These settings apply only when `--azureresourceschema` is specified on the command line. - -### AzureResourceSchema multi-api - -``` yaml $(azureresourceschema) && $(multiapi) -batch: - - tag: schema-dataprotection-2020-01-01-alpha - -``` - -Please also specify `--azureresourceschema-folder=`. - -### Tag: schema-dataprotection-2020-01-01-alpha and azureresourceschema - -``` yaml $(tag) == 'schema-dataprotection-2020-01-01-alpha' && $(azureresourceschema) -output-folder: $(azureresourceschema-folder)/schemas - -# all the input files in this apiVersion -input-file: - - Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json -``` diff --git a/specification/dataprotection/resource-manager/readme.cli.md b/specification/dataprotection/resource-manager/readme.cli.md deleted file mode 100644 index c6cf6ad37ea4..000000000000 --- a/specification/dataprotection/resource-manager/readme.cli.md +++ /dev/null @@ -1 +0,0 @@ -## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/dataprotection/resource-manager/readme.csharp.md b/specification/dataprotection/resource-manager/readme.csharp.md deleted file mode 100644 index b4920bb80e48..000000000000 --- a/specification/dataprotection/resource-manager/readme.csharp.md +++ /dev/null @@ -1,15 +0,0 @@ -## C# - -These settings apply only when `--csharp` is specified on the command line. -Please also specify `--csharp-sdks-folder=`. - -```yaml $(csharp) -csharp: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 1 - clear-output-folder: true - client-side-validation: false - namespace: Microsoft.DataProtection - output-folder: $(csharp-sdks-folder)/dataprotection/management/Microsoft.DataProtection/GeneratedProtocol -``` diff --git a/specification/dataprotection/resource-manager/readme.go.md b/specification/dataprotection/resource-manager/readme.go.md index 4d45f60a3815..ff3a480ae6be 100644 --- a/specification/dataprotection/resource-manager/readme.go.md +++ b/specification/dataprotection/resource-manager/readme.go.md @@ -2,25 +2,25 @@ These settings apply only when `--go` is specified on the command line. -```yaml $(go) +``` yaml $(go) go: license-header: MICROSOFT_APACHE_NO_VERSION - namespace: dataprotection clear-output-folder: true + namespace: dataprotection ``` ### Go multi-api ``` yaml $(go) && $(multiapi) batch: - - tag: package-2020-01-01-alpha-preview + - tag: package-2020-01 ``` -### Tag: package-2020-01-01-alpha-preview and go +### Tag: package-2020-01 and go -These settings apply only when `--tag=package-2020-01-01-alpha-preview --go` is specified on the command line. +These settings apply only when `--tag=package-2020-01 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -```yaml $(tag) == 'package-2020-01-01-alpha-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-01-01-alpha/$(namespace) +``` yaml $(tag)=='package-2020-01' && $(go) +output-folder: $(go-sdk-folder)/services/preview/dataprotection/mgmt/2020-01-01-alpha/$(namespace) ``` diff --git a/specification/dataprotection/resource-manager/readme.java.md b/specification/dataprotection/resource-manager/readme.java.md new file mode 100644 index 000000000000..5126cf993278 --- /dev/null +++ b/specification/dataprotection/resource-manager/readme.java.md @@ -0,0 +1,34 @@ +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.dataprotection +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-dataprotection +``` + + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2020-01 +``` + +### Tag: package-2020-01 and java + +These settings apply only when `--tag=package-2020-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2020-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.dataprotection.v2020_01_01 + output-folder: $(azure-libraries-for-java-folder)/dataprotection/resource-manager/v2020_01_01 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/dataprotection/resource-manager/readme.md b/specification/dataprotection/resource-manager/readme.md index f52c39eafa31..ef8f7e88c66a 100644 --- a/specification/dataprotection/resource-manager/readme.md +++ b/specification/dataprotection/resource-manager/readme.md @@ -1,83 +1,134 @@ -# dataprotection +# DataProtection > see https://aka.ms/autorest -This is the AutoRest configuration file for dataprotection. +This is the AutoRest configuration file for DataProtection. + -## Getting Started -To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: +--- +## Getting Started +To build the SDK for DataProtection, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: -> `autorest readme.md` +> `autorest` To see additional help and options, run: > `autorest --help` - -For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. - --- ## Configuration -### Basic Information -These are the global settings for the dataprotection. -```yaml +### Basic Information +These are the global settings for the DataProtection API. + +``` yaml +title: Data Protection Client +description: Open API 2.0 Specs for Azure Data Protection service openapi-type: arm -tag: package-2020-01-01-alpha +tag: package-2020-01 +csharp-sdks-folder: ./Generated/CSharp +python-sdks-folder: ./Generated/Python +go-sdk-folder: ./Generated/Golang + +license-header: MICROSOFT_MIT ``` -### Tag: package-2020-01-01-alpha +### Validations +Run validations when `--validate` is specified on command line -These settings apply only when `--tag=package-2020-01-01-alpha` is specified on the command line. +``` yaml $(validate) +azure-validator: true +model-validator: true +semantic-validator: true +message-format: json +``` -```yaml $(tag) == 'package-2020-01-01-alpha' +### Tag: package-2020-01 + +These settings apply only when `--tag=package-2020-01` is specified on the command line. + +``` yaml $(tag) == 'package-2020-01' input-file: - - Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +- Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json ``` ---- +### Tag: package-2020-01-only +These settings apply only when `--tag=package-2020-01` is specified on the command line. + +``` yaml $(tag) == 'package-2020-01-only' +input-file: +- Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +``` + +--- # Code Generation + ## Swagger to SDK This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself. -```yaml $(swagger-to-sdk) +``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-python - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-js - - repo: azure-resource-manager-schemas + - repo: azure-sdk-for-node + - repo: azure-sdk-for-ruby after_scripts: - - node sdkauto_afterscript.js dataprotection/resource-manager - - repo: azure-cli-extensions + - bundle install && rake arm:regen_all_profiles['azure_mgmt_data_protection'] ``` -## Az -See configuration in [readme.az.md](./readme.az.md) + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + payload-flattening-threshold: 1 + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Azure.Management.DataProtection + output-folder: $(csharp-sdks-folder)/dataprotection/Microsoft.Azure.Management.DataProtection/src/Generated + clear-output-folder: true +``` ## Go See configuration in [readme.go.md](./readme.go.md) -## Python +## Java -See configuration in [readme.python.md](./readme.python.md) +See configuration in [readme.java.md](./readme.java.md) -## TypeScript +## Multi-API/Profile support for AutoRest v3 generators -See configuration in [readme.typescript.md](./readme.typescript.md) +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -## CSharp +This block is updated by an automatic script. Edits may be lost! -See configuration in [readme.csharp.md](./readme.csharp.md) +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -## AzureResourceSchema +# all the input files across all versions +input-file: + - Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +``` + +If there are files that should not be in the `all-api-versions` set, +uncomment the `exclude-file` section below and add the file paths. -See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/2010-01-01/somefile.json +``` diff --git a/specification/dataprotection/resource-manager/readme.nodejs.md b/specification/dataprotection/resource-manager/readme.nodejs.md new file mode 100644 index 000000000000..284b83b6011e --- /dev/null +++ b/specification/dataprotection/resource-manager/readme.nodejs.md @@ -0,0 +1,14 @@ +## Node.js + +These settings apply only when `--nodejs` is specified on the command line. +Please also specify `--node-sdks-folder=`. + +``` yaml $(nodejs) +nodejs: + azure-arm: true + package-name: azure-arm-dataprotection + output-folder: $(node-sdks-folder)/lib/services/dataProtectionManagement + generate-license-txt: true + generate-package-json: true + generate-readme-md: true +``` diff --git a/specification/dataprotection/resource-manager/readme.python.md b/specification/dataprotection/resource-manager/readme.python.md index b2ab376276cf..e9f977631a66 100644 --- a/specification/dataprotection/resource-manager/readme.python.md +++ b/specification/dataprotection/resource-manager/readme.python.md @@ -2,39 +2,26 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. - +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. ``` yaml $(python) -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - package-name: azure-mgmt-dataprotection - no-namespace-folders: true - package-version: 1.0.0b1 -``` - -``` yaml $(python-mode) == 'update' +python-mode: create python: - output-folder: $(python-sdks-folder)/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.dataprotection + package-name: azure-mgmt-dataprotection + package-version: 1.0.0b1 + clear-output-folder: true ``` -``` yaml $(python-mode) == 'create' +``` yaml $(python) && $(python-mode) == 'update' python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/dataprotection/azure-mgmt-dataprotection -``` - -``` yaml $(python) && $(track2) -azure-arm: true -license-header: MICROSOFT_MIT_NO_VERSION -package-name: azure-mgmt-dataprotection -no-namespace-folders: true -package-version: 1.0.0b1 -``` - -``` yaml $(python-mode) == 'update' && $(track2) -output-folder: $(python-sdks-folder)/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection + no-namespace-folders: true + output-folder: $(python-sdks-folder)/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection ``` -``` yaml $(python-mode) == 'create' && $(track2) -basic-setup-py: true -output-folder: $(python-sdks-folder)/dataprotection/azure-mgmt-dataprotection +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/dataprotection/azure-mgmt-dataprotection ``` diff --git a/specification/dataprotection/resource-manager/readme.ruby.md b/specification/dataprotection/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..16569a3b0a25 --- /dev/null +++ b/specification/dataprotection/resource-manager/readme.ruby.md @@ -0,0 +1,26 @@ +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +``` yaml +package-name: azure_mgmt_data_protection +package-version: "0.1.0" +azure-arm: true +``` + +### Ruby multi-api + +``` yaml $(ruby) && $(multiapi) +batch: + - tag: package-2020-01 +``` + +### Tag: package-2020-01 and ruby + +These settings apply only when `--tag=package-2020-01 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2020-01' && $(ruby) +namespace: "Azure::DataProtection::Mgmt::V2020_01_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_data_protection/lib +``` diff --git a/specification/dataprotection/resource-manager/readme.typescript.md b/specification/dataprotection/resource-manager/readme.typescript.md index c8aa3d04451d..bf2afe0c534b 100644 --- a/specification/dataprotection/resource-manager/readme.typescript.md +++ b/specification/dataprotection/resource-manager/readme.typescript.md @@ -6,9 +6,8 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 3 Feb 2021 18:47:11 +0530 Subject: [PATCH 02/16] changes for autorest vqalidation err --- .../preview/2020-01-01-alpha/dataprotection.json | 6 ++++++ .../2020-01-01-alpha/examples/CheckfeatureSupport.json | 1 + 2 files changed, 7 insertions(+) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json index a50b609697bc..a062bda91043 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json @@ -96,6 +96,12 @@ }, "204": { "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } } }, "summary": "Gets the operation status for a resource.", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json index 133331158f0b..6a3597b6133e 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json @@ -22,6 +22,7 @@ "supportStatus": "PublicPreview" } ], + "exposureControlledFeatures":[], "objectType": "FeatureValidationResponse" } } From f6e338afbdca5a79ae04808765593cc0840070d7 Mon Sep 17 00:00:00 2001 From: sumitmal <32121310+sumitmal@users.noreply.github.com> Date: Wed, 3 Feb 2021 22:13:03 +0530 Subject: [PATCH 03/16] fix delete response --- .../preview/2020-01-01-alpha/dataprotection.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json index a50b609697bc..cd89f70c4c7b 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json @@ -1032,6 +1032,9 @@ }, "204": { "description": "NoContent" + }, + "200": { + "description": "Ok" }, "default": { "description": "Error response describing why the operation failed.", From e433d5746eba326b014e222a727a83c034a9136e Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Thu, 4 Feb 2021 13:37:09 +0530 Subject: [PATCH 04/16] fixing lint and model errors --- .../preview/2020-01-01-alpha/dataprotection.json | 4 ++++ .../BackupInstanceOperations/DeleteBackupInstance.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json index 756afdf9430c..55f54714a95f 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json @@ -2699,6 +2699,10 @@ "description": "Name of the Operation.", "type": "string" }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, "origin": { "description": "The intended executor of the operation;governs the display of the operation in the RBAC UX and the audit logs UX", "type": "string" diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json index 89abf2a74eda..02ff9016d0c4 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json @@ -14,6 +14,7 @@ "Retry-After": "60" } }, - "204": {} + "204": {}, + "200":{} } } From bf31f928b23ffc1eebeb27de735e3ea0a797bee8 Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Thu, 4 Feb 2021 13:47:30 +0530 Subject: [PATCH 05/16] exposureControlledFeatures fixes --- .../2020-01-01-alpha/examples/CheckfeatureSupport.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json index 6a3597b6133e..f5fedcd9cb61 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json @@ -15,14 +15,15 @@ "features": [ { "featureName": "Microsoft.Storage/storageAccounts/blobServices", - "supportStatus": "PrivatePreview" + "supportStatus": "PrivatePreview", + "exposureControlledFeatures":[] }, { "featureName": "Microsoft.DBforPostgreSQL/servers/databases", - "supportStatus": "PublicPreview" + "supportStatus": "PublicPreview", + "exposureControlledFeatures":[] } ], - "exposureControlledFeatures":[], "objectType": "FeatureValidationResponse" } } From 9fc9a8db6dd5007dd2b7c8bd9b3c40815063f2ca Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Thu, 4 Feb 2021 14:00:24 +0530 Subject: [PATCH 06/16] prettier fixes --- .../2020-01-01-alpha/dataprotection.json | 22 +- .../DeleteBackupInstance.json | 2 +- .../GetBackupInstance.json | 2 +- .../GetRecoveryPoint.json | 8 +- .../ListBackupInstances.json | 3 +- .../ListRecoveryPoints.json | 10 +- .../PutBackupInstance.json | 48 ++-- .../TriggerBackup.json | 12 +- .../TriggerRehydrate.json | 12 +- .../TriggerRestore.json | 50 ++--- .../TriggerRestoreAsFiles.json | 10 +- .../TriggerRestoreWithRehydration.json | 50 ++--- .../ValidateForBackup.json | 50 ++--- .../examples/CheckfeatureSupport.json | 10 +- .../examples/GetOperationResult.json | 4 +- .../examples/GetOperationStatus.json | 2 +- .../JobCRUD/GetExportJobsOperationResult.json | 4 +- .../examples/JobCRUD/GetJob.json | 22 +- .../examples/JobCRUD/ListJobs.json | 26 +-- .../examples/JobCRUD/TriggerExportJobs.json | 2 +- .../PolicyCRUD/DeleteBackupPolicy.json | 14 +- .../examples/PolicyCRUD/GetBackupPolicy.json | 206 ++++++++--------- .../examples/PolicyCRUD/ListBackupPolicy.json | 210 +++++++++--------- .../VaultCRUD/GetOperationResultPatch.json | 8 +- .../examples/VaultCRUD/PatchBackupVault.json | 82 +++---- 25 files changed, 444 insertions(+), 425 deletions(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json index 55f54714a95f..71d395999e65 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json @@ -531,7 +531,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport": { "post": { "tags": [ "DppFeatureSupport" @@ -1039,7 +1039,7 @@ "204": { "description": "NoContent" }, - "200": { + "200": { "description": "Ok" }, "default": { @@ -1463,15 +1463,15 @@ } }, "x-ms-long-running-operation": true, - "x-ms-examples":{ - "Trigger Restore":{ - "$ref":"./examples/BackupInstanceOperations/TriggerRestore.json" + "x-ms-examples": { + "Trigger Restore": { + "$ref": "./examples/BackupInstanceOperations/TriggerRestore.json" }, - "Trigger Restore As Files":{ - "$ref":"./examples/BackupInstanceOperations/TriggerRestoreAsFiles.json" + "Trigger Restore As Files": { + "$ref": "./examples/BackupInstanceOperations/TriggerRestoreAsFiles.json" }, - "Trigger Restore With Rehydration":{ - "$ref":"./examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json" + "Trigger Restore With Rehydration": { + "$ref": "./examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json" } } } @@ -3103,7 +3103,7 @@ "title": "ExportJobsResult", "type": "object" }, - "FeatureValidationRequest": { + "FeatureValidationRequest": { "description": "Base class for feature object", "type": "object", "allOf": [ @@ -3807,7 +3807,7 @@ "title": "StorageSetting", "type": "object" }, - "SupportedFeature": { + "SupportedFeature": { "description": "Elements class for feature request", "type": "object", "properties": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json index 02ff9016d0c4..4e20e14a90c1 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json @@ -15,6 +15,6 @@ } }, "204": {}, - "200":{} + "200": {} } } diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json index e47106efb26d..a6b831c7b196 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json @@ -4,7 +4,7 @@ "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", "api-version": "2020-01-01-alpha", - "backupInstanceName": "testInstance1" + "backupInstanceName": "testInstance1" }, "responses": { "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json index f38c4702e8c1..59cea5d711b3 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json @@ -4,8 +4,8 @@ "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", "api-version": "2020-01-01-alpha", - "backupInstanceName": "testInstance1", - "recoveryPointId": "7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25" + "backupInstanceName": "testInstance1", + "recoveryPointId": "7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25" }, "responses": { "200": { @@ -20,13 +20,13 @@ "friendlyName": "panbha4", "recoveryPointDataStoresDetails": [ { - "id": "0ff03512-b333-4509-a6c7-12164c8b1dce", + "id": "0ff03512-b333-4509-a6c7-12164c8b1dce", "type": "Snapshot", "creationTime": "2019-03-01T13:00:00Z", "metaData": "123456" }, { - "id": "5d8cfd30-722e-4bab-85f6-4a9d01ffc6f1", + "id": "5d8cfd30-722e-4bab-85f6-4a9d01ffc6f1", "type": "BackupStorage", "creationTime": "2019-03-01T13:00:00Z", "metaData": "123456" diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json index 910cbe69cc07..8a389e5a39c5 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json @@ -13,8 +13,7 @@ "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2", "name": "harshitbi2", "type": "Microsoft.DataProtection/backupVaults/backupInstances", - "properties": - { + "properties": { "dataSourceInfo": { "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", "resourceUri": "", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json index 006b4da89f0d..8604660e4334 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json @@ -4,7 +4,7 @@ "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", "api-version": "2020-01-01-alpha", - "backupInstanceName": "testInstance1" + "backupInstanceName": "testInstance1" }, "responses": { "200": { @@ -22,13 +22,13 @@ "recoveryPointDataStoresDetails": [ { "id": "0ff03512-b333-4509-a6c7-12164c8b1dce", - "type": "Snapshot", + "type": "Snapshot", "creationTime": "2019-03-01T13:00:00Z", "metaData": "123456" }, { "id": "5d8cfd30-722e-4bab-85f6-4a9d01ffc6f1", - "type": "BackupStorage", + "type": "BackupStorage", "creationTime": "2019-03-01T13:00:00Z", "metaData": "123456" } @@ -47,13 +47,13 @@ "recoveryPointDataStoresDetails": [ { "id": "808cfd30-722e-4bab-85f6-4a9d01ffc6f2", - "type": "Snapshot", + "type": "Snapshot", "creationTime": "2019-03-01T13:00:00Z", "metaData": "123456" }, { "id": "798cfd30-722e-4bab-85f6-4a9d01ffc6f3", - "type": "BackupStorage", + "type": "BackupStorage", "creationTime": "2019-03-01T13:00:00Z", "metaData": "123456" } diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json index 6729157c19bd..06582b0fae64 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json @@ -4,32 +4,32 @@ "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", "api-version": "2020-01-01-alpha", - "backupInstanceName": "testInstance1", + "backupInstanceName": "testInstance1", "parameters": { - "properties": { - "objectType": "BackupInstance", - "dataSourceSetInfo": { - "objectType": "DatasourceSet", - "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", - "resourceName": "viveksipgtest", - "resourceType": "Microsoft.DBforPostgreSQL/servers", - "resourceUri": "", - "resourceLocation": "", - "datasourceType": "OssDB" - }, - "dataSourceInfo": { - "objectType": "Datasource", - "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", - "resourceName": "testdb", - "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", - "resourceUri": "", - "resourceLocation": "", - "datasourceType": "OssDB" - }, - "policyInfo": { - "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1" + "properties": { + "objectType": "BackupInstance", + "dataSourceSetInfo": { + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceName": "viveksipgtest", + "resourceType": "Microsoft.DBforPostgreSQL/servers", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "dataSourceInfo": { + "objectType": "Datasource", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceName": "testdb", + "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "policyInfo": { + "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1" + } } - } } }, "responses": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json index 720abb1a329d..a9bb976ebffc 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json @@ -4,14 +4,14 @@ "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", "api-version": "2020-01-01-alpha", - "backupInstanceName": "testInstance1", + "backupInstanceName": "testInstance1", "parameters": { "backupRuleOptions": { - "ruleName": "BackupWeekly", - "triggerOption": { - "retentionTagOverride": "yearly" - } - } + "ruleName": "BackupWeekly", + "triggerOption": { + "retentionTagOverride": "yearly" + } + } } }, "responses": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json index b3f8b0dcae5b..9b4fefe43991 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json @@ -4,12 +4,12 @@ "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", "api-version": "2020-01-01-alpha", - "backupInstanceName": "testInstance1", - "parameters": { - "recoveryPointId": "hardcodedRP", - "rehydrationRetentionDuration": "7D", - "rehydrationPriority": "High" - } + "backupInstanceName": "testInstance1", + "parameters": { + "recoveryPointId": "hardcodedRP", + "rehydrationRetentionDuration": "7D", + "rehydrationPriority": "High" + } }, "responses": { "202": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json index 3741ea5ca03f..21cca6ee20f1 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json @@ -5,32 +5,32 @@ "vaultName": "PratikPrivatePreviewVault1", "api-version": "2020-01-01-alpha", "backupInstanceName": "testInstance1", - "parameters": { - "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", - "recoveryPointId": "hardcodedRP", - "sourceDataStoreType": "VaultStore", + "parameters": { + "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", + "recoveryPointId": "hardcodedRP", + "sourceDataStoreType": "VaultStore", "restoreTargetInfo": { - "objectType": "RestoreTargetInfo", - "recoveryOption": "FailIfExists", - "datasourceSetInfo": { - "objectType": "DatasourceSet", - "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", - "resourceName": "viveksipgtest", - "resourceType": "Microsoft.DBforPostgreSQL/servers", - "resourceUri": "", - "resourceLocation": "", - "datasourceType": "OssDB" - }, - "datasourceInfo": { - "objectType": "Datasource", - "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", - "resourceName": "testdb", - "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", - "resourceUri": "", - "resourceLocation": "", - "datasourceType": "OssDB" - }, - "restoreLocation": "southeastasia" + "objectType": "RestoreTargetInfo", + "recoveryOption": "FailIfExists", + "datasourceSetInfo": { + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceName": "viveksipgtest", + "resourceType": "Microsoft.DBforPostgreSQL/servers", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "datasourceInfo": { + "objectType": "Datasource", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceName": "testdb", + "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "restoreLocation": "southeastasia" } } }, diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json index 0bc20c765453..ad0e24624e7c 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json @@ -5,14 +5,14 @@ "vaultName": "PrivatePreviewVault1", "api-version": "2020-01-01-alpha", "backupInstanceName": "testInstance1", - "parameters": { - "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", - "recoveryPointId": "hardcodedRP", - "sourceDataStoreType": "VaultStore", + "parameters": { + "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", + "recoveryPointId": "hardcodedRP", + "sourceDataStoreType": "VaultStore", "restoreTargetInfo": { "targetDetails": { "url": "https://teststorage.blob.core.windows.net/restoretest", - "filePrefix" : "restoredblob", + "filePrefix": "restoredblob", "restoreTargetLocationType": "AzureBlobs" }, "restoreLocation": "southeastasia", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json index 851d56c5f5f3..723393605ab9 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json @@ -5,34 +5,34 @@ "vaultName": "PratikPrivatePreviewVault1", "api-version": "2020-01-01-alpha", "backupInstanceName": "testInstance1", - "parameters": { - "objectType": "AzureBackupRestoreWithRehydrationRequest", - "recoveryPointId": "hardcodedRP", + "parameters": { + "objectType": "AzureBackupRestoreWithRehydrationRequest", + "recoveryPointId": "hardcodedRP", "rehydrationRetentionDuration": "7D", "rehydrationPriority": "High", - "sourceDataStoreType": "VaultStore", + "sourceDataStoreType": "VaultStore", "restoreTargetInfo": { - "objectType": "RestoreTargetInfo", - "recoveryOption": "FailIfExists", - "datasourceSetInfo": { - "objectType": "DatasourceSet", - "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", - "resourceName": "viveksipgtest", - "resourceType": "Microsoft.DBforPostgreSQL/servers", - "resourceUri": "", - "resourceLocation": "", - "datasourceType": "OssDB" - }, - "datasourceInfo": { - "objectType": "Datasource", - "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", - "resourceName": "testdb", - "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", - "resourceUri": "", - "resourceLocation": "", - "datasourceType": "OssDB" - }, - "restoreLocation": "southeastasia" + "objectType": "RestoreTargetInfo", + "recoveryOption": "FailIfExists", + "datasourceSetInfo": { + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceName": "viveksipgtest", + "resourceType": "Microsoft.DBforPostgreSQL/servers", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "datasourceInfo": { + "objectType": "Datasource", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceName": "testdb", + "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "restoreLocation": "southeastasia" } } }, diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json index 526dbab669ee..d649324385cf 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json @@ -4,32 +4,32 @@ "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", "api-version": "2020-01-01-alpha", - "backupInstanceName": "testInstance1", + "backupInstanceName": "testInstance1", "parameters": { - "backupInstance": { - "objectType": "BackupInstance", - "dataSourceSetInfo": { - "objectType": "DatasourceSet", - "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", - "resourceName": "viveksipgtest", - "resourceType": "Microsoft.DBforPostgreSQL/servers", - "resourceUri": "", - "resourceLocation": "", - "datasourceType": "OssDB" - }, - "dataSourceInfo": { - "objectType": "Datasource", - "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", - "resourceName": "testdb", - "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", - "resourceUri": "", - "resourceLocation": "", - "datasourceType": "OssDB" - }, - "policyInfo": { - "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1" - } - } + "backupInstance": { + "objectType": "BackupInstance", + "dataSourceSetInfo": { + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest", + "resourceName": "viveksipgtest", + "resourceType": "Microsoft.DBforPostgreSQL/servers", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "dataSourceInfo": { + "objectType": "Datasource", + "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb", + "resourceName": "testdb", + "resourceType": "Microsoft.DBforPostgreSQL/servers/databases", + "resourceUri": "", + "resourceLocation": "", + "datasourceType": "OssDB" + }, + "policyInfo": { + "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1" + } + } } }, "responses": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json index f5fedcd9cb61..866ae99e49ab 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json @@ -4,9 +4,9 @@ "location": "WestUS", "api-version": "2020-01-01-alpha", "parameters": { - "featureType": "DataSourceType", - "objectType": "FeatureValidationRequest" - } + "featureType": "DataSourceType", + "objectType": "FeatureValidationRequest" + } }, "responses": { "200": { @@ -16,12 +16,12 @@ { "featureName": "Microsoft.Storage/storageAccounts/blobServices", "supportStatus": "PrivatePreview", - "exposureControlledFeatures":[] + "exposureControlledFeatures": [] }, { "featureName": "Microsoft.DBforPostgreSQL/servers/databases", "supportStatus": "PublicPreview", - "exposureControlledFeatures":[] + "exposureControlledFeatures": [] } ], "objectType": "FeatureValidationResponse" diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json index 4a887f2b1c5e..3ec3f5280127 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json @@ -7,7 +7,7 @@ }, "responses": { "204": {}, - "202": { + "202": { "headers": { "Location": "https://api-dogfood.resources.windows-int.net/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", "Azure-AsyncOperation": "https://api-dogfood.resources.windows-int.net/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", @@ -15,4 +15,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json index e5ec760ee5f9..f2165cde06b6 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json index ea09113b162a..99d15f4a1cf6 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json @@ -12,8 +12,8 @@ "body": { "blobUrl": "https://azureblob.blob.core.windows.net/reportcontainer/exportjobsreport00000000-0000-0000-0000-000000000000", "blobSasKey": "?sv=2018-03-28&sr=b&sig=kidBR4BGZTcCuUX63VkB25IxkTlBWpFZFo2s7pXdrSY%3D&st=2020-04-20T09%3A53%3A59Z&se=2020-04-20T10%3A03%3A59Z&sp=r", - "excelFileBlobUrl":"https://azureblob.blob.core.windows.net/reportcontainer/exportjobsreport00000000-0000-0000-0000-000000000000_ExcelFile.xlsx", - "excelFileBlobSasKey":"?sv=2018-03-28&sr=b&sig=An32GRxmS518mtB1GF3mTfmEuexjtc0XN0jehKph%2Bqk%3D&st=2020-04-20T09%3A53%3A59Z&se=2020-04-20T10%3A03%3A59Z&sp=r" + "excelFileBlobUrl": "https://azureblob.blob.core.windows.net/reportcontainer/exportjobsreport00000000-0000-0000-0000-000000000000_ExcelFile.xlsx", + "excelFileBlobSasKey": "?sv=2018-03-28&sr=b&sig=An32GRxmS518mtB1GF3mTfmEuexjtc0XN0jehKph%2Bqk%3D&st=2020-04-20T09%3A53%3A59Z&se=2020-04-20T10%3A03%3A59Z&sp=r" } }, "202": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json index 0fc0e185aacc..b08bc2d2a9be 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json @@ -1,14 +1,14 @@ { - "parameters": { - "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "resourceGroupName": "BugBash1", + "parameters": { + "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "resourceGroupName": "BugBash1", "vaultName": "BugBashVaultForCCYv11", - "jobId":"3c60cb49-63e8-4b21-b9bd-26277b3fdfae", - "api-version": "2019-01-01-alpha" - }, - "responses": { - "200": { - "body": { + "jobId": "3c60cb49-63e8-4b21-b9bd-26277b3fdfae", + "api-version": "2019-01-01-alpha" + }, + "responses": { + "200": { + "body": { "properties": { "activityID": "c4344fb4-7c11-43a4-8307-7ae7c7fb09b9", "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", @@ -31,7 +31,7 @@ "isUserTriggered": false, "supportedActions": [], "duration": "00:00:00", - "dataSourceLocation":"centraluseuap", + "dataSourceLocation": "centraluseuap", "extendedInfo": { "subTasks": [ { @@ -52,5 +52,5 @@ "type": "Microsoft.DataProtection/Backupvaults/backupJobs" } } - } + } } diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json index b32b0f308709..eb51f23ad60b 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json @@ -1,13 +1,13 @@ { - "parameters": { - "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "resourceGroupName": "BugBash1", + "parameters": { + "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "resourceGroupName": "BugBash1", "vaultName": "BugBashVaultForCCYv11", - "api-version": "2019-01-01-alpha" - }, - "responses": { - "200": { - "body": { + "api-version": "2019-01-01-alpha" + }, + "responses": { + "200": { + "body": { "value": [ { "properties": { @@ -32,7 +32,7 @@ "isUserTriggered": false, "supportedActions": [], "duration": "00:00:00", - "dataSourceLocation":"centraluseuap" + "dataSourceLocation": "centraluseuap" }, "id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/8989416e-7573-4836-8cf1-0e90954f1002", "name": "8989416e-7573-4836-8cf1-0e90954f1002", @@ -61,7 +61,7 @@ "isUserTriggered": false, "supportedActions": [], "duration": "00:00:00", - "dataSourceLocation":"centraluseuap" + "dataSourceLocation": "centraluseuap" }, "id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/ad218c05-242a-47c2-b7b7-c16bd0f8870c", "name": "ad218c05-242a-47c2-b7b7-c16bd0f8870c", @@ -90,7 +90,7 @@ "isUserTriggered": false, "supportedActions": [], "duration": "00:00:00", - "dataSourceLocation":"centraluseuap" + "dataSourceLocation": "centraluseuap" }, "id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/3c60cb49-63e8-4b21-b9bd-26277b3fdfae", "name": "3c60cb49-63e8-4b21-b9bd-26277b3fdfae", @@ -122,7 +122,7 @@ "" ], "duration": "00:02:11.9724387", - "dataSourceLocation":"centraluseuap" + "dataSourceLocation": "centraluseuap" }, "id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/43252662-1b43-44fd-a856-0055665cb097", "name": "43252662-1b43-44fd-a856-0055665cb097", @@ -131,5 +131,5 @@ ] } } - } + } } diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json index 4346e35badc7..fdcbf2c52b70 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json @@ -12,6 +12,6 @@ "Retry-After": 60 } }, - "204" : {} + "204": {} } } diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json index 523b0a2d7a27..19297995f508 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json @@ -1,11 +1,11 @@ { - "parameters": { - "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", - "resourceGroupName": "000pikumar", - "vaultName": "PrivatePreviewVault", - "backupPolicyName": "OSSDBPolicy", - "api-version": "2020-01-01-alpha" - }, + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PrivatePreviewVault", + "backupPolicyName": "OSSDBPolicy", + "api-version": "2020-01-01-alpha" + }, "responses": { "200": {}, "204": {} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json index 038536979eda..7bf9c2518896 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json @@ -1,101 +1,109 @@ { - "parameters": { - "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", - "resourceGroupName": "000pikumar", - "vaultName": "PrivatePreviewVault", - "backupPolicyName": "OSSDBPolicy", - "api-version": "2020-01-01-alpha" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy", - "name": "OSSDBPolicy", - "type": "Microsoft.DataProtection/backupVaults/backupPolicies", - "properties": { - "policyRules": [{ - "backupParameters": { - "backupType": "Full", - "objectType": "AzureBackupParams" - }, - "trigger": { - "schedule": { - "repeatingTimeIntervals": [ - "R/2019-11-20T08:00:00-08:00/P1W" - ] - }, - "taggingCriteria": [{ - "tagInfo": { - "tagName": "Default", - "id": "Default_" - }, - "taggingPriority": 99, - "isDefault": true - }, - { - "tagInfo": { - "tagName": "Weekly", - "id": "Weekly_" - }, - "taggingPriority": 20, - "isDefault": false, - "criteria": [{ - "scheduleTimes": [ - "2019-03-01T13:00:00Z" - ], - "daysOfTheWeek": [ - "Sunday" - ], - "objectType": "ScheduleBasedBackupCriteria" - }] - } - ], - "objectType": "ScheduleBasedTriggerContext" - }, - "dataStore": { - "dataStoreType": "VaultStore", - "objectType": "DataStoreInfoBase" - }, - "name": "BackupWeekly", - "objectType": "AzureBackupRule" - }, - { - "lifecycles": [{ - "sourceDataStore": { - "dataStoreType": "VaultStore", - "objectType": "DataStoreInfoBase" - }, - "deleteAfter": { - "objectType": "AbsoluteDeleteOption", - "duration": "P1W" - } - }], - "isDefault": true, - "name": "Default", - "objectType": "AzureRetentionRule" - }, - { - "lifecycles": [{ - "sourceDataStore": { - "dataStoreType": "VaultStore", - "objectType": "DataStoreInfoBase" - }, - "deleteAfter": { - "objectType": "AbsoluteDeleteOption", - "duration": "P12W" - } - }], - "isDefault": false, - "name": "Weekly", - "objectType": "AzureRetentionRule" - } - ], - "datasourceTypes": [ - "OssDB" - ], - "objectType": "BackupPolicy" - } - } - } - } + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PrivatePreviewVault", + "backupPolicyName": "OSSDBPolicy", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy", + "name": "OSSDBPolicy", + "type": "Microsoft.DataProtection/backupVaults/backupPolicies", + "properties": { + "policyRules": [ + { + "backupParameters": { + "backupType": "Full", + "objectType": "AzureBackupParams" + }, + "trigger": { + "schedule": { + "repeatingTimeIntervals": [ + "R/2019-11-20T08:00:00-08:00/P1W" + ] + }, + "taggingCriteria": [ + { + "tagInfo": { + "tagName": "Default", + "id": "Default_" + }, + "taggingPriority": 99, + "isDefault": true + }, + { + "tagInfo": { + "tagName": "Weekly", + "id": "Weekly_" + }, + "taggingPriority": 20, + "isDefault": false, + "criteria": [ + { + "scheduleTimes": [ + "2019-03-01T13:00:00Z" + ], + "daysOfTheWeek": [ + "Sunday" + ], + "objectType": "ScheduleBasedBackupCriteria" + } + ] + } + ], + "objectType": "ScheduleBasedTriggerContext" + }, + "dataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "name": "BackupWeekly", + "objectType": "AzureBackupRule" + }, + { + "lifecycles": [ + { + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P1W" + } + } + ], + "isDefault": true, + "name": "Default", + "objectType": "AzureRetentionRule" + }, + { + "lifecycles": [ + { + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P12W" + } + } + ], + "isDefault": false, + "name": "Weekly", + "objectType": "AzureRetentionRule" + } + ], + "datasourceTypes": [ + "OssDB" + ], + "objectType": "BackupPolicy" + } + } + } + } } diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json index 8a77a75825f6..ca0fecbb6ca3 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json @@ -1,102 +1,112 @@ { - "parameters": { - "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", - "resourceGroupName": "000pikumar", - "vaultName": "PrivatePreviewVault", - "api-version": "2020-01-01-alpha" - }, - "responses": { - "200": { - "body": { - "value": [{ - "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy", - "name": "OSSDBPolicy", - "type": "Microsoft.DataProtection/backupVaults/backupPolicies", - "properties": { - "policyRules": [{ - "backupParameters": { - "backupType": "Full", - "objectType": "AzureBackupParams" - }, - "trigger": { - "schedule": { - "repeatingTimeIntervals": [ - "R/2019-11-20T08:00:00-08:00/P1W" - ] - }, - "taggingCriteria": [{ - "tagInfo": { - "tagName": "Default", - "id": "Default_" - }, - "taggingPriority": 99, - "isDefault": true - }, - { - "tagInfo": { - "tagName": "Weekly", - "id": "Weekly_" - }, - "taggingPriority": 20, - "isDefault": false, - "criteria": [{ - "scheduleTimes": [ - "2019-03-01T13:00:00Z" - ], - "daysOfTheWeek": [ - "Sunday" - ], - "objectType": "ScheduleBasedBackupCriteria" - }] - } - ], - "objectType": "ScheduleBasedTriggerContext" - }, - "dataStore": { - "dataStoreType": "VaultStore", - "objectType": "DataStoreInfoBase" - }, - "name": "BackupWeekly", - "objectType": "AzureBackupRule" - }, - { - "lifecycles": [{ - "sourceDataStore": { - "dataStoreType": "VaultStore", - "objectType": "DataStoreInfoBase" - }, - "deleteAfter": { - "objectType": "AbsoluteDeleteOption", - "duration": "P1W" - } - }], - "isDefault": true, - "name": "Default", - "objectType": "AzureRetentionRule" - }, - { - "lifecycles": [{ - "sourceDataStore": { - "dataStoreType": "VaultStore", - "objectType": "DataStoreInfoBase" - }, - "deleteAfter": { - "objectType": "AbsoluteDeleteOption", - "duration": "P12W" - } - }], - "isDefault": false, - "name": "Weekly", - "objectType": "AzureRetentionRule" - } - ], - "datasourceTypes": [ - "OssDB" - ], - "objectType": "BackupPolicy" - } - }] - } - } - } + "parameters": { + "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", + "resourceGroupName": "000pikumar", + "vaultName": "PrivatePreviewVault", + "api-version": "2020-01-01-alpha" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy", + "name": "OSSDBPolicy", + "type": "Microsoft.DataProtection/backupVaults/backupPolicies", + "properties": { + "policyRules": [ + { + "backupParameters": { + "backupType": "Full", + "objectType": "AzureBackupParams" + }, + "trigger": { + "schedule": { + "repeatingTimeIntervals": [ + "R/2019-11-20T08:00:00-08:00/P1W" + ] + }, + "taggingCriteria": [ + { + "tagInfo": { + "tagName": "Default", + "id": "Default_" + }, + "taggingPriority": 99, + "isDefault": true + }, + { + "tagInfo": { + "tagName": "Weekly", + "id": "Weekly_" + }, + "taggingPriority": 20, + "isDefault": false, + "criteria": [ + { + "scheduleTimes": [ + "2019-03-01T13:00:00Z" + ], + "daysOfTheWeek": [ + "Sunday" + ], + "objectType": "ScheduleBasedBackupCriteria" + } + ] + } + ], + "objectType": "ScheduleBasedTriggerContext" + }, + "dataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "name": "BackupWeekly", + "objectType": "AzureBackupRule" + }, + { + "lifecycles": [ + { + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P1W" + } + } + ], + "isDefault": true, + "name": "Default", + "objectType": "AzureRetentionRule" + }, + { + "lifecycles": [ + { + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P12W" + } + } + ], + "isDefault": false, + "name": "Weekly", + "objectType": "AzureRetentionRule" + } + ], + "datasourceTypes": [ + "OssDB" + ], + "objectType": "BackupPolicy" + } + } + ] + } + } + } } diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json index bf530efb9ec6..ca2790c63624 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json @@ -7,11 +7,11 @@ "api-version": "2020-01-01-alpha" }, "responses": { - "202": { + "202": { "headers": { "Retry-After": "10", - "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha", - "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha", + "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" } }, "200": { @@ -35,7 +35,7 @@ } ] } - } + } } } } diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json index cc3aee678b65..be1408ef6021 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json @@ -1,41 +1,43 @@ { - "parameters": { - "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", - "resourceGroupName": "SampleResourceGroup", - "vaultName": "swaggerExample", - "api-version": "2020-01-01-alpha", - "operationId": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", - "parameters": { - "tags": { - "newKey": "newVal" - } - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "10", - "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha", - "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" - } - }, - "200": { - "body": { - "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", - "name": "swaggerExample", - "type": "Microsoft.DataProtection/Backupvaults", - "location": "WestUS", - "tags": { - "newKey": "newVal" - }, - "properties": { - "provisioningState": "Succeeded", - "storageSettings": [{ - "dataStoreType": "VaultStore", - "type": "LocallyRedundant" - }] - } - } - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "vaultName": "swaggerExample", + "api-version": "2020-01-01-alpha", + "operationId": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", + "parameters": { + "tags": { + "newKey": "newVal" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha", + "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" + } + }, + "200": { + "body": { + "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample", + "name": "swaggerExample", + "type": "Microsoft.DataProtection/Backupvaults", + "location": "WestUS", + "tags": { + "newKey": "newVal" + }, + "properties": { + "provisioningState": "Succeeded", + "storageSettings": [ + { + "dataStoreType": "VaultStore", + "type": "LocallyRedundant" + } + ] + } + } + } + } +} From 6e310881a13da2cf9823133c6f509628958cf09c Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Thu, 4 Feb 2021 14:13:16 +0530 Subject: [PATCH 07/16] fixing spell check issues --- custom-words.txt | 3 +++ .../2020-01-01-alpha/dataprotection.json | 22 +++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index 1d6b134fc91f..9a278569c633 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2081,3 +2081,6 @@ Exprired azureasyncoperations saskey vmsize +CheckfeatureSupport +Checkfeature +lifecycles \ No newline at end of file diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json index 71d395999e65..ac4c675d793d 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json @@ -1925,7 +1925,7 @@ "type": "string" }, "errorDetails": { - "description": "A List, detatiling the errors related to the job", + "description": "A List, detailing the errors related to the job", "items": { "$ref": "#/definitions/UserFacingError" }, @@ -1974,7 +1974,7 @@ "type": "string" }, "sourceResourceGroup": { - "description": "Name of the Datasource's Resource Group", + "description": "Resource Group Name of the Datasource", "type": "string" }, "sourceSubscriptionID": { @@ -2397,7 +2397,7 @@ "description": "Rule based backup policy", "properties": { "policyRules": { - "description": "Policy rule dictionary that contains rules for each backptype i.e Full/Incremental/Logs etc", + "description": "Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc", "items": { "$ref": "#/definitions/BasePolicyRule" }, @@ -2717,7 +2717,7 @@ "type": "object" }, "CloudError": { - "description": "An error response from Azure Backuup.", + "description": "An error response from Azure Backup.", "properties": { "error": { "$ref": "#/definitions/Error" @@ -3213,7 +3213,7 @@ "additionalProperties": { "type": "string" }, - "description": "Any Key value pairs that can be provided to the cleint for additional verbose information.", + "description": "Any Key value pairs that can be provided to the client for additional verbose information.", "type": "object" }, "code": { @@ -3243,8 +3243,8 @@ "readOnly": true, "type": "string" }, - "dataTransferedInBytes": { - "description": "Number of bytes transfered", + "dataTransferredInBytes": { + "description": "Number of bytes transferred", "format": "double", "readOnly": true, "type": "number" @@ -3283,7 +3283,7 @@ "readOnly": true, "type": "string" }, - "description": "Sub Tasks's additional details" + "description": "Additional details of Sub Tasks" }, "taskId": { "description": "Task Id of the Sub Task", @@ -3698,7 +3698,7 @@ "type": "array" }, "weeksOfTheMonth": { - "description": "It should be Fisrt/Second/Third/Fourth/Last", + "description": "It should be First/Second/Third/Fourth/Last", "items": { "enum": [ "First", @@ -3953,7 +3953,7 @@ "type": "object" }, "UserFacingError": { - "description": "Error object used by layers that have access to localized content, and propogate that to user", + "description": "Error object used by layers that have access to localized content, and propagate that to user", "properties": { "code": { "description": "Unique code for this error", @@ -3982,7 +3982,7 @@ "type": "string" }, "recommendedAction": { - "description": "RecommendedAction � Localised.", + "description": "RecommendedAction � localized.", "items": { "type": "string" }, From 1ac92c756586410d1d9e785bf68d4a6430f0c7d4 Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Thu, 4 Feb 2021 14:23:07 +0530 Subject: [PATCH 08/16] adding backuptype in custom-words --- custom-words.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom-words.txt b/custom-words.txt index 9a278569c633..02e527774376 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2083,4 +2083,5 @@ saskey vmsize CheckfeatureSupport Checkfeature -lifecycles \ No newline at end of file +lifecycles +backuptype \ No newline at end of file From abcd60d9f0eae431796cdc770532a60639d43b0d Mon Sep 17 00:00:00 2001 From: vityagi Date: Thu, 4 Feb 2021 18:54:52 +0530 Subject: [PATCH 09/16] PolicyParameters related changes for Disk Backup --- .../2020-01-01-alpha/dataprotection.json | 74 ++++++++++++++++++- .../PutBackupInstance.json | 33 ++++++++- 2 files changed, 100 insertions(+), 7 deletions(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json index ac4c675d793d..e7a4a65acb91 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json @@ -2260,6 +2260,26 @@ "type": "object", "x-ms-discriminator-value": "AzureBackupRule" }, + "AzureOperationalStoreParameters": { + "description": "Parameters for Operational-Tier DataStore", + "required": [ + "objectType", + "dataStoreType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DataStoreParameters" + } + ], + "properties": { + "resourceGroupId": { + "description": "Gets or sets the Resource Group Uri.", + "type": "string" + } + }, + "x-ms-discriminator-value": "AzureOperationalStoreParameters" + }, "AzureRetentionRule": { "allOf": [ { @@ -2855,11 +2875,11 @@ "description": "DataStoreInfo base", "properties": { "dataStoreType": { - "description": "type of datastore; SnapShot/Hot/Archive", + "description": "type of datastore; Operational/Vault/Archive", "enum": [ - "ArchiveStore", - "SnapshotStore", - "VaultStore" + "OperationalStore", + "VaultStore", + "ArchiveStore" ], "type": "string", "x-ms-enum": { @@ -2880,6 +2900,35 @@ "title": "DataStoreInfoBase", "type": "object" }, + "DataStoreParameters": { + "description": "Parameters for DataStore", + "required": [ + "objectType", + "dataStoreType" + ], + "type": "object", + "properties": { + "objectType": { + "description": "Type of the specific object - used for deserializing", + "type": "string", + "readOnly": false + }, + "dataStoreType": { + "description": "type of datastore; Operational/Vault/Archive", + "enum": [ + "OperationalStore", + "VaultStore", + "ArchiveStore" + ], + "type": "string", + "x-ms-enum": { + "name": "DataStoreTypes", + "modelAsString": true + } + } + }, + "discriminator": "objectType" + }, "Day": { "description": "Day of the week", "properties": { @@ -3403,6 +3452,10 @@ "policyVersion": { "readOnly": true, "type": "string" + }, + "policyParameters": { + "$ref": "#/definitions/PolicyParameters", + "description": "Policy parameters for the backup instance" } }, "required": [ @@ -3411,6 +3464,19 @@ "title": "PolicyInfo", "type": "object" }, + "PolicyParameters": { + "description": "Parameters in Policy", + "type": "object", + "properties": { + "dataStoreParametersList": { + "description": "Gets or sets the DataStore Parameters", + "type": "array", + "items": { + "$ref": "#/definitions/DataStoreParameters" + } + } + } + }, "ProtectionStatusDetails": { "description": "Protection status details", "properties": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json index 06582b0fae64..86f85fc27c01 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json @@ -27,7 +27,16 @@ "datasourceType": "OssDB" }, "policyInfo": { - "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1" + "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1", + "policyParameters": { + "dataStoreParametersList": [ + { + "objectType": "AzureOperationalStoreParameters", + "dataStoreType": "OperationalStore", + "resourceGroupId": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest" + } + ] + } } } } @@ -63,7 +72,16 @@ }, "policyInfo": { "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1", - "policyVersion": "3.2" + "policyVersion": "3.2", + "policyParameters": { + "dataStoreParametersList": [ + { + "objectType": "AzureOperationalStoreParameters", + "dataStoreType": "OperationalStore", + "resourceGroupId": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest" + } + ] + } }, "protectionStatus": { "status": "NotProtected" @@ -99,7 +117,16 @@ }, "policyInfo": { "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1", - "policyVersion": "3.2" + "policyVersion": "3.2", + "policyParameters": { + "dataStoreParametersList": [ + { + "objectType": "AzureOperationalStoreParameters", + "dataStoreType": "OperationalStore", + "resourceGroupId": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest" + } + ] + } }, "protectionStatus": { "status": "NotProtected" From 3402544653fdf238306a3b974a6b0fb88f512497 Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Wed, 10 Feb 2021 14:54:59 +0530 Subject: [PATCH 10/16] fixing PR comments --- .../examples/VaultCRUD/DeleteBackupVault.json | 12 ------- .../dataprotection.json | 33 ++++++++++--------- .../DeleteBackupInstance.json | 2 +- .../GetBackupInstance.json | 2 +- .../GetRecoveryPoint.json | 2 +- .../ListBackupInstances.json | 2 +- .../ListRecoveryPoints.json | 2 +- .../PutBackupInstance.json | 2 +- .../TriggerBackup.json | 2 +- .../TriggerRehydrate.json | 2 +- .../TriggerRestore.json | 2 +- .../TriggerRestoreAsFiles.json | 2 +- .../TriggerRestoreWithRehydration.json | 2 +- .../ValidateForBackup.json | 2 +- .../ValidateRestore.json | 2 +- .../examples/CheckfeatureSupport.json | 2 +- .../examples/GetOperationResult.json | 5 ++- .../examples/GetOperationStatus.json | 2 +- .../JobCRUD/GetExportJobsOperationResult.json | 4 +-- .../examples/JobCRUD/GetJob.json | 2 +- .../examples/JobCRUD/ListJobs.json | 12 +++---- .../examples/JobCRUD/TriggerExportJobs.json | 0 .../CreateOrUpdateBackupPolicy.json | 2 +- .../PolicyCRUD/DeleteBackupPolicy.json | 2 +- .../examples/PolicyCRUD/GetBackupPolicy.json | 2 +- .../examples/PolicyCRUD/ListBackupPolicy.json | 2 +- .../CheckBackupVaultsNameAvailability.json | 2 +- .../examples/VaultCRUD/DeleteBackupVault.json | 19 +++++++++++ .../examples/VaultCRUD/GetBackupVault.json | 2 +- .../VaultCRUD/GetBackupVaultWithMSI.json | 2 +- .../GetBackupVaultsInResourceGroup.json | 2 +- .../GetBackupVaultsInSubscription.json | 2 +- .../VaultCRUD/GetOperationResultPatch.json | 12 +++---- .../examples/VaultCRUD/PatchBackupVault.json | 6 ++-- .../examples/VaultCRUD/PutBackupVault.json | 4 +-- .../VaultCRUD/PutBackupVaultWithMSI.json | 4 +-- .../resource-manager/readme.go.md | 10 +++--- .../resource-manager/readme.java.md | 12 +++---- .../dataprotection/resource-manager/readme.md | 20 +++++------ .../resource-manager/readme.ruby.md | 10 +++--- 40 files changed, 110 insertions(+), 103 deletions(-) delete mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/DeleteBackupVault.json rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/dataprotection.json (99%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/DeleteBackupInstance.json (96%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/GetBackupInstance.json (98%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/GetRecoveryPoint.json (97%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/ListBackupInstances.json (98%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/ListRecoveryPoints.json (98%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/PutBackupInstance.json (99%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/TriggerBackup.json (96%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/TriggerRehydrate.json (96%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/TriggerRestore.json (98%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json (97%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json (98%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/ValidateForBackup.json (98%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/BackupInstanceOperations/ValidateRestore.json (98%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/CheckfeatureSupport.json (95%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/GetOperationResult.json (93%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/GetOperationStatus.json (95%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/JobCRUD/GetExportJobsOperationResult.json (85%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/JobCRUD/GetJob.json (97%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/JobCRUD/ListJobs.json (95%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/JobCRUD/TriggerExportJobs.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json (99%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/PolicyCRUD/DeleteBackupPolicy.json (87%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/PolicyCRUD/GetBackupPolicy.json (98%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/PolicyCRUD/ListBackupPolicy.json (99%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json (90%) create mode 100644 specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/DeleteBackupVault.json rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/VaultCRUD/GetBackupVault.json (95%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/VaultCRUD/GetBackupVaultWithMSI.json (96%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json (97%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/VaultCRUD/GetBackupVaultsInSubscription.json (97%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/VaultCRUD/GetOperationResultPatch.json (90%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/VaultCRUD/PatchBackupVault.json (92%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/VaultCRUD/PutBackupVault.json (95%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/{2020-01-01-alpha => 2021-01-01}/examples/VaultCRUD/PutBackupVaultWithMSI.json (95%) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/DeleteBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/DeleteBackupVault.json deleted file mode 100644 index f008df9b7bd0..000000000000 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/DeleteBackupVault.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", - "resourceGroupName": "SampleResourceGroup", - "vaultName": "swaggerExample", - "api-version": "2020-01-01-alpha" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/dataprotection.json similarity index 99% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/dataprotection.json index e7a4a65acb91..4a55ba211302 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/dataprotection.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2020-01-01-alpha", + "version": "2021-01-01", "title": "DataProtectionBackupClient", "x-ms-code-generation-settings": { "internalConstructors": false @@ -91,9 +91,6 @@ } ], "responses": { - "202": { - "description": "Accepted" - }, "204": { "description": "NoContent" }, @@ -347,6 +344,9 @@ "200": { "description": "OK" }, + "202": { + "description": "OK" + }, "204": { "description": "NoContent" }, @@ -456,9 +456,6 @@ "$ref": "#/definitions/BackupVaultResource" } }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -1653,7 +1650,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobsExport": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/exportBackupJobs": { "post": { "tags": [ "AzureBackupJob" @@ -1913,7 +1910,7 @@ "type": "string" }, "duration": { - "description": "Total run time of the job.", + "description": "Total run time of the job. ISO 8601 format.", "format": "duration", "readOnly": true, "type": "string" @@ -1947,7 +1944,18 @@ }, "operationCategory": { "description": "It indicates the type of Job i.e. Backup/Restore/Retention/Management", - "type": "string" + "type": "string", + "enum": [ + "Backup", + "Restore", + "Retention", + "Management", + "Tiering" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "JobOperationCategory" + } }, "policyId": { "description": "ARM ID of the policy", @@ -2968,11 +2976,6 @@ "DppIdentityDetails": { "description": "Identity details", "properties": { - "identityUrl": { - "description": "Identity Url", - "readOnly": true, - "type": "string" - }, "principalId": { "description": "The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure resource.", "readOnly": true, diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json similarity index 96% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json index 4e20e14a90c1..73c2bd5849a6 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/DeleteBackupInstance.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json @@ -4,7 +4,7 @@ "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", "backupInstanceName": "testInstance1", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "202": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetBackupInstance.json similarity index 98% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetBackupInstance.json index a6b831c7b196..9ddadcced968 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetBackupInstance.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetBackupInstance.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1" }, "responses": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json similarity index 97% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json index 59cea5d711b3..aa61e1511e47 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/GetRecoveryPoint.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1", "recoveryPointId": "7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25" }, diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListBackupInstances.json similarity index 98% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListBackupInstances.json index 8a389e5a39c5..4d85cada90c6 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListBackupInstances.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListBackupInstances.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json similarity index 98% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json index 8604660e4334..6ebb386e3b81 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ListRecoveryPoints.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1" }, "responses": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/PutBackupInstance.json similarity index 99% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/PutBackupInstance.json index 86f85fc27c01..27128a3a3735 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/PutBackupInstance.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/PutBackupInstance.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1", "parameters": { "properties": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerBackup.json similarity index 96% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerBackup.json index a9bb976ebffc..1bf110907cf7 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerBackup.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerBackup.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1", "parameters": { "backupRuleOptions": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json similarity index 96% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json index 9b4fefe43991..93c935ba60ed 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRehydrate.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1", "parameters": { "recoveryPointId": "hardcodedRP", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestore.json similarity index 98% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestore.json index 21cca6ee20f1..b7769516b740 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestore.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestore.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1", "parameters": { "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json similarity index 97% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json index ad0e24624e7c..cfd68afe3047 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1", "parameters": { "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json similarity index 98% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json index 723393605ab9..52c6e3a198bb 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1", "parameters": { "objectType": "AzureBackupRestoreWithRehydrationRequest", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateForBackup.json similarity index 98% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateForBackup.json index d649324385cf..96869a4aee32 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateForBackup.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateForBackup.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1", "parameters": { "backupInstance": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateRestore.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateRestore.json similarity index 98% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateRestore.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateRestore.json index d5e5be0f0c55..886ca047eefe 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/BackupInstanceOperations/ValidateRestore.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateRestore.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PratikPrivatePreviewVault1", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "backupInstanceName": "testInstance1", "parameters": { "restoreRequestObject": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/CheckfeatureSupport.json similarity index 95% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/CheckfeatureSupport.json index 866ae99e49ab..127daeab9f0f 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/CheckfeatureSupport.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/CheckfeatureSupport.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "location": "WestUS", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "parameters": { "featureType": "DataSourceType", "objectType": "FeatureValidationRequest" diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationResult.json similarity index 93% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationResult.json index 3ec3f5280127..1ef86b4a1dad 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationResult.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationResult.json @@ -3,11 +3,10 @@ "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "location": "WestUS", "operationId": "MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA==", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { - "204": {}, - "202": { + "204": { "headers": { "Location": "https://api-dogfood.resources.windows-int.net/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", "Azure-AsyncOperation": "https://api-dogfood.resources.windows-int.net/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/westus/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2019-01-01-alpha", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationStatus.json similarity index 95% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationStatus.json index f2165cde06b6..e5b174764b54 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/GetOperationStatus.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationStatus.json @@ -3,7 +3,7 @@ "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "location": "WestUS", "operationId": "MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA==", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetExportJobsOperationResult.json similarity index 85% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetExportJobsOperationResult.json index 99d15f4a1cf6..38fa40ccff94 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetExportJobsOperationResult.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetExportJobsOperationResult.json @@ -11,9 +11,9 @@ "headers": {}, "body": { "blobUrl": "https://azureblob.blob.core.windows.net/reportcontainer/exportjobsreport00000000-0000-0000-0000-000000000000", - "blobSasKey": "?sv=2018-03-28&sr=b&sig=kidBR4BGZTcCuUX63VkB25IxkTlBWpFZFo2s7pXdrSY%3D&st=2020-04-20T09%3A53%3A59Z&se=2020-04-20T10%3A03%3A59Z&sp=r", + "blobSasKey": "?sv=2018-03-28&sr=b&sig=kidBR4BGZTcCuUX63VkB25IxkTlBWpFZFo2s7pXdrSY%3D&st=2021-04-20T09%3A53%3A59Z&se=2021-04-20T10%3A03%3A59Z&sp=r", "excelFileBlobUrl": "https://azureblob.blob.core.windows.net/reportcontainer/exportjobsreport00000000-0000-0000-0000-000000000000_ExcelFile.xlsx", - "excelFileBlobSasKey": "?sv=2018-03-28&sr=b&sig=An32GRxmS518mtB1GF3mTfmEuexjtc0XN0jehKph%2Bqk%3D&st=2020-04-20T09%3A53%3A59Z&se=2020-04-20T10%3A03%3A59Z&sp=r" + "excelFileBlobSasKey": "?sv=2018-03-28&sr=b&sig=An32GRxmS518mtB1GF3mTfmEuexjtc0XN0jehKph%2Bqk%3D&st=2021-04-20T09%3A53%3A59Z&se=2021-04-20T10%3A03%3A59Z&sp=r" } }, "202": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetJob.json similarity index 97% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetJob.json index b08bc2d2a9be..d70c5340bf90 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/GetJob.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetJob.json @@ -23,7 +23,7 @@ "dataSourceName": "bugbashdb2", "progressEnabled": false, "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "startTime": "2020-03-17T03:00:03.7604146Z", + "startTime": "2021-03-17T03:00:03.7604146Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", "operationCategory": "backup", "operation": "Backup", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/ListJobs.json similarity index 95% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/ListJobs.json index eb51f23ad60b..c58f7808afe6 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/ListJobs.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/ListJobs.json @@ -24,7 +24,7 @@ "dataSourceName": "bugbashdb4", "progressEnabled": false, "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "startTime": "2020-03-16T05:00:08.1746833Z", + "startTime": "2021-03-16T05:00:08.1746833Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", "operationCategory": "backup", "operation": "Backup", @@ -53,7 +53,7 @@ "dataSourceName": "bugbashdb5", "progressEnabled": false, "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "startTime": "2020-03-16T18:00:03.6660733Z", + "startTime": "2021-03-16T18:00:03.6660733Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", "operationCategory": "backup", "operation": "Backup", @@ -82,7 +82,7 @@ "dataSourceName": "bugbashdb2", "progressEnabled": false, "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "startTime": "2020-03-17T03:00:03.7604146Z", + "startTime": "2021-03-17T03:00:03.7604146Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", "operationCategory": "backup", "operation": "Backup", @@ -98,7 +98,7 @@ }, { "properties": { - "activityID": "94052cf1-a47f-4c1b-93e7-79e07b2bd008-Tue Mar 17 2020 11:11:48 GMT+0530 (India Standard Time)-Ibz", + "activityID": "94052cf1-a47f-4c1b-93e7-79e07b2bd008-Tue Mar 17 2021 11:11:48 GMT+0530 (India Standard Time)-Ibz", "subscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "backupInstanceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/0b247869-b8be-4885-b832-8ac4cdf5b00e", "policyId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetPolicy1", @@ -111,8 +111,8 @@ "dataSourceName": "bugbashdb3", "progressEnabled": false, "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "startTime": "2020-03-17T11:11:50.5595259Z", - "endTime": "2020-03-17T11:14:02.5319646Z", + "startTime": "2021-03-17T11:11:50.5595259Z", + "endTime": "2021-03-17T11:14:02.5319646Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", "operationCategory": "backup", "operation": "Backup", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/TriggerExportJobs.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/JobCRUD/TriggerExportJobs.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/TriggerExportJobs.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json similarity index 99% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json index a4f33841ad30..6b3e55167e31 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "000pikumar", "vaultName": "PrivatePreviewVault", "backupPolicyName": "OSSDBPolicy", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "parameters": { "properties": { "policyRules": [ diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json similarity index 87% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json index 19297995f508..bf34f4eb75d5 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/DeleteBackupPolicy.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "000pikumar", "vaultName": "PrivatePreviewVault", "backupPolicyName": "OSSDBPolicy", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "200": {}, diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/GetBackupPolicy.json similarity index 98% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/GetBackupPolicy.json index 7bf9c2518896..39d144b9da70 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/GetBackupPolicy.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/GetBackupPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "000pikumar", "vaultName": "PrivatePreviewVault", "backupPolicyName": "OSSDBPolicy", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/ListBackupPolicy.json similarity index 99% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/ListBackupPolicy.json index ca0fecbb6ca3..d081b13447f6 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/PolicyCRUD/ListBackupPolicy.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/ListBackupPolicy.json @@ -3,7 +3,7 @@ "subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b", "resourceGroupName": "000pikumar", "vaultName": "PrivatePreviewVault", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json similarity index 90% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json index 9127d094c68e..0f56d0c7a038 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json @@ -3,7 +3,7 @@ "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "resourceGroupName": "SampleResourceGroup", "location": "westus", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "parameters": { "type": "Microsoft.DataProtection/BackupVaults", "name": "swaggerExample" diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/DeleteBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/DeleteBackupVault.json new file mode 100644 index 000000000000..43ac3df57d55 --- /dev/null +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/DeleteBackupVault.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", + "resourceGroupName": "SampleResourceGroup", + "vaultName": "swaggerExample", + "api-version": "2021-01-01" + }, + "responses": { + "200": {}, + "204": {}, + "202": { + "headers": { + "Retry-After": "10", + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2021-01-01", + "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2021-01-01" + } + } + } +} diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVault.json similarity index 95% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVault.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVault.json index 9613d62e538b..d1de1d3bb115 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVault.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVault.json @@ -3,7 +3,7 @@ "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "resourceGroupName": "SampleResourceGroup", "vaultName": "swaggerExample", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultWithMSI.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json similarity index 96% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultWithMSI.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json index 3136981d9cb0..6af266878f1d 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultWithMSI.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json @@ -3,7 +3,7 @@ "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "resourceGroupName": "SampleResourceGroup", "vaultName": "swaggerExample", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json similarity index 97% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json index 1096a8e69f66..5de0b8ff8b0e 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "resourceGroupName": "SampleResourceGroup", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInSubscription.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json similarity index 97% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInSubscription.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json index de907dfcfaf4..59c141590cdb 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetBackupVaultsInSubscription.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetOperationResultPatch.json similarity index 90% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetOperationResultPatch.json index ca2790c63624..5a81f6df7482 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/GetOperationResultPatch.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetOperationResultPatch.json @@ -4,17 +4,15 @@ "resourceGroupName": "SampleResourceGroup", "vaultName": "swaggerExample", "operationId": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", - "api-version": "2020-01-01-alpha" + "api-version": "2021-01-01" }, "responses": { - "202": { + "200": { "headers": { "Retry-After": "10", - "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha", - "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" - } - }, - "200": { + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2021-01-01", + "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2021-01-01" + }, "body": { "identity": { "type": "None" diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PatchBackupVault.json similarity index 92% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PatchBackupVault.json index be1408ef6021..b61e93dd63d3 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PatchBackupVault.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PatchBackupVault.json @@ -3,7 +3,7 @@ "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "resourceGroupName": "SampleResourceGroup", "vaultName": "swaggerExample", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "operationId": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", "parameters": { "tags": { @@ -15,8 +15,8 @@ "202": { "headers": { "Retry-After": "10", - "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha", - "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2021-01-01", + "Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2021-01-01" } }, "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVault.json similarity index 95% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVault.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVault.json index cfbdac7ea860..41248c7770f1 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVault.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVault.json @@ -3,7 +3,7 @@ "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "resourceGroupName": "SampleResourceGroup", "vaultName": "swaggerExample", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "parameters": { "location": "WestUS", "tags": { @@ -44,7 +44,7 @@ }, "headers": { "Retry-After": "10", - "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2021-01-01" } }, "200": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVaultWithMSI.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json similarity index 95% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVaultWithMSI.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json index 912c37dd51f4..bc1ea219a51e 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/examples/VaultCRUD/PutBackupVaultWithMSI.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json @@ -3,7 +3,7 @@ "subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c", "resourceGroupName": "SampleResourceGroup", "vaultName": "swaggerExample", - "api-version": "2020-01-01-alpha", + "api-version": "2021-01-01", "parameters": { "location": "WestUS", "tags": { @@ -44,7 +44,7 @@ }, "headers": { "Retry-After": "10", - "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2020-01-01-alpha" + "Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/providers/Microsoft.DataProtection/locations/West%20US/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2021-01-01" } }, "200": { diff --git a/specification/dataprotection/resource-manager/readme.go.md b/specification/dataprotection/resource-manager/readme.go.md index ff3a480ae6be..60f06b93d134 100644 --- a/specification/dataprotection/resource-manager/readme.go.md +++ b/specification/dataprotection/resource-manager/readme.go.md @@ -13,14 +13,14 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-2020-01 + - tag: package-2021-01 ``` -### Tag: package-2020-01 and go +### Tag: package-2021-01 and go -These settings apply only when `--tag=package-2020-01 --go` is specified on the command line. +These settings apply only when `--tag=package-2021-01 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag)=='package-2020-01' && $(go) -output-folder: $(go-sdk-folder)/services/preview/dataprotection/mgmt/2020-01-01-alpha/$(namespace) +``` yaml $(tag)=='package-2021-01' && $(go) +output-folder: $(go-sdk-folder)/services/preview/dataprotection/mgmt/2021-01-01/$(namespace) ``` diff --git a/specification/dataprotection/resource-manager/readme.java.md b/specification/dataprotection/resource-manager/readme.java.md index 5126cf993278..707332338377 100644 --- a/specification/dataprotection/resource-manager/readme.java.md +++ b/specification/dataprotection/resource-manager/readme.java.md @@ -17,18 +17,18 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-dataprotection ``` yaml $(java) && $(multiapi) batch: - - tag: package-2020-01 + - tag: package-2021-01 ``` -### Tag: package-2020-01 and java +### Tag: package-2021-01 and java -These settings apply only when `--tag=package-2020-01 --java` is specified on the command line. +These settings apply only when `--tag=package-2021-01 --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. -``` yaml $(tag) == 'package-2020-01' && $(java) && $(multiapi) +``` yaml $(tag) == 'package-2021-01' && $(java) && $(multiapi) java: - namespace: com.microsoft.azure.management.dataprotection.v2020_01_01 - output-folder: $(azure-libraries-for-java-folder)/dataprotection/resource-manager/v2020_01_01 + namespace: com.microsoft.azure.management.dataprotection.v2021_01_01 + output-folder: $(azure-libraries-for-java-folder)/dataprotection/resource-manager/v2021_01_01 regenerate-manager: true generate-interface: true ``` diff --git a/specification/dataprotection/resource-manager/readme.md b/specification/dataprotection/resource-manager/readme.md index ef8f7e88c66a..ee8a49f44fb0 100644 --- a/specification/dataprotection/resource-manager/readme.md +++ b/specification/dataprotection/resource-manager/readme.md @@ -28,7 +28,7 @@ These are the global settings for the DataProtection API. title: Data Protection Client description: Open API 2.0 Specs for Azure Data Protection service openapi-type: arm -tag: package-2020-01 +tag: package-2021-01 csharp-sdks-folder: ./Generated/CSharp python-sdks-folder: ./Generated/Python go-sdk-folder: ./Generated/Golang @@ -46,22 +46,22 @@ semantic-validator: true message-format: json ``` -### Tag: package-2020-01 +### Tag: package-2021-01 -These settings apply only when `--tag=package-2020-01` is specified on the command line. +These settings apply only when `--tag=package-2021-01` is specified on the command line. -``` yaml $(tag) == 'package-2020-01' +``` yaml $(tag) == 'package-2021-01' input-file: -- Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +- Microsoft.DataProtection/preview/2021-01-01/dataprotection.json ``` -### Tag: package-2020-01-only +### Tag: package-2021-01-only -These settings apply only when `--tag=package-2020-01` is specified on the command line. +These settings apply only when `--tag=package-2021-01` is specified on the command line. -``` yaml $(tag) == 'package-2020-01-only' +``` yaml $(tag) == 'package-2021-01-only' input-file: -- Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json +- Microsoft.DataProtection/preview/2021-01-01/dataprotection.json ``` --- @@ -122,7 +122,7 @@ require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions input-file: - - Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json + - Microsoft.DataProtection/preview/2021-01-01/dataprotection.json ``` If there are files that should not be in the `all-api-versions` set, diff --git a/specification/dataprotection/resource-manager/readme.ruby.md b/specification/dataprotection/resource-manager/readme.ruby.md index 16569a3b0a25..3c8a70d1f47f 100644 --- a/specification/dataprotection/resource-manager/readme.ruby.md +++ b/specification/dataprotection/resource-manager/readme.ruby.md @@ -12,15 +12,15 @@ azure-arm: true ``` yaml $(ruby) && $(multiapi) batch: - - tag: package-2020-01 + - tag: package-2021-01 ``` -### Tag: package-2020-01 and ruby +### Tag: package-2021-01 and ruby -These settings apply only when `--tag=package-2020-01 --ruby` is specified on the command line. +These settings apply only when `--tag=package-2021-01 --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -``` yaml $(tag) == 'package-2020-01' && $(ruby) -namespace: "Azure::DataProtection::Mgmt::V2020_01_01" +``` yaml $(tag) == 'package-2021-01' && $(ruby) +namespace: "Azure::DataProtection::Mgmt::V2021_01_01" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_data_protection/lib ``` From 24810968c8e15176b069f73e2aabccc6c3477a65 Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Wed, 10 Feb 2021 15:08:52 +0530 Subject: [PATCH 11/16] description changes --- .../preview/2021-01-01/dataprotection.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/dataprotection.json index 4a55ba211302..2a656c7f0f59 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/dataprotection.json @@ -345,7 +345,7 @@ "description": "OK" }, "202": { - "description": "OK" + "description": "Accepted" }, "204": { "description": "NoContent" From ba3cda3f8a2239640a5b76f6dabaec90b11074da Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Wed, 10 Feb 2021 15:51:30 +0530 Subject: [PATCH 12/16] changes for preview to stable folder --- .../{preview => stable}/2021-01-01/dataprotection.json | 0 .../examples/BackupInstanceOperations/DeleteBackupInstance.json | 0 .../examples/BackupInstanceOperations/GetBackupInstance.json | 0 .../examples/BackupInstanceOperations/GetRecoveryPoint.json | 0 .../examples/BackupInstanceOperations/ListBackupInstances.json | 0 .../examples/BackupInstanceOperations/ListRecoveryPoints.json | 0 .../examples/BackupInstanceOperations/PutBackupInstance.json | 0 .../examples/BackupInstanceOperations/TriggerBackup.json | 0 .../examples/BackupInstanceOperations/TriggerRehydrate.json | 0 .../examples/BackupInstanceOperations/TriggerRestore.json | 0 .../examples/BackupInstanceOperations/TriggerRestoreAsFiles.json | 0 .../BackupInstanceOperations/TriggerRestoreWithRehydration.json | 0 .../examples/BackupInstanceOperations/ValidateForBackup.json | 0 .../examples/BackupInstanceOperations/ValidateRestore.json | 0 .../2021-01-01/examples/CheckfeatureSupport.json | 0 .../2021-01-01/examples/GetOperationResult.json | 0 .../2021-01-01/examples/GetOperationStatus.json | 0 .../2021-01-01/examples/JobCRUD/GetExportJobsOperationResult.json | 0 .../{preview => stable}/2021-01-01/examples/JobCRUD/GetJob.json | 0 .../{preview => stable}/2021-01-01/examples/JobCRUD/ListJobs.json | 0 .../2021-01-01/examples/JobCRUD/TriggerExportJobs.json | 0 .../examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json | 0 .../2021-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json | 0 .../2021-01-01/examples/PolicyCRUD/GetBackupPolicy.json | 0 .../2021-01-01/examples/PolicyCRUD/ListBackupPolicy.json | 0 .../examples/VaultCRUD/CheckBackupVaultsNameAvailability.json | 0 .../2021-01-01/examples/VaultCRUD/DeleteBackupVault.json | 0 .../2021-01-01/examples/VaultCRUD/GetBackupVault.json | 0 .../2021-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json | 0 .../examples/VaultCRUD/GetBackupVaultsInResourceGroup.json | 0 .../examples/VaultCRUD/GetBackupVaultsInSubscription.json | 0 .../2021-01-01/examples/VaultCRUD/GetOperationResultPatch.json | 0 .../2021-01-01/examples/VaultCRUD/PatchBackupVault.json | 0 .../2021-01-01/examples/VaultCRUD/PutBackupVault.json | 0 .../2021-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json | 0 35 files changed, 0 insertions(+), 0 deletions(-) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/dataprotection.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/GetBackupInstance.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/ListBackupInstances.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/PutBackupInstance.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/TriggerBackup.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/TriggerRestore.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/ValidateForBackup.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/BackupInstanceOperations/ValidateRestore.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/CheckfeatureSupport.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/GetOperationResult.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/GetOperationStatus.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/JobCRUD/GetExportJobsOperationResult.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/JobCRUD/GetJob.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/JobCRUD/ListJobs.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/JobCRUD/TriggerExportJobs.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/PolicyCRUD/GetBackupPolicy.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/PolicyCRUD/ListBackupPolicy.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/DeleteBackupVault.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/GetBackupVault.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/GetOperationResultPatch.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/PatchBackupVault.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/PutBackupVault.json (100%) rename specification/dataprotection/resource-manager/Microsoft.DataProtection/{preview => stable}/2021-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json (100%) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/dataprotection.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/GetBackupInstance.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetBackupInstance.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/GetBackupInstance.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListBackupInstances.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/ListBackupInstances.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListBackupInstances.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/ListBackupInstances.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/PutBackupInstance.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/PutBackupInstance.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/PutBackupInstance.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/PutBackupInstance.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerBackup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerBackup.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerBackup.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerBackup.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestore.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerRestore.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestore.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerRestore.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateForBackup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/ValidateForBackup.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateForBackup.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/ValidateForBackup.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateRestore.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/ValidateRestore.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/BackupInstanceOperations/ValidateRestore.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/BackupInstanceOperations/ValidateRestore.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/CheckfeatureSupport.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/CheckfeatureSupport.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/CheckfeatureSupport.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/CheckfeatureSupport.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationResult.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/GetOperationResult.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationResult.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/GetOperationResult.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationStatus.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/GetOperationStatus.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/GetOperationStatus.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/GetOperationStatus.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetExportJobsOperationResult.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/GetExportJobsOperationResult.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetExportJobsOperationResult.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/GetExportJobsOperationResult.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetJob.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/GetJob.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/GetJob.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/GetJob.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/ListJobs.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/ListJobs.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/ListJobs.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/ListJobs.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/TriggerExportJobs.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/TriggerExportJobs.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/JobCRUD/TriggerExportJobs.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/TriggerExportJobs.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/GetBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/PolicyCRUD/GetBackupPolicy.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/GetBackupPolicy.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/PolicyCRUD/GetBackupPolicy.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/ListBackupPolicy.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/PolicyCRUD/ListBackupPolicy.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/PolicyCRUD/ListBackupPolicy.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/PolicyCRUD/ListBackupPolicy.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/DeleteBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/DeleteBackupVault.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/DeleteBackupVault.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/DeleteBackupVault.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetBackupVault.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVault.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetBackupVault.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetOperationResultPatch.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetOperationResultPatch.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/GetOperationResultPatch.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/GetOperationResultPatch.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PatchBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/PatchBackupVault.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PatchBackupVault.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/PatchBackupVault.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVault.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/PutBackupVault.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVault.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/PutBackupVault.json diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json similarity index 100% rename from specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json rename to specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json From e21ecdd84f4030088c32006256c5d1a32aa03b54 Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Wed, 10 Feb 2021 16:15:19 +0530 Subject: [PATCH 13/16] changes for retention in monitoring --- .../stable/2021-01-01/dataprotection.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json index 2a656c7f0f59..ff90f46b86d8 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json @@ -1939,16 +1939,15 @@ "type": "boolean" }, "operation": { - "description": "It indicates the type of Job i.e. Backup:full/log/diff ;Restore:ALR/OLR; Retention:Backup/Archive ; Management:ConfigureProtection/UnConfigure", + "description": "It indicates the type of Job i.e. Backup:full/log/diff ;Restore:ALR/OLR; Tiering:Backup/Archive ; Management:ConfigureProtection/UnConfigure", "type": "string" }, "operationCategory": { - "description": "It indicates the type of Job i.e. Backup/Restore/Retention/Management", + "description": "It indicates the type of Job i.e. Backup/Restore/Tiering/Management", "type": "string", "enum": [ "Backup", "Restore", - "Retention", "Management", "Tiering" ], From 5af20878e91789a12b19d53eb28ef5a806e1e8f6 Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Wed, 10 Feb 2021 16:57:38 +0530 Subject: [PATCH 14/16] changes for stable in readme --- specification/dataprotection/resource-manager/readme.go.md | 2 +- specification/dataprotection/resource-manager/readme.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/dataprotection/resource-manager/readme.go.md b/specification/dataprotection/resource-manager/readme.go.md index 60f06b93d134..fa542c119ff9 100644 --- a/specification/dataprotection/resource-manager/readme.go.md +++ b/specification/dataprotection/resource-manager/readme.go.md @@ -22,5 +22,5 @@ These settings apply only when `--tag=package-2021-01 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag)=='package-2021-01' && $(go) -output-folder: $(go-sdk-folder)/services/preview/dataprotection/mgmt/2021-01-01/$(namespace) +output-folder: $(go-sdk-folder)/services/stable/dataprotection/mgmt/2021-01-01/$(namespace) ``` diff --git a/specification/dataprotection/resource-manager/readme.md b/specification/dataprotection/resource-manager/readme.md index ee8a49f44fb0..578c40e7f7ee 100644 --- a/specification/dataprotection/resource-manager/readme.md +++ b/specification/dataprotection/resource-manager/readme.md @@ -52,7 +52,7 @@ These settings apply only when `--tag=package-2021-01` is specified on the comma ``` yaml $(tag) == 'package-2021-01' input-file: -- Microsoft.DataProtection/preview/2021-01-01/dataprotection.json +- Microsoft.DataProtection/stable/2021-01-01/dataprotection.json ``` ### Tag: package-2021-01-only @@ -61,7 +61,7 @@ These settings apply only when `--tag=package-2021-01` is specified on the comma ``` yaml $(tag) == 'package-2021-01-only' input-file: -- Microsoft.DataProtection/preview/2021-01-01/dataprotection.json +- Microsoft.DataProtection/stable/2021-01-01/dataprotection.json ``` --- @@ -122,7 +122,7 @@ require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions input-file: - - Microsoft.DataProtection/preview/2021-01-01/dataprotection.json + - Microsoft.DataProtection/stable/2021-01-01/dataprotection.json ``` If there are files that should not be in the `all-api-versions` set, From 90ce2538f92971d85595a26b54e5be89501f9282 Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Wed, 10 Feb 2021 17:50:01 +0530 Subject: [PATCH 15/16] fixing checklist gate issues --- .../stable/2021-01-01/dataprotection.json | 56 +++++++++++++++++++ .../2021-01-01/examples/JobCRUD/GetJob.json | 2 +- .../2021-01-01/examples/JobCRUD/ListJobs.json | 8 +-- 3 files changed, 61 insertions(+), 5 deletions(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json index ff90f46b86d8..0210f4d980e3 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json @@ -3062,11 +3062,67 @@ "description": "Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...", "readOnly": true, "type": "string" + }, + "systemData": { + "$ref": "#/definitions/systemData" } }, "type": "object", "x-ms-azure-resource": true }, + "systemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The type of identity that last modified the resource." + } + } + }, "DppTrackedResourceList": { "properties": { "nextLink": { diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/GetJob.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/GetJob.json index d70c5340bf90..82da19ccac8c 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/GetJob.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/GetJob.json @@ -25,7 +25,7 @@ "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "startTime": "2021-03-17T03:00:03.7604146Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", - "operationCategory": "backup", + "operationCategory": "Backup", "operation": "Backup", "status": "Started", "isUserTriggered": false, diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/ListJobs.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/ListJobs.json index c58f7808afe6..d85ce8c13d17 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/ListJobs.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/examples/JobCRUD/ListJobs.json @@ -26,7 +26,7 @@ "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "startTime": "2021-03-16T05:00:08.1746833Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", - "operationCategory": "backup", + "operationCategory": "Backup", "operation": "Backup", "status": "Started", "isUserTriggered": false, @@ -55,7 +55,7 @@ "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "startTime": "2021-03-16T18:00:03.6660733Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", - "operationCategory": "backup", + "operationCategory": "Backup", "operation": "Backup", "status": "Started", "isUserTriggered": false, @@ -84,7 +84,7 @@ "sourceSubscriptionID": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "startTime": "2021-03-17T03:00:03.7604146Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", - "operationCategory": "backup", + "operationCategory": "Backup", "operation": "Backup", "status": "Started", "isUserTriggered": false, @@ -114,7 +114,7 @@ "startTime": "2021-03-17T11:11:50.5595259Z", "endTime": "2021-03-17T11:14:02.5319646Z", "dataSourceType": "Microsoft.DBforPostgreSQL/servers/databases", - "operationCategory": "backup", + "operationCategory": "Backup", "operation": "Backup", "status": "Succeeded", "isUserTriggered": true, From f2a6c910223a58de529e962830aa2fc4f250882a Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Wed, 10 Feb 2021 18:07:21 +0530 Subject: [PATCH 16/16] changes for systemdata in dppresource --- .../stable/2021-01-01/dataprotection.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json index 0210f4d980e3..25adb0004efa 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json @@ -3010,6 +3010,9 @@ "description": "Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...", "readOnly": true, "type": "string" + }, + "systemData": { + "$ref": "#/definitions/systemData" } }, "title": "DppResource",