From ed429fcf6988863647854accefb6e3c87e23d835 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Tue, 8 Feb 2022 10:00:31 +0530 Subject: [PATCH] Swagger correctness fix: add location property to RedisPatchSchedule and update response examples --- .../RedisCachePatchSchedulesCreateOrUpdate.json | 10 ++++++---- .../examples/RedisCachePatchSchedulesGet.json | 5 +++-- .../examples/RedisCachePatchSchedulesList.json | 5 +++-- .../Microsoft.Cache/stable/2020-12-01/redis.json | 5 +++++ 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json index 498656370051..294b116e7cca 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json @@ -25,8 +25,9 @@ "201": { "body": { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", - "name": "default", - "type": "Microsoft.Cache/Redis/patchSchedules", + "location": "East US", + "name": "cachename1/default", + "type": "Microsoft.Cache/Redis/PatchSchedules", "properties": { "scheduleEntries": [ { @@ -45,8 +46,9 @@ "200": { "body": { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", - "name": "default", - "type": "Microsoft.Cache/Redis/patchSchedules", + "location": "East US", + "name": "cachename1/default", + "type": "Microsoft.Cache/Redis/PatchSchedules", "properties": { "scheduleEntries": [ { diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesGet.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesGet.json index c27d0c4a938f..f21a29b8534a 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesGet.json @@ -10,8 +10,9 @@ "200": { "body": { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", - "name": "default", - "type": "Microsoft.Cache/Redis/patchSchedules", + "location": "East US", + "name": "cache1/default", + "type": "Microsoft.Cache/Redis/PatchSchedules", "properties": { "scheduleEntries": [ { diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesList.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesList.json index ce8749d17e25..74c863bd47e5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/examples/RedisCachePatchSchedulesList.json @@ -11,8 +11,9 @@ "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", - "name": "default", - "type": "Microsoft.Cache/Redis/patchSchedules", + "location": "East US", + "name": "cache1/default", + "type": "Microsoft.Cache/Redis/PatchSchedules", "properties": { "scheduleEntries": [ { diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/redis.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/redis.json index 331dd6dba5d6..844bd69f8345 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-12-01/redis.json @@ -2425,6 +2425,11 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/ScheduleEntries", "description": "List of patch schedules for a Redis cache." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives", + "readOnly": true } }, "required": [