Skip to content

Commit

Permalink
Fixing issue 11848 (Azure#11888)
Browse files Browse the repository at this point in the history
* Fixing issue 11848

* Fixing issue 11848

* Fixing lint errors
  • Loading branch information
pratimaupadhyay02 authored and giromm2ms committed Dec 20, 2020
1 parent 008bae3 commit 2a43d32
Show file tree
Hide file tree
Showing 5 changed files with 313 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,155 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig": {
"get": {
"tags": [
"BackupResourceVaultConfigs"
],
"description": "Fetches resource vault config.",
"operationId": "BackupResourceVaultConfigs_Get",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/VaultName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BackupResourceVaultConfigResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/NewErrorResponse"
}
}
},
"x-ms-examples": {
"Get Vault Security Config": {
"$ref": "./examples/Common/BackupResourceVaultConfigs_Get.json"
}
}
},
"patch": {
"tags": [
"BackupResourceVaultConfigs"
],
"description": "Updates vault security config.",
"operationId": "BackupResourceVaultConfigs_Update",
"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": "#/definitions/NewErrorResponse"
}
}
},
"x-ms-examples": {
"Update Vault Security Config": {
"$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": "#/definitions/NewErrorResponse"
}
}
},
"x-ms-examples": {
"Update Vault Security Config": {
"$ref": "./examples/Common/BackupResourceVaultConfigs_Put.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig": {
"get": {
"tags": [
Expand Down Expand Up @@ -7042,6 +7191,95 @@
}
}
},
"BackupResourceVaultConfigResource": {
"description": "Backup resource vault config details.",
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"properties": {
"properties": {
"$ref": "#/definitions/BackupResourceVaultConfig",
"description": "BackupResourceVaultConfigResource properties"
}
}
},
"BackupResourceVaultConfig": {
"description": "Backup resource vault config details.",
"type": "object",
"properties": {
"storageModelType": {
"description": "Storage type.",
"enum": [
"Invalid",
"GeoRedundant",
"LocallyRedundant",
"ZoneRedundant",
"ReadAccessGeoZoneRedundant"
],
"type": "string",
"x-ms-enum": {
"name": "StorageType",
"modelAsString": true
}
},
"storageType": {
"description": "Storage type.",
"enum": [
"Invalid",
"GeoRedundant",
"LocallyRedundant",
"ZoneRedundant",
"ReadAccessGeoZoneRedundant"
],
"type": "string",
"x-ms-enum": {
"name": "StorageType",
"modelAsString": true
}
},
"storageTypeState": {
"description": "Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked.",
"enum": [
"Invalid",
"Locked",
"Unlocked"
],
"type": "string",
"x-ms-enum": {
"name": "StorageTypeState",
"modelAsString": true
}
},
"enhancedSecurityState": {
"description": "Enabled or Disabled.",
"enum": [
"Invalid",
"Enabled",
"Disabled"
],
"type": "string",
"x-ms-enum": {
"name": "EnhancedSecurityState",
"modelAsString": true
}
},
"softDeleteFeatureState": {
"description": "Soft Delete feature state",
"enum": [
"Invalid",
"Enabled",
"Disabled"
],
"type": "string",
"x-ms-enum": {
"name": "SoftDeleteFeatureState",
"modelAsString": true
}
}
}
},
"YearlyRetentionSchedule": {
"description": "Yearly retention schedule.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "SwaggerTestRg",
"vaultName": "SwaggerTest",
"api-version": "2019-06-15"
},
"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"
}
}
}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ These settings apply only when `--tag=package-2017-07` is specified on the comma

``` yaml $(tag) == 'package-2017-07'
input-file:
- Microsoft.RecoveryServices/stable/2018-12-20/bms.json
- Microsoft.RecoveryServices/stable/2017-07-01/bms.json
- Microsoft.RecoveryServices/stable/2016-12-01/bms.json
- Microsoft.RecoveryServices/stable/2016-08-10/operations.json
Expand Down

0 comments on commit 2a43d32

Please sign in to comment.