Skip to content

Commit 93451a1

Browse files
jorodaLeiWang3
authored andcommitted
[Hub Generated] Review request for Microsoft.Cache to add version stable/2022-01-01 (Azure#17437)
* Adds base for updating Microsoft.Cache from version stable/2021-08-01 to version 2022-01-01 * Updates readme * Updates API version in new specs and examples * Add 2022-01-01 API version for redisenterprise which includes non-preview support for Active Geo Replication * Add missing example file for 2022-01-01 redisenterprise version * Add missing type properties to 2022-01-01 api version of redisenterprise * Add example for operations list action for redisenterprise * Fix api version in redisenterprise OperationsList example * Remove extra property from OperationsList redisenterprise example * Fix formatting of OperationList.json
1 parent 3800f48 commit 93451a1

26 files changed

+2732
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-03-01"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.Cache/redisEnterprise/read",
11+
"display": {
12+
"provider": "Microsoft Cache",
13+
"resource": "Redis Enterprise cache",
14+
"operation": "Manage Redis Enterprise cache (read)",
15+
"description": "View the Redis Enterprise cache's settings and configuration in the management portal"
16+
}
17+
},
18+
{
19+
"name": "Microsoft.Cache/redisEnterprise/write",
20+
"display": {
21+
"provider": "Microsoft Cache",
22+
"resource": "Redis Enterprise cache",
23+
"operation": "Manage Redis Enterprise cache (write)",
24+
"description": "Modify the Redis Enterprise cache's settings and configuration in the management portal"
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}
31+
}
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": "2022-01-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": "2022-01-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": "2022-01-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,86 @@
1+
{
2+
"parameters": {
3+
"databaseName": "default",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2021-02-01-preview",
7+
"subscriptionId": "subid1",
8+
"parameters": {
9+
"properties": {
10+
"clientProtocol": "Encrypted",
11+
"clusteringPolicy": "EnterpriseCluster",
12+
"evictionPolicy": "NoEviction",
13+
"port": 10000,
14+
"geoReplication": {
15+
"groupNickname": "groupName",
16+
"linkedDatabases": [
17+
{
18+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
19+
},
20+
{
21+
"id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
22+
}
23+
]
24+
}
25+
}
26+
}
27+
},
28+
"responses": {
29+
"200": {
30+
"body": {
31+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
32+
"name": "cache1/default",
33+
"type": "Microsoft.Cache/redisEnterprise/databases",
34+
"properties": {
35+
"provisioningState": "Updating",
36+
"resourceState": "Updating",
37+
"clientProtocol": "Encrypted",
38+
"clusteringPolicy": "EnterpriseCluster",
39+
"evictionPolicy": "NoEviction",
40+
"port": 10000,
41+
"geoReplication": {
42+
"groupNickname": "groupName",
43+
"linkedDatabases": [
44+
{
45+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
46+
"state": "Linking"
47+
},
48+
{
49+
"id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default",
50+
"state": "Linking"
51+
}
52+
]
53+
}
54+
}
55+
}
56+
},
57+
"201": {
58+
"body": {
59+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/db1",
60+
"name": "cache1/db1",
61+
"type": "Microsoft.Cache/redisEnterprise/databases",
62+
"properties": {
63+
"provisioningState": "Creating",
64+
"resourceState": "Creating",
65+
"clientProtocol": "Plaintext",
66+
"clusteringPolicy": "EnterpriseCluster",
67+
"evictionPolicy": "NoEviction",
68+
"port": 10000,
69+
"geoReplication": {
70+
"groupNickname": "groupName",
71+
"linkedDatabases": [
72+
{
73+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
74+
"state": "Linking"
75+
},
76+
{
77+
"id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default",
78+
"state": "Linking"
79+
}
80+
]
81+
}
82+
}
83+
}
84+
}
85+
}
86+
}
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": "2022-01-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": "2022-01-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,22 @@
1+
{
2+
"parameters": {
3+
"databaseName": "default",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2021-02-01-preview",
7+
"subscriptionId": "subid",
8+
"parameters": {
9+
"ids": [
10+
"/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
11+
]
12+
}
13+
},
14+
"responses": {
15+
"200": {},
16+
"202": {
17+
"headers": {
18+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus..."
19+
}
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)