Skip to content

Commit 54cdb78

Browse files
koderjokerKanchan Joshi
andauthored
[Hub Generated] Review request for Microsoft.Cache to add version preview/2023-05-01-preview (Azure#23745)
* Adds base for updating Microsoft.Cache from version stable/2022-06-01 to version 2023-05-01-preview * Updates readme * Updates API version in new specs and examples * Take base changes from approved release branch 2023-05-01 preview * Update api version label to 2023-05-01-preview * Address PR suggestions from release branch * Spec validation correction * Add min max length for access policy and access policy assignment * Remove breaking changes * Remove body from delete 202 response * Add add x-ms-parameter-location method * Update redis readme --------- Co-authored-by: Kanchan Joshi <kanchanjoshi@microsoft.com>
1 parent b2fe157 commit 54cdb78

44 files changed

Lines changed: 5831 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg1",
5+
"cacheName": "cache1",
6+
"accessPolicyAssignmentName": "accessPolicyAssignmentName1",
7+
"api-version": "2023-05-01-preview",
8+
"parameters": {
9+
"properties": {
10+
"accessPolicyName": "accessPolicy1",
11+
"objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0",
12+
"objectIdAlias": "TestAADAppRedis"
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1",
20+
"name": "accessPolicyAssignmentName1",
21+
"type": "Microsoft.Cache/Redis/accessPolicyAssignments",
22+
"properties": {
23+
"provisioningState": "Succeeded",
24+
"accessPolicyName": "accessPolicy1",
25+
"objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0",
26+
"objectIdAlias": "TestAADAppRedis"
27+
}
28+
}
29+
},
30+
"201": {
31+
"body": {
32+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1",
33+
"name": "accessPolicyAssignmentName1",
34+
"type": "Microsoft.Cache/Redis/accessPolicyAssignments",
35+
"properties": {
36+
"provisioningState": "Succeeded",
37+
"accessPolicyName": "accessPolicy1",
38+
"objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0",
39+
"objectIdAlias": "TestAADAppRedis"
40+
}
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg1",
5+
"cacheName": "cache1",
6+
"accessPolicyAssignmentName": "accessPolicyAssignmentName1",
7+
"api-version": "2023-05-01-preview"
8+
},
9+
"responses": {
10+
"200": {},
11+
"204": {},
12+
"202": {
13+
"headers": {
14+
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..."
15+
}
16+
}
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg1",
5+
"cacheName": "cache1",
6+
"accessPolicyAssignmentName": "accessPolicyAssignmentName1",
7+
"api-version": "2023-05-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1",
13+
"name": "accessPolicyAssignmentName1",
14+
"type": "Microsoft.Cache/Redis/accessPolicyAssignments",
15+
"properties": {
16+
"provisioningState": "Succeeded",
17+
"accessPolicyName": "accessPolicy1",
18+
"objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0",
19+
"objectIdAlias": "TestAADAppRedis"
20+
}
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg1",
5+
"cacheName": "cache1",
6+
"api-version": "2023-05-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1",
14+
"name": "accessPolicyAssignmentName1",
15+
"type": "Microsoft.Cache/Redis/accessPolicyAssignments",
16+
"properties": {
17+
"provisioningState": "Succeeded",
18+
"accessPolicyName": "accessPolicy1",
19+
"objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0",
20+
"objectIdAlias": "TestAADAppRedis1"
21+
}
22+
},
23+
{
24+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName2",
25+
"name": "accessPolicyAssignmentName2",
26+
"type": "Microsoft.Cache/Redis/accessPolicyAssignments",
27+
"properties": {
28+
"provisioningState": "Succeeded",
29+
"accessPolicyName": "accessPolicy2",
30+
"objectId": "7497c918-11ad-41e7-1b0f-7c518a87d0b0",
31+
"objectIdAlias": "TestAADAppRedis2"
32+
}
33+
}
34+
]
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg1",
5+
"cacheName": "cache1",
6+
"accessPolicyName": "accessPolicy1",
7+
"api-version": "2023-05-01-preview",
8+
"parameters": {
9+
"properties": {
10+
"permissions": "+get +hget"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1",
18+
"name": "accessPolicy1",
19+
"type": "Microsoft.Cache/Redis/accessPolicies",
20+
"properties": {
21+
"provisioningState": "Succeeded",
22+
"permissions": "+get +hget",
23+
"type": "Custom"
24+
}
25+
}
26+
},
27+
"201": {
28+
"body": {
29+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1",
30+
"name": "accessPolicy1",
31+
"type": "Microsoft.Cache/Redis/accessPolicies",
32+
"properties": {
33+
"provisioningState": "Succeeded",
34+
"permissions": "+get +hget",
35+
"type": "Custom"
36+
}
37+
}
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg1",
5+
"cacheName": "cache1",
6+
"accessPolicyName": "accessPolicy1",
7+
"api-version": "2023-05-01-preview"
8+
},
9+
"responses": {
10+
"200": {},
11+
"204": {},
12+
"202": {
13+
"headers": {
14+
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..."
15+
}
16+
}
17+
}
18+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg1",
5+
"cacheName": "cache1",
6+
"accessPolicyName": "accessPolicy1",
7+
"api-version": "2023-05-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1",
13+
"name": "accessPolicy1",
14+
"type": "Microsoft.Cache/Redis/accessPolicies",
15+
"properties": {
16+
"provisioningState": "Succeeded",
17+
"permissions": "+get +hget",
18+
"type": "Custom"
19+
}
20+
}
21+
}
22+
}
23+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg1",
5+
"cacheName": "cache1",
6+
"api-version": "2023-05-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicyBuiltIn",
14+
"name": "accessPolicyBuiltIn",
15+
"type": "Microsoft.Cache/Redis/accessPolicies",
16+
"properties": {
17+
"provisioningState": "Succeeded",
18+
"permissions": "+get +hget",
19+
"type": "BuiltIn"
20+
}
21+
},
22+
{
23+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1",
24+
"name": "accessPolicy1",
25+
"type": "Microsoft.Cache/Redis/accessPolicies",
26+
"properties": {
27+
"provisioningState": "Succeeded",
28+
"permissions": "+get +hget",
29+
"type": "Custom"
30+
}
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"location": "East US",
4+
"api-version": "2023-05-01-preview",
5+
"subscriptionId": "subid",
6+
"operationId": "c7ba2bf5-5939-4d79-b037-2964ccf097da"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/subid/providers/Microsoft.Cache/locations/East US/asyncOperations/c7ba2bf5-5939-4d79-b037-2964ccf097da",
12+
"name": "c7ba2bf5-5939-4d79-b037-2964ccf097da",
13+
"status": "Succeeded",
14+
"startTime": null,
15+
"endTime": null,
16+
"percentComplete": null,
17+
"properties": null,
18+
"error": null
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-05-01-preview",
4+
"subscriptionId": "subid",
5+
"parameters": {
6+
"type": "Microsoft.Cache/Redis",
7+
"name": "cacheName"
8+
}
9+
},
10+
"responses": {
11+
"200": {}
12+
}
13+
}

0 commit comments

Comments
 (0)