diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheCreate.json index 6dd7ce792529..72e37d8df823 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheCreate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheCreate.json @@ -17,12 +17,11 @@ }, "enableNonSslPort": true, "shardCount": 2, - "replicasPerMaster": 2, "redisConfiguration": { "maxmemory-policy": "allkeys-lru" }, "subnetId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/network1/subnets/subnet1", - "staticIP": "192.168.0.5", + "staticIP": "10.0.0.5", "minimumTlsVersion": "1.2" } } @@ -51,7 +50,6 @@ "capacity": 1 }, "enableNonSslPort": false, - "replicasPerMaster": 2, "redisConfiguration": { "maxmemory-policy": "allkeys-lru" }, @@ -123,7 +121,6 @@ "capacity": 1 }, "enableNonSslPort": false, - "replicasPerMaster": 2, "redisConfiguration": { "maxclients": "1000", "maxmemory-reserved": "50", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheFirewallRuleCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheFirewallRuleCreate.json index 9fe3832d8a20..b92e8ff9b3be 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheFirewallRuleCreate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheFirewallRuleCreate.json @@ -7,8 +7,8 @@ "subscriptionId": "subid", "parameters": { "properties": { - "startIP": "192.168.1.1", - "endIP": "192.168.1.4" + "startIP": "10.0.1.1", + "endIP": "10.0.1.4" } } }, @@ -19,8 +19,8 @@ "name": "cache1/rule1", "type": "Microsoft.Cache/Redis/firewallRules", "properties": { - "startIP": "192.168.1.1", - "endIP": "192.168.1.4" + "startIP": "10.0.1.1", + "endIP": "10.0.1.4" } } }, @@ -30,8 +30,8 @@ "name": "cache1/rule1", "type": "Microsoft.Cache/Redis/firewallRules", "properties": { - "startIP": "192.168.1.1", - "endIP": "192.168.1.4" + "startIP": "10.0.1.1", + "endIP": "10.0.1.4" } } } diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheForceReboot.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheForceReboot.json index 8012f8ae115c..e0d664658354 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheForceReboot.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheForceReboot.json @@ -6,11 +6,7 @@ "subscriptionId": "subid", "parameters": { "shardId": 0, - "rebootType": "AllNodes", - "ports": [ - 13000, - 15001 - ] + "rebootType": "AllNodes" } }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheOperations_List.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheOperations_List.json new file mode 100644 index 000000000000..25108e5da276 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheOperations_List.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Cache/CheckNameAvailability", + "display": { + "operation": "Check Name Availability", + "provider": "Azure Cache", + "resource": "Redis" + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/redis.json index fc67ab980b18..fd7c5800ef5b 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/redis.json @@ -41,6 +41,11 @@ ], "description": "Lists all of the available REST API operations of the Microsoft.Cache provider.", "operationId": "Operations_List", + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/RedisCacheOperations_List.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" diff --git a/specification/redis/resource-manager/readme.cli.md b/specification/redis/resource-manager/readme.cli.md new file mode 100644 index 000000000000..308f24c6abc2 --- /dev/null +++ b/specification/redis/resource-manager/readme.cli.md @@ -0,0 +1,48 @@ +## CLI + +These settings don't need to apply `--cli` on the command line. + +``` yaml +cli: + cli-name: redis + package-name: azure-mgmt-redis + namespace: azure.mgmt.redis + test-scenario: + - name: /Redis/put/RedisCacheCreate + - name: /PatchSchedules/put/RedisCachePatchSchedulesCreateOrUpdate + disabled: true + - name: /FirewallRules/put/RedisCacheFirewallRuleCreate + - name: /LinkedServer/put/LinkedServer_Create + disabled: true + - name: /LinkedServer/get/LinkedServer_Get + disabled: true + - name: /FirewallRules/get/RedisCacheFirewallRuleGet + - name: /PatchSchedules/get/RedisCachePatchSchedulesGet + disabled: true + - name: /Redis/get/RedisCacheGet + disabled: true + - name: /PatchSchedules/get/RedisCachePatchSchedulesList + - name: /FirewallRules/get/RedisCacheFirewallRulesList + - name: /LinkedServer/get/LinkedServer_List + - name: /Redis/get/RedisCacheGet + disabled: true + - name: /Redis/get/RedisCacheListByResourceGroup + - name: /Redis/get/RedisCacheList + - name: /Operations/get/Operations_List + - name: /Redis/post/RedisCacheRegenerateKey + - name: /Redis/post/RedisCacheForceReboot + - name: /Redis/post/RedisCacheListKeys + - name: /Redis/post/RedisCacheImport + disabled: true + - name: /Redis/post/RedisCacheExport + disabled: true + - name: /Redis/patch/RedisCacheUpdate + - name: /Redis/post/RedisCacheList + - name: /LinkedServer/delete/LinkedServerDelete + disabled: true + - name: /FirewallRules/delete/RedisCacheFirewallRuleDelete + - name: /PatchSchedules/delete/RedisCachePatchSchedulesDelete + disabled: true + - name: /Redis/delete/RedisCacheDelete + +``` \ No newline at end of file diff --git a/specification/redis/resource-manager/readme.md b/specification/redis/resource-manager/readme.md index 5b8a8e1ac5b5..ce7541603150 100644 --- a/specification/redis/resource-manager/readme.md +++ b/specification/redis/resource-manager/readme.md @@ -127,7 +127,7 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. -``` yaml $(python) +``` yaml $(python) && !$(track2) python-mode: create python: azure-arm: true @@ -139,13 +139,27 @@ python: clear-output-folder: true ``` +``` yaml $(python) && $(track2) +python-mode: update +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.redis +package-name: azure-mgmt-redis +package-version: 5.0.0 +clear-output-folder: true +``` + ``` yaml $(python) && $(python-mode) == 'update' +no-namespace-folders: true +output-folder: $(python-sdks-folder)/redis/azure-mgmt-redis/azure/mgmt/redis python: no-namespace-folders: true output-folder: $(python-sdks-folder)/redis/azure-mgmt-redis/azure/mgmt/redis ``` ``` yaml $(python) && $(python-mode) == 'create' +basic-setup-py: true +output-folder: $(python-sdks-folder)/redis/azure-mgmt-redis python: basic-setup-py: true output-folder: $(python-sdks-folder)/redis/azure-mgmt-redis