Skip to content

Commit d0924f1

Browse files
authored
[Hub Generated] Review request for Microsoft.Cache to add version stable/2021-08-01 (#15417)
* Adds base for updating Microsoft.Cache from version stable/2021-03-01 to version 2021-08-01 * Updates readme * Updates API version in new specs and examples * Breaking Change: Replaced 'sasUri' import parameter with 'sasUris' to enable importing from multiple files * Fix ModelValidation errors and some existing Linter errors
1 parent 8f9abea commit d0924f1

26 files changed

+2476
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"location": "West US",
5+
"operationId": "testoperationid",
6+
"api-version": "2021-08-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/subid/providers/Microsoft.Cache/locations/westus/operationsStatus/testoperationid",
12+
"name": "testoperationid",
13+
"startTime": "2017-01-01T13:13:13.933Z",
14+
"endTime": "2017-01-01T16:13:13.933Z",
15+
"status": "Succeeded"
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"parameters": {
3+
"clusterName": "cache1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2021-08-01",
6+
"subscriptionId": "subid",
7+
"parameters": {
8+
"location": "West US",
9+
"sku": {
10+
"name": "EnterpriseFlash_F300",
11+
"capacity": 3
12+
},
13+
"zones": [
14+
"1",
15+
"2",
16+
"3"
17+
],
18+
"properties": {
19+
"minimumTlsVersion": "1.2"
20+
},
21+
"tags": {
22+
"tag1": "value1"
23+
}
24+
}
25+
},
26+
"responses": {
27+
"201": {
28+
"body": {
29+
"name": "cache1",
30+
"type": "Microsoft.Cache/redisEnterprise",
31+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1",
32+
"location": "West US",
33+
"sku": {
34+
"name": "EnterpriseFlash_F300",
35+
"capacity": 3
36+
},
37+
"zones": [
38+
"1",
39+
"2",
40+
"3"
41+
],
42+
"properties": {
43+
"provisioningState": "Creating",
44+
"resourceState": "Creating",
45+
"hostName": "cache1.westus.something.azure.net",
46+
"redisVersion": "5",
47+
"minimumTlsVersion": "1.2"
48+
},
49+
"tags": {
50+
"tag1": "value1"
51+
}
52+
}
53+
},
54+
"200": {
55+
"body": {
56+
"name": "cache1",
57+
"type": "Microsoft.Cache/redisEnterprise",
58+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1",
59+
"location": "West US",
60+
"sku": {
61+
"name": "EnterpriseFlash_F300",
62+
"capacity": 3
63+
},
64+
"zones": [
65+
"1",
66+
"2",
67+
"3"
68+
],
69+
"properties": {
70+
"provisioningState": "Succeeded",
71+
"resourceState": "Running",
72+
"hostName": "cache1.westus.something.azure.net",
73+
"redisVersion": "5",
74+
"minimumTlsVersion": "1.2"
75+
},
76+
"tags": {
77+
"tag1": "value1"
78+
}
79+
}
80+
}
81+
}
82+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"parameters": {
3+
"databaseName": "default",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2021-08-01",
7+
"subscriptionId": "subid",
8+
"parameters": {
9+
"properties": {
10+
"clientProtocol": "Encrypted",
11+
"clusteringPolicy": "EnterpriseCluster",
12+
"evictionPolicy": "AllKeysLRU",
13+
"persistence": {
14+
"aofEnabled": true,
15+
"aofFrequency": "1s"
16+
},
17+
"port": 10000,
18+
"modules": [
19+
{
20+
"name": "RedisBloom",
21+
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400"
22+
},
23+
{
24+
"name": "RedisTimeSeries",
25+
"args": "RETENTION_POLICY 20"
26+
},
27+
{
28+
"name": "RediSearch"
29+
}
30+
]
31+
}
32+
}
33+
},
34+
"responses": {
35+
"200": {
36+
"body": {
37+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
38+
"name": "cache1/default",
39+
"type": "Microsoft.Cache/redisEnterprise/databases",
40+
"properties": {
41+
"provisioningState": "Updating",
42+
"resourceState": "Updating",
43+
"clientProtocol": "Encrypted",
44+
"clusteringPolicy": "EnterpriseCluster",
45+
"evictionPolicy": "AllKeysLRU",
46+
"persistence": {
47+
"aofEnabled": true,
48+
"aofFrequency": "1s"
49+
},
50+
"port": 10000,
51+
"modules": [
52+
{
53+
"name": "RedisBloom",
54+
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400",
55+
"version": "1.0.0"
56+
},
57+
{
58+
"name": "RedisTimeSeries",
59+
"args": "RETENTION_POLICY 20",
60+
"version": "1.0.0"
61+
},
62+
{
63+
"name": "RediSearch",
64+
"args": "",
65+
"version": "1.0.0"
66+
}
67+
]
68+
}
69+
}
70+
},
71+
"201": {
72+
"body": {
73+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/db1",
74+
"name": "cache1/db1",
75+
"type": "Microsoft.Cache/redisEnterprise/databases",
76+
"properties": {
77+
"provisioningState": "Creating",
78+
"resourceState": "Creating",
79+
"clientProtocol": "Encrypted",
80+
"clusteringPolicy": "EnterpriseCluster",
81+
"evictionPolicy": "AllKeysLRU",
82+
"persistence": {
83+
"aofEnabled": true,
84+
"aofFrequency": "1s"
85+
},
86+
"port": 10000,
87+
"modules": [
88+
{
89+
"name": "RedisBloom",
90+
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400",
91+
"version": "1.0.0"
92+
},
93+
{
94+
"name": "RedisTimeSeries",
95+
"args": "RETENTION_POLICY 20",
96+
"version": "1.0.0"
97+
},
98+
{
99+
"name": "RediSearch",
100+
"args": "",
101+
"version": "1.0.0"
102+
}
103+
]
104+
}
105+
}
106+
}
107+
}
108+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"databaseName": "db1",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2021-08-01",
7+
"subscriptionId": "subid"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {
12+
"headers": {
13+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus...",
14+
"Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..."
15+
}
16+
},
17+
"204": {}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"databaseName": "default",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2021-08-01",
7+
"subscriptionId": "subid",
8+
"parameters": {
9+
"sasUri": "https://contosostorage.blob.core.window.net/urlToBlobContainer?sasKeyParameters"
10+
}
11+
},
12+
"responses": {
13+
"200": {},
14+
"202": {
15+
"headers": {
16+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus...",
17+
"Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..."
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"databaseName": "default",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2021-08-01",
7+
"subscriptionId": "subid"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
13+
"name": "cache1/default",
14+
"type": "Microsoft.Cache/redisEnterprise/databases",
15+
"properties": {
16+
"provisioningState": "Succeeded",
17+
"resourceState": "Running",
18+
"clientProtocol": "Encrypted",
19+
"clusteringPolicy": "OSSCluster",
20+
"evictionPolicy": "AllKeysLRU",
21+
"persistence": {
22+
"rdbEnabled": true,
23+
"rdbFrequency": "12h"
24+
},
25+
"port": 10000,
26+
"modules": [
27+
{
28+
"name": "RediSearch",
29+
"args": "",
30+
"version": "1.0.0"
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"databaseName": "default",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2021-08-01",
7+
"subscriptionId": "subid",
8+
"parameters": {
9+
"sasUris": [
10+
"https://contosostorage.blob.core.window.net/urltoBlobFile1?sasKeyParameters",
11+
"https://contosostorage.blob.core.window.net/urltoBlobFile2?sasKeyParameters"
12+
]
13+
}
14+
},
15+
"responses": {
16+
"200": {},
17+
"202": {
18+
"headers": {
19+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus...",
20+
"Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..."
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"clusterName": "cache1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2021-08-01",
6+
"subscriptionId": "subid"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
14+
"name": "cache1/default",
15+
"type": "Microsoft.Cache/redisEnterprise/databases",
16+
"properties": {
17+
"provisioningState": "Succeeded",
18+
"resourceState": "Running",
19+
"clientProtocol": "Encrypted",
20+
"clusteringPolicy": "OSSCluster",
21+
"evictionPolicy": "AllKeysLRU",
22+
"persistence": {
23+
"rdbEnabled": true,
24+
"rdbFrequency": "12h"
25+
},
26+
"port": 10000,
27+
"modules": [
28+
{
29+
"name": "RediSearch",
30+
"args": "",
31+
"version": "1.0.0"
32+
}
33+
]
34+
}
35+
}
36+
]
37+
}
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"databaseName": "default",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2021-08-01",
7+
"subscriptionId": "subid"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"primaryKey": "<primaryKey>",
13+
"secondaryKey": "<secondaryKey>"
14+
}
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)