Skip to content

Commit

Permalink
New Put API for updating vault security config (Azure#8292)
Browse files Browse the repository at this point in the history
* Adding Swagger details for Put BackupResourceVaultConfigs call

Adding Swagger details for Put BackupResourceVaultConfigs call

* Setting feature state as Enabled

* Fixing duplicate OperationId for new Put API

* Adding default response

Co-authored-by: gcs06 <[email protected]>
  • Loading branch information
2 people authored and 00Kai0 committed Oct 12, 2020
1 parent 5a5f11c commit c937243
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"parameters": {
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Disabled"
"softDeleteFeatureState": "Enabled"
}
}
},
Expand All @@ -19,7 +19,7 @@
"type": "Microsoft.RecoveryServices/vaults/backupconfig",
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Disabled"
"softDeleteFeatureState": "Enabled"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,58 @@
"$ref": "./examples/Common/BackupResourceVaultConfigs_Patch.json"
}
}
},
"put": {
"tags": [
"BackupResourceVaultConfigs"
],
"description": "Updates vault security config.",
"operationId": "BackupResourceVaultConfigs_Put",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/VaultName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"name": "parameters",
"in": "body",
"description": "resource config request",
"required": true,
"schema": {
"$ref": "#/definitions/BackupResourceVaultConfigResource"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BackupResourceVaultConfigResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Update Vault Security Config": {
"$ref": "./examples/Common/BackupResourceVaultConfigs_Put.json"
}
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"parameters": {
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Disabled"
"softDeleteFeatureState": "Enabled"
}
}
},
Expand All @@ -19,7 +19,7 @@
"type": "Microsoft.RecoveryServices/vaults/backupconfig",
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Disabled"
"softDeleteFeatureState": "Enabled"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "SwaggerTestRg",
"vaultName": "SwaggerTest",
"api-version": "2019-06-15",
"parameters": {
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Enabled"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/SwaggerTest/backupconfig/vaultconfig",
"name": "vaultconfig",
"type": "Microsoft.RecoveryServices/vaults/backupconfig",
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Enabled"
}
}
}
}
}

0 comments on commit c937243

Please sign in to comment.