From 35c27eac4d6594cf3979fba1597e927273bf644e Mon Sep 17 00:00:00 2001 From: Praveenkumar Ravikumar Date: Thu, 23 Sep 2021 20:31:14 +0530 Subject: [PATCH] Swagger correctness fix --- .../Microsoft.Cache/stable/2020-06-01/redis.json | 8 +++++++- .../Microsoft.Cache/stable/2020-12-01/redis.json | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-06-01/redis.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-06-01/redis.json index 350f2ffac79d..6c7e1633be74 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2020-06-01/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2020-06-01/redis.json @@ -1873,6 +1873,7 @@ }, "enableNonSslPort": { "type": "boolean", + "default": false, "description": "Specifies whether the non-ssl Redis server port (6379) is enabled." }, "replicasPerMaster": { @@ -1912,6 +1913,7 @@ "Disabled" ], "type": "string", + "default": "Enabled", "x-ms-enum": { "name": "PublicNetworkAccess", "modelAsString": true @@ -1935,7 +1937,11 @@ "staticIP": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+\\.\\d+$", - "description": "Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network." + "description": "Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.", + "x-ms-mutability": [ + "read", + "create" + ] } }, "required": [ 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 39379a545f35..7bee47c69813 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 @@ -1880,6 +1880,7 @@ }, "enableNonSslPort": { "type": "boolean", + "default": false, "description": "Specifies whether the non-ssl Redis server port (6379) is enabled." }, "replicasPerMaster": { @@ -1923,6 +1924,7 @@ "Enabled", "Disabled" ], + "default": "Enabled", "type": "string", "x-ms-enum": { "name": "PublicNetworkAccess", @@ -1947,7 +1949,11 @@ "staticIP": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+\\.\\d+$", - "description": "Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network." + "description": "Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.", + "x-ms-mutability": [ + "read", + "create" + ] } }, "required": [