Skip to content

Commit b4373d4

Browse files
Fixing issue 11848 (#11888)
* Fixing issue 11848 * Fixing issue 11848 * Fixing lint errors
1 parent 2ac0bba commit b4373d4

File tree

5 files changed

+313
-1
lines changed

5 files changed

+313
-1
lines changed

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2020-10-01/bms.json

Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,155 @@
1818
"application/json"
1919
],
2020
"paths": {
21+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig": {
22+
"get": {
23+
"tags": [
24+
"BackupResourceVaultConfigs"
25+
],
26+
"description": "Fetches resource vault config.",
27+
"operationId": "BackupResourceVaultConfigs_Get",
28+
"produces": [
29+
"application/json"
30+
],
31+
"parameters": [
32+
{
33+
"$ref": "#/parameters/ApiVersion"
34+
},
35+
{
36+
"$ref": "#/parameters/VaultName"
37+
},
38+
{
39+
"$ref": "#/parameters/ResourceGroupName"
40+
},
41+
{
42+
"$ref": "#/parameters/SubscriptionId"
43+
}
44+
],
45+
"responses": {
46+
"200": {
47+
"description": "OK",
48+
"schema": {
49+
"$ref": "#/definitions/BackupResourceVaultConfigResource"
50+
}
51+
},
52+
"default": {
53+
"description": "Error response describing why the operation failed.",
54+
"schema": {
55+
"$ref": "#/definitions/NewErrorResponse"
56+
}
57+
}
58+
},
59+
"x-ms-examples": {
60+
"Get Vault Security Config": {
61+
"$ref": "./examples/Common/BackupResourceVaultConfigs_Get.json"
62+
}
63+
}
64+
},
65+
"patch": {
66+
"tags": [
67+
"BackupResourceVaultConfigs"
68+
],
69+
"description": "Updates vault security config.",
70+
"operationId": "BackupResourceVaultConfigs_Update",
71+
"produces": [
72+
"application/json"
73+
],
74+
"parameters": [
75+
{
76+
"$ref": "#/parameters/ApiVersion"
77+
},
78+
{
79+
"$ref": "#/parameters/VaultName"
80+
},
81+
{
82+
"$ref": "#/parameters/ResourceGroupName"
83+
},
84+
{
85+
"$ref": "#/parameters/SubscriptionId"
86+
},
87+
{
88+
"name": "parameters",
89+
"in": "body",
90+
"description": "resource config request",
91+
"required": true,
92+
"schema": {
93+
"$ref": "#/definitions/BackupResourceVaultConfigResource"
94+
}
95+
}
96+
],
97+
"responses": {
98+
"200": {
99+
"description": "OK",
100+
"schema": {
101+
"$ref": "#/definitions/BackupResourceVaultConfigResource"
102+
}
103+
},
104+
"default": {
105+
"description": "Error response describing why the operation failed.",
106+
"schema": {
107+
"$ref": "#/definitions/NewErrorResponse"
108+
}
109+
}
110+
},
111+
"x-ms-examples": {
112+
"Update Vault Security Config": {
113+
"$ref": "./examples/Common/BackupResourceVaultConfigs_Patch.json"
114+
}
115+
}
116+
},
117+
"put": {
118+
"tags": [
119+
"BackupResourceVaultConfigs"
120+
],
121+
"description": "Updates vault security config.",
122+
"operationId": "BackupResourceVaultConfigs_Put",
123+
"produces": [
124+
"application/json"
125+
],
126+
"parameters": [
127+
{
128+
"$ref": "#/parameters/ApiVersion"
129+
},
130+
{
131+
"$ref": "#/parameters/VaultName"
132+
},
133+
{
134+
"$ref": "#/parameters/ResourceGroupName"
135+
},
136+
{
137+
"$ref": "#/parameters/SubscriptionId"
138+
},
139+
{
140+
"name": "parameters",
141+
"in": "body",
142+
"description": "resource config request",
143+
"required": true,
144+
"schema": {
145+
"$ref": "#/definitions/BackupResourceVaultConfigResource"
146+
}
147+
}
148+
],
149+
"responses": {
150+
"200": {
151+
"description": "OK",
152+
"schema": {
153+
"$ref": "#/definitions/BackupResourceVaultConfigResource"
154+
}
155+
},
156+
"default": {
157+
"description": "Error response describing why the operation failed.",
158+
"schema": {
159+
"$ref": "#/definitions/NewErrorResponse"
160+
}
161+
}
162+
},
163+
"x-ms-examples": {
164+
"Update Vault Security Config": {
165+
"$ref": "./examples/Common/BackupResourceVaultConfigs_Put.json"
166+
}
167+
}
168+
}
169+
},
21170
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig": {
22171
"get": {
23172
"tags": [
@@ -7042,6 +7191,95 @@
70427191
}
70437192
}
70447193
},
7194+
"BackupResourceVaultConfigResource": {
7195+
"description": "Backup resource vault config details.",
7196+
"allOf": [
7197+
{
7198+
"$ref": "#/definitions/Resource"
7199+
}
7200+
],
7201+
"properties": {
7202+
"properties": {
7203+
"$ref": "#/definitions/BackupResourceVaultConfig",
7204+
"description": "BackupResourceVaultConfigResource properties"
7205+
}
7206+
}
7207+
},
7208+
"BackupResourceVaultConfig": {
7209+
"description": "Backup resource vault config details.",
7210+
"type": "object",
7211+
"properties": {
7212+
"storageModelType": {
7213+
"description": "Storage type.",
7214+
"enum": [
7215+
"Invalid",
7216+
"GeoRedundant",
7217+
"LocallyRedundant",
7218+
"ZoneRedundant",
7219+
"ReadAccessGeoZoneRedundant"
7220+
],
7221+
"type": "string",
7222+
"x-ms-enum": {
7223+
"name": "StorageType",
7224+
"modelAsString": true
7225+
}
7226+
},
7227+
"storageType": {
7228+
"description": "Storage type.",
7229+
"enum": [
7230+
"Invalid",
7231+
"GeoRedundant",
7232+
"LocallyRedundant",
7233+
"ZoneRedundant",
7234+
"ReadAccessGeoZoneRedundant"
7235+
],
7236+
"type": "string",
7237+
"x-ms-enum": {
7238+
"name": "StorageType",
7239+
"modelAsString": true
7240+
}
7241+
},
7242+
"storageTypeState": {
7243+
"description": "Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked.",
7244+
"enum": [
7245+
"Invalid",
7246+
"Locked",
7247+
"Unlocked"
7248+
],
7249+
"type": "string",
7250+
"x-ms-enum": {
7251+
"name": "StorageTypeState",
7252+
"modelAsString": true
7253+
}
7254+
},
7255+
"enhancedSecurityState": {
7256+
"description": "Enabled or Disabled.",
7257+
"enum": [
7258+
"Invalid",
7259+
"Enabled",
7260+
"Disabled"
7261+
],
7262+
"type": "string",
7263+
"x-ms-enum": {
7264+
"name": "EnhancedSecurityState",
7265+
"modelAsString": true
7266+
}
7267+
},
7268+
"softDeleteFeatureState": {
7269+
"description": "Soft Delete feature state",
7270+
"enum": [
7271+
"Invalid",
7272+
"Enabled",
7273+
"Disabled"
7274+
],
7275+
"type": "string",
7276+
"x-ms-enum": {
7277+
"name": "SoftDeleteFeatureState",
7278+
"modelAsString": true
7279+
}
7280+
}
7281+
}
7282+
},
70457283
"YearlyRetentionSchedule": {
70467284
"description": "Yearly retention schedule.",
70477285
"type": "object",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "SwaggerTestRg",
5+
"vaultName": "SwaggerTest",
6+
"api-version": "2019-06-15"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/SwaggerTest/backupconfig/vaultconfig",
12+
"name": "vaultconfig",
13+
"type": "Microsoft.RecoveryServices/vaults/backupconfig",
14+
"properties": {
15+
"enhancedSecurityState": "Enabled",
16+
"softDeleteFeatureState": "Enabled"
17+
}
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "SwaggerTestRg",
5+
"vaultName": "SwaggerTest",
6+
"api-version": "2019-06-15",
7+
"parameters": {
8+
"properties": {
9+
"enhancedSecurityState": "Enabled",
10+
"softDeleteFeatureState": "Enabled"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/SwaggerTest/backupconfig/vaultconfig",
18+
"name": "vaultconfig",
19+
"type": "Microsoft.RecoveryServices/vaults/backupconfig",
20+
"properties": {
21+
"enhancedSecurityState": "Enabled",
22+
"softDeleteFeatureState": "Enabled"
23+
}
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "SwaggerTestRg",
5+
"vaultName": "SwaggerTest",
6+
"api-version": "2019-06-15",
7+
"parameters": {
8+
"properties": {
9+
"enhancedSecurityState": "Enabled",
10+
"softDeleteFeatureState": "Enabled"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/SwaggerTest/backupconfig/vaultconfig",
18+
"name": "vaultconfig",
19+
"type": "Microsoft.RecoveryServices/vaults/backupconfig",
20+
"properties": {
21+
"enhancedSecurityState": "Enabled",
22+
"softDeleteFeatureState": "Enabled"
23+
}
24+
}
25+
}
26+
}
27+
}

specification/recoveryservicesbackup/resource-manager/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ These settings apply only when `--tag=package-2017-07` is specified on the comma
113113

114114
``` yaml $(tag) == 'package-2017-07'
115115
input-file:
116-
- Microsoft.RecoveryServices/stable/2018-12-20/bms.json
117116
- Microsoft.RecoveryServices/stable/2017-07-01/bms.json
118117
- Microsoft.RecoveryServices/stable/2016-12-01/bms.json
119118
- Microsoft.RecoveryServices/stable/2016-08-10/operations.json

0 commit comments

Comments
 (0)