Skip to content

Commit eada040

Browse files
koderjokerKanchan Joshi
authored andcommitted
Swagger correctness fix: add location property to RedisPatchSchedule and update response examples (Azure#17699)
Co-authored-by: Kanchan Joshi <[email protected]>
1 parent 874cbfb commit eada040

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
"201": {
2626
"body": {
2727
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default",
28-
"name": "default",
29-
"type": "Microsoft.Cache/Redis/patchSchedules",
28+
"location": "East US",
29+
"name": "cachename1/default",
30+
"type": "Microsoft.Cache/Redis/PatchSchedules",
3031
"properties": {
3132
"scheduleEntries": [
3233
{
@@ -45,8 +46,9 @@
4546
"200": {
4647
"body": {
4748
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default",
48-
"name": "default",
49-
"type": "Microsoft.Cache/Redis/patchSchedules",
49+
"location": "East US",
50+
"name": "cachename1/default",
51+
"type": "Microsoft.Cache/Redis/PatchSchedules",
5052
"properties": {
5153
"scheduleEntries": [
5254
{

specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesGet.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
"200": {
1111
"body": {
1212
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default",
13-
"name": "default",
14-
"type": "Microsoft.Cache/Redis/patchSchedules",
13+
"location": "East US",
14+
"name": "cache1/default",
15+
"type": "Microsoft.Cache/Redis/PatchSchedules",
1516
"properties": {
1617
"scheduleEntries": [
1718
{

specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesList.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
"value": [
1212
{
1313
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default",
14-
"name": "default",
15-
"type": "Microsoft.Cache/Redis/patchSchedules",
14+
"location": "East US",
15+
"name": "cache1/default",
16+
"type": "Microsoft.Cache/Redis/PatchSchedules",
1617
"properties": {
1718
"scheduleEntries": [
1819
{

specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/redis.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,6 +2425,11 @@
24252425
"x-ms-client-flatten": true,
24262426
"$ref": "#/definitions/ScheduleEntries",
24272427
"description": "List of patch schedules for a Redis cache."
2428+
},
2429+
"location": {
2430+
"type": "string",
2431+
"description": "The geo-location where the resource lives",
2432+
"readOnly": true
24282433
}
24292434
},
24302435
"required": [

0 commit comments

Comments
 (0)