diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json index 5b6b860e896b..41f921566ef3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json @@ -11,7 +11,7 @@ { "dayOfWeek": "Monday", "startHourUtc": 12, - "maintenanceWindow": "PT3H" + "maintenanceWindow": "PT5H" }, { "dayOfWeek": "Tuesday", @@ -32,7 +32,7 @@ { "dayOfWeek": "Monday", "startHourUtc": 12, - "maintenanceWindow": "PT3H" + "maintenanceWindow": "PT5H" }, { "dayOfWeek": "Tuesday", @@ -52,7 +52,7 @@ { "dayOfWeek": "Monday", "startHourUtc": 12, - "maintenanceWindow": "PT3H" + "maintenanceWindow": "PT5H" }, { "dayOfWeek": "Tuesday", diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesGet.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesGet.json index cd5f5776ab5a..4d57dcc96ea9 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesGet.json @@ -17,7 +17,7 @@ { "dayOfWeek": "Monday", "startHourUtc": 12, - "maintenanceWindow": "PT3H" + "maintenanceWindow": "PT5H" }, { "dayOfWeek": "Tuesday", diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesList.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesList.json new file mode 100644 index 000000000000..d712b03586f5 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/examples/RedisCachePatchSchedulesList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "cacheName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2017-10-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", + "name": "default", + "type": "Microsoft.Cache/Redis/patchSchedules", + "properties": { + "scheduleEntries": [ + { + "dayOfWeek": "Monday", + "startHourUtc": 12, + "maintenanceWindow": "PT5H" + }, + { + "dayOfWeek": "Tuesday", + "startHourUtc": 12 + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/redis.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/redis.json index 361a2dc629d7..8d79b8e6997a 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2017-10-01/redis.json @@ -77,7 +77,7 @@ "schema": { "$ref": "#/definitions/CheckNameAvailabilityParameters" }, - "description": "Parameters supplied to the CheckNameAvailability Redis operation." + "description": "Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource type is 'Microsoft.Cache/redis'" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -861,10 +861,57 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{cacheName}/patchSchedules": { + "get": { + "tags": [ + "Redis", + "PatchSchedules" + ], + "operationId": "PatchSchedules_ListByRedisResource", + "description": "Gets all patch schedules in the specified redis cache (there is only one).", + "x-ms-examples": { + "RedisCachePatchSchedulesList": { "$ref": "./examples/RedisCachePatchSchedulesList.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + } + ], + "responses": { + "200": { + "description": "Successfully got the current patch schedules", + "schema": { + "$ref": "#/definitions/RedisPatchScheduleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/patchSchedules/{default}": { "put": { "tags": [ - "Redis" + "Redis", + "PatchSchedules" ], "operationId": "PatchSchedules_CreateOrUpdate", "x-ms-examples": { @@ -933,7 +980,8 @@ }, "delete": { "tags": [ - "Redis" + "Redis", + "PatchSchedules" ], "operationId": "PatchSchedules_Delete", "x-ms-examples": { @@ -987,7 +1035,8 @@ }, "get": { "tags": [ - "Redis" + "Redis", + "PatchSchedules" ], "operationId": "PatchSchedules_Get", "x-ms-examples": { @@ -1801,6 +1850,23 @@ ], "description": "Response to put/get patch schedules for Redis cache." }, + "RedisPatchScheduleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RedisPatchSchedule" + }, + "description": "Results of the list patch schedules operation." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link for next page of results." + } + }, + "description": "The response of list patch schedules Redis operation." + }, "RedisForceRebootResponse": { "properties": { "message": { @@ -1960,7 +2026,7 @@ } }, "CheckNameAvailabilityParameters": { - "description": "Parameters body to pass for name availability check.", + "description": "Parameters body to pass for name availability check.", "properties": { "name": { "type": "string", @@ -1968,9 +2034,13 @@ }, "type": { "type": "string", - "description": "Resource type." + "description": "Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'." } - } + }, + "required": [ + "name", + "type" + ] }, "UpgradeNotification": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json index d864ec6cb48f..ad603c28ece1 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesCreateOrUpdate.json @@ -11,7 +11,7 @@ { "dayOfWeek": "Monday", "startHourUtc": 12, - "maintenanceWindow": "PT3H" + "maintenanceWindow": "PT5H" }, { "dayOfWeek": "Tuesday", @@ -32,7 +32,7 @@ { "dayOfWeek": "Monday", "startHourUtc": 12, - "maintenanceWindow": "PT3H" + "maintenanceWindow": "PT5H" }, { "dayOfWeek": "Tuesday", @@ -52,7 +52,7 @@ { "dayOfWeek": "Monday", "startHourUtc": 12, - "maintenanceWindow": "PT3H" + "maintenanceWindow": "PT5H" }, { "dayOfWeek": "Tuesday", diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesGet.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesGet.json index 1f9994b41d1d..b15e1ef9f878 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesGet.json @@ -17,7 +17,7 @@ { "dayOfWeek": "Monday", "startHourUtc": 12, - "maintenanceWindow": "PT3H" + "maintenanceWindow": "PT5H" }, { "dayOfWeek": "Tuesday", diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesList.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesList.json new file mode 100644 index 000000000000..f78ade074915 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/examples/RedisCachePatchSchedulesList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "cacheName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", + "name": "default", + "type": "Microsoft.Cache/Redis/patchSchedules", + "properties": { + "scheduleEntries": [ + { + "dayOfWeek": "Monday", + "startHourUtc": 12, + "maintenanceWindow": "PT5H" + }, + { + "dayOfWeek": "Tuesday", + "startHourUtc": 12 + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/redis.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/redis.json index e3a1156bfd8b..89031d2b44c7 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2018-03-01/redis.json @@ -77,7 +77,7 @@ "schema": { "$ref": "#/definitions/CheckNameAvailabilityParameters" }, - "description": "Parameters supplied to the CheckNameAvailability Redis operation." + "description": "Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource type is 'Microsoft.Cache/redis'" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -864,10 +864,57 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{cacheName}/patchSchedules": { + "get": { + "tags": [ + "Redis", + "PatchSchedules" + ], + "operationId": "PatchSchedules_ListByRedisResource", + "description": "Gets all patch schedules in the specified redis cache (there is only one).", + "x-ms-examples": { + "RedisCachePatchSchedulesList": { "$ref": "./examples/RedisCachePatchSchedulesList.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + } + ], + "responses": { + "200": { + "description": "Successfully got the current patch schedules", + "schema": { + "$ref": "#/definitions/RedisPatchScheduleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/patchSchedules/{default}": { "put": { "tags": [ - "Redis" + "Redis", + "PatchSchedules" ], "operationId": "PatchSchedules_CreateOrUpdate", "x-ms-examples": { @@ -936,7 +983,8 @@ }, "delete": { "tags": [ - "Redis" + "Redis", + "PatchSchedules" ], "operationId": "PatchSchedules_Delete", "x-ms-examples": { @@ -990,7 +1038,8 @@ }, "get": { "tags": [ - "Redis" + "Redis", + "PatchSchedules" ], "operationId": "PatchSchedules_Get", "x-ms-examples": { @@ -1630,7 +1679,7 @@ "nextLink": { "type": "string", "readOnly": true, - "description": "Link for next set of locations." + "description": "Link for next page of results." } }, "description": "The response of list firewall rules Redis operation." @@ -1672,7 +1721,7 @@ "nextLink": { "type": "string", "readOnly": true, - "description": "Link for next set of locations." + "description": "Link for next page of results." } }, "description": "The response of list Redis operation." @@ -1835,6 +1884,23 @@ ], "description": "Response to put/get patch schedules for Redis cache." }, + "RedisPatchScheduleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RedisPatchSchedule" + }, + "description": "Results of the list patch schedules operation." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link for next page of results." + } + }, + "description": "The response of list patch schedules Redis operation." + }, "RedisForceRebootResponse": { "properties": { "message": { @@ -1994,7 +2060,7 @@ } }, "CheckNameAvailabilityParameters": { - "description": "Parameters body to pass for name availability check.", + "description": "Parameters body to pass for resource name availability check.", "properties": { "name": { "type": "string", @@ -2002,9 +2068,13 @@ }, "type": { "type": "string", - "description": "Resource type." + "description": "Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'." } - } + }, + "required": [ + "name", + "type" + ] }, "UpgradeNotification": { "properties": { @@ -2049,19 +2119,19 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } } +}