Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger changes for VaultGuardResource Object #13116

Merged
merged 14 commits into from
Feb 25, 2021

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c",
"resourceGroupName": "SampleResourceGroup",
"vaultGuardsName": "swaggerExample",
"api-version": "2020-01-01-alpha"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c",
"resourceGroupName": "SampleResourceGroup",
"vaultGuardsName": "swaggerExample",
"operationName": "disableSoftDeleteRequests",
"operationRequestName": "default",
"api-version": "2020-01-01-alpha"
},
"responses": {
"200": {
"body": {
"id": "subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/vaultGuards/swaggerExample/disableSoftDeleteRequests/default",
"name": "default",
"type": "Microsoft.DataProtection/vaultGuards/deleteVaultGuardProxyRequests",
"properties": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c",
"resourceGroupName": "SampleResourceGroup",
"vaultGuardsName": "swaggerExample",
"api-version": "2020-01-01-alpha"
},
"responses": {
"200": {
"body": {
"location": "eastus",
"tags": {
"TestKey": "TestValue"
},
"id": "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/vaultGuards/VaultGuardTestNew",
"name": "VaultGuardTestNew",
"type": "Microsoft.DataProtection/vaultGuards",
"properties": {
"provisioningState": "Succeeded",
"lastLockUpdateTime": "2021-02-08T07:49:53.1573613Z",
"allowAutoApprovals": true,
"vaultGuardOperations": [
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupOperationVaultGuardProxies/delete",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/deleteVaultGuardProxyRequests",
"isProtectedByVaultGuard": true
},
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupconfig/write",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/disableSoftDeleteRequests",
"isProtectedByVaultGuard": true
}
],
"description": "Please take JIT access before performing any of the critical operation"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c",
"resourceGroupName": "SampleResourceGroup",
"api-version": "2020-01-01-alpha"
},
"responses": {
"200": {
"body": {
"value": [
{
"location": "eastus",
"tags": {
"TestKey": "TestValue"
},
"id": "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/vaultGuards/VaultGuardTestNew",
"name": "VaultGuardTestNew",
"type": "Microsoft.DataProtection/vaultGuards",
"properties": {
"provisioningState": "Succeeded",
"lastLockUpdateTime": "2021-02-08T07:49:53.1573613Z",
"allowAutoApprovals": true,
"vaultGuardOperations": [
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupOperationVaultGuardProxies/delete",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/deleteVaultGuardProxyRequests",
"isProtectedByVaultGuard": true
},
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupconfig/write",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/disableSoftDeleteRequests",
"isProtectedByVaultGuard": true
}
],
"description": "Please take JIT access before performing any of the critical operation"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c",
"api-version": "2020-01-01-alpha"
},
"responses": {
"200": {
"body": {
"value": [
{
"location": "eastus",
"tags": {
"TestKey": "TestValue"
},
"id": "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/vaultGuards/VaultGuardTestNew",
"name": "VaultGuardTestNew",
"type": "Microsoft.DataProtection/vaultGuards",
"properties": {
"provisioningState": "Succeeded",
"lastLockUpdateTime": "2021-02-08T07:49:53.1573613Z",
"allowAutoApprovals": true,
"vaultGuardOperations": [
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupOperationVaultGuardProxies/delete",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/deleteVaultGuardProxyRequests",
"isProtectedByVaultGuard": true
},
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupconfig/write",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/disableSoftDeleteRequests",
"isProtectedByVaultGuard": true
}
],
"description": "Please take JIT access before performing any of the critical operation"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c",
"resourceGroupName": "SampleResourceGroup",
"vaultGuardsName": "swaggerExample",
"operationName": "disableSoftDeleteRequests",
"api-version": "2020-01-01-alpha"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/vaultGuards/swaggerExample/disableSoftDeleteRequests/default",
"name": "default",
"type": "Microsoft.DataProtection/vaultGuards/deleteVaultGuardProxyRequests",
"properties": {}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c",
"resourceGroupName": "SampleResourceGroup",
"vaultGuardsName": "swaggerExample",
"api-version": "2020-01-01-alpha",
"parameters": {
"tags": {
"newKey": "newVal"
}
}
},
"responses": {
"200": {
"body": {
"location": "eastus",
"tags": {
"TestKey": "TestValue"
},
"id": "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/vaultGuards/VaultGuardTestNew",
"name": "VaultGuardTestNew",
"type": "Microsoft.DataProtection/vaultGuards",
"properties": {
"provisioningState": "Succeeded",
"lastLockUpdateTime": "2021-02-08T07:49:53.1573613Z",
"allowAutoApprovals": true,
"vaultGuardOperations": [
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupOperationVaultGuardProxies/delete",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/deleteVaultGuardProxyRequests",
"isProtectedByVaultGuard": true
},
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupconfig/write",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/disableSoftDeleteRequests",
"isProtectedByVaultGuard": true
}
],
"description": "Please take JIT access before performing any of the critical operation"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"subscriptionId": "0b352192-dcac-4cc7-992e-a96190ccc68c",
"resourceGroupName": "SampleResourceGroup",
"vaultGuardsName": "swaggerExample",
"api-version": "2020-01-01-alpha",
"parameters": {
"location": "WestUS",
"tags": {
"key1": "val1"
}
}
},
"responses": {
"200": {
"body": {
"location": "eastus",
"tags": {
"TestKey": "TestValue"
},
"id": "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/vaultGuards/VaultGuardTestNew",
"name": "VaultGuardTestNew",
"type": "Microsoft.DataProtection/vaultGuards",
"properties": {
"provisioningState": "Succeeded",
"lastLockUpdateTime": "2021-02-08T07:49:53.1573613Z",
"allowAutoApprovals": true,
"vaultGuardOperations": [
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupOperationVaultGuardProxies/delete",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/deleteVaultGuardProxyRequests",
"isProtectedByVaultGuard": true
},
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupconfig/write",
"requestResourceType": "Microsoft.DataProtection/vaultGuards/disableSoftDeleteRequests",
"isProtectedByVaultGuard": true
}
],
"description": "Please take JIT access before performing any of the critical operation"
}
}
}
}
}
10 changes: 5 additions & 5 deletions specification/dataprotection/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ go:

``` yaml $(go) && $(multiapi)
batch:
- tag: package-2021-01
- tag: package-2021-02-preview
```

### Tag: package-2021-01 and go
### Tag: package-2021-02-preview and go

These settings apply only when `--tag=package-2021-01 --go` is specified on the command line.
These settings apply only when `--tag=package-2021-02-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag)=='package-2021-01' && $(go)
output-folder: $(go-sdk-folder)/services/stable/dataprotection/mgmt/2021-01-01/$(namespace)
``` yaml $(tag)=='package-2021-02-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/dataprotection/mgmt/2021-02-01-preview/$(namespace)
```
2 changes: 1 addition & 1 deletion specification/dataprotection/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ These settings apply only when `--tag=package-2021-02-preview` is specified on t

``` yaml $(tag) == 'package-2021-02-preview'
input-file:
- Microsoft.DataProtection/stable/2021-02-01-preview/dataprotection.json
- Microsoft.DataProtection/preview/2021-02-01-preview/dataprotection.json
```

### Tag: package-2021-01
Expand Down