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

[Hub Generated] Review request for Microsoft.DataProtection to add version preview/2023-04-01-preview #23391

Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
fa1400a
Adds base for updating Microsoft.DataProtection from version stable/2…
amchandn Mar 19, 2023
d09732f
Updates readme
amchandn Mar 19, 2023
b375b61
Updates API version in new specs and examples
amchandn Mar 19, 2023
f0a88a2
Adding fields for UserAssignedIdentity
amchandn Mar 22, 2023
fd48c2e
Adding Secure Score for Backup vault
amchandn Mar 22, 2023
5dc5ff0
Adding fetchSecondaryRecoveryPoints
amchandn Mar 22, 2023
367f690
Removing cmk fields
amchandn Mar 28, 2023
9b79efa
Updating identity type description
amchandn Mar 28, 2023
6e625da
Adding api for trigger crr
amchandn Mar 30, 2023
3a78abe
Adding validate crr api
amchandn Mar 30, 2023
5e625a5
Adding CRR jobs APIs
amchandn Mar 31, 2023
0944f92
Adding default response
amchandn Mar 31, 2023
37b44b5
Using right contract for CRR jobs
amchandn Mar 31, 2023
5b0d5f7
Adding request
amchandn Apr 2, 2023
8a394c2
Adding examples
amchandn Apr 2, 2023
1bb1077
Example changes
amchandn Apr 2, 2023
9a6d851
empty examples
amchandn Apr 2, 2023
1c9bb37
prettify json
amchandn Apr 2, 2023
392a0cb
Adding example content
amchandn Apr 2, 2023
1ab41bf
FIxing example
amchandn Apr 2, 2023
029a7cd
changes
amchandn Apr 2, 2023
8098e7c
Fixing lintDiff violation
amchandn Apr 2, 2023
40287c2
Adding missing API
amchandn Apr 2, 2023
ff91ae6
swagger changes
amchandn Apr 2, 2023
5af1110
Adding example
amchandn Apr 2, 2023
3f9e219
Spell check fix
amchandn Apr 3, 2023
b0ea796
Adding back validate object
amchandn Apr 3, 2023
671d731
Renaming
amchandn Apr 3, 2023
cf44917
Prettier
amchandn Apr 3, 2023
a8ec6ac
changes
amchandn Apr 3, 2023
c29c3af
Added secure score
amchandn Apr 3, 2023
506cba7
Improvements to example and description
amchandn Apr 5, 2023
da2527b
Rename add prefix
amchandn Apr 10, 2023
c7e2f22
Enabling x-ms-skip-url-encoding for ResourceId
amchandn May 8, 2023
4858b7e
reverting encoding skip
amchandn May 8, 2023
f7c8c6d
reverting encoding skip
amchandn May 8, 2023
76feb03
Merge branch 'amchandn-dataprotection-Microsoft.DataProtection-2023-0…
amchandn May 8, 2023
dbb52b2
Enabling x-ms-skip-url-encoding for ResourceId
amchandn May 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
"resourceGroupName": "000pikumar",
"vaultName": "PratikPrivatePreviewVault1",
"backupInstanceName": "testInstance1",
"api-version": "2023-04-01-preview"
},
"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=2023-04-01-preview",
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2023-04-01-preview",
"Retry-After": "60"
}
},
"204": {},
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
"resourceGroupName": "Blob-Backup",
"vaultName": "ZBlobBackupVaultBVTD3",
"backupInstanceName": "zblobbackuptestsa58",
"api-version": "2023-04-01-preview",
"parameters": {
"sourceDataStoreType": "OperationalStore",
"startTime": "2020-10-17T23:28:17.6829685Z",
"endTime": "2021-02-24T00:35:17.6829685Z"
}
},
"responses": {
"200": {
"body": {
"id": "zblobbackuptestsa58",
"type": "Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges",
"properties": {
"restorableTimeRanges": [
{
"startTime": "2021-02-23T18:33:51.6349708Z",
"endTime": "2021-02-24T00:35:17.0000000Z",
"objectType": "RestorableTimeRange"
}
],
"objectType": "AzureBackupFindRestorableTimeRangesResponse"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
"resourceGroupName": "000pikumar",
"vaultName": "PratikPrivatePreviewVault1",
"api-version": "2023-04-01-preview",
"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",
"tags": {
"key1": "val1"
},
"properties": {
"friendlyName": "harshitbi2",
"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"parameters": {
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
"resourceGroupName": "SampleResourceGroup",
"vaultName": "swaggerExample",
"backupInstanceName": "testInstance1",
"operationId": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==",
"api-version": "2023-04-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/swaggerExample/backupInstances/testInstance1",
"name": "testInstance1",
"type": "Microsoft.DataProtection/backupVaults/backupInstances",
"properties": {
"friendlyName": "testInstance1",
"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/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/swaggerExample/backupPolicies/PratikPolicy1",
"policyVersion": "3.2"
},
"protectionStatus": {
"status": "ConfiguringProtection"
},
"provisioningState": "Provisioned",
"objectType": "BackupInstance"
}
}
},
"202": {
"headers": {
"Retry-After": "10",
"Azure-AsyncOperation": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2023-04-01-preview",
"Location": "https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupvaults/swaggerExample/backupInstances/testInstance1/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2023-04-01-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
"resourceGroupName": "000pikumar",
"vaultName": "PratikPrivatePreviewVault1",
"api-version": "2023-04-01-preview",
"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"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
"resourceGroupName": "000pikumar",
"vaultName": "PratikPrivatePreviewVault1",
"api-version": "2023-04-01-preview"
},
"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",
"tags": {
"key1": "val1"
},
"properties": {
"friendlyName": "harshitbi2",
"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"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"resourceId": "subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk",
"api-version": "2023-04-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"friendlyName": "testDisk",
"dataSourceInfo": {
"resourceID": "/subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk",
"resourceUri": "/subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk",
"datasourceType": "Microsoft.Compute/disks",
"resourceName": "testDisk",
"resourceType": "Microsoft.Compute/disks",
"resourceLocation": "eastus2euap",
"objectType": "Datasource"
},
"dataSourceSetInfo": {
"resourceID": "/subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk",
"resourceUri": "/subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk",
"datasourceType": "Microsoft.Compute/disks",
"resourceName": "testDisk",
"resourceType": "Microsoft.Compute/disks",
"resourceLocation": "eastus2euap",
"objectType": "DatasourceSet"
},
"policyInfo": {
"policyId": "/subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/policyRG/providers/Microsoft.DataProtection/backupVaults/jeczrsecy/backupPolicies/disk",
"policyVersion": "",
"policyParameters": {
"dataStoreParametersList": [
{
"objectType": "AzureOperationalStoreParameters",
"dataStoreType": "OperationalStore",
"resourceGroupId": "/subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/policyRG"
}
]
}
},
"protectionStatus": {
"status": "ProtectionConfigured"
},
"currentProtectionState": "ProtectionConfigured",
"provisioningState": "Succeeded",
"objectType": "BackupInstance"
},
"id": "/subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk/providers/Microsoft.DataProtection/backupInstances/testDiskBI1-testDiskBI1-7664c12f-4d0a-440f-a0dc-b64f708b10e3",
"name": "testDiskBI1-testDiskBI1-7664c12f-4d0a-440f-a0dc-b64f708b10e3",
"type": "Microsoft.DataProtection/backupVaults/backupInstances"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
"resourceGroupName": "000pikumar",
"vaultName": "PratikPrivatePreviewVault1",
"api-version": "2023-04-01-preview",
"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",
"expiryTime": "2023-03-01T13:00:00Z",
"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"
}
]
}
}
]
}
}
}
}
Loading