-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recovery services backup october release (#16303)
* Adds base for updating Microsoft.RecoveryServices from version stable/2021-08-01 to 2021-10-01 * Update Swagger spec and examples * Update readme * Resolve Avocado and PrettierCheck issues * Resolve Model Validation issues
- Loading branch information
1 parent
0d31f20
commit 2e67345
Showing
4 changed files
with
420 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 20 additions & 47 deletions
67
...coveryServices/stable/2021-10-01/examples/AzureStorage/ProtectionContainers_Register.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
180 changes: 180 additions & 0 deletions
180
...ices/stable/2021-10-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "SwaggerTestRg", | ||
"vaultName": "swaggertestvault", | ||
"policyName": "dailyPolicy2", | ||
"api-version": "2021-10-01", | ||
"parameters": { | ||
"properties": { | ||
"backupManagementType": "AzureStorage", | ||
"workLoadType": "AzureFileShare", | ||
"schedulePolicy": { | ||
"schedulePolicyType": "SimpleSchedulePolicy", | ||
"scheduleRunFrequency": "Daily", | ||
"scheduleRunTimes": [ | ||
"2021-09-29T08:00:00.000Z" | ||
] | ||
}, | ||
"timeZone": "UTC", | ||
"retentionPolicy": { | ||
"retentionPolicyType": "LongTermRetentionPolicy", | ||
"dailySchedule": { | ||
"retentionTimes": [ | ||
"2021-09-29T08:00:00.000Z" | ||
], | ||
"retentionDuration": { | ||
"count": 5, | ||
"durationType": "Days" | ||
} | ||
}, | ||
"weeklySchedule": { | ||
"daysOfTheWeek": [ | ||
"Sunday" | ||
], | ||
"retentionTimes": [ | ||
"2021-09-29T08:00:00.000Z" | ||
], | ||
"retentionDuration": { | ||
"count": 12, | ||
"durationType": "Weeks" | ||
} | ||
}, | ||
"monthlySchedule": { | ||
"retentionScheduleFormatType": "Weekly", | ||
"retentionScheduleDaily": null, | ||
"retentionScheduleWeekly": { | ||
"daysOfTheWeek": [ | ||
"Sunday" | ||
], | ||
"weeksOfTheMonth": [ | ||
"First" | ||
] | ||
}, | ||
"retentionTimes": [ | ||
"2021-09-29T08:00:00.000Z" | ||
], | ||
"retentionDuration": { | ||
"count": 60, | ||
"durationType": "Months" | ||
} | ||
}, | ||
"yearlySchedule": { | ||
"retentionScheduleFormatType": "Weekly", | ||
"monthsOfYear": [ | ||
"January" | ||
], | ||
"retentionScheduleDaily": null, | ||
"retentionScheduleWeekly": { | ||
"daysOfTheWeek": [ | ||
"Sunday" | ||
], | ||
"weeksOfTheMonth": [ | ||
"First" | ||
] | ||
}, | ||
"retentionTimes": [ | ||
"2021-09-29T08:00:00.000Z" | ||
], | ||
"retentionDuration": { | ||
"count": 10, | ||
"durationType": "Years" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/dailyPolicy2", | ||
"name": "dailyPolicy2", | ||
"type": "Microsoft.RecoveryServices/vaults/backupPolicies", | ||
"properties": { | ||
"backupManagementType": "AzureStorage", | ||
"schedulePolicy": { | ||
"schedulePolicyType": "SimpleSchedulePolicy", | ||
"scheduleRunFrequency": "Daily", | ||
"scheduleRunTimes": [ | ||
"2021-09-29T08:00:00Z" | ||
], | ||
"scheduleWeeklyFrequency": 0 | ||
}, | ||
"retentionPolicy": { | ||
"retentionPolicyType": "LongTermRetentionPolicy", | ||
"dailySchedule": { | ||
"retentionTimes": [ | ||
"2021-09-29T08:00:00Z" | ||
], | ||
"retentionDuration": { | ||
"count": 5, | ||
"durationType": "Days" | ||
} | ||
}, | ||
"weeklySchedule": { | ||
"daysOfTheWeek": [ | ||
"Sunday" | ||
], | ||
"retentionTimes": [ | ||
"2021-09-29T08:00:00Z" | ||
], | ||
"retentionDuration": { | ||
"count": 12, | ||
"durationType": "Weeks" | ||
} | ||
}, | ||
"monthlySchedule": { | ||
"retentionScheduleFormatType": "Weekly", | ||
"retentionScheduleWeekly": { | ||
"daysOfTheWeek": [ | ||
"Sunday" | ||
], | ||
"weeksOfTheMonth": [ | ||
"First" | ||
] | ||
}, | ||
"retentionTimes": [ | ||
"2021-09-29T08:00:00Z" | ||
], | ||
"retentionDuration": { | ||
"count": 60, | ||
"durationType": "Months" | ||
} | ||
}, | ||
"yearlySchedule": { | ||
"retentionScheduleFormatType": "Weekly", | ||
"monthsOfYear": [ | ||
"January" | ||
], | ||
"retentionScheduleWeekly": { | ||
"daysOfTheWeek": [ | ||
"Sunday" | ||
], | ||
"weeksOfTheMonth": [ | ||
"First" | ||
] | ||
}, | ||
"retentionTimes": [ | ||
"2021-09-29T08:00:00Z" | ||
], | ||
"retentionDuration": { | ||
"count": 10, | ||
"durationType": "Years" | ||
} | ||
} | ||
}, | ||
"timeZone": "UTC", | ||
"protectedItemsCount": 0 | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/dailyPolicy2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-06-01", | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/dailyPolicy2/operations/00000000-0000-0000-0000-000000000000?api-version=2016-06-01", | ||
"Retry-After": 60 | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.